blob: e7ce56dcae846006a4c180e196025a97d3859824 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Bill Wendlingebcceee2009-04-18 11:20:33 +00003# Generated by GNU Autoconf 2.60 for llvm 2.6svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
Tanya Lattnercf067672008-01-17 05:57:22 +000012# Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell0c38eaf2003-09-10 15:17:25 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
Bill Wendlingebcceee2009-04-18 11:20:33 +000017# Be Bourne compatible
John Criswell0c38eaf2003-09-10 15:17:25 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Bill Wendlingebcceee2009-04-18 11:20:33 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Reid Spencera773bd52006-08-04 18:18:08 +000032# PATH needs CR
John Criswell0c38eaf2003-09-10 15:17:25 +000033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
Reid Spencera773bd52006-08-04 18:18:08 +000053# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
John Criswell0c38eaf2003-09-10 15:17:25 +0000112 fi
Reid Spencera773bd52006-08-04 18:18:08 +0000113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
John Criswell0c38eaf2003-09-10 15:17:25 +0000221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Wendlingebcceee2009-04-18 11:20:33 +0000222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
John Criswell0c38eaf2003-09-10 15:17:25 +0000223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000226 case $as_dir in
John Criswell0c38eaf2003-09-10 15:17:25 +0000227 /*)
Reid Spencera773bd52006-08-04 18:18:08 +0000228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +0000240# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000250fi
Bill Wendlingebcceee2009-04-18 11:20:33 +0000251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +0000260# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000270fi
Bill Wendlingebcceee2009-04-18 11:20:33 +0000271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
John Criswell0c38eaf2003-09-10 15:17:25 +0000326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
John Criswell0c38eaf2003-09-10 15:17:25 +0000328 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +0000329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell0c38eaf2003-09-10 15:17:25 +0000425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +0000428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
John Criswell0c38eaf2003-09-10 15:17:25 +0000433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +0000434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
463
Reid Spencera773bd52006-08-04 18:18:08 +0000464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
470ECHO_C= ECHO_N= ECHO_T=
471case `echo -n x` in
472-n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Reid Spencera773bd52006-08-04 18:18:08 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell0c38eaf2003-09-10 15:17:25 +0000483 as_expr=expr
484else
485 as_expr=false
486fi
487
488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
494fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +0000497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
John Criswell0c38eaf2003-09-10 15:17:25 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Bill Wendlingebcceee2009-04-18 11:20:33 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Bill Wendlingebcceee2009-04-18 11:20:33 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
John Criswell7a73b802003-06-30 21:59:07 +0000540
John Criswell7a73b802003-06-30 21:59:07 +0000541
542# Check that we are running under the correct shell.
543SHELL=${CONFIG_SHELL-/bin/sh}
544
545case X$ECHO in
546X*--fallback-echo)
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549 ;;
550esac
551
552echo=${ECHO-echo}
553if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
555 shift
556elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
558 :
John Criswell47fdd832003-07-14 16:52:07 +0000559elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000560 # Yippee, $echo works!
561 :
562else
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
565fi
566
567if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
569 shift
570 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000571$*
John Criswell7a73b802003-06-30 21:59:07 +0000572EOF
573 exit 0
574fi
575
576# The HP-UX ksh and POSIX shell print the target directory to stdout
577# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000579
580if test -z "$ECHO"; then
581if test "X${echo_test_string+set}" != Xset; then
582# find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
Reid Spencera773bd52006-08-04 18:18:08 +0000585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
John Criswell7a73b802003-06-30 21:59:07 +0000587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588 then
589 break
590 fi
591 done
592fi
593
594if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 :
598else
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
602 #
603 # So, first we look for a working echo in the user's PATH.
604
John Criswell47fdd832003-07-14 16:52:07 +0000605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000606 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000607 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 echo="$dir/echo"
613 break
614 fi
615 done
John Criswell47fdd832003-07-14 16:52:07 +0000616 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000617
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
624 echo='print -r'
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
631 export CONFIG_SHELL
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633 else
634 # Try using printf.
635 echo='printf %s\n'
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 # Cool, printf works
640 :
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646 export CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
648 export SHELL
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
655 else
656 # maybe with a smaller string...
657 prev=:
658
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661 then
662 break
663 fi
664 prev="$cmd"
665 done
666
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671 else
672 # Oops. We lost completely, so just stick with echo.
673 echo=echo
674 fi
675 fi
676 fi
677 fi
678fi
679fi
680
681# Copy echo and quote the copy suitably for passing to libtool from
682# the Makefile, instead of quoting the original, which is used later.
683ECHO=$echo
684if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686fi
687
688
689
John Criswell47fdd832003-07-14 16:52:07 +0000690
Reid Spencer2706f8c2004-09-19 23:53:36 +0000691tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000692
Reid Spencer2706f8c2004-09-19 23:53:36 +0000693tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000694
Reid Spencera773bd52006-08-04 18:18:08 +0000695exec 7<&0 </dev/null 6>&1
696
John Criswell7a73b802003-06-30 21:59:07 +0000697# Name of the host.
698# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699# so uname gets run too.
700ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
John Criswell7a73b802003-06-30 21:59:07 +0000702#
703# Initializations.
704#
705ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000706ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000707ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000708LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000709cross_compiling=no
710subdirs=
711MFLAGS=
712MAKEFLAGS=
713SHELL=${CONFIG_SHELL-/bin/sh}
714
John Criswell7a73b802003-06-30 21:59:07 +0000715# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000716PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000717PACKAGE_TARNAME='-llvm-'
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000718PACKAGE_VERSION='2.6svn'
719PACKAGE_STRING='llvm 2.6svn'
John Criswell7a73b802003-06-30 21:59:07 +0000720PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000722ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000723# Factoring default headers for most tests.
724ac_includes_default="\
725#include <stdio.h>
Bill Wendlingebcceee2009-04-18 11:20:33 +0000726#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000727# include <sys/types.h>
728#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000729#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000730# include <sys/stat.h>
731#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000732#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000733# include <stdlib.h>
734# include <stddef.h>
735#else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000736# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000737# include <stdlib.h>
738# endif
739#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000742# include <memory.h>
743# endif
744# include <string.h>
745#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000746#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000747# include <strings.h>
748#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000749#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000750# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000751#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000752#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000753# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000754#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000755#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000756# include <unistd.h>
757#endif"
758
Reid Spencera773bd52006-08-04 18:18:08 +0000759ac_subst_vars='SHELL
760PATH_SEPARATOR
761PACKAGE_NAME
762PACKAGE_TARNAME
763PACKAGE_VERSION
764PACKAGE_STRING
765PACKAGE_BUGREPORT
766exec_prefix
767prefix
768program_transform_name
769bindir
770sbindir
771libexecdir
772datarootdir
773datadir
774sysconfdir
775sharedstatedir
776localstatedir
777includedir
778oldincludedir
779docdir
780infodir
781htmldir
782dvidir
783pdfdir
784psdir
785libdir
786localedir
787mandir
788DEFS
789ECHO_C
790ECHO_N
791ECHO_T
792LIBS
793build_alias
794host_alias
795target_alias
796LLVM_COPYRIGHT
797subdirs
798build
799build_cpu
800build_vendor
801build_os
802host
803host_cpu
804host_vendor
805host_os
806target
807target_cpu
808target_vendor
809target_os
810OS
811LINKALL
812NOLINKALL
813LLVM_ON_UNIX
814LLVM_ON_WIN32
Bill Wendlinga0833352009-03-12 04:10:09 +0000815ARCH
816ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +0000817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
Jim Grosbach673612e2008-10-02 22:56:44 +0000830BUILD_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000831CVSBUILD
832ENABLE_OPTIMIZED
David Greene2a5a12c2009-04-17 14:50:39 +0000833ENABLE_PROFILING
Reid Spencera773bd52006-08-04 18:18:08 +0000834DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000835ENABLE_EXPENSIVE_CHECKS
836EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000837DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000838JIT
839TARGET_HAS_JIT
840ENABLE_DOXYGEN
841ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000842ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000843TARGETS_TO_BUILD
Douglas Gregor1555a232009-06-16 20:12:29 +0000844LLVM_ENUM_TARGETS
845LLVM_ENUM_ASM_PRINTERS
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +0000846LLVM_ENUM_ASM_PARSERS
Reid Spencer65c5d752006-11-05 17:08:18 +0000847ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000848EXTRA_OPTIONS
Nick Lewyckye792b1d2009-02-03 07:10:30 +0000849BINUTILS_INCDIR
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +0000850ENABLE_LLVMC_DYNAMIC
851ENABLE_LLVMC_DYNAMIC_PLUGINS
Reid Spencera773bd52006-08-04 18:18:08 +0000852CXX
853CXXFLAGS
854ac_ct_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000855NM
856ifGNUmake
857LN_S
858CMP
859CP
860DATE
861FIND
862MKDIR
863MV
864RANLIB
865RM
866SED
867TAR
868BINPWD
869GRAPHVIZ
870DOT
David Greenef0b9eff2009-07-09 17:16:26 +0000871FDP
872NEATO
873TWOPI
874CIRCO
Reid Spencera773bd52006-08-04 18:18:08 +0000875GV
876DOTTY
877PERL
878HAVE_PERL
879INSTALL_PROGRAM
880INSTALL_SCRIPT
881INSTALL_DATA
882BZIP2
883DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000884GROFF
885GZIP
886POD2HTML
887POD2MAN
888RUNTEST
889TCLSH
890ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000891OCAMLC
892OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000893OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000894OCAMLDOC
Torok Edwincc499a42008-10-22 09:56:27 +0000895GAS
Reid Spencera773bd52006-08-04 18:18:08 +0000896INSTALL_LTDL_TRUE
897INSTALL_LTDL_FALSE
898CONVENIENCE_LTDL_TRUE
899CONVENIENCE_LTDL_FALSE
900LIBADD_DL
901ECHO
902AR
903STRIP
904CXXCPP
905F77
906FFLAGS
907ac_ct_F77
908LIBTOOL
Mikhail Glushenkov4558f482009-04-21 19:46:10 +0000909LLVMGCCCOMMAND
910LLVMGXXCOMMAND
Douglas Gregor01746742009-05-11 18:05:52 +0000911LLVMGCC
912LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000913USE_UDIS86
Jeffrey Yasskina93e7702009-07-10 21:09:55 +0000914USE_OPROFILE
Reid Spencer1000b732006-12-01 00:37:14 +0000915HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000916HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000917ALLOCA
918MMAP_FILE
919LLVMCC1
920LLVMCC1PLUS
921LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000922LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000923LLVMGCC_VERSION
924LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000925LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000926SHLIBEXT
927LLVM_PREFIX
928LLVM_BINDIR
929LLVM_LIBDIR
930LLVM_DATADIR
931LLVM_DOCSDIR
932LLVM_ETCDIR
933LLVM_INCLUDEDIR
934LLVM_INFODIR
935LLVM_MANDIR
936LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000937BINDINGS_TO_BUILD
938ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000939OCAML_LIBDIR
Daniel Dunbardcf114e2008-08-30 01:16:19 +0000940ENABLE_VISIBILITY_INLINES_HIDDEN
Nick Lewyckye9821dc2009-03-03 04:55:29 +0000941RPATH
Nick Lewycky731c6ab2009-03-05 08:20:44 +0000942RDYNAMIC
Reid Spencera773bd52006-08-04 18:18:08 +0000943LIBOBJS
944LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000945ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000946 ac_precious_vars='build_alias
947host_alias
948target_alias
949CC
950CFLAGS
951LDFLAGS
952CPPFLAGS
953CPP
954CXX
955CXXFLAGS
956CCC
Reid Spencera773bd52006-08-04 18:18:08 +0000957CXXCPP
958F77
959FFLAGS'
960ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000961projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000962projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000963projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000964projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000965projects/llvm-reopt
966projects/llvm-gcc
967projects/llvm-java
968projects/llvm-tv
969projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000970projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000971projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000972
973# Initialize some variables set by options.
974ac_init_help=
975ac_init_version=false
976# The variables have the same names as the options, with
977# dashes changed to underlines.
978cache_file=/dev/null
979exec_prefix=NONE
980no_create=
981no_recursion=
982prefix=NONE
983program_prefix=NONE
984program_suffix=NONE
985program_transform_name=s,x,x,
986silent=
987site=
988srcdir=
989verbose=
990x_includes=NONE
991x_libraries=NONE
992
993# Installation directory options.
994# These are left unexpanded so users can "make install exec_prefix=/foo"
995# and all the variables that are supposed to be based on exec_prefix
996# by default will actually change.
997# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000998# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000999bindir='${exec_prefix}/bin'
1000sbindir='${exec_prefix}/sbin'
1001libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +00001002datarootdir='${prefix}/share'
1003datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +00001004sysconfdir='${prefix}/etc'
1005sharedstatedir='${prefix}/com'
1006localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +00001007includedir='${prefix}/include'
1008oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +00001009docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1010infodir='${datarootdir}/info'
1011htmldir='${docdir}'
1012dvidir='${docdir}'
1013pdfdir='${docdir}'
1014psdir='${docdir}'
1015libdir='${exec_prefix}/lib'
1016localedir='${datarootdir}/locale'
1017mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001018
1019ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001020ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001021for ac_option
1022do
1023 # If the previous option needs an argument, assign it.
1024 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001025 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001026 ac_prev=
1027 continue
1028 fi
1029
Reid Spencera773bd52006-08-04 18:18:08 +00001030 case $ac_option in
1031 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1032 *) ac_optarg=yes ;;
1033 esac
John Criswell7a73b802003-06-30 21:59:07 +00001034
1035 # Accept the important Cygnus configure options, so we can diagnose typos.
1036
Reid Spencera773bd52006-08-04 18:18:08 +00001037 case $ac_dashdash$ac_option in
1038 --)
1039 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001040
1041 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1042 ac_prev=bindir ;;
1043 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1044 bindir=$ac_optarg ;;
1045
1046 -build | --build | --buil | --bui | --bu)
1047 ac_prev=build_alias ;;
1048 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1049 build_alias=$ac_optarg ;;
1050
1051 -cache-file | --cache-file | --cache-fil | --cache-fi \
1052 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1053 ac_prev=cache_file ;;
1054 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1055 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1056 cache_file=$ac_optarg ;;
1057
1058 --config-cache | -C)
1059 cache_file=config.cache ;;
1060
Reid Spencera773bd52006-08-04 18:18:08 +00001061 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001062 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001063 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001064 datadir=$ac_optarg ;;
1065
Reid Spencera773bd52006-08-04 18:18:08 +00001066 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1067 | --dataroo | --dataro | --datar)
1068 ac_prev=datarootdir ;;
1069 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1070 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1071 datarootdir=$ac_optarg ;;
1072
John Criswell7a73b802003-06-30 21:59:07 +00001073 -disable-* | --disable-*)
1074 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1075 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001076 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001077 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1078 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001079 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001080 eval enable_$ac_feature=no ;;
1081
1082 -docdir | --docdir | --docdi | --doc | --do)
1083 ac_prev=docdir ;;
1084 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1085 docdir=$ac_optarg ;;
1086
1087 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1088 ac_prev=dvidir ;;
1089 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1090 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001091
1092 -enable-* | --enable-*)
1093 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1094 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001095 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001096 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1097 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001098 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001099 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001100
1101 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1102 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1103 | --exec | --exe | --ex)
1104 ac_prev=exec_prefix ;;
1105 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1106 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1107 | --exec=* | --exe=* | --ex=*)
1108 exec_prefix=$ac_optarg ;;
1109
1110 -gas | --gas | --ga | --g)
1111 # Obsolete; use --with-gas.
1112 with_gas=yes ;;
1113
1114 -help | --help | --hel | --he | -h)
1115 ac_init_help=long ;;
1116 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1117 ac_init_help=recursive ;;
1118 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1119 ac_init_help=short ;;
1120
1121 -host | --host | --hos | --ho)
1122 ac_prev=host_alias ;;
1123 -host=* | --host=* | --hos=* | --ho=*)
1124 host_alias=$ac_optarg ;;
1125
Reid Spencera773bd52006-08-04 18:18:08 +00001126 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1127 ac_prev=htmldir ;;
1128 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1129 | --ht=*)
1130 htmldir=$ac_optarg ;;
1131
John Criswell7a73b802003-06-30 21:59:07 +00001132 -includedir | --includedir | --includedi | --included | --include \
1133 | --includ | --inclu | --incl | --inc)
1134 ac_prev=includedir ;;
1135 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1136 | --includ=* | --inclu=* | --incl=* | --inc=*)
1137 includedir=$ac_optarg ;;
1138
1139 -infodir | --infodir | --infodi | --infod | --info | --inf)
1140 ac_prev=infodir ;;
1141 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1142 infodir=$ac_optarg ;;
1143
1144 -libdir | --libdir | --libdi | --libd)
1145 ac_prev=libdir ;;
1146 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1147 libdir=$ac_optarg ;;
1148
1149 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1150 | --libexe | --libex | --libe)
1151 ac_prev=libexecdir ;;
1152 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1153 | --libexe=* | --libex=* | --libe=*)
1154 libexecdir=$ac_optarg ;;
1155
Reid Spencera773bd52006-08-04 18:18:08 +00001156 -localedir | --localedir | --localedi | --localed | --locale)
1157 ac_prev=localedir ;;
1158 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1159 localedir=$ac_optarg ;;
1160
John Criswell7a73b802003-06-30 21:59:07 +00001161 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001162 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001163 ac_prev=localstatedir ;;
1164 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001165 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001166 localstatedir=$ac_optarg ;;
1167
1168 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1169 ac_prev=mandir ;;
1170 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1171 mandir=$ac_optarg ;;
1172
1173 -nfp | --nfp | --nf)
1174 # Obsolete; use --without-fp.
1175 with_fp=no ;;
1176
1177 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1178 | --no-cr | --no-c | -n)
1179 no_create=yes ;;
1180
1181 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1182 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1183 no_recursion=yes ;;
1184
1185 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1186 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1187 | --oldin | --oldi | --old | --ol | --o)
1188 ac_prev=oldincludedir ;;
1189 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1190 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1191 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1192 oldincludedir=$ac_optarg ;;
1193
1194 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1195 ac_prev=prefix ;;
1196 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1197 prefix=$ac_optarg ;;
1198
1199 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1200 | --program-pre | --program-pr | --program-p)
1201 ac_prev=program_prefix ;;
1202 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1203 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1204 program_prefix=$ac_optarg ;;
1205
1206 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1207 | --program-suf | --program-su | --program-s)
1208 ac_prev=program_suffix ;;
1209 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1210 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1211 program_suffix=$ac_optarg ;;
1212
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 ac_prev=program_transform_name ;;
1221 -program-transform-name=* | --program-transform-name=* \
1222 | --program-transform-nam=* | --program-transform-na=* \
1223 | --program-transform-n=* | --program-transform-=* \
1224 | --program-transform=* | --program-transfor=* \
1225 | --program-transfo=* | --program-transf=* \
1226 | --program-trans=* | --program-tran=* \
1227 | --progr-tra=* | --program-tr=* | --program-t=*)
1228 program_transform_name=$ac_optarg ;;
1229
Reid Spencera773bd52006-08-04 18:18:08 +00001230 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1231 ac_prev=pdfdir ;;
1232 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1233 pdfdir=$ac_optarg ;;
1234
1235 -psdir | --psdir | --psdi | --psd | --ps)
1236 ac_prev=psdir ;;
1237 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1238 psdir=$ac_optarg ;;
1239
John Criswell7a73b802003-06-30 21:59:07 +00001240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241 | -silent | --silent | --silen | --sile | --sil)
1242 silent=yes ;;
1243
1244 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1245 ac_prev=sbindir ;;
1246 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1247 | --sbi=* | --sb=*)
1248 sbindir=$ac_optarg ;;
1249
1250 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1251 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1252 | --sharedst | --shareds | --shared | --share | --shar \
1253 | --sha | --sh)
1254 ac_prev=sharedstatedir ;;
1255 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1256 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1257 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1258 | --sha=* | --sh=*)
1259 sharedstatedir=$ac_optarg ;;
1260
1261 -site | --site | --sit)
1262 ac_prev=site ;;
1263 -site=* | --site=* | --sit=*)
1264 site=$ac_optarg ;;
1265
1266 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1267 ac_prev=srcdir ;;
1268 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1269 srcdir=$ac_optarg ;;
1270
1271 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1272 | --syscon | --sysco | --sysc | --sys | --sy)
1273 ac_prev=sysconfdir ;;
1274 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1275 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1276 sysconfdir=$ac_optarg ;;
1277
1278 -target | --target | --targe | --targ | --tar | --ta | --t)
1279 ac_prev=target_alias ;;
1280 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1281 target_alias=$ac_optarg ;;
1282
1283 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1284 verbose=yes ;;
1285
1286 -version | --version | --versio | --versi | --vers | -V)
1287 ac_init_version=: ;;
1288
1289 -with-* | --with-*)
1290 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1291 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001292 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001293 { echo "$as_me: error: invalid package name: $ac_package" >&2
1294 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001295 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001296 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001297
1298 -without-* | --without-*)
1299 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1300 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001301 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001302 { echo "$as_me: error: invalid package name: $ac_package" >&2
1303 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001304 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001305 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001306
1307 --x)
1308 # Obsolete; use --with-x.
1309 with_x=yes ;;
1310
1311 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312 | --x-incl | --x-inc | --x-in | --x-i)
1313 ac_prev=x_includes ;;
1314 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316 x_includes=$ac_optarg ;;
1317
1318 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320 ac_prev=x_libraries ;;
1321 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323 x_libraries=$ac_optarg ;;
1324
1325 -*) { echo "$as_me: error: unrecognized option: $ac_option
1326Try \`$0 --help' for more information." >&2
1327 { (exit 1); exit 1; }; }
1328 ;;
1329
1330 *=*)
1331 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1332 # Reject names that are not valid shell variable names.
1333 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1334 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1335 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001336 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001337 export $ac_envvar ;;
1338
1339 *)
1340 # FIXME: should be removed in autoconf 3.0.
1341 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1345 ;;
1346
1347 esac
1348done
1349
1350if test -n "$ac_prev"; then
1351 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1352 { echo "$as_me: error: missing argument to $ac_option" >&2
1353 { (exit 1); exit 1; }; }
1354fi
1355
Reid Spencera773bd52006-08-04 18:18:08 +00001356# Be sure to have absolute directory names.
1357for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1358 datadir sysconfdir sharedstatedir localstatedir includedir \
1359 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1360 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001361do
Reid Spencera773bd52006-08-04 18:18:08 +00001362 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001363 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001364 [\\/$]* | ?:[\\/]* ) continue;;
1365 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001366 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001367 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1368 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001369done
1370
1371# There might be people who depend on the old broken behavior: `$host'
1372# used to hold the argument of --host etc.
1373# FIXME: To remove some day.
1374build=$build_alias
1375host=$host_alias
1376target=$target_alias
1377
1378# FIXME: To remove some day.
1379if test "x$host_alias" != x; then
1380 if test "x$build_alias" = x; then
1381 cross_compiling=maybe
1382 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1383 If a cross compiler is detected then cross compile mode will be used." >&2
1384 elif test "x$build_alias" != "x$host_alias"; then
1385 cross_compiling=yes
1386 fi
1387fi
1388
1389ac_tool_prefix=
1390test -n "$host_alias" && ac_tool_prefix=$host_alias-
1391
1392test "$silent" = yes && exec 6>/dev/null
1393
1394
Reid Spencera773bd52006-08-04 18:18:08 +00001395ac_pwd=`pwd` && test -n "$ac_pwd" &&
1396ac_ls_di=`ls -di .` &&
1397ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1398 { echo "$as_me: error: Working directory cannot be determined" >&2
1399 { (exit 1); exit 1; }; }
1400test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1401 { echo "$as_me: error: pwd does not report name of working directory" >&2
1402 { (exit 1); exit 1; }; }
1403
1404
John Criswell7a73b802003-06-30 21:59:07 +00001405# Find the source files, if location was not specified.
1406if test -z "$srcdir"; then
1407 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001408 # Try the directory containing this script, then the parent directory.
1409 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001410$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001411 X"$0" : 'X\(//\)[^/]' \| \
1412 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001414echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1416 s//\1/
1417 q
1418 }
1419 /^X\(\/\/\)[^/].*/{
1420 s//\1/
1421 q
1422 }
1423 /^X\(\/\/\)$/{
1424 s//\1/
1425 q
1426 }
1427 /^X\(\/\).*/{
1428 s//\1/
1429 q
1430 }
1431 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001432 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001433 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001434 srcdir=..
1435 fi
1436else
1437 ac_srcdir_defaulted=no
1438fi
Reid Spencera773bd52006-08-04 18:18:08 +00001439if test ! -r "$srcdir/$ac_unique_file"; then
1440 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1441 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001442 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001443fi
Reid Spencera773bd52006-08-04 18:18:08 +00001444ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1445ac_abs_confdir=`(
1446 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001447 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001448 pwd)`
1449# When building in place, set srcdir=.
1450if test "$ac_abs_confdir" = "$ac_pwd"; then
1451 srcdir=.
1452fi
1453# Remove unnecessary trailing slashes from srcdir.
1454# Double slashes in file names in object file debugging info
1455# mess up M-x gdb in Emacs.
1456case $srcdir in
1457*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1458esac
1459for ac_var in $ac_precious_vars; do
1460 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1461 eval ac_env_${ac_var}_value=\$${ac_var}
1462 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1463 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1464done
John Criswell7a73b802003-06-30 21:59:07 +00001465
1466#
1467# Report the --help message.
1468#
1469if test "$ac_init_help" = "long"; then
1470 # Omit some internal or obsolete options to make the list less imposing.
1471 # This message is too long to be a string in the A/UX 3.1 sh.
1472 cat <<_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001473\`configure' configures llvm 2.6svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001474
1475Usage: $0 [OPTION]... [VAR=VALUE]...
1476
1477To assign environment variables (e.g., CC, CFLAGS...), specify them as
1478VAR=VALUE. See below for descriptions of some of the useful variables.
1479
1480Defaults for the options are specified in brackets.
1481
1482Configuration:
1483 -h, --help display this help and exit
1484 --help=short display options specific to this package
1485 --help=recursive display the short help of all the included packages
1486 -V, --version display version information and exit
1487 -q, --quiet, --silent do not print \`checking...' messages
1488 --cache-file=FILE cache test results in FILE [disabled]
1489 -C, --config-cache alias for \`--cache-file=config.cache'
1490 -n, --no-create do not create output files
1491 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1492
John Criswell7a73b802003-06-30 21:59:07 +00001493Installation directories:
1494 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001495 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001496 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001497 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001498
1499By default, \`make install' will install all the files in
1500\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1501an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1502for instance \`--prefix=\$HOME'.
1503
1504For better control, use the options below.
1505
1506Fine tuning of the installation directories:
1507 --bindir=DIR user executables [EPREFIX/bin]
1508 --sbindir=DIR system admin executables [EPREFIX/sbin]
1509 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001510 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1511 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1512 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1513 --libdir=DIR object code libraries [EPREFIX/lib]
1514 --includedir=DIR C header files [PREFIX/include]
1515 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001516 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1517 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1518 --infodir=DIR info documentation [DATAROOTDIR/info]
1519 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1520 --mandir=DIR man documentation [DATAROOTDIR/man]
1521 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1522 --htmldir=DIR html documentation [DOCDIR]
1523 --dvidir=DIR dvi documentation [DOCDIR]
1524 --pdfdir=DIR pdf documentation [DOCDIR]
1525 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001526_ACEOF
1527
1528 cat <<\_ACEOF
1529
1530System types:
1531 --build=BUILD configure for building on BUILD [guessed]
1532 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1533 --target=TARGET configure for building compilers for TARGET [HOST]
1534_ACEOF
1535fi
1536
1537if test -n "$ac_init_help"; then
1538 case $ac_init_help in
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001539 short | recursive ) echo "Configuration of llvm 2.6svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001540 esac
1541 cat <<\_ACEOF
1542
1543Optional Features:
1544 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1545 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001546 --enable-optimized Compile with optimizations enabled (default is NO)
1547 --enable-profiling Compile with profiling enabled (default is NO)
1548 --enable-assertions Compile with assertion checks enabled (default is
1549 YES)
David Greenea696d242007-06-28 19:36:08 +00001550 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001551 Compile with expensive debug checks enabled (default
1552 is NO)
1553 --enable-debug-runtime Build runtime libs with debug symbols (default is
1554 NO)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001555 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001556 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001557 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001558 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001559 is YES)
Evan Cheng939ea652006-07-06 07:46:33 +00001560 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001561 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001562 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1563 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001564 --enable-bindings Build specific language bindings:
1565 all,auto,none,{binding-name} (default=auto)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001566 --enable-libffi Check for the presence of libffi (default is YES)
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00001567 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1568 Win32)
1569 --enable-llvmc-dynamic-plugins
1570 Enable dynamic LLVMC plugins (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001571 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001572 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001573 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001574 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001575 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001576 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001577 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001578 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001579 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001580
1581Optional Packages:
1582 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1583 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001584 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1585 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001586 --with-llvmgcc Specify location of llvm-gcc driver (default
1587 searches PATH)
1588 --with-llvmgxx Specify location of llvm-g++ driver (default
1589 searches PATH)
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001590 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001591 --with-ocaml-libdir Specify install location for ocaml bindings (default
1592 is stdlib)
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001593 --with-binutils-include Specify path to binutils/include/ containing
1594 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001595 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001596 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1597 --with-pic try to use only PIC/non-PIC objects [default=use
1598 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001599 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001600 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001601 --with-oprofile=<prefix>
1602 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001603
1604Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001605 CC C compiler command
1606 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001607 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1608 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001609 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1610 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001611 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001612 CXX C++ compiler command
1613 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001614 CXXCPP C++ preprocessor
1615 F77 Fortran 77 compiler command
1616 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001617
1618Use these variables to override the choices made by `configure' or to help
1619it to find libraries and programs with nonstandard names/locations.
1620
1621Report bugs to <llvmbugs@cs.uiuc.edu>.
1622_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001623ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001624fi
1625
1626if test "$ac_init_help" = "recursive"; then
1627 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001628 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001629 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001630 ac_builddir=.
1631
Reid Spencera773bd52006-08-04 18:18:08 +00001632case "$ac_dir" in
1633.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1634*)
John Criswell7a73b802003-06-30 21:59:07 +00001635 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001636 # A ".." for each directory in $ac_dir_suffix.
1637 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1638 case $ac_top_builddir_sub in
1639 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1640 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1641 esac ;;
1642esac
1643ac_abs_top_builddir=$ac_pwd
1644ac_abs_builddir=$ac_pwd$ac_dir_suffix
1645# for backward compatibility:
1646ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001647
1648case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001649 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001650 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001651 ac_top_srcdir=$ac_top_builddir_sub
1652 ac_abs_top_srcdir=$ac_pwd ;;
1653 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001654 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001655 ac_top_srcdir=$srcdir
1656 ac_abs_top_srcdir=$srcdir ;;
1657 *) # Relative name.
1658 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1659 ac_top_srcdir=$ac_top_build_prefix$srcdir
1660 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001661esac
Reid Spencera773bd52006-08-04 18:18:08 +00001662ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001663
Reid Spencera773bd52006-08-04 18:18:08 +00001664 cd "$ac_dir" || { ac_status=$?; continue; }
1665 # Check for guested configure.
1666 if test -f "$ac_srcdir/configure.gnu"; then
1667 echo &&
1668 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1669 elif test -f "$ac_srcdir/configure"; then
1670 echo &&
1671 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001672 else
1673 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001674 fi || ac_status=$?
1675 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001676 done
1677fi
1678
Reid Spencera773bd52006-08-04 18:18:08 +00001679test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001680if $ac_init_version; then
1681 cat <<\_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001682llvm configure 2.6svn
Bill Wendlingebcceee2009-04-18 11:20:33 +00001683generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001684
Reid Spencera773bd52006-08-04 18:18:08 +00001685Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16862002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001687This configure script is free software; the Free Software Foundation
1688gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001689
Tanya Lattnercf067672008-01-17 05:57:22 +00001690Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001691_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001692 exit
John Criswell7a73b802003-06-30 21:59:07 +00001693fi
Reid Spencera773bd52006-08-04 18:18:08 +00001694cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001695This file contains any messages produced by compilers while
1696running configure, to aid debugging if configure makes a mistake.
1697
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001698It was created by llvm $as_me 2.6svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +00001699generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001700
1701 $ $0 $@
1702
1703_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001704exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001705{
1706cat <<_ASUNAME
1707## --------- ##
1708## Platform. ##
1709## --------- ##
1710
1711hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1712uname -m = `(uname -m) 2>/dev/null || echo unknown`
1713uname -r = `(uname -r) 2>/dev/null || echo unknown`
1714uname -s = `(uname -s) 2>/dev/null || echo unknown`
1715uname -v = `(uname -v) 2>/dev/null || echo unknown`
1716
1717/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1718/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1719
1720/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1721/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1722/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001723/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001724/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1725/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1726/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1727
1728_ASUNAME
1729
1730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731for as_dir in $PATH
1732do
1733 IFS=$as_save_IFS
1734 test -z "$as_dir" && as_dir=.
1735 echo "PATH: $as_dir"
1736done
Reid Spencera773bd52006-08-04 18:18:08 +00001737IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001738
1739} >&5
1740
1741cat >&5 <<_ACEOF
1742
1743
1744## ----------- ##
1745## Core tests. ##
1746## ----------- ##
1747
1748_ACEOF
1749
1750
1751# Keep a trace of the command line.
1752# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001753# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001754# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001755# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001756ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001757ac_configure_args0=
1758ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001759ac_must_keep_next=false
1760for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001761do
John Criswell0c38eaf2003-09-10 15:17:25 +00001762 for ac_arg
1763 do
1764 case $ac_arg in
1765 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1766 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1767 | -silent | --silent | --silen | --sile | --sil)
1768 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001769 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001770 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1771 esac
1772 case $ac_pass in
1773 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1774 2)
1775 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1776 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001777 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001778 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001779 case $ac_arg in
1780 *=* | --config-cache | -C | -disable-* | --disable-* \
1781 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1782 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1783 | -with-* | --with-* | -without-* | --without-* | --x)
1784 case "$ac_configure_args0 " in
1785 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1786 esac
1787 ;;
1788 -* ) ac_must_keep_next=true ;;
1789 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001790 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001791 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001792 ;;
1793 esac
1794 done
John Criswell7a73b802003-06-30 21:59:07 +00001795done
John Criswell0c38eaf2003-09-10 15:17:25 +00001796$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1797$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 +00001798
1799# When interrupted or exit'd, cleanup temporary files, and complete
1800# config.log. We remove comments because anyway the quotes in there
1801# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001802# WARNING: Use '\'' to represent an apostrophe within the trap.
1803# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001804trap 'exit_status=$?
1805 # Save into config.log some information that might help in debugging.
1806 {
1807 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001808
John Criswell7a73b802003-06-30 21:59:07 +00001809 cat <<\_ASBOX
1810## ---------------- ##
1811## Cache variables. ##
1812## ---------------- ##
1813_ASBOX
1814 echo
1815 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001816(
1817 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1818 eval ac_val=\$$ac_var
1819 case $ac_val in #(
1820 *${as_nl}*)
1821 case $ac_var in #(
1822 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1823echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1824 esac
1825 case $ac_var in #(
1826 _ | IFS | as_nl) ;; #(
1827 *) $as_unset $ac_var ;;
1828 esac ;;
1829 esac
1830 done
John Criswell7a73b802003-06-30 21:59:07 +00001831 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001832 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1833 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001834 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001835 "s/'\''/'\''\\\\'\'''\''/g;
1836 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1837 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001838 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001839 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001840 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001841 esac |
1842 sort
1843)
John Criswell7a73b802003-06-30 21:59:07 +00001844 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001845
1846 cat <<\_ASBOX
1847## ----------------- ##
1848## Output variables. ##
1849## ----------------- ##
1850_ASBOX
1851 echo
1852 for ac_var in $ac_subst_vars
1853 do
Reid Spencera773bd52006-08-04 18:18:08 +00001854 eval ac_val=\$$ac_var
1855 case $ac_val in
1856 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1857 esac
1858 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001859 done | sort
1860 echo
1861
1862 if test -n "$ac_subst_files"; then
1863 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001864## ------------------- ##
1865## File substitutions. ##
1866## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001867_ASBOX
1868 echo
1869 for ac_var in $ac_subst_files
1870 do
Reid Spencera773bd52006-08-04 18:18:08 +00001871 eval ac_val=\$$ac_var
1872 case $ac_val in
1873 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1874 esac
1875 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001876 done | sort
1877 echo
1878 fi
1879
John Criswell7a73b802003-06-30 21:59:07 +00001880 if test -s confdefs.h; then
1881 cat <<\_ASBOX
1882## ----------- ##
1883## confdefs.h. ##
1884## ----------- ##
1885_ASBOX
1886 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001887 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001888 echo
1889 fi
1890 test "$ac_signal" != 0 &&
1891 echo "$as_me: caught signal $ac_signal"
1892 echo "$as_me: exit $exit_status"
1893 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001894 rm -f core *.core core.conftest.* &&
1895 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001896 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001897' 0
John Criswell7a73b802003-06-30 21:59:07 +00001898for ac_signal in 1 2 13 15; do
1899 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1900done
1901ac_signal=0
1902
1903# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001904rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001905
1906# Predefined preprocessor variables.
1907
1908cat >>confdefs.h <<_ACEOF
1909#define PACKAGE_NAME "$PACKAGE_NAME"
1910_ACEOF
1911
1912
1913cat >>confdefs.h <<_ACEOF
1914#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1915_ACEOF
1916
1917
1918cat >>confdefs.h <<_ACEOF
1919#define PACKAGE_VERSION "$PACKAGE_VERSION"
1920_ACEOF
1921
1922
1923cat >>confdefs.h <<_ACEOF
1924#define PACKAGE_STRING "$PACKAGE_STRING"
1925_ACEOF
1926
1927
1928cat >>confdefs.h <<_ACEOF
1929#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1930_ACEOF
1931
1932
1933# Let the site file select an alternate cache file if it wants to.
1934# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001935if test -n "$CONFIG_SITE"; then
1936 set x "$CONFIG_SITE"
1937elif test "x$prefix" != xNONE; then
1938 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1939else
1940 set x "$ac_default_prefix/share/config.site" \
1941 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001942fi
Reid Spencera773bd52006-08-04 18:18:08 +00001943shift
1944for ac_site_file
1945do
John Criswell7a73b802003-06-30 21:59:07 +00001946 if test -r "$ac_site_file"; then
1947 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1948echo "$as_me: loading site script $ac_site_file" >&6;}
1949 sed 's/^/| /' "$ac_site_file" >&5
1950 . "$ac_site_file"
1951 fi
1952done
1953
1954if test -r "$cache_file"; then
1955 # Some versions of bash will fail to source /dev/null (special
1956 # files actually), so we avoid doing that.
1957 if test -f "$cache_file"; then
1958 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1959echo "$as_me: loading cache $cache_file" >&6;}
1960 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001961 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1962 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001963 esac
1964 fi
1965else
1966 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1967echo "$as_me: creating cache $cache_file" >&6;}
1968 >$cache_file
1969fi
1970
1971# Check that the precious variables saved in the cache have kept the same
1972# value.
1973ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001974for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001975 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1976 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001977 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1978 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001979 case $ac_old_set,$ac_new_set in
1980 set,)
1981 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1982echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1983 ac_cache_corrupted=: ;;
1984 ,set)
1985 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1986echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1987 ac_cache_corrupted=: ;;
1988 ,);;
1989 *)
1990 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001991 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001992echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001993 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001994echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001995 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001996echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001997 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001998 fi;;
1999 esac
2000 # Pass precious variables to config.status.
2001 if test "$ac_new_set" = set; then
2002 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00002003 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00002004 *) ac_arg=$ac_var=$ac_new_val ;;
2005 esac
2006 case " $ac_configure_args " in
2007 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2008 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2009 esac
2010 fi
2011done
2012if $ac_cache_corrupted; then
2013 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2014echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2015 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2016echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2017 { (exit 1); exit 1; }; }
2018fi
2019
Reid Spencera773bd52006-08-04 18:18:08 +00002020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
John Criswell7a73b802003-06-30 21:59:07 +00002044ac_ext=c
2045ac_cpp='$CPP $CPPFLAGS'
2046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2048ac_compiler_gnu=$ac_cv_c_compiler_gnu
2049
2050
2051
Tanya Lattnercf067672008-01-17 05:57:22 +00002052LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002053
2054
2055
2056
2057
2058
2059
John Criswell7a73b802003-06-30 21:59:07 +00002060ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002061for ac_dir in autoconf "$srcdir"/autoconf; do
2062 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002063 ac_aux_dir=$ac_dir
2064 ac_install_sh="$ac_aux_dir/install-sh -c"
2065 break
Reid Spencera773bd52006-08-04 18:18:08 +00002066 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002067 ac_aux_dir=$ac_dir
2068 ac_install_sh="$ac_aux_dir/install.sh -c"
2069 break
Reid Spencera773bd52006-08-04 18:18:08 +00002070 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002071 ac_aux_dir=$ac_dir
2072 ac_install_sh="$ac_aux_dir/shtool install -c"
2073 break
2074 fi
2075done
2076if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002077 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2078echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002079 { (exit 1); exit 1; }; }
2080fi
Reid Spencera773bd52006-08-04 18:18:08 +00002081
2082# These three variables are undocumented and unsupported,
2083# and are intended to be withdrawn in a future Autoconf release.
2084# They can cause serious problems if a builder's source tree is in a directory
2085# whose full name contains unusual characters.
2086ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2087ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2088ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2089
John Criswell7a73b802003-06-30 21:59:07 +00002090
John Criswell392aaa32003-07-22 19:18:09 +00002091
Reid Spencer2706f8c2004-09-19 23:53:36 +00002092if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002093 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2094 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002095echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2096 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002097 fi
John Criswell93e1c722003-09-15 17:04:06 +00002098fi
2099
John Criswell33a911a2003-11-25 20:36:46 +00002100for i in `ls ${srcdir}/projects`
2101do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002102 if test -d ${srcdir}/projects/${i} ; then
2103 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002104 CVS) ;;
2105 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002106 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002107 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002108 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002109 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002110 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002111 # llvm-test is the old name of the test-suite, kept here for backwards
2112 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002113 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002114 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002115 test-suite) subdirs="$subdirs projects/test-suite"
2116 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002117 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002118;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002119 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002120 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002121 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002122 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002123 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002124 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002125 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002126 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002127 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002128 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002129 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002130 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002131 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002132 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2133echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002134 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002135 esac
John Criswell33a911a2003-11-25 20:36:46 +00002136 fi
2137done
John Criswell559a6c12003-09-30 16:31:48 +00002138
John Criswell7a73b802003-06-30 21:59:07 +00002139
2140# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002141$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2142 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2143echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002144 { (exit 1); exit 1; }; }
2145
Reid Spencera773bd52006-08-04 18:18:08 +00002146{ echo "$as_me:$LINENO: checking build system type" >&5
2147echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002148if test "${ac_cv_build+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2150else
Reid Spencera773bd52006-08-04 18:18:08 +00002151 ac_build_alias=$build_alias
2152test "x$ac_build_alias" = x &&
2153 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2154test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002155 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2156echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2157 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002158ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2159 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2160echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002161 { (exit 1); exit 1; }; }
2162
2163fi
Reid Spencera773bd52006-08-04 18:18:08 +00002164{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2165echo "${ECHO_T}$ac_cv_build" >&6; }
2166case $ac_cv_build in
2167*-*-*) ;;
2168*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2169echo "$as_me: error: invalid value of canonical build" >&2;}
2170 { (exit 1); exit 1; }; };;
2171esac
John Criswell7a73b802003-06-30 21:59:07 +00002172build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002173ac_save_IFS=$IFS; IFS='-'
2174set x $ac_cv_build
2175shift
2176build_cpu=$1
2177build_vendor=$2
2178shift; shift
2179# Remember, the first character of IFS is used to create $*,
2180# except with old shells:
2181build_os=$*
2182IFS=$ac_save_IFS
2183case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002184
2185
Reid Spencera773bd52006-08-04 18:18:08 +00002186{ echo "$as_me:$LINENO: checking host system type" >&5
2187echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002188if test "${ac_cv_host+set}" = set; then
2189 echo $ECHO_N "(cached) $ECHO_C" >&6
2190else
Reid Spencera773bd52006-08-04 18:18:08 +00002191 if test "x$host_alias" = x; then
2192 ac_cv_host=$ac_cv_build
2193else
2194 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2195 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2196echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002197 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002198fi
John Criswell7a73b802003-06-30 21:59:07 +00002199
2200fi
Reid Spencera773bd52006-08-04 18:18:08 +00002201{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2202echo "${ECHO_T}$ac_cv_host" >&6; }
2203case $ac_cv_host in
2204*-*-*) ;;
2205*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2206echo "$as_me: error: invalid value of canonical host" >&2;}
2207 { (exit 1); exit 1; }; };;
2208esac
John Criswell7a73b802003-06-30 21:59:07 +00002209host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002210ac_save_IFS=$IFS; IFS='-'
2211set x $ac_cv_host
2212shift
2213host_cpu=$1
2214host_vendor=$2
2215shift; shift
2216# Remember, the first character of IFS is used to create $*,
2217# except with old shells:
2218host_os=$*
2219IFS=$ac_save_IFS
2220case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002221
2222
Reid Spencera773bd52006-08-04 18:18:08 +00002223{ echo "$as_me:$LINENO: checking target system type" >&5
2224echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002225if test "${ac_cv_target+set}" = set; then
2226 echo $ECHO_N "(cached) $ECHO_C" >&6
2227else
Reid Spencera773bd52006-08-04 18:18:08 +00002228 if test "x$target_alias" = x; then
2229 ac_cv_target=$ac_cv_host
2230else
2231 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2232 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2233echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002234 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002235fi
John Criswell7a73b802003-06-30 21:59:07 +00002236
2237fi
Reid Spencera773bd52006-08-04 18:18:08 +00002238{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2239echo "${ECHO_T}$ac_cv_target" >&6; }
2240case $ac_cv_target in
2241*-*-*) ;;
2242*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2243echo "$as_me: error: invalid value of canonical target" >&2;}
2244 { (exit 1); exit 1; }; };;
2245esac
John Criswell7a73b802003-06-30 21:59:07 +00002246target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002247ac_save_IFS=$IFS; IFS='-'
2248set x $ac_cv_target
2249shift
2250target_cpu=$1
2251target_vendor=$2
2252shift; shift
2253# Remember, the first character of IFS is used to create $*,
2254# except with old shells:
2255target_os=$*
2256IFS=$ac_save_IFS
2257case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002258
2259
2260# The aliases save the names the user supplied, while $host etc.
2261# will get canonicalized.
2262test -n "$target_alias" &&
2263 test "$program_prefix$program_suffix$program_transform_name" = \
2264 NONENONEs,x,x, &&
2265 program_prefix=${target_alias}-
2266
Reid Spencera773bd52006-08-04 18:18:08 +00002267{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2268echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002269if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002270 echo $ECHO_N "(cached) $ECHO_C" >&6
2271else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002272 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002273 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002274 llvm_cv_link_all_option="-Wl,--whole-archive"
2275 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002276 llvm_cv_os_type="AIX"
2277 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002278 *-*-irix*)
2279 llvm_cv_link_all_option="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281 llvm_cv_os_type="IRIX"
2282 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002283 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002284 llvm_cv_link_all_option="-Wl,--whole-archive"
2285 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002286 llvm_cv_os_type="Cygwin"
2287 llvm_cv_platform_type="Unix" ;;
2288 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002289 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002290 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002291 llvm_cv_os_type="Darwin"
2292 llvm_cv_platform_type="Unix" ;;
2293 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002294 llvm_cv_link_all_option="-Wl,--whole-archive"
2295 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002296 llvm_cv_os_type="FreeBSD"
2297 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002298 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002299 llvm_cv_link_all_option="-Wl,--whole-archive"
2300 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002301 llvm_cv_os_type="OpenBSD"
2302 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002303 *-*-netbsd*)
2304 llvm_cv_link_all_option="-Wl,--whole-archive"
2305 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2306 llvm_cv_os_type="NetBSD"
2307 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002308 *-*-dragonfly*)
2309 llvm_cv_link_all_option="-Wl,--whole-archive"
2310 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2311 llvm_cv_os_type="DragonFly"
2312 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002313 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002314 llvm_cv_link_all_option="-Wl,--whole-archive"
2315 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002316 llvm_cv_os_type="HP-UX"
2317 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002318 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002319 llvm_cv_link_all_option="-Wl,--whole-archive"
2320 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002321 llvm_cv_os_type="Interix"
2322 llvm_cv_platform_type="Unix" ;;
2323 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002324 llvm_cv_link_all_option="-Wl,--whole-archive"
2325 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002326 llvm_cv_os_type="Linux"
2327 llvm_cv_platform_type="Unix" ;;
2328 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002329 llvm_cv_link_all_option="-Wl,-z,allextract"
2330 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002331 llvm_cv_os_type="SunOS"
2332 llvm_cv_platform_type="Unix" ;;
2333 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002334 llvm_cv_link_all_option="-Wl,--whole-archive"
2335 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002336 llvm_cv_os_type="Win32"
2337 llvm_cv_platform_type="Win32" ;;
2338 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002339 llvm_cv_link_all_option="-Wl,--whole-archive"
2340 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002341 llvm_cv_os_type="MingW"
2342 llvm_cv_platform_type="Win32" ;;
2343 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002344 llvm_cv_link_all_option=""
2345 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002346 llvm_cv_os_type="Unknown"
2347 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002348esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002349fi
Reid Spencera773bd52006-08-04 18:18:08 +00002350{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2351echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002352
Reid Spencer7b3e8512004-12-24 06:29:05 +00002353if test "$llvm_cv_os_type" = "Unknown" ; then
2354 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2355echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002356 { (exit 1); exit 1; }; }
2357fi
2358
Reid Spencer7b3e8512004-12-24 06:29:05 +00002359OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002360
2361
Reid Spencera773bd52006-08-04 18:18:08 +00002362LINKALL=$llvm_cv_link_all_option
2363
2364NOLINKALL=$llvm_cv_no_link_all_option
2365
2366
Reid Spencer7b3e8512004-12-24 06:29:05 +00002367case $llvm_cv_platform_type in
2368 Unix)
2369
2370cat >>confdefs.h <<\_ACEOF
2371#define LLVM_ON_UNIX 1
2372_ACEOF
2373
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002374 LLVM_ON_UNIX=1
2375
2376 LLVM_ON_WIN32=0
2377
Reid Spencer7b3e8512004-12-24 06:29:05 +00002378 ;;
2379 Win32)
2380
2381cat >>confdefs.h <<\_ACEOF
2382#define LLVM_ON_WIN32 1
2383_ACEOF
2384
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002385 LLVM_ON_UNIX=0
2386
2387 LLVM_ON_WIN32=1
2388
Reid Spencer7b3e8512004-12-24 06:29:05 +00002389 ;;
2390esac
2391
Reid Spencera773bd52006-08-04 18:18:08 +00002392{ echo "$as_me:$LINENO: checking target architecture" >&5
2393echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002394if test "${llvm_cv_target_arch+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2396else
2397 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002398 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002399 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002400 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2401 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002402 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002403 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002404 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002405 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002406 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002407 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002408 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002409 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002410esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002411fi
Reid Spencera773bd52006-08-04 18:18:08 +00002412{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2413echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002414
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002415if test "$llvm_cv_target_arch" = "Unknown" ; then
2416 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2417echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2418fi
John Criswell76595452003-07-01 22:07:39 +00002419
Douglas Gregor0711c302009-06-17 00:43:20 +00002420# Determine the LLVM native architecture for the target
2421case "$llvm_cv_target_arch" in
2422 x86) LLVM_NATIVE_ARCH="X86" ;;
2423 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2424 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2425esac
2426
Bill Wendlinga0833352009-03-12 04:10:09 +00002427ARCH=$llvm_cv_target_arch
2428
2429
2430ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002431ac_cpp='$CPP $CPPFLAGS'
2432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2434ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002435if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2437set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002438{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002440if test "${ac_cv_prog_CC+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2442else
2443 if test -n "$CC"; then
2444 ac_cv_prog_CC="$CC" # Let the user override the test.
2445else
2446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447for as_dir in $PATH
2448do
2449 IFS=$as_save_IFS
2450 test -z "$as_dir" && as_dir=.
2451 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002452 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 +00002453 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2455 break 2
2456 fi
2457done
2458done
Reid Spencera773bd52006-08-04 18:18:08 +00002459IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002460
2461fi
2462fi
2463CC=$ac_cv_prog_CC
2464if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002465 { echo "$as_me:$LINENO: result: $CC" >&5
2466echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002467else
Reid Spencera773bd52006-08-04 18:18:08 +00002468 { echo "$as_me:$LINENO: result: no" >&5
2469echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002470fi
2471
Reid Spencera773bd52006-08-04 18:18:08 +00002472
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002473fi
2474if test -z "$ac_cv_prog_CC"; then
2475 ac_ct_CC=$CC
2476 # Extract the first word of "gcc", so it can be a program name with args.
2477set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002478{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002480if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2482else
2483 if test -n "$ac_ct_CC"; then
2484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2485else
2486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487for as_dir in $PATH
2488do
2489 IFS=$as_save_IFS
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002492 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 +00002493 ac_cv_prog_ac_ct_CC="gcc"
2494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495 break 2
2496 fi
2497done
2498done
Reid Spencera773bd52006-08-04 18:18:08 +00002499IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002500
2501fi
2502fi
2503ac_ct_CC=$ac_cv_prog_ac_ct_CC
2504if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002505 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2506echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002507else
Reid Spencera773bd52006-08-04 18:18:08 +00002508 { echo "$as_me:$LINENO: result: no" >&5
2509echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002510fi
2511
Reid Spencera773bd52006-08-04 18:18:08 +00002512 if test "x$ac_ct_CC" = x; then
2513 CC=""
2514 else
2515 case $cross_compiling:$ac_tool_warned in
2516yes:)
2517{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2518whose name does not start with the host triplet. If you think this
2519configuration is useful to you, please write to autoconf@gnu.org." >&5
2520echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2521whose name does not start with the host triplet. If you think this
2522configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2523ac_tool_warned=yes ;;
2524esac
2525 CC=$ac_ct_CC
2526 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002527else
2528 CC="$ac_cv_prog_CC"
2529fi
2530
2531if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002532 if test -n "$ac_tool_prefix"; then
2533 # 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 +00002534set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002535{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002537if test "${ac_cv_prog_CC+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2539else
2540 if test -n "$CC"; then
2541 ac_cv_prog_CC="$CC" # Let the user override the test.
2542else
2543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544for as_dir in $PATH
2545do
2546 IFS=$as_save_IFS
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002549 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 +00002550 ac_cv_prog_CC="${ac_tool_prefix}cc"
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2552 break 2
2553 fi
2554done
2555done
Reid Spencera773bd52006-08-04 18:18:08 +00002556IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002557
2558fi
2559fi
2560CC=$ac_cv_prog_CC
2561if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002562 { echo "$as_me:$LINENO: result: $CC" >&5
2563echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002564else
Reid Spencera773bd52006-08-04 18:18:08 +00002565 { echo "$as_me:$LINENO: result: no" >&5
2566echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002567fi
2568
Reid Spencera773bd52006-08-04 18:18:08 +00002569
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002570 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002571fi
2572if test -z "$CC"; then
2573 # Extract the first word of "cc", so it can be a program name with args.
2574set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002575{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002577if test "${ac_cv_prog_CC+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2579else
2580 if test -n "$CC"; then
2581 ac_cv_prog_CC="$CC" # Let the user override the test.
2582else
2583 ac_prog_rejected=no
2584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585for as_dir in $PATH
2586do
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
2589 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002590 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 +00002591 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2592 ac_prog_rejected=yes
2593 continue
2594 fi
2595 ac_cv_prog_CC="cc"
2596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 break 2
2598 fi
2599done
2600done
Reid Spencera773bd52006-08-04 18:18:08 +00002601IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002602
2603if test $ac_prog_rejected = yes; then
2604 # We found a bogon in the path, so make sure we never use it.
2605 set dummy $ac_cv_prog_CC
2606 shift
2607 if test $# != 0; then
2608 # We chose a different compiler from the bogus one.
2609 # However, it has the same basename, so the bogon will be chosen
2610 # first if we set CC to just the basename; use the full file name.
2611 shift
2612 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2613 fi
2614fi
2615fi
2616fi
2617CC=$ac_cv_prog_CC
2618if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002619 { echo "$as_me:$LINENO: result: $CC" >&5
2620echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002621else
Reid Spencera773bd52006-08-04 18:18:08 +00002622 { echo "$as_me:$LINENO: result: no" >&5
2623echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002624fi
2625
Reid Spencera773bd52006-08-04 18:18:08 +00002626
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002627fi
2628if test -z "$CC"; then
2629 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002630 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002631 do
2632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2633set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002634{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002636if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002637 echo $ECHO_N "(cached) $ECHO_C" >&6
2638else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002639 if test -n "$CC"; then
2640 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002641else
2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643for as_dir in $PATH
2644do
2645 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002648 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 +00002649 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 break 2
2652 fi
2653done
2654done
Reid Spencera773bd52006-08-04 18:18:08 +00002655IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002656
2657fi
2658fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002659CC=$ac_cv_prog_CC
2660if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002661 { echo "$as_me:$LINENO: result: $CC" >&5
2662echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002663else
Reid Spencera773bd52006-08-04 18:18:08 +00002664 { echo "$as_me:$LINENO: result: no" >&5
2665echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002666fi
2667
Reid Spencera773bd52006-08-04 18:18:08 +00002668
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002669 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002670 done
2671fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002672if test -z "$CC"; then
2673 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002674 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002675do
2676 # Extract the first word of "$ac_prog", so it can be a program name with args.
2677set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002678{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002680if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002681 echo $ECHO_N "(cached) $ECHO_C" >&6
2682else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002683 if test -n "$ac_ct_CC"; then
2684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002685else
2686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687for as_dir in $PATH
2688do
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002692 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 +00002693 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 break 2
2696 fi
2697done
2698done
Reid Spencera773bd52006-08-04 18:18:08 +00002699IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002700
2701fi
2702fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002703ac_ct_CC=$ac_cv_prog_ac_ct_CC
2704if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002705 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2706echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002707else
Reid Spencera773bd52006-08-04 18:18:08 +00002708 { echo "$as_me:$LINENO: result: no" >&5
2709echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002710fi
2711
Reid Spencera773bd52006-08-04 18:18:08 +00002712
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002713 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002714done
John Criswell7a73b802003-06-30 21:59:07 +00002715
Reid Spencera773bd52006-08-04 18:18:08 +00002716 if test "x$ac_ct_CC" = x; then
2717 CC=""
2718 else
2719 case $cross_compiling:$ac_tool_warned in
2720yes:)
2721{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2722whose name does not start with the host triplet. If you think this
2723configuration is useful to you, please write to autoconf@gnu.org." >&5
2724echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2725whose name does not start with the host triplet. If you think this
2726configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2727ac_tool_warned=yes ;;
2728esac
2729 CC=$ac_ct_CC
2730 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002731fi
2732
John Criswell7a73b802003-06-30 21:59:07 +00002733fi
2734
2735
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002736test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2737See \`config.log' for more details." >&5
2738echo "$as_me: error: no acceptable C compiler found in \$PATH
2739See \`config.log' for more details." >&2;}
2740 { (exit 1); exit 1; }; }
2741
John Criswell7a73b802003-06-30 21:59:07 +00002742# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002743echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002744ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002745{ (ac_try="$ac_compiler --version >&5"
2746case "(($ac_try" in
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2749esac
2750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002752 ac_status=$?
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002755{ (ac_try="$ac_compiler -v >&5"
2756case "(($ac_try" in
2757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758 *) ac_try_echo=$ac_try;;
2759esac
2760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2761 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002762 ac_status=$?
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002765{ (ac_try="$ac_compiler -V >&5"
2766case "(($ac_try" in
2767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768 *) ac_try_echo=$ac_try;;
2769esac
2770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2771 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002772 ac_status=$?
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }
2775
2776cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002777/* confdefs.h. */
2778_ACEOF
2779cat confdefs.h >>conftest.$ac_ext
2780cat >>conftest.$ac_ext <<_ACEOF
2781/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002782
John Criswell7a73b802003-06-30 21:59:07 +00002783int
2784main ()
2785{
2786
2787 ;
2788 return 0;
2789}
2790_ACEOF
2791ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002792ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002793# Try to create an executable without -o first, disregard a.out.
2794# It will help us diagnose broken compilers, and finding out an intuition
2795# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002796{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2797echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002798ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002799#
2800# List of possible output files, starting from the most likely.
2801# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2802# only as a last resort. b.out is created by i960 compilers.
2803ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2804#
2805# The IRIX 6 linker writes into existing files which may not be
2806# executable, retaining their permissions. Remove them first so a
2807# subsequent execution test works.
2808ac_rmfiles=
2809for ac_file in $ac_files
2810do
2811 case $ac_file in
2812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2813 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2814 esac
2815done
2816rm -f $ac_rmfiles
2817
2818if { (ac_try="$ac_link_default"
2819case "(($ac_try" in
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2822esac
2823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2824 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002825 ac_status=$?
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002828 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2829# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2830# in a Makefile. We should not override ac_cv_exeext if it was cached,
2831# so that the user can short-circuit this test for compilers unknown to
2832# Autoconf.
Bill Wendlingebcceee2009-04-18 11:20:33 +00002833for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002834do
2835 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002836 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002837 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002838 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002839 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002840 # We found the default executable, but exeext='' is most
2841 # certainly right.
2842 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002843 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002844 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2845 then :; else
2846 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2847 fi
2848 # We set ac_cv_exeext here because the later test for it is not
2849 # safe: cross compilers may not add the suffix if given an `-o'
2850 # argument, so we may need to know it at that point already.
2851 # Even if this section looks crufty: it has the advantage of
2852 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002853 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002854 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002855 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002856 esac
2857done
Reid Spencera773bd52006-08-04 18:18:08 +00002858test "$ac_cv_exeext" = no && ac_cv_exeext=
2859
John Criswell7a73b802003-06-30 21:59:07 +00002860else
2861 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002862sed 's/^/| /' conftest.$ac_ext >&5
2863
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002864{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002865See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002866echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002867See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002868 { (exit 77); exit 77; }; }
2869fi
2870
2871ac_exeext=$ac_cv_exeext
Bill Wendlingebcceee2009-04-18 11:20:33 +00002872{ echo "$as_me:$LINENO: result: $ac_file" >&5
2873echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002874
Reid Spencera773bd52006-08-04 18:18:08 +00002875# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002876# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002877{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2878echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002879# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2880# If not cross compiling, check that we can run a simple program.
2881if test "$cross_compiling" != yes; then
2882 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002883 { (case "(($ac_try" in
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2886esac
2887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002889 ac_status=$?
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; }; then
2892 cross_compiling=no
2893 else
2894 if test "$cross_compiling" = maybe; then
2895 cross_compiling=yes
2896 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002897 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002898If you meant to cross compile, use \`--host'.
2899See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002900echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002901If you meant to cross compile, use \`--host'.
2902See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002903 { (exit 1); exit 1; }; }
2904 fi
2905 fi
2906fi
Reid Spencera773bd52006-08-04 18:18:08 +00002907{ echo "$as_me:$LINENO: result: yes" >&5
2908echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002909
John Criswell0c38eaf2003-09-10 15:17:25 +00002910rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002911ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002912# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002913# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002914{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2915echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2916{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2917echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002918
Reid Spencera773bd52006-08-04 18:18:08 +00002919{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2920echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2921if { (ac_try="$ac_link"
2922case "(($ac_try" in
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2925esac
2926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2927 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002928 ac_status=$?
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; then
2931 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2932# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2933# work properly (i.e., refer to `conftest.exe'), while it won't with
2934# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002935for ac_file in conftest.exe conftest conftest.*; do
2936 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002937 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002939 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002940 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002941 * ) break;;
2942 esac
2943done
2944else
John Criswell0c38eaf2003-09-10 15:17:25 +00002945 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2946See \`config.log' for more details." >&5
2947echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2948See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002949 { (exit 1); exit 1; }; }
2950fi
2951
2952rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002953{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2954echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002955
2956rm -f conftest.$ac_ext
2957EXEEXT=$ac_cv_exeext
2958ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002959{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2960echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002961if test "${ac_cv_objext+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2963else
2964 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002965/* confdefs.h. */
2966_ACEOF
2967cat confdefs.h >>conftest.$ac_ext
2968cat >>conftest.$ac_ext <<_ACEOF
2969/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002970
John Criswell7a73b802003-06-30 21:59:07 +00002971int
2972main ()
2973{
2974
2975 ;
2976 return 0;
2977}
2978_ACEOF
2979rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002980if { (ac_try="$ac_compile"
2981case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2984esac
2985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002987 ac_status=$?
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002990 for ac_file in conftest.o conftest.obj conftest.*; do
2991 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002992 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002994 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2995 break;;
2996 esac
2997done
2998else
2999 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003000sed 's/^/| /' conftest.$ac_ext >&5
3001
3002{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3003See \`config.log' for more details." >&5
3004echo "$as_me: error: cannot compute suffix of object files: cannot compile
3005See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003006 { (exit 1); exit 1; }; }
3007fi
3008
3009rm -f conftest.$ac_cv_objext conftest.$ac_ext
3010fi
Reid Spencera773bd52006-08-04 18:18:08 +00003011{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3012echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003013OBJEXT=$ac_cv_objext
3014ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00003015{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3016echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003017if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003018 echo $ECHO_N "(cached) $ECHO_C" >&6
3019else
3020 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003021/* confdefs.h. */
3022_ACEOF
3023cat confdefs.h >>conftest.$ac_ext
3024cat >>conftest.$ac_ext <<_ACEOF
3025/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003026
John Criswell7a73b802003-06-30 21:59:07 +00003027int
3028main ()
3029{
3030#ifndef __GNUC__
3031 choke me
3032#endif
3033
3034 ;
3035 return 0;
3036}
3037_ACEOF
3038rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003039if { (ac_try="$ac_compile"
3040case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043esac
3044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003046 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003047 grep -v '^ *+' conftest.er1 >conftest.err
3048 rm -f conftest.er1
3049 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003051 (exit $ac_status); } &&
3052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3053 { (case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056esac
3057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_try") 2>&5
3059 ac_status=$?
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }; } &&
3062 { ac_try='test -s conftest.$ac_objext'
3063 { (case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3066esac
3067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_try") 2>&5
3069 ac_status=$?
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003072 ac_compiler_gnu=yes
3073else
3074 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003075sed 's/^/| /' conftest.$ac_ext >&5
3076
Reid Spencera773bd52006-08-04 18:18:08 +00003077 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003078fi
Reid Spencera773bd52006-08-04 18:18:08 +00003079
3080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003081ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003082
3083fi
Reid Spencera773bd52006-08-04 18:18:08 +00003084{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3085echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003086GCC=`test $ac_compiler_gnu = yes && echo yes`
3087ac_test_CFLAGS=${CFLAGS+set}
3088ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003089{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3090echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003091if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003092 echo $ECHO_N "(cached) $ECHO_C" >&6
3093else
Reid Spencera773bd52006-08-04 18:18:08 +00003094 ac_save_c_werror_flag=$ac_c_werror_flag
3095 ac_c_werror_flag=yes
3096 ac_cv_prog_cc_g=no
3097 CFLAGS="-g"
3098 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003099/* confdefs.h. */
3100_ACEOF
3101cat confdefs.h >>conftest.$ac_ext
3102cat >>conftest.$ac_ext <<_ACEOF
3103/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003104
John Criswell7a73b802003-06-30 21:59:07 +00003105int
3106main ()
3107{
3108
3109 ;
3110 return 0;
3111}
3112_ACEOF
3113rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003114if { (ac_try="$ac_compile"
3115case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3118esac
3119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003121 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003122 grep -v '^ *+' conftest.er1 >conftest.err
3123 rm -f conftest.er1
3124 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003126 (exit $ac_status); } &&
3127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3128 { (case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131esac
3132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_try") 2>&5
3134 ac_status=$?
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; } &&
3137 { ac_try='test -s conftest.$ac_objext'
3138 { (case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141esac
3142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_try") 2>&5
3144 ac_status=$?
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003147 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003148else
3149 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003150sed 's/^/| /' conftest.$ac_ext >&5
3151
Reid Spencera773bd52006-08-04 18:18:08 +00003152 CFLAGS=""
3153 cat >conftest.$ac_ext <<_ACEOF
3154/* confdefs.h. */
3155_ACEOF
3156cat confdefs.h >>conftest.$ac_ext
3157cat >>conftest.$ac_ext <<_ACEOF
3158/* end confdefs.h. */
3159
3160int
3161main ()
3162{
3163
3164 ;
3165 return 0;
3166}
3167_ACEOF
3168rm -f conftest.$ac_objext
3169if { (ac_try="$ac_compile"
3170case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173esac
3174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_compile") 2>conftest.er1
3176 ac_status=$?
3177 grep -v '^ *+' conftest.er1 >conftest.err
3178 rm -f conftest.er1
3179 cat conftest.err >&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003181 (exit $ac_status); } &&
3182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3183 { (case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186esac
3187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_try") 2>&5
3189 ac_status=$?
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; } &&
3192 { ac_try='test -s conftest.$ac_objext'
3193 { (case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196esac
3197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198 (eval "$ac_try") 2>&5
3199 ac_status=$?
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003202 :
3203else
3204 echo "$as_me: failed program was:" >&5
3205sed 's/^/| /' conftest.$ac_ext >&5
3206
3207 ac_c_werror_flag=$ac_save_c_werror_flag
3208 CFLAGS="-g"
3209 cat >conftest.$ac_ext <<_ACEOF
3210/* confdefs.h. */
3211_ACEOF
3212cat confdefs.h >>conftest.$ac_ext
3213cat >>conftest.$ac_ext <<_ACEOF
3214/* end confdefs.h. */
3215
3216int
3217main ()
3218{
3219
3220 ;
3221 return 0;
3222}
3223_ACEOF
3224rm -f conftest.$ac_objext
3225if { (ac_try="$ac_compile"
3226case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3229esac
3230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231 (eval "$ac_compile") 2>conftest.er1
3232 ac_status=$?
3233 grep -v '^ *+' conftest.er1 >conftest.err
3234 rm -f conftest.er1
3235 cat conftest.err >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003237 (exit $ac_status); } &&
3238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3239 { (case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3242esac
3243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244 (eval "$ac_try") 2>&5
3245 ac_status=$?
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; } &&
3248 { ac_try='test -s conftest.$ac_objext'
3249 { (case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3252esac
3253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254 (eval "$ac_try") 2>&5
3255 ac_status=$?
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003258 ac_cv_prog_cc_g=yes
3259else
3260 echo "$as_me: failed program was:" >&5
3261sed 's/^/| /' conftest.$ac_ext >&5
3262
3263
John Criswell7a73b802003-06-30 21:59:07 +00003264fi
Reid Spencera773bd52006-08-04 18:18:08 +00003265
3266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003267fi
Reid Spencera773bd52006-08-04 18:18:08 +00003268
3269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270fi
3271
3272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3273 ac_c_werror_flag=$ac_save_c_werror_flag
3274fi
3275{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3276echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003277if test "$ac_test_CFLAGS" = set; then
3278 CFLAGS=$ac_save_CFLAGS
3279elif test $ac_cv_prog_cc_g = yes; then
3280 if test "$GCC" = yes; then
3281 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003282 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003283 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003284 fi
3285else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003286 if test "$GCC" = yes; then
3287 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003288 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003289 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003290 fi
3291fi
Reid Spencera773bd52006-08-04 18:18:08 +00003292{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3293echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3294if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296else
Reid Spencera773bd52006-08-04 18:18:08 +00003297 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003298ac_save_CC=$CC
3299cat >conftest.$ac_ext <<_ACEOF
3300/* confdefs.h. */
3301_ACEOF
3302cat confdefs.h >>conftest.$ac_ext
3303cat >>conftest.$ac_ext <<_ACEOF
3304/* end confdefs.h. */
3305#include <stdarg.h>
3306#include <stdio.h>
3307#include <sys/types.h>
3308#include <sys/stat.h>
3309/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3310struct buf { int x; };
3311FILE * (*rcsopen) (struct buf *, struct stat *, int);
3312static char *e (p, i)
3313 char **p;
3314 int i;
3315{
3316 return p[i];
3317}
3318static char *f (char * (*g) (char **, int), char **p, ...)
3319{
3320 char *s;
3321 va_list v;
3322 va_start (v,p);
3323 s = g (p, va_arg (v,int));
3324 va_end (v);
3325 return s;
3326}
3327
3328/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3329 function prototypes and stuff, but not '\xHH' hex character constants.
3330 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003331 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003332 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3333 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003334 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003335int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3336
Reid Spencera773bd52006-08-04 18:18:08 +00003337/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3338 inside strings and character constants. */
3339#define FOO(x) 'x'
3340int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3341
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003342int test (int i, double x);
3343struct s1 {int (*f) (int a);};
3344struct s2 {int (*f) (double a);};
3345int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3346int argc;
3347char **argv;
3348int
3349main ()
3350{
3351return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3352 ;
3353 return 0;
3354}
3355_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003356for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3357 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003358do
3359 CC="$ac_save_CC $ac_arg"
3360 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003361if { (ac_try="$ac_compile"
3362case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365esac
3366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003368 ac_status=$?
3369 grep -v '^ *+' conftest.er1 >conftest.err
3370 rm -f conftest.er1
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003373 (exit $ac_status); } &&
3374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3375 { (case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378esac
3379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_try") 2>&5
3381 ac_status=$?
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); }; } &&
3384 { ac_try='test -s conftest.$ac_objext'
3385 { (case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388esac
3389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_try") 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003394 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003395else
3396 echo "$as_me: failed program was:" >&5
3397sed 's/^/| /' conftest.$ac_ext >&5
3398
Reid Spencera773bd52006-08-04 18:18:08 +00003399
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003400fi
Reid Spencera773bd52006-08-04 18:18:08 +00003401
3402rm -f core conftest.err conftest.$ac_objext
3403 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003404done
Reid Spencera773bd52006-08-04 18:18:08 +00003405rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003406CC=$ac_save_CC
3407
3408fi
Reid Spencera773bd52006-08-04 18:18:08 +00003409# AC_CACHE_VAL
3410case "x$ac_cv_prog_cc_c89" in
3411 x)
3412 { echo "$as_me:$LINENO: result: none needed" >&5
3413echo "${ECHO_T}none needed" >&6; } ;;
3414 xno)
3415 { echo "$as_me:$LINENO: result: unsupported" >&5
3416echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003417 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003418 CC="$CC $ac_cv_prog_cc_c89"
3419 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3420echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003421esac
3422
John Criswell0c38eaf2003-09-10 15:17:25 +00003423
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003424ac_ext=c
3425ac_cpp='$CPP $CPPFLAGS'
3426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428ac_compiler_gnu=$ac_cv_c_compiler_gnu
3429
3430
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003431ac_ext=c
3432ac_cpp='$CPP $CPPFLAGS'
3433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3435ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003436{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3437echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003438# On Suns, sometimes $CPP names a directory.
3439if test -n "$CPP" && test -d "$CPP"; then
3440 CPP=
3441fi
3442if test -z "$CPP"; then
3443 if test "${ac_cv_prog_CPP+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3445else
3446 # Double quotes because CPP needs to be expanded
3447 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3448 do
3449 ac_preproc_ok=false
3450for ac_c_preproc_warn_flag in '' yes
3451do
3452 # Use a header file that comes with gcc, so configuring glibc
3453 # with a fresh cross-compiler works.
3454 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3455 # <limits.h> exists even on freestanding compilers.
3456 # On the NeXT, cc -E runs the code through the compiler's parser,
3457 # not just through cpp. "Syntax error" is here to catch this case.
3458 cat >conftest.$ac_ext <<_ACEOF
3459/* confdefs.h. */
3460_ACEOF
3461cat confdefs.h >>conftest.$ac_ext
3462cat >>conftest.$ac_ext <<_ACEOF
3463/* end confdefs.h. */
3464#ifdef __STDC__
3465# include <limits.h>
3466#else
3467# include <assert.h>
3468#endif
3469 Syntax error
3470_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003471if { (ac_try="$ac_cpp conftest.$ac_ext"
3472case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475esac
3476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003478 ac_status=$?
3479 grep -v '^ *+' conftest.er1 >conftest.err
3480 rm -f conftest.er1
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003483 (exit $ac_status); } >/dev/null; then
3484 if test -s conftest.err; then
3485 ac_cpp_err=$ac_c_preproc_warn_flag
3486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3487 else
3488 ac_cpp_err=
3489 fi
3490else
3491 ac_cpp_err=yes
3492fi
3493if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003494 :
3495else
3496 echo "$as_me: failed program was:" >&5
3497sed 's/^/| /' conftest.$ac_ext >&5
3498
3499 # Broken: fails on valid input.
3500continue
3501fi
Reid Spencera773bd52006-08-04 18:18:08 +00003502
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003503rm -f conftest.err conftest.$ac_ext
3504
Reid Spencera773bd52006-08-04 18:18:08 +00003505 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003506 # can be detected and how.
3507 cat >conftest.$ac_ext <<_ACEOF
3508/* confdefs.h. */
3509_ACEOF
3510cat confdefs.h >>conftest.$ac_ext
3511cat >>conftest.$ac_ext <<_ACEOF
3512/* end confdefs.h. */
3513#include <ac_nonexistent.h>
3514_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003515if { (ac_try="$ac_cpp conftest.$ac_ext"
3516case "(($ac_try" in
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3519esac
3520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003522 ac_status=$?
3523 grep -v '^ *+' conftest.er1 >conftest.err
3524 rm -f conftest.er1
3525 cat conftest.err >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003527 (exit $ac_status); } >/dev/null; then
3528 if test -s conftest.err; then
3529 ac_cpp_err=$ac_c_preproc_warn_flag
3530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3531 else
3532 ac_cpp_err=
3533 fi
3534else
3535 ac_cpp_err=yes
3536fi
3537if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003538 # Broken: success on invalid input.
3539continue
3540else
3541 echo "$as_me: failed program was:" >&5
3542sed 's/^/| /' conftest.$ac_ext >&5
3543
3544 # Passes both tests.
3545ac_preproc_ok=:
3546break
3547fi
Reid Spencera773bd52006-08-04 18:18:08 +00003548
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003549rm -f conftest.err conftest.$ac_ext
3550
3551done
3552# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3553rm -f conftest.err conftest.$ac_ext
3554if $ac_preproc_ok; then
3555 break
3556fi
3557
3558 done
3559 ac_cv_prog_CPP=$CPP
3560
3561fi
3562 CPP=$ac_cv_prog_CPP
3563else
3564 ac_cv_prog_CPP=$CPP
3565fi
Reid Spencera773bd52006-08-04 18:18:08 +00003566{ echo "$as_me:$LINENO: result: $CPP" >&5
3567echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003568ac_preproc_ok=false
3569for ac_c_preproc_warn_flag in '' yes
3570do
3571 # Use a header file that comes with gcc, so configuring glibc
3572 # with a fresh cross-compiler works.
3573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3574 # <limits.h> exists even on freestanding compilers.
3575 # On the NeXT, cc -E runs the code through the compiler's parser,
3576 # not just through cpp. "Syntax error" is here to catch this case.
3577 cat >conftest.$ac_ext <<_ACEOF
3578/* confdefs.h. */
3579_ACEOF
3580cat confdefs.h >>conftest.$ac_ext
3581cat >>conftest.$ac_ext <<_ACEOF
3582/* end confdefs.h. */
3583#ifdef __STDC__
3584# include <limits.h>
3585#else
3586# include <assert.h>
3587#endif
3588 Syntax error
3589_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003590if { (ac_try="$ac_cpp conftest.$ac_ext"
3591case "(($ac_try" in
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3594esac
3595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003597 ac_status=$?
3598 grep -v '^ *+' conftest.er1 >conftest.err
3599 rm -f conftest.er1
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003602 (exit $ac_status); } >/dev/null; then
3603 if test -s conftest.err; then
3604 ac_cpp_err=$ac_c_preproc_warn_flag
3605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3606 else
3607 ac_cpp_err=
3608 fi
3609else
3610 ac_cpp_err=yes
3611fi
3612if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003613 :
3614else
3615 echo "$as_me: failed program was:" >&5
3616sed 's/^/| /' conftest.$ac_ext >&5
3617
3618 # Broken: fails on valid input.
3619continue
3620fi
Reid Spencera773bd52006-08-04 18:18:08 +00003621
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003622rm -f conftest.err conftest.$ac_ext
3623
Reid Spencera773bd52006-08-04 18:18:08 +00003624 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003625 # can be detected and how.
3626 cat >conftest.$ac_ext <<_ACEOF
3627/* confdefs.h. */
3628_ACEOF
3629cat confdefs.h >>conftest.$ac_ext
3630cat >>conftest.$ac_ext <<_ACEOF
3631/* end confdefs.h. */
3632#include <ac_nonexistent.h>
3633_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003634if { (ac_try="$ac_cpp conftest.$ac_ext"
3635case "(($ac_try" in
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3638esac
3639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003641 ac_status=$?
3642 grep -v '^ *+' conftest.er1 >conftest.err
3643 rm -f conftest.er1
3644 cat conftest.err >&5
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003646 (exit $ac_status); } >/dev/null; then
3647 if test -s conftest.err; then
3648 ac_cpp_err=$ac_c_preproc_warn_flag
3649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3650 else
3651 ac_cpp_err=
3652 fi
3653else
3654 ac_cpp_err=yes
3655fi
3656if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003657 # Broken: success on invalid input.
3658continue
3659else
3660 echo "$as_me: failed program was:" >&5
3661sed 's/^/| /' conftest.$ac_ext >&5
3662
3663 # Passes both tests.
3664ac_preproc_ok=:
3665break
3666fi
Reid Spencera773bd52006-08-04 18:18:08 +00003667
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003668rm -f conftest.err conftest.$ac_ext
3669
3670done
3671# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3672rm -f conftest.err conftest.$ac_ext
3673if $ac_preproc_ok; then
3674 :
3675else
3676 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3677See \`config.log' for more details." >&5
3678echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3679See \`config.log' for more details." >&2;}
3680 { (exit 1); exit 1; }; }
3681fi
3682
John Criswell7a73b802003-06-30 21:59:07 +00003683ac_ext=c
3684ac_cpp='$CPP $CPPFLAGS'
3685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687ac_compiler_gnu=$ac_cv_c_compiler_gnu
3688
John Criswell7a73b802003-06-30 21:59:07 +00003689
Reid Spencera773bd52006-08-04 18:18:08 +00003690{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3691echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003692if test "${ac_cv_path_GREP+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3694else
Reid Spencera773bd52006-08-04 18:18:08 +00003695 # Extract the first word of "grep ggrep" to use in msg output
3696if test -z "$GREP"; then
3697set dummy grep ggrep; ac_prog_name=$2
3698if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003699 echo $ECHO_N "(cached) $ECHO_C" >&6
3700else
Reid Spencera773bd52006-08-04 18:18:08 +00003701 ac_path_GREP_found=false
3702# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003704for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003705do
3706 IFS=$as_save_IFS
3707 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003708 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003709 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003710 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003711 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003712 # Check for GNU ac_path_GREP and select it if it is found.
3713 # Check for GNU $ac_path_GREP
3714case `"$ac_path_GREP" --version 2>&1` in
3715*GNU*)
3716 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3717*)
3718 ac_count=0
3719 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3720 while :
3721 do
3722 cat "conftest.in" "conftest.in" >"conftest.tmp"
3723 mv "conftest.tmp" "conftest.in"
3724 cp "conftest.in" "conftest.nl"
3725 echo 'GREP' >> "conftest.nl"
3726 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3727 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3728 ac_count=`expr $ac_count + 1`
3729 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3730 # Best one so far, save it but keep looking for a better one
3731 ac_cv_path_GREP="$ac_path_GREP"
3732 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003733 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003734 # 10*(2^10) chars as input seems more than enough
3735 test $ac_count -gt 10 && break
3736 done
3737 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3738esac
3739
3740
3741 $ac_path_GREP_found && break 3
3742 done
3743done
3744
3745done
3746IFS=$as_save_IFS
3747
3748
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003749fi
Reid Spencera773bd52006-08-04 18:18:08 +00003750
3751GREP="$ac_cv_path_GREP"
3752if test -z "$GREP"; then
3753 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3754echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3755 { (exit 1); exit 1; }; }
3756fi
3757
3758else
3759 ac_cv_path_GREP=$GREP
3760fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003761
John Criswell7a73b802003-06-30 21:59:07 +00003762
Reid Spencera773bd52006-08-04 18:18:08 +00003763fi
3764{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3765echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3766 GREP="$ac_cv_path_GREP"
3767
3768
3769{ echo "$as_me:$LINENO: checking for egrep" >&5
3770echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3771if test "${ac_cv_path_EGREP+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3773else
3774 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3775 then ac_cv_path_EGREP="$GREP -E"
3776 else
3777 # Extract the first word of "egrep" to use in msg output
3778if test -z "$EGREP"; then
3779set dummy egrep; ac_prog_name=$2
3780if test "${ac_cv_path_EGREP+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3782else
3783 ac_path_EGREP_found=false
3784# Loop through the user's path and test for each of PROGNAME-LIST
3785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3787do
3788 IFS=$as_save_IFS
3789 test -z "$as_dir" && as_dir=.
3790 for ac_prog in egrep; do
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003793 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003794 # Check for GNU ac_path_EGREP and select it if it is found.
3795 # Check for GNU $ac_path_EGREP
3796case `"$ac_path_EGREP" --version 2>&1` in
3797*GNU*)
3798 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3799*)
3800 ac_count=0
3801 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3802 while :
3803 do
3804 cat "conftest.in" "conftest.in" >"conftest.tmp"
3805 mv "conftest.tmp" "conftest.in"
3806 cp "conftest.in" "conftest.nl"
3807 echo 'EGREP' >> "conftest.nl"
3808 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3809 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3810 ac_count=`expr $ac_count + 1`
3811 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3812 # Best one so far, save it but keep looking for a better one
3813 ac_cv_path_EGREP="$ac_path_EGREP"
3814 ac_path_EGREP_max=$ac_count
3815 fi
3816 # 10*(2^10) chars as input seems more than enough
3817 test $ac_count -gt 10 && break
3818 done
3819 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3820esac
3821
3822
3823 $ac_path_EGREP_found && break 3
3824 done
3825done
3826
3827done
3828IFS=$as_save_IFS
3829
3830
3831fi
3832
3833EGREP="$ac_cv_path_EGREP"
3834if test -z "$EGREP"; then
3835 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3836echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3837 { (exit 1); exit 1; }; }
3838fi
3839
3840else
3841 ac_cv_path_EGREP=$EGREP
3842fi
3843
3844
3845 fi
3846fi
3847{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3848echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3849 EGREP="$ac_cv_path_EGREP"
3850
3851
3852{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3853echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003854if test "${ac_cv_header_stdc+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3856else
3857 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003858/* confdefs.h. */
3859_ACEOF
3860cat confdefs.h >>conftest.$ac_ext
3861cat >>conftest.$ac_ext <<_ACEOF
3862/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003863#include <stdlib.h>
3864#include <stdarg.h>
3865#include <string.h>
3866#include <float.h>
3867
John Criswell0c38eaf2003-09-10 15:17:25 +00003868int
3869main ()
3870{
3871
3872 ;
3873 return 0;
3874}
John Criswell7a73b802003-06-30 21:59:07 +00003875_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003876rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003877if { (ac_try="$ac_compile"
3878case "(($ac_try" in
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3881esac
3882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3883 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003884 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003885 grep -v '^ *+' conftest.er1 >conftest.err
3886 rm -f conftest.er1
3887 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003889 (exit $ac_status); } &&
3890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3891 { (case "(($ac_try" in
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3894esac
3895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896 (eval "$ac_try") 2>&5
3897 ac_status=$?
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; } &&
3900 { ac_try='test -s conftest.$ac_objext'
3901 { (case "(($ac_try" in
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3904esac
3905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906 (eval "$ac_try") 2>&5
3907 ac_status=$?
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003910 ac_cv_header_stdc=yes
3911else
3912 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003913sed 's/^/| /' conftest.$ac_ext >&5
3914
Reid Spencera773bd52006-08-04 18:18:08 +00003915 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003916fi
Reid Spencera773bd52006-08-04 18:18:08 +00003917
3918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003919
3920if test $ac_cv_header_stdc = yes; then
3921 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3922 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003923/* confdefs.h. */
3924_ACEOF
3925cat confdefs.h >>conftest.$ac_ext
3926cat >>conftest.$ac_ext <<_ACEOF
3927/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003928#include <string.h>
3929
3930_ACEOF
3931if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003932 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003933 :
3934else
3935 ac_cv_header_stdc=no
3936fi
3937rm -f conftest*
3938
3939fi
3940
3941if test $ac_cv_header_stdc = yes; then
3942 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3943 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003944/* confdefs.h. */
3945_ACEOF
3946cat confdefs.h >>conftest.$ac_ext
3947cat >>conftest.$ac_ext <<_ACEOF
3948/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003949#include <stdlib.h>
3950
3951_ACEOF
3952if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003953 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003954 :
3955else
3956 ac_cv_header_stdc=no
3957fi
3958rm -f conftest*
3959
3960fi
3961
3962if test $ac_cv_header_stdc = yes; then
3963 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3964 if test "$cross_compiling" = yes; then
3965 :
3966else
3967 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003968/* confdefs.h. */
3969_ACEOF
3970cat confdefs.h >>conftest.$ac_ext
3971cat >>conftest.$ac_ext <<_ACEOF
3972/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003973#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003974#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003975#if ((' ' & 0x0FF) == 0x020)
3976# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3977# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3978#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003979# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003980 (('a' <= (c) && (c) <= 'i') \
3981 || ('j' <= (c) && (c) <= 'r') \
3982 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003983# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3984#endif
3985
3986#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3987int
3988main ()
3989{
3990 int i;
3991 for (i = 0; i < 256; i++)
3992 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003993 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003994 return 2;
3995 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003996}
3997_ACEOF
3998rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003999if { (ac_try="$ac_link"
4000case "(($ac_try" in
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4003esac
4004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4005 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004006 ac_status=$?
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00004009 { (case "(($ac_try" in
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4012esac
4013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004015 ac_status=$?
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; }; then
4018 :
4019else
4020 echo "$as_me: program exited with status $ac_status" >&5
4021echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004022sed 's/^/| /' conftest.$ac_ext >&5
4023
John Criswell7a73b802003-06-30 21:59:07 +00004024( exit $ac_status )
4025ac_cv_header_stdc=no
4026fi
Reid Spencera773bd52006-08-04 18:18:08 +00004027rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4028fi
4029
4030
John Criswell7a73b802003-06-30 21:59:07 +00004031fi
4032fi
Reid Spencera773bd52006-08-04 18:18:08 +00004033{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4034echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004035if test $ac_cv_header_stdc = yes; then
4036
4037cat >>confdefs.h <<\_ACEOF
4038#define STDC_HEADERS 1
4039_ACEOF
4040
4041fi
4042
Reid Spencera773bd52006-08-04 18:18:08 +00004043# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4054 inttypes.h stdint.h unistd.h
4055do
4056as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4057{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4058echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4059if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4061else
4062 cat >conftest.$ac_ext <<_ACEOF
4063/* confdefs.h. */
4064_ACEOF
4065cat confdefs.h >>conftest.$ac_ext
4066cat >>conftest.$ac_ext <<_ACEOF
4067/* end confdefs.h. */
4068$ac_includes_default
4069
4070#include <$ac_header>
4071_ACEOF
4072rm -f conftest.$ac_objext
4073if { (ac_try="$ac_compile"
4074case "(($ac_try" in
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4077esac
4078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079 (eval "$ac_compile") 2>conftest.er1
4080 ac_status=$?
4081 grep -v '^ *+' conftest.er1 >conftest.err
4082 rm -f conftest.er1
4083 cat conftest.err >&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004085 (exit $ac_status); } &&
4086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4087 { (case "(($ac_try" in
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4090esac
4091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092 (eval "$ac_try") 2>&5
4093 ac_status=$?
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; } &&
4096 { ac_try='test -s conftest.$ac_objext'
4097 { (case "(($ac_try" in
4098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099 *) ac_try_echo=$ac_try;;
4100esac
4101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102 (eval "$ac_try") 2>&5
4103 ac_status=$?
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004106 eval "$as_ac_Header=yes"
4107else
4108 echo "$as_me: failed program was:" >&5
4109sed 's/^/| /' conftest.$ac_ext >&5
4110
4111 eval "$as_ac_Header=no"
4112fi
4113
4114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4115fi
4116ac_res=`eval echo '${'$as_ac_Header'}'`
4117 { echo "$as_me:$LINENO: result: $ac_res" >&5
4118echo "${ECHO_T}$ac_res" >&6; }
4119if test `eval echo '${'$as_ac_Header'}'` = yes; then
4120 cat >>confdefs.h <<_ACEOF
4121#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4122_ACEOF
4123
4124fi
4125
4126done
4127
4128
4129{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4130echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4131if test "${ac_cv_c_bigendian+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
4133else
4134 # See if sys/param.h defines the BYTE_ORDER macro.
4135cat >conftest.$ac_ext <<_ACEOF
4136/* confdefs.h. */
4137_ACEOF
4138cat confdefs.h >>conftest.$ac_ext
4139cat >>conftest.$ac_ext <<_ACEOF
4140/* end confdefs.h. */
4141#include <sys/types.h>
4142#include <sys/param.h>
4143
4144int
4145main ()
4146{
Bill Wendlingebcceee2009-04-18 11:20:33 +00004147#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004148 bogus endian macros
4149#endif
4150
4151 ;
4152 return 0;
4153}
4154_ACEOF
4155rm -f conftest.$ac_objext
4156if { (ac_try="$ac_compile"
4157case "(($ac_try" in
4158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159 *) ac_try_echo=$ac_try;;
4160esac
4161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4162 (eval "$ac_compile") 2>conftest.er1
4163 ac_status=$?
4164 grep -v '^ *+' conftest.er1 >conftest.err
4165 rm -f conftest.er1
4166 cat conftest.err >&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004168 (exit $ac_status); } &&
4169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4170 { (case "(($ac_try" in
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4173esac
4174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_try") 2>&5
4176 ac_status=$?
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; } &&
4179 { ac_try='test -s conftest.$ac_objext'
4180 { (case "(($ac_try" in
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4183esac
4184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_try") 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004189 # It does; now see whether it defined to BIG_ENDIAN or not.
4190cat >conftest.$ac_ext <<_ACEOF
4191/* confdefs.h. */
4192_ACEOF
4193cat confdefs.h >>conftest.$ac_ext
4194cat >>conftest.$ac_ext <<_ACEOF
4195/* end confdefs.h. */
4196#include <sys/types.h>
4197#include <sys/param.h>
4198
4199int
4200main ()
4201{
4202#if BYTE_ORDER != BIG_ENDIAN
4203 not big endian
4204#endif
4205
4206 ;
4207 return 0;
4208}
4209_ACEOF
4210rm -f conftest.$ac_objext
4211if { (ac_try="$ac_compile"
4212case "(($ac_try" in
4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214 *) ac_try_echo=$ac_try;;
4215esac
4216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4217 (eval "$ac_compile") 2>conftest.er1
4218 ac_status=$?
4219 grep -v '^ *+' conftest.er1 >conftest.err
4220 rm -f conftest.er1
4221 cat conftest.err >&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004223 (exit $ac_status); } &&
4224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4225 { (case "(($ac_try" in
4226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227 *) ac_try_echo=$ac_try;;
4228esac
4229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4230 (eval "$ac_try") 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; } &&
4234 { ac_try='test -s conftest.$ac_objext'
4235 { (case "(($ac_try" in
4236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237 *) ac_try_echo=$ac_try;;
4238esac
4239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4240 (eval "$ac_try") 2>&5
4241 ac_status=$?
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004244 ac_cv_c_bigendian=yes
4245else
4246 echo "$as_me: failed program was:" >&5
4247sed 's/^/| /' conftest.$ac_ext >&5
4248
4249 ac_cv_c_bigendian=no
4250fi
4251
4252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4253else
4254 echo "$as_me: failed program was:" >&5
4255sed 's/^/| /' conftest.$ac_ext >&5
4256
4257 # It does not; compile a test program.
4258if test "$cross_compiling" = yes; then
4259 # try to guess the endianness by grepping values into an object file
4260 ac_cv_c_bigendian=unknown
4261 cat >conftest.$ac_ext <<_ACEOF
4262/* confdefs.h. */
4263_ACEOF
4264cat confdefs.h >>conftest.$ac_ext
4265cat >>conftest.$ac_ext <<_ACEOF
4266/* end confdefs.h. */
4267short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4268short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4269void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4270short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4271short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4272void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4273int
4274main ()
4275{
4276 _ascii (); _ebcdic ();
4277 ;
4278 return 0;
4279}
4280_ACEOF
4281rm -f conftest.$ac_objext
4282if { (ac_try="$ac_compile"
4283case "(($ac_try" in
4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4286esac
4287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288 (eval "$ac_compile") 2>conftest.er1
4289 ac_status=$?
4290 grep -v '^ *+' conftest.er1 >conftest.err
4291 rm -f conftest.er1
4292 cat conftest.err >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004294 (exit $ac_status); } &&
4295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4296 { (case "(($ac_try" in
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4299esac
4300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301 (eval "$ac_try") 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; } &&
4305 { ac_try='test -s conftest.$ac_objext'
4306 { (case "(($ac_try" in
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4309esac
4310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311 (eval "$ac_try") 2>&5
4312 ac_status=$?
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004315 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4316 ac_cv_c_bigendian=yes
4317fi
4318if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4319 if test "$ac_cv_c_bigendian" = unknown; then
4320 ac_cv_c_bigendian=no
4321 else
4322 # finding both strings is unlikely to happen, but who knows?
4323 ac_cv_c_bigendian=unknown
4324 fi
4325fi
4326else
4327 echo "$as_me: failed program was:" >&5
4328sed 's/^/| /' conftest.$ac_ext >&5
4329
4330
4331fi
4332
4333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4334else
4335 cat >conftest.$ac_ext <<_ACEOF
4336/* confdefs.h. */
4337_ACEOF
4338cat confdefs.h >>conftest.$ac_ext
4339cat >>conftest.$ac_ext <<_ACEOF
4340/* end confdefs.h. */
4341$ac_includes_default
4342int
4343main ()
4344{
4345
4346 /* Are we little or big endian? From Harbison&Steele. */
4347 union
4348 {
4349 long int l;
4350 char c[sizeof (long int)];
4351 } u;
4352 u.l = 1;
4353 return u.c[sizeof (long int) - 1] == 1;
4354
4355 ;
4356 return 0;
4357}
4358_ACEOF
4359rm -f conftest$ac_exeext
4360if { (ac_try="$ac_link"
4361case "(($ac_try" in
4362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363 *) ac_try_echo=$ac_try;;
4364esac
4365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4366 (eval "$ac_link") 2>&5
4367 ac_status=$?
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4370 { (case "(($ac_try" in
4371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372 *) ac_try_echo=$ac_try;;
4373esac
4374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4375 (eval "$ac_try") 2>&5
4376 ac_status=$?
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; }; then
4379 ac_cv_c_bigendian=no
4380else
4381 echo "$as_me: program exited with status $ac_status" >&5
4382echo "$as_me: failed program was:" >&5
4383sed 's/^/| /' conftest.$ac_ext >&5
4384
4385( exit $ac_status )
4386ac_cv_c_bigendian=yes
4387fi
4388rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4389fi
4390
4391
4392fi
4393
4394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4395fi
4396{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4397echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4398case $ac_cv_c_bigendian in
4399 yes)
4400 ENDIAN=big
4401 ;;
4402 no)
4403 ENDIAN=little
4404 ;;
4405 *)
4406 { { echo "$as_me:$LINENO: error: unknown endianness
4407presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4408echo "$as_me: error: unknown endianness
4409presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4410 { (exit 1); exit 1; }; } ;;
4411esac
4412
4413
4414if test "$cross_compiling" = yes; then
4415 LLVM_CROSS_COMPILING=1
4416
4417
4418{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4419echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4420if test "${ac_cv_build_exeext+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4422else
4423 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4424 ac_cv_build_exeext=.exe
4425else
4426 ac_build_prefix=${build_alias}-
4427
4428 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4429set dummy ${ac_build_prefix}gcc; ac_word=$2
4430{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4434else
4435 if test -n "$BUILD_CC"; then
4436 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4437else
4438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439for as_dir in $PATH
4440do
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004444 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 +00004445 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 break 2
4448 fi
4449done
4450done
4451IFS=$as_save_IFS
4452
4453fi
4454fi
4455BUILD_CC=$ac_cv_prog_BUILD_CC
4456if test -n "$BUILD_CC"; then
4457 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4458echo "${ECHO_T}$BUILD_CC" >&6; }
4459else
4460 { echo "$as_me:$LINENO: result: no" >&5
4461echo "${ECHO_T}no" >&6; }
4462fi
4463
4464
4465 if test -z "$BUILD_CC"; then
4466 # Extract the first word of "gcc", so it can be a program name with args.
4467set dummy gcc; ac_word=$2
4468{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4470if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4472else
4473 if test -n "$BUILD_CC"; then
4474 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4475else
4476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477for as_dir in $PATH
4478do
4479 IFS=$as_save_IFS
4480 test -z "$as_dir" && as_dir=.
4481 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004482 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 +00004483 ac_cv_prog_BUILD_CC="gcc"
4484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 break 2
4486 fi
4487done
4488done
4489IFS=$as_save_IFS
4490
4491fi
4492fi
4493BUILD_CC=$ac_cv_prog_BUILD_CC
4494if test -n "$BUILD_CC"; then
4495 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4496echo "${ECHO_T}$BUILD_CC" >&6; }
4497else
4498 { echo "$as_me:$LINENO: result: no" >&5
4499echo "${ECHO_T}no" >&6; }
4500fi
4501
4502
4503 if test -z "$BUILD_CC"; then
4504 # Extract the first word of "cc", so it can be a program name with args.
4505set dummy cc; ac_word=$2
4506{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4508if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4510else
4511 if test -n "$BUILD_CC"; then
4512 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4513else
4514 ac_prog_rejected=no
4515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516for as_dir in $PATH
4517do
4518 IFS=$as_save_IFS
4519 test -z "$as_dir" && as_dir=.
4520 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004521 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 +00004522 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4523 ac_prog_rejected=yes
4524 continue
4525 fi
4526 ac_cv_prog_BUILD_CC="cc"
4527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 break 2
4529 fi
4530done
4531done
4532IFS=$as_save_IFS
4533
4534if test $ac_prog_rejected = yes; then
4535 # We found a bogon in the path, so make sure we never use it.
4536 set dummy $ac_cv_prog_BUILD_CC
4537 shift
4538 if test $# != 0; then
4539 # We chose a different compiler from the bogus one.
4540 # However, it has the same basename, so the bogon will be chosen
4541 # first if we set BUILD_CC to just the basename; use the full file name.
4542 shift
4543 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4544 fi
4545fi
4546fi
4547fi
4548BUILD_CC=$ac_cv_prog_BUILD_CC
4549if test -n "$BUILD_CC"; then
4550 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4551echo "${ECHO_T}$BUILD_CC" >&6; }
4552else
4553 { echo "$as_me:$LINENO: result: no" >&5
4554echo "${ECHO_T}no" >&6; }
4555fi
4556
4557
4558 fi
4559 fi
4560 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4561echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4562 { (exit 1); exit 1; }; }
4563 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4564 rm -f conftest*
4565 echo 'int main () { return 0; }' > conftest.$ac_ext
4566 ac_cv_build_exeext=
4567 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4568 (eval $ac_build_link) 2>&5
4569 ac_status=$?
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; then
4572 for file in conftest.*; do
4573 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004574 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004575 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4576 esac
4577 done
4578 else
4579 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4580echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4581 { (exit 1); exit 1; }; }
4582 fi
4583 rm -f conftest*
4584 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4585fi
4586fi
4587
4588BUILD_EXEEXT=""
4589test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4590{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4591echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4592ac_build_exeext=$BUILD_EXEEXT
4593
Jim Grosbach673612e2008-10-02 22:56:44 +00004594 ac_build_prefix=${build_alias}-
4595 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4596set dummy ${ac_build_prefix}g++; ac_word=$2
4597{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4599if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4601else
4602 if test -n "$BUILD_CXX"; then
4603 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4604else
4605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606for as_dir in $PATH
4607do
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004612 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 break 2
4615 fi
4616done
4617done
4618IFS=$as_save_IFS
4619
4620fi
4621fi
4622BUILD_CXX=$ac_cv_prog_BUILD_CXX
4623if test -n "$BUILD_CXX"; then
4624 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4625echo "${ECHO_T}$BUILD_CXX" >&6; }
4626else
4627 { echo "$as_me:$LINENO: result: no" >&5
4628echo "${ECHO_T}no" >&6; }
4629fi
4630
4631
4632 if test -z "$BUILD_CXX"; then
4633 # Extract the first word of "g++", so it can be a program name with args.
4634set dummy g++; ac_word=$2
4635{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4637if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4639else
4640 if test -n "$BUILD_CXX"; then
4641 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4642else
4643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644for as_dir in $PATH
4645do
4646 IFS=$as_save_IFS
4647 test -z "$as_dir" && as_dir=.
4648 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004650 ac_cv_prog_BUILD_CXX="g++"
4651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 break 2
4653 fi
4654done
4655done
4656IFS=$as_save_IFS
4657
4658fi
4659fi
4660BUILD_CXX=$ac_cv_prog_BUILD_CXX
4661if test -n "$BUILD_CXX"; then
4662 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4663echo "${ECHO_T}$BUILD_CXX" >&6; }
4664else
4665 { echo "$as_me:$LINENO: result: no" >&5
4666echo "${ECHO_T}no" >&6; }
4667fi
4668
4669
4670 if test -z "$BUILD_CXX"; then
4671 # Extract the first word of "c++", so it can be a program name with args.
4672set dummy c++; ac_word=$2
4673{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4675if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4677else
4678 if test -n "$BUILD_CXX"; then
4679 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4680else
4681 ac_prog_rejected=no
4682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683for as_dir in $PATH
4684do
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004689 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4690 ac_prog_rejected=yes
4691 continue
4692 fi
4693 ac_cv_prog_BUILD_CXX="c++"
4694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 break 2
4696 fi
4697done
4698done
4699IFS=$as_save_IFS
4700
4701if test $ac_prog_rejected = yes; then
4702 # We found a bogon in the path, so make sure we never use it.
4703 set dummy $ac_cv_prog_BUILD_CXX
4704 shift
4705 if test $# != 0; then
4706 # We chose a different compiler from the bogus one.
4707 # However, it has the same basename, so the bogon will be chosen
4708 # first if we set BUILD_CXX to just the basename; use the full file name.
4709 shift
4710 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4711 fi
4712fi
4713fi
4714fi
4715BUILD_CXX=$ac_cv_prog_BUILD_CXX
4716if test -n "$BUILD_CXX"; then
4717 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4718echo "${ECHO_T}$BUILD_CXX" >&6; }
4719else
4720 { echo "$as_me:$LINENO: result: no" >&5
4721echo "${ECHO_T}no" >&6; }
4722fi
4723
4724
4725 fi
4726 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004727else
4728 LLVM_CROSS_COMPILING=0
4729
4730fi
4731
Nick Lewycky5b28f862009-04-10 05:18:27 +00004732if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004733 cvsbuild="yes"
4734 optimize="no"
4735 CVSBUILD=CVSBUILD=1
4736
4737else
4738 cvsbuild="no"
4739 optimize="yes"
4740fi
4741
4742
4743# Check whether --enable-optimized was given.
4744if test "${enable_optimized+set}" = set; then
4745 enableval=$enable_optimized;
4746else
4747 enableval=$optimize
4748fi
4749
4750if test ${enableval} = "no" ; then
4751 ENABLE_OPTIMIZED=
4752
4753else
4754 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4755
4756fi
4757
David Greene2a5a12c2009-04-17 14:50:39 +00004758# Check whether --enable-profiling was given.
4759if test "${enable_profiling+set}" = set; then
4760 enableval=$enable_profiling;
4761else
4762 enableval="no"
4763fi
4764
4765if test ${enableval} = "no" ; then
4766 ENABLE_PROFILING=
4767
4768else
4769 ENABLE_PROFILING=ENABLE_PROFILING=1
4770
4771fi
4772
Reid Spencera773bd52006-08-04 18:18:08 +00004773# Check whether --enable-assertions was given.
4774if test "${enable_assertions+set}" = set; then
4775 enableval=$enable_assertions;
4776else
4777 enableval="yes"
4778fi
4779
4780if test ${enableval} = "yes" ; then
4781 DISABLE_ASSERTIONS=
4782
4783else
4784 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4785
4786fi
4787
David Greenea696d242007-06-28 19:36:08 +00004788# Check whether --enable-expensive-checks was given.
4789if test "${enable_expensive_checks+set}" = set; then
4790 enableval=$enable_expensive_checks;
4791else
4792 enableval="no"
4793fi
4794
4795if test ${enableval} = "yes" ; then
4796 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4797
4798 EXPENSIVE_CHECKS=yes
4799
4800else
4801 ENABLE_EXPENSIVE_CHECKS=
4802
4803 EXPENSIVE_CHECKS=no
4804
4805fi
4806
Reid Spencer8b2e1412006-11-17 03:32:33 +00004807# Check whether --enable-debug-runtime was given.
4808if test "${enable_debug_runtime+set}" = set; then
4809 enableval=$enable_debug_runtime;
4810else
4811 enableval=no
4812fi
4813
4814if test ${enableval} = "no" ; then
4815 DEBUG_RUNTIME=
4816
4817else
4818 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4819
4820fi
4821
Reid Spencera773bd52006-08-04 18:18:08 +00004822# Check whether --enable-jit was given.
4823if test "${enable_jit+set}" = set; then
4824 enableval=$enable_jit;
4825else
4826 enableval=default
4827fi
4828
4829if test ${enableval} = "no"
4830then
4831 JIT=
4832
4833else
4834 case "$llvm_cv_target_arch" in
4835 x86) TARGET_HAS_JIT=1
4836 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004837 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004838 ;;
4839 PowerPC) TARGET_HAS_JIT=1
4840 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004841 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004842 ;;
4843 Alpha) TARGET_HAS_JIT=1
4844 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004845 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004846 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004847 Mips) TARGET_HAS_JIT=0
4848 ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004849 PIC16) TARGET_HAS_JIT=0
4850 ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004851 XCore) TARGET_HAS_JIT=0
4852 ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004853 MSP430) TARGET_HAS_JIT=0
4854 ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004855 SystemZ) TARGET_HAS_JIT=0
4856 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004857 *) TARGET_HAS_JIT=0
4858 ;;
4859 esac
4860fi
4861
4862# Check whether --enable-doxygen was given.
4863if test "${enable_doxygen+set}" = set; then
4864 enableval=$enable_doxygen;
4865else
4866 enableval=default
4867fi
4868
4869case "$enableval" in
4870 yes) ENABLE_DOXYGEN=1
4871 ;;
4872 no) ENABLE_DOXYGEN=0
4873 ;;
4874 default) ENABLE_DOXYGEN=0
4875 ;;
4876 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4877echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4878 { (exit 1); exit 1; }; } ;;
4879esac
4880
4881# Check whether --enable-threads was given.
4882if test "${enable_threads+set}" = set; then
4883 enableval=$enable_threads;
4884else
Reid Spencer65c5d752006-11-05 17:08:18 +00004885 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004886fi
4887
4888case "$enableval" in
4889 yes) ENABLE_THREADS=1
4890 ;;
4891 no) ENABLE_THREADS=0
4892 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004893 default) ENABLE_THREADS=1
4894 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004895 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4896echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4897 { (exit 1); exit 1; }; } ;;
4898esac
4899
Owen Andersona8603702009-05-19 22:18:56 +00004900cat >>confdefs.h <<_ACEOF
4901#define ENABLE_THREADS $ENABLE_THREADS
4902_ACEOF
4903
4904
Reid Spencer89b0d992006-12-16 22:07:52 +00004905# Check whether --enable-pic was given.
4906if test "${enable_pic+set}" = set; then
4907 enableval=$enable_pic;
4908else
4909 enableval=default
4910fi
4911
4912case "$enableval" in
4913 yes) ENABLE_PIC=1
4914 ;;
4915 no) ENABLE_PIC=0
4916 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004917 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004918 ;;
4919 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4920echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4921 { (exit 1); exit 1; }; } ;;
4922esac
4923
4924cat >>confdefs.h <<_ACEOF
4925#define ENABLE_PIC $ENABLE_PIC
4926_ACEOF
4927
4928
Reid Spencera773bd52006-08-04 18:18:08 +00004929TARGETS_TO_BUILD=""
4930# Check whether --enable-targets was given.
4931if test "${enable_targets+set}" = set; then
4932 enableval=$enable_targets;
4933else
4934 enableval=all
4935fi
4936
4937case "$enableval" in
Jakob Stoklund Olesen73b7bb72009-08-02 17:32:37 +00004938 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004939 host-only)
4940 case "$llvm_cv_target_arch" in
4941 x86) TARGETS_TO_BUILD="X86" ;;
4942 x86_64) TARGETS_TO_BUILD="X86" ;;
4943 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4944 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4945 Alpha) TARGETS_TO_BUILD="Alpha" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004946 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004947 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004948 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004949 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004950 XCore) TARGETS_TO_BUILD="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004951 MSP430) TARGETS_TO_BUILD="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004952 SystemZ) TARGETS_TO_BUILD="SystemZ" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004953 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4954echo "$as_me: error: Can not set target to build" >&2;}
4955 { (exit 1); exit 1; }; } ;;
4956 esac
4957 ;;
4958 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4959 case "$a_target" in
4960 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4961 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4962 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4963 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4964 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004965 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004966 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004967 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004968 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004969 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004970 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004971 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Nate Begeman57b1efb2007-12-13 01:18:52 +00004972 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4973 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner49ff6612008-05-10 04:20:38 +00004974 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004975 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4976echo "$as_me: error: Unrecognized target $a_target" >&2;}
4977 { (exit 1); exit 1; }; } ;;
4978 esac
4979 done
4980 ;;
4981esac
Reid Spencera773bd52006-08-04 18:18:08 +00004982TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4983
4984
Douglas Gregor0711c302009-06-17 00:43:20 +00004985# Determine whether we are building LLVM support for the native architecture.
4986# If so, define LLVM_NATIVE_ARCH to that LLVM target.
4987for a_target in $TARGETS_TO_BUILD; do
4988 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00004989 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00004990
4991cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00004992#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00004993_ACEOF
4994
4995 fi
4996done
4997
Douglas Gregor1555a232009-06-16 20:12:29 +00004998# Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00004999# Targets.def, AsmPrinters.def, and AsmParsers.def.
Douglas Gregor1555a232009-06-16 20:12:29 +00005000LLVM_ENUM_TARGETS=""
5001LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005002LLVM_ENUM_ASM_PARSERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005003for target_to_build in $TARGETS_TO_BUILD; do
5004 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5005 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5006 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5007 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005008 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5009 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5010 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005011done
5012
5013
5014
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005015
Reid Spencer65c5d752006-11-05 17:08:18 +00005016# Check whether --enable-cbe-printf-a was given.
5017if test "${enable_cbe_printf_a+set}" = set; then
5018 enableval=$enable_cbe_printf_a;
5019else
5020 enableval=default
5021fi
5022
5023case "$enableval" in
5024 yes) ENABLE_CBE_PRINTF_A=1
5025 ;;
5026 no) ENABLE_CBE_PRINTF_A=0
5027 ;;
5028 default) ENABLE_CBE_PRINTF_A=1
5029 ;;
5030 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5031echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5032 { (exit 1); exit 1; }; } ;;
5033esac
5034
5035cat >>confdefs.h <<_ACEOF
5036#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5037_ACEOF
5038
5039
Reid Spencera773bd52006-08-04 18:18:08 +00005040
5041# Check whether --with-llvmgccdir was given.
5042if test "${with_llvmgccdir+set}" = set; then
5043 withval=$with_llvmgccdir;
5044else
5045 withval=default
5046fi
5047
5048case "$withval" in
5049 default) WITH_LLVMGCCDIR=default ;;
5050 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5051 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5052echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5053 { (exit 1); exit 1; }; } ;;
5054esac
5055
5056
Devang Patel5d28b882007-12-04 22:54:47 +00005057# Check whether --with-llvmgcc was given.
5058if test "${with_llvmgcc+set}" = set; then
5059 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5060 WITH_LLVMGCCDIR=""
5061fi
5062
5063
5064
5065# Check whether --with-llvmgxx was given.
5066if test "${with_llvmgxx+set}" = set; then
5067 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5068 WITH_LLVMGCCDIR=""
5069fi
5070
Douglas Gregor01746742009-05-11 18:05:52 +00005071
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005072if test -n "$LLVMGCC"; then
5073 LLVMGCCCOMMAND="$LLVMGCC"
5074fi
5075
5076if test -n "$LLVMGXX"; then
5077 LLVMGXXCOMMAND="$LLVMGXX"
5078fi
Devang Patel5d28b882007-12-04 22:54:47 +00005079
5080if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5081 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5082echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5083 { (exit 1); exit 1; }; };
5084fi
5085
5086if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5087 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5088echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5089 { (exit 1); exit 1; }; };
5090fi
5091
5092
Reid Spencera773bd52006-08-04 18:18:08 +00005093# Check whether --with-extra-options was given.
5094if test "${with_extra_options+set}" = set; then
5095 withval=$with_extra_options;
5096else
5097 withval=default
5098fi
5099
5100case "$withval" in
5101 default) EXTRA_OPTIONS= ;;
5102 *) EXTRA_OPTIONS=$withval ;;
5103esac
5104EXTRA_OPTIONS=$EXTRA_OPTIONS
5105
5106
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005107# Check whether --enable-bindings was given.
5108if test "${enable_bindings+set}" = set; then
5109 enableval=$enable_bindings;
5110else
5111 enableval=default
5112fi
5113
5114BINDINGS_TO_BUILD=""
5115case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005116 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005117 all ) BINDINGS_TO_BUILD="ocaml" ;;
5118 none | no) BINDINGS_TO_BUILD="" ;;
5119 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5120 case "$a_binding" in
5121 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5122 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5123echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5124 { (exit 1); exit 1; }; } ;;
5125 esac
5126 done
5127 ;;
5128esac
5129
Reid Spencera773bd52006-08-04 18:18:08 +00005130
Gordon Henriksenf0915682007-10-02 16:42:22 +00005131# Check whether --with-ocaml-libdir was given.
5132if test "${with_ocaml_libdir+set}" = set; then
5133 withval=$with_ocaml_libdir;
5134else
5135 withval=auto
5136fi
5137
5138case "$withval" in
5139 auto) with_ocaml_libdir="$withval" ;;
5140 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5141 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5142echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5143 { (exit 1); exit 1; }; } ;;
5144esac
5145
5146
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005147# Check whether --with-binutils-include was given.
5148if test "${with_binutils_include+set}" = set; then
5149 withval=$with_binutils_include;
5150else
5151 withval=default
5152fi
5153
5154case "$withval" in
5155 default) WITH_BINUTILS_INCDIR=default ;;
5156 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5157 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5158echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5159 { (exit 1); exit 1; }; } ;;
5160esac
5161if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5162 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5163
5164 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5165 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5166 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5167echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5168 { (exit 1); exit 1; }; };
5169 fi
5170fi
5171
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005172# Check whether --enable-libffi was given.
5173if test "${enable_libffi+set}" = set; then
5174 enableval=$enable_libffi;
5175else
5176 enableval=yes
5177fi
5178
5179case "$enableval" in
5180 yes) llvm_cv_enable_libffi="yes" ;;
5181 no) llvm_cv_enable_libffi="no" ;;
5182 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5183echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5184 { (exit 1); exit 1; }; } ;;
5185esac
5186
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005187if test "$llvm_cv_os_type" = "Win32" ; then
5188 llvmc_dynamic="yes"
5189else
5190 llvmc_dynamic="no"
5191fi
5192
5193# Check whether --enable-llvmc-dynamic was given.
5194if test "${enable_llvmc_dynamic+set}" = set; then
5195 enableval=$enable_llvmc_dynamic;
5196else
5197 enableval=$llvmc_dynamic
5198fi
5199
5200if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5201 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5202
5203else
5204 ENABLE_LLVMC_DYNAMIC=
5205
5206fi
5207
5208# Check whether --enable-llvmc-dynamic-plugins was given.
5209if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5210 enableval=$enable_llvmc_dynamic_plugins;
5211else
5212 enableval=yes
5213fi
5214
5215if test ${enableval} = "yes" ; then
5216 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5217
5218else
5219 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5220
5221fi
5222
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005223
Reid Spencera773bd52006-08-04 18:18:08 +00005224ac_ext=c
5225ac_cpp='$CPP $CPPFLAGS'
5226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5228ac_compiler_gnu=$ac_cv_c_compiler_gnu
5229{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5230echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5231# On Suns, sometimes $CPP names a directory.
5232if test -n "$CPP" && test -d "$CPP"; then
5233 CPP=
5234fi
5235if test -z "$CPP"; then
5236 if test "${ac_cv_prog_CPP+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5238else
5239 # Double quotes because CPP needs to be expanded
5240 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5241 do
5242 ac_preproc_ok=false
5243for ac_c_preproc_warn_flag in '' yes
5244do
5245 # Use a header file that comes with gcc, so configuring glibc
5246 # with a fresh cross-compiler works.
5247 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5248 # <limits.h> exists even on freestanding compilers.
5249 # On the NeXT, cc -E runs the code through the compiler's parser,
5250 # not just through cpp. "Syntax error" is here to catch this case.
5251 cat >conftest.$ac_ext <<_ACEOF
5252/* confdefs.h. */
5253_ACEOF
5254cat confdefs.h >>conftest.$ac_ext
5255cat >>conftest.$ac_ext <<_ACEOF
5256/* end confdefs.h. */
5257#ifdef __STDC__
5258# include <limits.h>
5259#else
5260# include <assert.h>
5261#endif
5262 Syntax error
5263_ACEOF
5264if { (ac_try="$ac_cpp conftest.$ac_ext"
5265case "(($ac_try" in
5266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267 *) ac_try_echo=$ac_try;;
5268esac
5269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5271 ac_status=$?
5272 grep -v '^ *+' conftest.er1 >conftest.err
5273 rm -f conftest.er1
5274 cat conftest.err >&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005276 (exit $ac_status); } >/dev/null; then
5277 if test -s conftest.err; then
5278 ac_cpp_err=$ac_c_preproc_warn_flag
5279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5280 else
5281 ac_cpp_err=
5282 fi
5283else
5284 ac_cpp_err=yes
5285fi
5286if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005287 :
5288else
5289 echo "$as_me: failed program was:" >&5
5290sed 's/^/| /' conftest.$ac_ext >&5
5291
5292 # Broken: fails on valid input.
5293continue
5294fi
5295
5296rm -f conftest.err conftest.$ac_ext
5297
5298 # OK, works on sane cases. Now check whether nonexistent headers
5299 # can be detected and how.
5300 cat >conftest.$ac_ext <<_ACEOF
5301/* confdefs.h. */
5302_ACEOF
5303cat confdefs.h >>conftest.$ac_ext
5304cat >>conftest.$ac_ext <<_ACEOF
5305/* end confdefs.h. */
5306#include <ac_nonexistent.h>
5307_ACEOF
5308if { (ac_try="$ac_cpp conftest.$ac_ext"
5309case "(($ac_try" in
5310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5311 *) ac_try_echo=$ac_try;;
5312esac
5313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5315 ac_status=$?
5316 grep -v '^ *+' conftest.er1 >conftest.err
5317 rm -f conftest.er1
5318 cat conftest.err >&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005320 (exit $ac_status); } >/dev/null; then
5321 if test -s conftest.err; then
5322 ac_cpp_err=$ac_c_preproc_warn_flag
5323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5324 else
5325 ac_cpp_err=
5326 fi
5327else
5328 ac_cpp_err=yes
5329fi
5330if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005331 # Broken: success on invalid input.
5332continue
5333else
5334 echo "$as_me: failed program was:" >&5
5335sed 's/^/| /' conftest.$ac_ext >&5
5336
5337 # Passes both tests.
5338ac_preproc_ok=:
5339break
5340fi
5341
5342rm -f conftest.err conftest.$ac_ext
5343
5344done
5345# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5346rm -f conftest.err conftest.$ac_ext
5347if $ac_preproc_ok; then
5348 break
5349fi
5350
5351 done
5352 ac_cv_prog_CPP=$CPP
5353
5354fi
5355 CPP=$ac_cv_prog_CPP
5356else
5357 ac_cv_prog_CPP=$CPP
5358fi
5359{ echo "$as_me:$LINENO: result: $CPP" >&5
5360echo "${ECHO_T}$CPP" >&6; }
5361ac_preproc_ok=false
5362for ac_c_preproc_warn_flag in '' yes
5363do
5364 # Use a header file that comes with gcc, so configuring glibc
5365 # with a fresh cross-compiler works.
5366 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5367 # <limits.h> exists even on freestanding compilers.
5368 # On the NeXT, cc -E runs the code through the compiler's parser,
5369 # not just through cpp. "Syntax error" is here to catch this case.
5370 cat >conftest.$ac_ext <<_ACEOF
5371/* confdefs.h. */
5372_ACEOF
5373cat confdefs.h >>conftest.$ac_ext
5374cat >>conftest.$ac_ext <<_ACEOF
5375/* end confdefs.h. */
5376#ifdef __STDC__
5377# include <limits.h>
5378#else
5379# include <assert.h>
5380#endif
5381 Syntax error
5382_ACEOF
5383if { (ac_try="$ac_cpp conftest.$ac_ext"
5384case "(($ac_try" in
5385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5386 *) ac_try_echo=$ac_try;;
5387esac
5388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5390 ac_status=$?
5391 grep -v '^ *+' conftest.er1 >conftest.err
5392 rm -f conftest.er1
5393 cat conftest.err >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005395 (exit $ac_status); } >/dev/null; then
5396 if test -s conftest.err; then
5397 ac_cpp_err=$ac_c_preproc_warn_flag
5398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5399 else
5400 ac_cpp_err=
5401 fi
5402else
5403 ac_cpp_err=yes
5404fi
5405if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005406 :
5407else
5408 echo "$as_me: failed program was:" >&5
5409sed 's/^/| /' conftest.$ac_ext >&5
5410
5411 # Broken: fails on valid input.
5412continue
5413fi
5414
5415rm -f conftest.err conftest.$ac_ext
5416
5417 # OK, works on sane cases. Now check whether nonexistent headers
5418 # can be detected and how.
5419 cat >conftest.$ac_ext <<_ACEOF
5420/* confdefs.h. */
5421_ACEOF
5422cat confdefs.h >>conftest.$ac_ext
5423cat >>conftest.$ac_ext <<_ACEOF
5424/* end confdefs.h. */
5425#include <ac_nonexistent.h>
5426_ACEOF
5427if { (ac_try="$ac_cpp conftest.$ac_ext"
5428case "(($ac_try" in
5429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430 *) ac_try_echo=$ac_try;;
5431esac
5432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5434 ac_status=$?
5435 grep -v '^ *+' conftest.er1 >conftest.err
5436 rm -f conftest.er1
5437 cat conftest.err >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005439 (exit $ac_status); } >/dev/null; then
5440 if test -s conftest.err; then
5441 ac_cpp_err=$ac_c_preproc_warn_flag
5442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5443 else
5444 ac_cpp_err=
5445 fi
5446else
5447 ac_cpp_err=yes
5448fi
5449if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005450 # Broken: success on invalid input.
5451continue
5452else
5453 echo "$as_me: failed program was:" >&5
5454sed 's/^/| /' conftest.$ac_ext >&5
5455
5456 # Passes both tests.
5457ac_preproc_ok=:
5458break
5459fi
5460
5461rm -f conftest.err conftest.$ac_ext
5462
5463done
5464# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5465rm -f conftest.err conftest.$ac_ext
5466if $ac_preproc_ok; then
5467 :
5468else
5469 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5470See \`config.log' for more details." >&5
5471echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5472See \`config.log' for more details." >&2;}
5473 { (exit 1); exit 1; }; }
5474fi
5475
5476ac_ext=c
5477ac_cpp='$CPP $CPPFLAGS'
5478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5480ac_compiler_gnu=$ac_cv_c_compiler_gnu
5481
5482ac_ext=c
5483ac_cpp='$CPP $CPPFLAGS'
5484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5486ac_compiler_gnu=$ac_cv_c_compiler_gnu
5487if test -n "$ac_tool_prefix"; then
5488 for ac_prog in gcc
5489 do
5490 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5491set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5492{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5494if test "${ac_cv_prog_CC+set}" = set; then
5495 echo $ECHO_N "(cached) $ECHO_C" >&6
5496else
5497 if test -n "$CC"; then
5498 ac_cv_prog_CC="$CC" # Let the user override the test.
5499else
5500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501for as_dir in $PATH
5502do
5503 IFS=$as_save_IFS
5504 test -z "$as_dir" && as_dir=.
5505 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005506 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 +00005507 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5509 break 2
5510 fi
5511done
5512done
5513IFS=$as_save_IFS
5514
5515fi
5516fi
5517CC=$ac_cv_prog_CC
5518if test -n "$CC"; then
5519 { echo "$as_me:$LINENO: result: $CC" >&5
5520echo "${ECHO_T}$CC" >&6; }
5521else
5522 { echo "$as_me:$LINENO: result: no" >&5
5523echo "${ECHO_T}no" >&6; }
5524fi
5525
5526
5527 test -n "$CC" && break
5528 done
5529fi
5530if test -z "$CC"; then
5531 ac_ct_CC=$CC
5532 for ac_prog in gcc
5533do
5534 # Extract the first word of "$ac_prog", so it can be a program name with args.
5535set dummy $ac_prog; ac_word=$2
5536{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5538if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5540else
5541 if test -n "$ac_ct_CC"; then
5542 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5543else
5544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545for as_dir in $PATH
5546do
5547 IFS=$as_save_IFS
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005550 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 +00005551 ac_cv_prog_ac_ct_CC="$ac_prog"
5552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 break 2
5554 fi
5555done
5556done
5557IFS=$as_save_IFS
5558
5559fi
5560fi
5561ac_ct_CC=$ac_cv_prog_ac_ct_CC
5562if test -n "$ac_ct_CC"; then
5563 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5564echo "${ECHO_T}$ac_ct_CC" >&6; }
5565else
5566 { echo "$as_me:$LINENO: result: no" >&5
5567echo "${ECHO_T}no" >&6; }
5568fi
5569
5570
5571 test -n "$ac_ct_CC" && break
5572done
5573
5574 if test "x$ac_ct_CC" = x; then
5575 CC=""
5576 else
5577 case $cross_compiling:$ac_tool_warned in
5578yes:)
5579{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5580whose name does not start with the host triplet. If you think this
5581configuration is useful to you, please write to autoconf@gnu.org." >&5
5582echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5583whose name does not start with the host triplet. If you think this
5584configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5585ac_tool_warned=yes ;;
5586esac
5587 CC=$ac_ct_CC
5588 fi
5589fi
5590
5591
5592test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5593See \`config.log' for more details." >&5
5594echo "$as_me: error: no acceptable C compiler found in \$PATH
5595See \`config.log' for more details." >&2;}
5596 { (exit 1); exit 1; }; }
5597
5598# Provide some information about the compiler.
5599echo "$as_me:$LINENO: checking for C compiler version" >&5
5600ac_compiler=`set X $ac_compile; echo $2`
5601{ (ac_try="$ac_compiler --version >&5"
5602case "(($ac_try" in
5603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5604 *) ac_try_echo=$ac_try;;
5605esac
5606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5607 (eval "$ac_compiler --version >&5") 2>&5
5608 ac_status=$?
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); }
5611{ (ac_try="$ac_compiler -v >&5"
5612case "(($ac_try" in
5613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5614 *) ac_try_echo=$ac_try;;
5615esac
5616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5617 (eval "$ac_compiler -v >&5") 2>&5
5618 ac_status=$?
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }
5621{ (ac_try="$ac_compiler -V >&5"
5622case "(($ac_try" in
5623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624 *) ac_try_echo=$ac_try;;
5625esac
5626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5627 (eval "$ac_compiler -V >&5") 2>&5
5628 ac_status=$?
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); }
5631
5632{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5633echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5634if test "${ac_cv_c_compiler_gnu+set}" = set; then
5635 echo $ECHO_N "(cached) $ECHO_C" >&6
5636else
5637 cat >conftest.$ac_ext <<_ACEOF
5638/* confdefs.h. */
5639_ACEOF
5640cat confdefs.h >>conftest.$ac_ext
5641cat >>conftest.$ac_ext <<_ACEOF
5642/* end confdefs.h. */
5643
5644int
5645main ()
5646{
5647#ifndef __GNUC__
5648 choke me
5649#endif
5650
5651 ;
5652 return 0;
5653}
5654_ACEOF
5655rm -f conftest.$ac_objext
5656if { (ac_try="$ac_compile"
5657case "(($ac_try" in
5658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659 *) ac_try_echo=$ac_try;;
5660esac
5661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662 (eval "$ac_compile") 2>conftest.er1
5663 ac_status=$?
5664 grep -v '^ *+' conftest.er1 >conftest.err
5665 rm -f conftest.er1
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005668 (exit $ac_status); } &&
5669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5670 { (case "(($ac_try" in
5671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672 *) ac_try_echo=$ac_try;;
5673esac
5674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5675 (eval "$ac_try") 2>&5
5676 ac_status=$?
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; } &&
5679 { ac_try='test -s conftest.$ac_objext'
5680 { (case "(($ac_try" in
5681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682 *) ac_try_echo=$ac_try;;
5683esac
5684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685 (eval "$ac_try") 2>&5
5686 ac_status=$?
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005689 ac_compiler_gnu=yes
5690else
5691 echo "$as_me: failed program was:" >&5
5692sed 's/^/| /' conftest.$ac_ext >&5
5693
5694 ac_compiler_gnu=no
5695fi
5696
5697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5698ac_cv_c_compiler_gnu=$ac_compiler_gnu
5699
5700fi
5701{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5702echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5703GCC=`test $ac_compiler_gnu = yes && echo yes`
5704ac_test_CFLAGS=${CFLAGS+set}
5705ac_save_CFLAGS=$CFLAGS
5706{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5707echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5708if test "${ac_cv_prog_cc_g+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5710else
5711 ac_save_c_werror_flag=$ac_c_werror_flag
5712 ac_c_werror_flag=yes
5713 ac_cv_prog_cc_g=no
5714 CFLAGS="-g"
5715 cat >conftest.$ac_ext <<_ACEOF
5716/* confdefs.h. */
5717_ACEOF
5718cat confdefs.h >>conftest.$ac_ext
5719cat >>conftest.$ac_ext <<_ACEOF
5720/* end confdefs.h. */
5721
5722int
5723main ()
5724{
5725
5726 ;
5727 return 0;
5728}
5729_ACEOF
5730rm -f conftest.$ac_objext
5731if { (ac_try="$ac_compile"
5732case "(($ac_try" in
5733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734 *) ac_try_echo=$ac_try;;
5735esac
5736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737 (eval "$ac_compile") 2>conftest.er1
5738 ac_status=$?
5739 grep -v '^ *+' conftest.er1 >conftest.err
5740 rm -f conftest.er1
5741 cat conftest.err >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005743 (exit $ac_status); } &&
5744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5745 { (case "(($ac_try" in
5746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5747 *) ac_try_echo=$ac_try;;
5748esac
5749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5750 (eval "$ac_try") 2>&5
5751 ac_status=$?
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }; } &&
5754 { ac_try='test -s conftest.$ac_objext'
5755 { (case "(($ac_try" in
5756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5757 *) ac_try_echo=$ac_try;;
5758esac
5759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5760 (eval "$ac_try") 2>&5
5761 ac_status=$?
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005764 ac_cv_prog_cc_g=yes
5765else
5766 echo "$as_me: failed program was:" >&5
5767sed 's/^/| /' conftest.$ac_ext >&5
5768
5769 CFLAGS=""
5770 cat >conftest.$ac_ext <<_ACEOF
5771/* confdefs.h. */
5772_ACEOF
5773cat confdefs.h >>conftest.$ac_ext
5774cat >>conftest.$ac_ext <<_ACEOF
5775/* end confdefs.h. */
5776
5777int
5778main ()
5779{
5780
5781 ;
5782 return 0;
5783}
5784_ACEOF
5785rm -f conftest.$ac_objext
5786if { (ac_try="$ac_compile"
5787case "(($ac_try" in
5788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789 *) ac_try_echo=$ac_try;;
5790esac
5791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792 (eval "$ac_compile") 2>conftest.er1
5793 ac_status=$?
5794 grep -v '^ *+' conftest.er1 >conftest.err
5795 rm -f conftest.er1
5796 cat conftest.err >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005798 (exit $ac_status); } &&
5799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5800 { (case "(($ac_try" in
5801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802 *) ac_try_echo=$ac_try;;
5803esac
5804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805 (eval "$ac_try") 2>&5
5806 ac_status=$?
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }; } &&
5809 { ac_try='test -s conftest.$ac_objext'
5810 { (case "(($ac_try" in
5811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5812 *) ac_try_echo=$ac_try;;
5813esac
5814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5815 (eval "$ac_try") 2>&5
5816 ac_status=$?
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005819 :
5820else
5821 echo "$as_me: failed program was:" >&5
5822sed 's/^/| /' conftest.$ac_ext >&5
5823
5824 ac_c_werror_flag=$ac_save_c_werror_flag
5825 CFLAGS="-g"
5826 cat >conftest.$ac_ext <<_ACEOF
5827/* confdefs.h. */
5828_ACEOF
5829cat confdefs.h >>conftest.$ac_ext
5830cat >>conftest.$ac_ext <<_ACEOF
5831/* end confdefs.h. */
5832
5833int
5834main ()
5835{
5836
5837 ;
5838 return 0;
5839}
5840_ACEOF
5841rm -f conftest.$ac_objext
5842if { (ac_try="$ac_compile"
5843case "(($ac_try" in
5844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5845 *) ac_try_echo=$ac_try;;
5846esac
5847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5848 (eval "$ac_compile") 2>conftest.er1
5849 ac_status=$?
5850 grep -v '^ *+' conftest.er1 >conftest.err
5851 rm -f conftest.er1
5852 cat conftest.err >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005854 (exit $ac_status); } &&
5855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5856 { (case "(($ac_try" in
5857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5858 *) ac_try_echo=$ac_try;;
5859esac
5860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5861 (eval "$ac_try") 2>&5
5862 ac_status=$?
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); }; } &&
5865 { ac_try='test -s conftest.$ac_objext'
5866 { (case "(($ac_try" in
5867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868 *) ac_try_echo=$ac_try;;
5869esac
5870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5871 (eval "$ac_try") 2>&5
5872 ac_status=$?
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005875 ac_cv_prog_cc_g=yes
5876else
5877 echo "$as_me: failed program was:" >&5
5878sed 's/^/| /' conftest.$ac_ext >&5
5879
5880
5881fi
5882
5883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884fi
5885
5886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5887fi
5888
5889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5890 ac_c_werror_flag=$ac_save_c_werror_flag
5891fi
5892{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5893echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5894if test "$ac_test_CFLAGS" = set; then
5895 CFLAGS=$ac_save_CFLAGS
5896elif test $ac_cv_prog_cc_g = yes; then
5897 if test "$GCC" = yes; then
5898 CFLAGS="-g -O2"
5899 else
5900 CFLAGS="-g"
5901 fi
5902else
5903 if test "$GCC" = yes; then
5904 CFLAGS="-O2"
5905 else
5906 CFLAGS=
5907 fi
5908fi
5909{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5910echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5911if test "${ac_cv_prog_cc_c89+set}" = set; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5913else
5914 ac_cv_prog_cc_c89=no
5915ac_save_CC=$CC
5916cat >conftest.$ac_ext <<_ACEOF
5917/* confdefs.h. */
5918_ACEOF
5919cat confdefs.h >>conftest.$ac_ext
5920cat >>conftest.$ac_ext <<_ACEOF
5921/* end confdefs.h. */
5922#include <stdarg.h>
5923#include <stdio.h>
5924#include <sys/types.h>
5925#include <sys/stat.h>
5926/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5927struct buf { int x; };
5928FILE * (*rcsopen) (struct buf *, struct stat *, int);
5929static char *e (p, i)
5930 char **p;
5931 int i;
5932{
5933 return p[i];
5934}
5935static char *f (char * (*g) (char **, int), char **p, ...)
5936{
5937 char *s;
5938 va_list v;
5939 va_start (v,p);
5940 s = g (p, va_arg (v,int));
5941 va_end (v);
5942 return s;
5943}
5944
5945/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5946 function prototypes and stuff, but not '\xHH' hex character constants.
5947 These don't provoke an error unfortunately, instead are silently treated
5948 as 'x'. The following induces an error, until -std is added to get
5949 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5950 array size at least. It's necessary to write '\x00'==0 to get something
5951 that's true only with -std. */
5952int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5953
5954/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5955 inside strings and character constants. */
5956#define FOO(x) 'x'
5957int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5958
5959int test (int i, double x);
5960struct s1 {int (*f) (int a);};
5961struct s2 {int (*f) (double a);};
5962int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5963int argc;
5964char **argv;
5965int
5966main ()
5967{
5968return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5969 ;
5970 return 0;
5971}
5972_ACEOF
5973for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5974 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5975do
5976 CC="$ac_save_CC $ac_arg"
5977 rm -f conftest.$ac_objext
5978if { (ac_try="$ac_compile"
5979case "(($ac_try" in
5980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981 *) ac_try_echo=$ac_try;;
5982esac
5983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984 (eval "$ac_compile") 2>conftest.er1
5985 ac_status=$?
5986 grep -v '^ *+' conftest.er1 >conftest.err
5987 rm -f conftest.er1
5988 cat conftest.err >&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005990 (exit $ac_status); } &&
5991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5992 { (case "(($ac_try" in
5993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5994 *) ac_try_echo=$ac_try;;
5995esac
5996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5997 (eval "$ac_try") 2>&5
5998 ac_status=$?
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; } &&
6001 { ac_try='test -s conftest.$ac_objext'
6002 { (case "(($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_try") 2>&5
6008 ac_status=$?
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006011 ac_cv_prog_cc_c89=$ac_arg
6012else
6013 echo "$as_me: failed program was:" >&5
6014sed 's/^/| /' conftest.$ac_ext >&5
6015
6016
6017fi
6018
6019rm -f core conftest.err conftest.$ac_objext
6020 test "x$ac_cv_prog_cc_c89" != "xno" && break
6021done
6022rm -f conftest.$ac_ext
6023CC=$ac_save_CC
6024
6025fi
6026# AC_CACHE_VAL
6027case "x$ac_cv_prog_cc_c89" in
6028 x)
6029 { echo "$as_me:$LINENO: result: none needed" >&5
6030echo "${ECHO_T}none needed" >&6; } ;;
6031 xno)
6032 { echo "$as_me:$LINENO: result: unsupported" >&5
6033echo "${ECHO_T}unsupported" >&6; } ;;
6034 *)
6035 CC="$CC $ac_cv_prog_cc_c89"
6036 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6037echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6038esac
6039
6040
6041ac_ext=c
6042ac_cpp='$CPP $CPPFLAGS'
6043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6045ac_compiler_gnu=$ac_cv_c_compiler_gnu
6046
6047ac_ext=cpp
6048ac_cpp='$CXXCPP $CPPFLAGS'
6049ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6050ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6051ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6052if test -z "$CXX"; then
6053 if test -n "$CCC"; then
6054 CXX=$CCC
6055 else
6056 if test -n "$ac_tool_prefix"; then
6057 for ac_prog in g++
6058 do
6059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6060set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6061{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6063if test "${ac_cv_prog_CXX+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6065else
6066 if test -n "$CXX"; then
6067 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6068else
6069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070for as_dir in $PATH
6071do
6072 IFS=$as_save_IFS
6073 test -z "$as_dir" && as_dir=.
6074 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006075 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 +00006076 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6078 break 2
6079 fi
6080done
6081done
6082IFS=$as_save_IFS
6083
6084fi
6085fi
6086CXX=$ac_cv_prog_CXX
6087if test -n "$CXX"; then
6088 { echo "$as_me:$LINENO: result: $CXX" >&5
6089echo "${ECHO_T}$CXX" >&6; }
6090else
6091 { echo "$as_me:$LINENO: result: no" >&5
6092echo "${ECHO_T}no" >&6; }
6093fi
6094
6095
6096 test -n "$CXX" && break
6097 done
6098fi
6099if test -z "$CXX"; then
6100 ac_ct_CXX=$CXX
6101 for ac_prog in g++
6102do
6103 # Extract the first word of "$ac_prog", so it can be a program name with args.
6104set dummy $ac_prog; ac_word=$2
6105{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6107if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6109else
6110 if test -n "$ac_ct_CXX"; then
6111 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6112else
6113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114for as_dir in $PATH
6115do
6116 IFS=$as_save_IFS
6117 test -z "$as_dir" && as_dir=.
6118 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006119 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 +00006120 ac_cv_prog_ac_ct_CXX="$ac_prog"
6121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 break 2
6123 fi
6124done
6125done
6126IFS=$as_save_IFS
6127
6128fi
6129fi
6130ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6131if test -n "$ac_ct_CXX"; then
6132 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6133echo "${ECHO_T}$ac_ct_CXX" >&6; }
6134else
6135 { echo "$as_me:$LINENO: result: no" >&5
6136echo "${ECHO_T}no" >&6; }
6137fi
6138
6139
6140 test -n "$ac_ct_CXX" && break
6141done
6142
6143 if test "x$ac_ct_CXX" = x; then
6144 CXX="g++"
6145 else
6146 case $cross_compiling:$ac_tool_warned in
6147yes:)
6148{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6149whose name does not start with the host triplet. If you think this
6150configuration is useful to you, please write to autoconf@gnu.org." >&5
6151echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6152whose name does not start with the host triplet. If you think this
6153configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6154ac_tool_warned=yes ;;
6155esac
6156 CXX=$ac_ct_CXX
6157 fi
6158fi
6159
6160 fi
6161fi
6162# Provide some information about the compiler.
6163echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6164ac_compiler=`set X $ac_compile; echo $2`
6165{ (ac_try="$ac_compiler --version >&5"
6166case "(($ac_try" in
6167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6168 *) ac_try_echo=$ac_try;;
6169esac
6170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6171 (eval "$ac_compiler --version >&5") 2>&5
6172 ac_status=$?
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }
6175{ (ac_try="$ac_compiler -v >&5"
6176case "(($ac_try" in
6177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6178 *) ac_try_echo=$ac_try;;
6179esac
6180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6181 (eval "$ac_compiler -v >&5") 2>&5
6182 ac_status=$?
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }
6185{ (ac_try="$ac_compiler -V >&5"
6186case "(($ac_try" in
6187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188 *) ac_try_echo=$ac_try;;
6189esac
6190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6191 (eval "$ac_compiler -V >&5") 2>&5
6192 ac_status=$?
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }
6195
6196{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6197echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6198if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6200else
6201 cat >conftest.$ac_ext <<_ACEOF
6202/* confdefs.h. */
6203_ACEOF
6204cat confdefs.h >>conftest.$ac_ext
6205cat >>conftest.$ac_ext <<_ACEOF
6206/* end confdefs.h. */
6207
6208int
6209main ()
6210{
6211#ifndef __GNUC__
6212 choke me
6213#endif
6214
6215 ;
6216 return 0;
6217}
6218_ACEOF
6219rm -f conftest.$ac_objext
6220if { (ac_try="$ac_compile"
6221case "(($ac_try" in
6222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6223 *) ac_try_echo=$ac_try;;
6224esac
6225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6226 (eval "$ac_compile") 2>conftest.er1
6227 ac_status=$?
6228 grep -v '^ *+' conftest.er1 >conftest.err
6229 rm -f conftest.er1
6230 cat conftest.err >&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006232 (exit $ac_status); } &&
6233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6234 { (case "(($ac_try" in
6235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6236 *) ac_try_echo=$ac_try;;
6237esac
6238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6239 (eval "$ac_try") 2>&5
6240 ac_status=$?
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); }; } &&
6243 { ac_try='test -s conftest.$ac_objext'
6244 { (case "(($ac_try" in
6245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246 *) ac_try_echo=$ac_try;;
6247esac
6248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249 (eval "$ac_try") 2>&5
6250 ac_status=$?
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006253 ac_compiler_gnu=yes
6254else
6255 echo "$as_me: failed program was:" >&5
6256sed 's/^/| /' conftest.$ac_ext >&5
6257
6258 ac_compiler_gnu=no
6259fi
6260
6261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6262ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6263
6264fi
6265{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6266echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6267GXX=`test $ac_compiler_gnu = yes && echo yes`
6268ac_test_CXXFLAGS=${CXXFLAGS+set}
6269ac_save_CXXFLAGS=$CXXFLAGS
6270{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6271echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6272if test "${ac_cv_prog_cxx_g+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6274else
6275 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6276 ac_cxx_werror_flag=yes
6277 ac_cv_prog_cxx_g=no
6278 CXXFLAGS="-g"
6279 cat >conftest.$ac_ext <<_ACEOF
6280/* confdefs.h. */
6281_ACEOF
6282cat confdefs.h >>conftest.$ac_ext
6283cat >>conftest.$ac_ext <<_ACEOF
6284/* end confdefs.h. */
6285
6286int
6287main ()
6288{
6289
6290 ;
6291 return 0;
6292}
6293_ACEOF
6294rm -f conftest.$ac_objext
6295if { (ac_try="$ac_compile"
6296case "(($ac_try" in
6297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6298 *) ac_try_echo=$ac_try;;
6299esac
6300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6301 (eval "$ac_compile") 2>conftest.er1
6302 ac_status=$?
6303 grep -v '^ *+' conftest.er1 >conftest.err
6304 rm -f conftest.er1
6305 cat conftest.err >&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006307 (exit $ac_status); } &&
6308 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6309 { (case "(($ac_try" in
6310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6311 *) ac_try_echo=$ac_try;;
6312esac
6313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6314 (eval "$ac_try") 2>&5
6315 ac_status=$?
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); }; } &&
6318 { ac_try='test -s conftest.$ac_objext'
6319 { (case "(($ac_try" in
6320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6321 *) ac_try_echo=$ac_try;;
6322esac
6323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6324 (eval "$ac_try") 2>&5
6325 ac_status=$?
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006328 ac_cv_prog_cxx_g=yes
6329else
6330 echo "$as_me: failed program was:" >&5
6331sed 's/^/| /' conftest.$ac_ext >&5
6332
6333 CXXFLAGS=""
6334 cat >conftest.$ac_ext <<_ACEOF
6335/* confdefs.h. */
6336_ACEOF
6337cat confdefs.h >>conftest.$ac_ext
6338cat >>conftest.$ac_ext <<_ACEOF
6339/* end confdefs.h. */
6340
6341int
6342main ()
6343{
6344
6345 ;
6346 return 0;
6347}
6348_ACEOF
6349rm -f conftest.$ac_objext
6350if { (ac_try="$ac_compile"
6351case "(($ac_try" in
6352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6353 *) ac_try_echo=$ac_try;;
6354esac
6355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6356 (eval "$ac_compile") 2>conftest.er1
6357 ac_status=$?
6358 grep -v '^ *+' conftest.er1 >conftest.err
6359 rm -f conftest.er1
6360 cat conftest.err >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006362 (exit $ac_status); } &&
6363 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6364 { (case "(($ac_try" in
6365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6366 *) ac_try_echo=$ac_try;;
6367esac
6368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6369 (eval "$ac_try") 2>&5
6370 ac_status=$?
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; } &&
6373 { ac_try='test -s conftest.$ac_objext'
6374 { (case "(($ac_try" in
6375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6376 *) ac_try_echo=$ac_try;;
6377esac
6378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6379 (eval "$ac_try") 2>&5
6380 ac_status=$?
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006383 :
6384else
6385 echo "$as_me: failed program was:" >&5
6386sed 's/^/| /' conftest.$ac_ext >&5
6387
6388 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6389 CXXFLAGS="-g"
6390 cat >conftest.$ac_ext <<_ACEOF
6391/* confdefs.h. */
6392_ACEOF
6393cat confdefs.h >>conftest.$ac_ext
6394cat >>conftest.$ac_ext <<_ACEOF
6395/* end confdefs.h. */
6396
6397int
6398main ()
6399{
6400
6401 ;
6402 return 0;
6403}
6404_ACEOF
6405rm -f conftest.$ac_objext
6406if { (ac_try="$ac_compile"
6407case "(($ac_try" in
6408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6409 *) ac_try_echo=$ac_try;;
6410esac
6411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6412 (eval "$ac_compile") 2>conftest.er1
6413 ac_status=$?
6414 grep -v '^ *+' conftest.er1 >conftest.err
6415 rm -f conftest.er1
6416 cat conftest.err >&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006418 (exit $ac_status); } &&
6419 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6420 { (case "(($ac_try" in
6421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422 *) ac_try_echo=$ac_try;;
6423esac
6424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6425 (eval "$ac_try") 2>&5
6426 ac_status=$?
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; } &&
6429 { ac_try='test -s conftest.$ac_objext'
6430 { (case "(($ac_try" in
6431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6432 *) ac_try_echo=$ac_try;;
6433esac
6434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6435 (eval "$ac_try") 2>&5
6436 ac_status=$?
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006439 ac_cv_prog_cxx_g=yes
6440else
6441 echo "$as_me: failed program was:" >&5
6442sed 's/^/| /' conftest.$ac_ext >&5
6443
6444
6445fi
6446
6447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6448fi
6449
6450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6451fi
6452
6453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6454 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6455fi
6456{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6457echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6458if test "$ac_test_CXXFLAGS" = set; then
6459 CXXFLAGS=$ac_save_CXXFLAGS
6460elif test $ac_cv_prog_cxx_g = yes; then
6461 if test "$GXX" = yes; then
6462 CXXFLAGS="-g -O2"
6463 else
6464 CXXFLAGS="-g"
6465 fi
6466else
6467 if test "$GXX" = yes; then
6468 CXXFLAGS="-O2"
6469 else
6470 CXXFLAGS=
6471 fi
6472fi
6473ac_ext=c
6474ac_cpp='$CPP $CPPFLAGS'
6475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6477ac_compiler_gnu=$ac_cv_c_compiler_gnu
6478
Reid Spencera773bd52006-08-04 18:18:08 +00006479
6480{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6481echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6482if test "${lt_cv_path_NM+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6484else
6485 if test -n "$NM"; then
6486 # Let the user override the test.
6487 lt_cv_path_NM="$NM"
6488else
6489 lt_nm_to_check="${ac_tool_prefix}nm"
6490 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6491 lt_nm_to_check="$lt_nm_to_check nm"
6492 fi
6493 for lt_tmp_nm in $lt_nm_to_check; do
6494 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6495 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6496 IFS="$lt_save_ifs"
6497 test -z "$ac_dir" && ac_dir=.
6498 tmp_nm="$ac_dir/$lt_tmp_nm"
6499 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6500 # Check to see if the nm accepts a BSD-compat flag.
6501 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6502 # nm: unknown option "B" ignored
6503 # Tru64's nm complains that /dev/null is an invalid object file
6504 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6505 */dev/null* | *'Invalid file or object type'*)
6506 lt_cv_path_NM="$tmp_nm -B"
6507 break
6508 ;;
6509 *)
6510 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6511 */dev/null*)
6512 lt_cv_path_NM="$tmp_nm -p"
6513 break
6514 ;;
6515 *)
6516 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6517 continue # so that we can try to find one that supports BSD flags
6518 ;;
6519 esac
6520 ;;
6521 esac
6522 fi
6523 done
6524 IFS="$lt_save_ifs"
6525 done
6526 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6527fi
6528fi
6529{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6530echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6531NM="$lt_cv_path_NM"
6532
6533
6534
6535{ echo "$as_me:$LINENO: checking for GNU make" >&5
6536echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6537if test "${llvm_cv_gnu_make_command+set}" = set; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6539else
6540 llvm_cv_gnu_make_command=''
6541 for a in "$MAKE" make gmake gnumake ; do
6542 if test -z "$a" ; then continue ; fi ;
6543 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6544 then
6545 llvm_cv_gnu_make_command=$a ;
6546 break;
6547 fi
6548 done
6549fi
6550{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6551echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6552 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6553 ifGNUmake='' ;
6554 else
6555 ifGNUmake='#' ;
6556 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6557echo "${ECHO_T}\"Not found\"" >&6; };
6558 fi
6559
6560
6561{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6562echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6563LN_S=$as_ln_s
6564if test "$LN_S" = "ln -s"; then
6565 { echo "$as_me:$LINENO: result: yes" >&5
6566echo "${ECHO_T}yes" >&6; }
6567else
6568 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6569echo "${ECHO_T}no, using $LN_S" >&6; }
6570fi
6571
6572# Extract the first word of "cmp", so it can be a program name with args.
6573set dummy cmp; ac_word=$2
6574{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6576if test "${ac_cv_path_CMP+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
6578else
6579 case $CMP in
6580 [\\/]* | ?:[\\/]*)
6581 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6582 ;;
6583 *)
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585for as_dir in $PATH
6586do
6587 IFS=$as_save_IFS
6588 test -z "$as_dir" && as_dir=.
6589 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006590 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 +00006591 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6593 break 2
6594 fi
6595done
6596done
6597IFS=$as_save_IFS
6598
6599 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6600 ;;
6601esac
6602fi
6603CMP=$ac_cv_path_CMP
6604if test -n "$CMP"; then
6605 { echo "$as_me:$LINENO: result: $CMP" >&5
6606echo "${ECHO_T}$CMP" >&6; }
6607else
6608 { echo "$as_me:$LINENO: result: no" >&5
6609echo "${ECHO_T}no" >&6; }
6610fi
6611
6612
6613# Extract the first word of "cp", so it can be a program name with args.
6614set dummy cp; ac_word=$2
6615{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6617if test "${ac_cv_path_CP+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6619else
6620 case $CP in
6621 [\\/]* | ?:[\\/]*)
6622 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6623 ;;
6624 *)
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626for as_dir in $PATH
6627do
6628 IFS=$as_save_IFS
6629 test -z "$as_dir" && as_dir=.
6630 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006631 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 +00006632 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6634 break 2
6635 fi
6636done
6637done
6638IFS=$as_save_IFS
6639
6640 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6641 ;;
6642esac
6643fi
6644CP=$ac_cv_path_CP
6645if test -n "$CP"; then
6646 { echo "$as_me:$LINENO: result: $CP" >&5
6647echo "${ECHO_T}$CP" >&6; }
6648else
6649 { echo "$as_me:$LINENO: result: no" >&5
6650echo "${ECHO_T}no" >&6; }
6651fi
6652
6653
6654# Extract the first word of "date", so it can be a program name with args.
6655set dummy date; ac_word=$2
6656{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6658if test "${ac_cv_path_DATE+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6660else
6661 case $DATE in
6662 [\\/]* | ?:[\\/]*)
6663 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6664 ;;
6665 *)
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667for as_dir in $PATH
6668do
6669 IFS=$as_save_IFS
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006672 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 +00006673 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 break 2
6676 fi
6677done
6678done
6679IFS=$as_save_IFS
6680
6681 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6682 ;;
6683esac
6684fi
6685DATE=$ac_cv_path_DATE
6686if test -n "$DATE"; then
6687 { echo "$as_me:$LINENO: result: $DATE" >&5
6688echo "${ECHO_T}$DATE" >&6; }
6689else
6690 { echo "$as_me:$LINENO: result: no" >&5
6691echo "${ECHO_T}no" >&6; }
6692fi
6693
6694
6695# Extract the first word of "find", so it can be a program name with args.
6696set dummy find; ac_word=$2
6697{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6699if test "${ac_cv_path_FIND+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6701else
6702 case $FIND in
6703 [\\/]* | ?:[\\/]*)
6704 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6705 ;;
6706 *)
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708for as_dir in $PATH
6709do
6710 IFS=$as_save_IFS
6711 test -z "$as_dir" && as_dir=.
6712 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006713 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 +00006714 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716 break 2
6717 fi
6718done
6719done
6720IFS=$as_save_IFS
6721
6722 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6723 ;;
6724esac
6725fi
6726FIND=$ac_cv_path_FIND
6727if test -n "$FIND"; then
6728 { echo "$as_me:$LINENO: result: $FIND" >&5
6729echo "${ECHO_T}$FIND" >&6; }
6730else
6731 { echo "$as_me:$LINENO: result: no" >&5
6732echo "${ECHO_T}no" >&6; }
6733fi
6734
6735
6736# Extract the first word of "grep", so it can be a program name with args.
6737set dummy grep; ac_word=$2
6738{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6740if test "${ac_cv_path_GREP+set}" = set; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6742else
6743 case $GREP in
6744 [\\/]* | ?:[\\/]*)
6745 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6746 ;;
6747 *)
6748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749for as_dir in $PATH
6750do
6751 IFS=$as_save_IFS
6752 test -z "$as_dir" && as_dir=.
6753 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006754 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 +00006755 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6757 break 2
6758 fi
6759done
6760done
6761IFS=$as_save_IFS
6762
6763 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6764 ;;
6765esac
6766fi
6767GREP=$ac_cv_path_GREP
6768if test -n "$GREP"; then
6769 { echo "$as_me:$LINENO: result: $GREP" >&5
6770echo "${ECHO_T}$GREP" >&6; }
6771else
6772 { echo "$as_me:$LINENO: result: no" >&5
6773echo "${ECHO_T}no" >&6; }
6774fi
6775
6776
6777# Extract the first word of "mkdir", so it can be a program name with args.
6778set dummy mkdir; ac_word=$2
6779{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6781if test "${ac_cv_path_MKDIR+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6783else
6784 case $MKDIR in
6785 [\\/]* | ?:[\\/]*)
6786 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6787 ;;
6788 *)
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790for as_dir in $PATH
6791do
6792 IFS=$as_save_IFS
6793 test -z "$as_dir" && as_dir=.
6794 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006795 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 +00006796 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6798 break 2
6799 fi
6800done
6801done
6802IFS=$as_save_IFS
6803
6804 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6805 ;;
6806esac
6807fi
6808MKDIR=$ac_cv_path_MKDIR
6809if test -n "$MKDIR"; then
6810 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6811echo "${ECHO_T}$MKDIR" >&6; }
6812else
6813 { echo "$as_me:$LINENO: result: no" >&5
6814echo "${ECHO_T}no" >&6; }
6815fi
6816
6817
6818# Extract the first word of "mv", so it can be a program name with args.
6819set dummy mv; ac_word=$2
6820{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6822if test "${ac_cv_path_MV+set}" = set; then
6823 echo $ECHO_N "(cached) $ECHO_C" >&6
6824else
6825 case $MV in
6826 [\\/]* | ?:[\\/]*)
6827 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6828 ;;
6829 *)
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831for as_dir in $PATH
6832do
6833 IFS=$as_save_IFS
6834 test -z "$as_dir" && as_dir=.
6835 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006836 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 +00006837 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 break 2
6840 fi
6841done
6842done
6843IFS=$as_save_IFS
6844
6845 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6846 ;;
6847esac
6848fi
6849MV=$ac_cv_path_MV
6850if test -n "$MV"; then
6851 { echo "$as_me:$LINENO: result: $MV" >&5
6852echo "${ECHO_T}$MV" >&6; }
6853else
6854 { echo "$as_me:$LINENO: result: no" >&5
6855echo "${ECHO_T}no" >&6; }
6856fi
6857
6858
6859if test -n "$ac_tool_prefix"; then
6860 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6861set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6862{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6864if test "${ac_cv_prog_RANLIB+set}" = set; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6866else
6867 if test -n "$RANLIB"; then
6868 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6869else
6870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871for as_dir in $PATH
6872do
6873 IFS=$as_save_IFS
6874 test -z "$as_dir" && as_dir=.
6875 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006876 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 +00006877 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6879 break 2
6880 fi
6881done
6882done
6883IFS=$as_save_IFS
6884
6885fi
6886fi
6887RANLIB=$ac_cv_prog_RANLIB
6888if test -n "$RANLIB"; then
6889 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6890echo "${ECHO_T}$RANLIB" >&6; }
6891else
6892 { echo "$as_me:$LINENO: result: no" >&5
6893echo "${ECHO_T}no" >&6; }
6894fi
6895
6896
6897fi
6898if test -z "$ac_cv_prog_RANLIB"; then
6899 ac_ct_RANLIB=$RANLIB
6900 # Extract the first word of "ranlib", so it can be a program name with args.
6901set dummy ranlib; ac_word=$2
6902{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6904if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6906else
6907 if test -n "$ac_ct_RANLIB"; then
6908 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6909else
6910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911for as_dir in $PATH
6912do
6913 IFS=$as_save_IFS
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006916 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 +00006917 ac_cv_prog_ac_ct_RANLIB="ranlib"
6918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 break 2
6920 fi
6921done
6922done
6923IFS=$as_save_IFS
6924
6925fi
6926fi
6927ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6928if test -n "$ac_ct_RANLIB"; then
6929 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6930echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6931else
6932 { echo "$as_me:$LINENO: result: no" >&5
6933echo "${ECHO_T}no" >&6; }
6934fi
6935
6936 if test "x$ac_ct_RANLIB" = x; then
6937 RANLIB=":"
6938 else
6939 case $cross_compiling:$ac_tool_warned in
6940yes:)
6941{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6942whose name does not start with the host triplet. If you think this
6943configuration is useful to you, please write to autoconf@gnu.org." >&5
6944echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6945whose name does not start with the host triplet. If you think this
6946configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6947ac_tool_warned=yes ;;
6948esac
6949 RANLIB=$ac_ct_RANLIB
6950 fi
6951else
6952 RANLIB="$ac_cv_prog_RANLIB"
6953fi
6954
6955# Extract the first word of "rm", so it can be a program name with args.
6956set dummy rm; ac_word=$2
6957{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6959if test "${ac_cv_path_RM+set}" = set; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6961else
6962 case $RM in
6963 [\\/]* | ?:[\\/]*)
6964 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6965 ;;
6966 *)
6967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968for as_dir in $PATH
6969do
6970 IFS=$as_save_IFS
6971 test -z "$as_dir" && as_dir=.
6972 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006973 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 +00006974 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6976 break 2
6977 fi
6978done
6979done
6980IFS=$as_save_IFS
6981
6982 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6983 ;;
6984esac
6985fi
6986RM=$ac_cv_path_RM
6987if test -n "$RM"; then
6988 { echo "$as_me:$LINENO: result: $RM" >&5
6989echo "${ECHO_T}$RM" >&6; }
6990else
6991 { echo "$as_me:$LINENO: result: no" >&5
6992echo "${ECHO_T}no" >&6; }
6993fi
6994
6995
6996# Extract the first word of "sed", so it can be a program name with args.
6997set dummy sed; ac_word=$2
6998{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7000if test "${ac_cv_path_SED+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7002else
7003 case $SED in
7004 [\\/]* | ?:[\\/]*)
7005 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7006 ;;
7007 *)
7008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009for as_dir in $PATH
7010do
7011 IFS=$as_save_IFS
7012 test -z "$as_dir" && as_dir=.
7013 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007014 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 +00007015 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7017 break 2
7018 fi
7019done
7020done
7021IFS=$as_save_IFS
7022
7023 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7024 ;;
7025esac
7026fi
7027SED=$ac_cv_path_SED
7028if test -n "$SED"; then
7029 { echo "$as_me:$LINENO: result: $SED" >&5
7030echo "${ECHO_T}$SED" >&6; }
7031else
7032 { echo "$as_me:$LINENO: result: no" >&5
7033echo "${ECHO_T}no" >&6; }
7034fi
7035
7036
7037# Extract the first word of "tar", so it can be a program name with args.
7038set dummy tar; ac_word=$2
7039{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7041if test "${ac_cv_path_TAR+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7043else
7044 case $TAR in
7045 [\\/]* | ?:[\\/]*)
7046 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7047 ;;
7048 *)
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050for as_dir in $PATH
7051do
7052 IFS=$as_save_IFS
7053 test -z "$as_dir" && as_dir=.
7054 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007055 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 +00007056 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7058 break 2
7059 fi
7060done
7061done
7062IFS=$as_save_IFS
7063
7064 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7065 ;;
7066esac
7067fi
7068TAR=$ac_cv_path_TAR
7069if test -n "$TAR"; then
7070 { echo "$as_me:$LINENO: result: $TAR" >&5
7071echo "${ECHO_T}$TAR" >&6; }
7072else
7073 { echo "$as_me:$LINENO: result: no" >&5
7074echo "${ECHO_T}no" >&6; }
7075fi
7076
7077
7078# Extract the first word of "pwd", so it can be a program name with args.
7079set dummy pwd; ac_word=$2
7080{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7082if test "${ac_cv_path_BINPWD+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7084else
7085 case $BINPWD in
7086 [\\/]* | ?:[\\/]*)
7087 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7088 ;;
7089 *)
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091for as_dir in $PATH
7092do
7093 IFS=$as_save_IFS
7094 test -z "$as_dir" && as_dir=.
7095 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007096 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 +00007097 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7099 break 2
7100 fi
7101done
7102done
7103IFS=$as_save_IFS
7104
7105 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7106 ;;
7107esac
7108fi
7109BINPWD=$ac_cv_path_BINPWD
7110if test -n "$BINPWD"; then
7111 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7112echo "${ECHO_T}$BINPWD" >&6; }
7113else
7114 { echo "$as_me:$LINENO: result: no" >&5
7115echo "${ECHO_T}no" >&6; }
7116fi
7117
7118
7119
7120# Extract the first word of "Graphviz", so it can be a program name with args.
7121set dummy Graphviz; ac_word=$2
7122{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7124if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7125 echo $ECHO_N "(cached) $ECHO_C" >&6
7126else
7127 case $GRAPHVIZ in
7128 [\\/]* | ?:[\\/]*)
7129 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7130 ;;
7131 *)
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133for as_dir in $PATH
7134do
7135 IFS=$as_save_IFS
7136 test -z "$as_dir" && as_dir=.
7137 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007138 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 +00007139 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7141 break 2
7142 fi
7143done
7144done
7145IFS=$as_save_IFS
7146
7147 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7148 ;;
7149esac
7150fi
7151GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7152if test -n "$GRAPHVIZ"; then
7153 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7154echo "${ECHO_T}$GRAPHVIZ" >&6; }
7155else
7156 { echo "$as_me:$LINENO: result: no" >&5
7157echo "${ECHO_T}no" >&6; }
7158fi
7159
7160
7161if test "$GRAPHVIZ" != "echo Graphviz" ; then
7162
7163cat >>confdefs.h <<\_ACEOF
7164#define HAVE_GRAPHVIZ 1
7165_ACEOF
7166
Jeff Cohen28783c32007-01-12 18:22:38 +00007167 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007168 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7169 fi
7170
7171cat >>confdefs.h <<_ACEOF
7172#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7173_ACEOF
7174
7175fi
7176# Extract the first word of "dot", so it can be a program name with args.
7177set dummy dot; ac_word=$2
7178{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7180if test "${ac_cv_path_DOT+set}" = set; then
7181 echo $ECHO_N "(cached) $ECHO_C" >&6
7182else
7183 case $DOT in
7184 [\\/]* | ?:[\\/]*)
7185 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7186 ;;
7187 *)
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189for as_dir in $PATH
7190do
7191 IFS=$as_save_IFS
7192 test -z "$as_dir" && as_dir=.
7193 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007194 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 +00007195 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7197 break 2
7198 fi
7199done
7200done
7201IFS=$as_save_IFS
7202
7203 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7204 ;;
7205esac
7206fi
7207DOT=$ac_cv_path_DOT
7208if test -n "$DOT"; then
7209 { echo "$as_me:$LINENO: result: $DOT" >&5
7210echo "${ECHO_T}$DOT" >&6; }
7211else
7212 { echo "$as_me:$LINENO: result: no" >&5
7213echo "${ECHO_T}no" >&6; }
7214fi
7215
7216
7217if test "$DOT" != "echo dot" ; then
7218
7219cat >>confdefs.h <<\_ACEOF
7220#define HAVE_DOT 1
7221_ACEOF
7222
Jeff Cohen28783c32007-01-12 18:22:38 +00007223 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007224 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7225 fi
7226
7227cat >>confdefs.h <<_ACEOF
7228#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7229_ACEOF
7230
7231fi
David Greenef0b9eff2009-07-09 17:16:26 +00007232# Extract the first word of "fdp", so it can be a program name with args.
7233set dummy fdp; ac_word=$2
7234{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7236if test "${ac_cv_path_FDP+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7238else
7239 case $FDP in
7240 [\\/]* | ?:[\\/]*)
7241 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7242 ;;
7243 *)
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245for as_dir in $PATH
7246do
7247 IFS=$as_save_IFS
7248 test -z "$as_dir" && as_dir=.
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7251 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7253 break 2
7254 fi
7255done
7256done
7257IFS=$as_save_IFS
7258
7259 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7260 ;;
7261esac
7262fi
7263FDP=$ac_cv_path_FDP
7264if test -n "$FDP"; then
7265 { echo "$as_me:$LINENO: result: $FDP" >&5
7266echo "${ECHO_T}$FDP" >&6; }
7267else
7268 { echo "$as_me:$LINENO: result: no" >&5
7269echo "${ECHO_T}no" >&6; }
7270fi
7271
7272
7273if test "$FDP" != "echo fdp" ; then
7274
7275cat >>confdefs.h <<\_ACEOF
7276#define HAVE_FDP 1
7277_ACEOF
7278
7279 if test "$llvm_cv_os_type" = "MingW" ; then
7280 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7281 fi
7282
7283cat >>confdefs.h <<_ACEOF
7284#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7285_ACEOF
7286
7287fi
7288# Extract the first word of "neato", so it can be a program name with args.
7289set dummy neato; ac_word=$2
7290{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7292if test "${ac_cv_path_NEATO+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7294else
7295 case $NEATO in
7296 [\\/]* | ?:[\\/]*)
7297 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7298 ;;
7299 *)
7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301for as_dir in $PATH
7302do
7303 IFS=$as_save_IFS
7304 test -z "$as_dir" && as_dir=.
7305 for ac_exec_ext in '' $ac_executable_extensions; do
7306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7307 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7309 break 2
7310 fi
7311done
7312done
7313IFS=$as_save_IFS
7314
7315 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7316 ;;
7317esac
7318fi
7319NEATO=$ac_cv_path_NEATO
7320if test -n "$NEATO"; then
7321 { echo "$as_me:$LINENO: result: $NEATO" >&5
7322echo "${ECHO_T}$NEATO" >&6; }
7323else
7324 { echo "$as_me:$LINENO: result: no" >&5
7325echo "${ECHO_T}no" >&6; }
7326fi
7327
7328
7329if test "$NEATO" != "echo neato" ; then
7330
7331cat >>confdefs.h <<\_ACEOF
7332#define HAVE_NEATO 1
7333_ACEOF
7334
7335 if test "$llvm_cv_os_type" = "MingW" ; then
7336 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7337 fi
7338
7339cat >>confdefs.h <<_ACEOF
7340#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7341_ACEOF
7342
7343fi
7344# Extract the first word of "twopi", so it can be a program name with args.
7345set dummy twopi; ac_word=$2
7346{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7348if test "${ac_cv_path_TWOPI+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7350else
7351 case $TWOPI in
7352 [\\/]* | ?:[\\/]*)
7353 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7354 ;;
7355 *)
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357for as_dir in $PATH
7358do
7359 IFS=$as_save_IFS
7360 test -z "$as_dir" && as_dir=.
7361 for ac_exec_ext in '' $ac_executable_extensions; do
7362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7363 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7365 break 2
7366 fi
7367done
7368done
7369IFS=$as_save_IFS
7370
7371 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7372 ;;
7373esac
7374fi
7375TWOPI=$ac_cv_path_TWOPI
7376if test -n "$TWOPI"; then
7377 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7378echo "${ECHO_T}$TWOPI" >&6; }
7379else
7380 { echo "$as_me:$LINENO: result: no" >&5
7381echo "${ECHO_T}no" >&6; }
7382fi
7383
7384
7385if test "$TWOPI" != "echo twopi" ; then
7386
7387cat >>confdefs.h <<\_ACEOF
7388#define HAVE_TWOPI 1
7389_ACEOF
7390
7391 if test "$llvm_cv_os_type" = "MingW" ; then
7392 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7393 fi
7394
7395cat >>confdefs.h <<_ACEOF
7396#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7397_ACEOF
7398
7399fi
7400# Extract the first word of "circo", so it can be a program name with args.
7401set dummy circo; ac_word=$2
7402{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7404if test "${ac_cv_path_CIRCO+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7406else
7407 case $CIRCO in
7408 [\\/]* | ?:[\\/]*)
7409 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7410 ;;
7411 *)
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413for as_dir in $PATH
7414do
7415 IFS=$as_save_IFS
7416 test -z "$as_dir" && as_dir=.
7417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7419 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7421 break 2
7422 fi
7423done
7424done
7425IFS=$as_save_IFS
7426
7427 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7428 ;;
7429esac
7430fi
7431CIRCO=$ac_cv_path_CIRCO
7432if test -n "$CIRCO"; then
7433 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7434echo "${ECHO_T}$CIRCO" >&6; }
7435else
7436 { echo "$as_me:$LINENO: result: no" >&5
7437echo "${ECHO_T}no" >&6; }
7438fi
7439
7440
7441if test "$CIRCO" != "echo circo" ; then
7442
7443cat >>confdefs.h <<\_ACEOF
7444#define HAVE_CIRCO 1
7445_ACEOF
7446
7447 if test "$llvm_cv_os_type" = "MingW" ; then
7448 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7449 fi
7450
7451cat >>confdefs.h <<_ACEOF
7452#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7453_ACEOF
7454
7455fi
Reid Spencera773bd52006-08-04 18:18:08 +00007456for ac_prog in gv gsview32
7457do
7458 # Extract the first word of "$ac_prog", so it can be a program name with args.
7459set dummy $ac_prog; ac_word=$2
7460{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7462if test "${ac_cv_path_GV+set}" = set; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7464else
7465 case $GV in
7466 [\\/]* | ?:[\\/]*)
7467 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7468 ;;
7469 *)
7470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471for as_dir in $PATH
7472do
7473 IFS=$as_save_IFS
7474 test -z "$as_dir" && as_dir=.
7475 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007476 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 +00007477 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7479 break 2
7480 fi
7481done
7482done
7483IFS=$as_save_IFS
7484
7485 ;;
7486esac
7487fi
7488GV=$ac_cv_path_GV
7489if test -n "$GV"; then
7490 { echo "$as_me:$LINENO: result: $GV" >&5
7491echo "${ECHO_T}$GV" >&6; }
7492else
7493 { echo "$as_me:$LINENO: result: no" >&5
7494echo "${ECHO_T}no" >&6; }
7495fi
7496
7497
7498 test -n "$GV" && break
7499done
7500test -n "$GV" || GV="echo gv"
7501
7502if test "$GV" != "echo gv" ; then
7503
7504cat >>confdefs.h <<\_ACEOF
7505#define HAVE_GV 1
7506_ACEOF
7507
Jeff Cohen28783c32007-01-12 18:22:38 +00007508 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007509 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7510 fi
7511
7512cat >>confdefs.h <<_ACEOF
7513#define LLVM_PATH_GV "$GV${EXEEXT}"
7514_ACEOF
7515
7516fi
7517# Extract the first word of "dotty", so it can be a program name with args.
7518set dummy dotty; ac_word=$2
7519{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7521if test "${ac_cv_path_DOTTY+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7523else
7524 case $DOTTY in
7525 [\\/]* | ?:[\\/]*)
7526 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7527 ;;
7528 *)
7529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530for as_dir in $PATH
7531do
7532 IFS=$as_save_IFS
7533 test -z "$as_dir" && as_dir=.
7534 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007535 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 +00007536 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7538 break 2
7539 fi
7540done
7541done
7542IFS=$as_save_IFS
7543
7544 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7545 ;;
7546esac
7547fi
7548DOTTY=$ac_cv_path_DOTTY
7549if test -n "$DOTTY"; then
7550 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7551echo "${ECHO_T}$DOTTY" >&6; }
7552else
7553 { echo "$as_me:$LINENO: result: no" >&5
7554echo "${ECHO_T}no" >&6; }
7555fi
7556
7557
7558if test "$DOTTY" != "echo dotty" ; then
7559
7560cat >>confdefs.h <<\_ACEOF
7561#define HAVE_DOTTY 1
7562_ACEOF
7563
Jeff Cohen28783c32007-01-12 18:22:38 +00007564 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007565 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7566 fi
7567
7568cat >>confdefs.h <<_ACEOF
7569#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7570_ACEOF
7571
7572fi
7573
7574
7575# Extract the first word of "perl", so it can be a program name with args.
7576set dummy perl; ac_word=$2
7577{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7579if test "${ac_cv_path_PERL+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7581else
7582 case $PERL in
7583 [\\/]* | ?:[\\/]*)
7584 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7585 ;;
7586 *)
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588for as_dir in $PATH
7589do
7590 IFS=$as_save_IFS
7591 test -z "$as_dir" && as_dir=.
7592 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007593 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 +00007594 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 break 2
7597 fi
7598done
7599done
7600IFS=$as_save_IFS
7601
7602 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7603 ;;
7604esac
7605fi
7606PERL=$ac_cv_path_PERL
7607if test -n "$PERL"; then
7608 { echo "$as_me:$LINENO: result: $PERL" >&5
7609echo "${ECHO_T}$PERL" >&6; }
7610else
7611 { echo "$as_me:$LINENO: result: no" >&5
7612echo "${ECHO_T}no" >&6; }
7613fi
7614
7615
7616if test "$PERL" != "none"; then
7617 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7618echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7619 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7620 { echo "$as_me:$LINENO: result: yes" >&5
7621echo "${ECHO_T}yes" >&6; }
7622 else
7623 PERL=none
7624 { echo "$as_me:$LINENO: result: not found" >&5
7625echo "${ECHO_T}not found" >&6; }
7626 fi
7627fi
7628
7629
7630if test x"$PERL" = xnone; then
7631 HAVE_PERL=0
7632
Reid Spencer59807fa2007-05-17 18:11:03 +00007633 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7634echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7635 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007636else
7637 HAVE_PERL=1
7638
7639fi
7640
7641# Find a good install program. We prefer a C program (faster),
7642# so one script is as good as another. But avoid the broken or
7643# incompatible versions:
7644# SysV /etc/install, /usr/sbin/install
7645# SunOS /usr/etc/install
7646# IRIX /sbin/install
7647# AIX /bin/install
7648# AmigaOS /C/install, which installs bootblocks on floppy discs
7649# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7650# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7651# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7652# OS/2's system install, which has a completely different semantic
7653# ./install, which can be erroneously created by make from ./install.sh.
7654{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7655echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7656if test -z "$INSTALL"; then
7657if test "${ac_cv_path_install+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7659else
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661for as_dir in $PATH
7662do
7663 IFS=$as_save_IFS
7664 test -z "$as_dir" && as_dir=.
7665 # Account for people who put trailing slashes in PATH elements.
7666case $as_dir/ in
7667 ./ | .// | /cC/* | \
7668 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7669 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7670 /usr/ucb/* ) ;;
7671 *)
7672 # OSF1 and SCO ODT 3.0 have their own names for install.
7673 # Don't use installbsd from OSF since it installs stuff as root
7674 # by default.
7675 for ac_prog in ginstall scoinst install; do
7676 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007677 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 +00007678 if test $ac_prog = install &&
7679 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7680 # AIX install. It has an incompatible calling convention.
7681 :
7682 elif test $ac_prog = install &&
7683 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7684 # program-specific install script used by HP pwplus--don't use.
7685 :
7686 else
7687 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7688 break 3
7689 fi
7690 fi
7691 done
7692 done
7693 ;;
7694esac
7695done
7696IFS=$as_save_IFS
7697
7698
7699fi
7700 if test "${ac_cv_path_install+set}" = set; then
7701 INSTALL=$ac_cv_path_install
7702 else
7703 # As a last resort, use the slow shell script. Don't cache a
7704 # value for INSTALL within a source directory, because that will
7705 # break other packages using the cache if that directory is
7706 # removed, or if the value is a relative name.
7707 INSTALL=$ac_install_sh
7708 fi
7709fi
7710{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7711echo "${ECHO_T}$INSTALL" >&6; }
7712
7713# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7714# It thinks the first close brace ends the variable substitution.
7715test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7716
7717test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7718
7719test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7720
7721
7722# Extract the first word of "bzip2", so it can be a program name with args.
7723set dummy bzip2; ac_word=$2
7724{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7726if test "${ac_cv_path_BZIP2+set}" = set; then
7727 echo $ECHO_N "(cached) $ECHO_C" >&6
7728else
7729 case $BZIP2 in
7730 [\\/]* | ?:[\\/]*)
7731 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7732 ;;
7733 *)
7734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735for as_dir in $PATH
7736do
7737 IFS=$as_save_IFS
7738 test -z "$as_dir" && as_dir=.
7739 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007740 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 +00007741 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7743 break 2
7744 fi
7745done
7746done
7747IFS=$as_save_IFS
7748
Reid Spencera773bd52006-08-04 18:18:08 +00007749 ;;
7750esac
7751fi
7752BZIP2=$ac_cv_path_BZIP2
7753if test -n "$BZIP2"; then
7754 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7755echo "${ECHO_T}$BZIP2" >&6; }
7756else
7757 { echo "$as_me:$LINENO: result: no" >&5
7758echo "${ECHO_T}no" >&6; }
7759fi
7760
7761
7762# Extract the first word of "doxygen", so it can be a program name with args.
7763set dummy doxygen; ac_word=$2
7764{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7766if test "${ac_cv_path_DOXYGEN+set}" = set; then
7767 echo $ECHO_N "(cached) $ECHO_C" >&6
7768else
7769 case $DOXYGEN in
7770 [\\/]* | ?:[\\/]*)
7771 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7772 ;;
7773 *)
7774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775for as_dir in $PATH
7776do
7777 IFS=$as_save_IFS
7778 test -z "$as_dir" && as_dir=.
7779 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007780 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 +00007781 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7783 break 2
7784 fi
7785done
7786done
7787IFS=$as_save_IFS
7788
Reid Spencera773bd52006-08-04 18:18:08 +00007789 ;;
7790esac
7791fi
7792DOXYGEN=$ac_cv_path_DOXYGEN
7793if test -n "$DOXYGEN"; then
7794 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7795echo "${ECHO_T}$DOXYGEN" >&6; }
7796else
7797 { echo "$as_me:$LINENO: result: no" >&5
7798echo "${ECHO_T}no" >&6; }
7799fi
7800
7801
Reid Spencera773bd52006-08-04 18:18:08 +00007802# Extract the first word of "groff", so it can be a program name with args.
7803set dummy groff; ac_word=$2
7804{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7806if test "${ac_cv_path_GROFF+set}" = set; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7808else
7809 case $GROFF in
7810 [\\/]* | ?:[\\/]*)
7811 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7812 ;;
7813 *)
7814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815for as_dir in $PATH
7816do
7817 IFS=$as_save_IFS
7818 test -z "$as_dir" && as_dir=.
7819 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007820 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 +00007821 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7823 break 2
7824 fi
7825done
7826done
7827IFS=$as_save_IFS
7828
Reid Spencera773bd52006-08-04 18:18:08 +00007829 ;;
7830esac
7831fi
7832GROFF=$ac_cv_path_GROFF
7833if test -n "$GROFF"; then
7834 { echo "$as_me:$LINENO: result: $GROFF" >&5
7835echo "${ECHO_T}$GROFF" >&6; }
7836else
7837 { echo "$as_me:$LINENO: result: no" >&5
7838echo "${ECHO_T}no" >&6; }
7839fi
7840
7841
7842# Extract the first word of "gzip", so it can be a program name with args.
7843set dummy gzip; ac_word=$2
7844{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7846if test "${ac_cv_path_GZIP+set}" = set; then
7847 echo $ECHO_N "(cached) $ECHO_C" >&6
7848else
7849 case $GZIP in
7850 [\\/]* | ?:[\\/]*)
7851 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7852 ;;
7853 *)
7854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855for as_dir in $PATH
7856do
7857 IFS=$as_save_IFS
7858 test -z "$as_dir" && as_dir=.
7859 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007860 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 +00007861 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7863 break 2
7864 fi
7865done
7866done
7867IFS=$as_save_IFS
7868
Reid Spencera773bd52006-08-04 18:18:08 +00007869 ;;
7870esac
7871fi
7872GZIP=$ac_cv_path_GZIP
7873if test -n "$GZIP"; then
7874 { echo "$as_me:$LINENO: result: $GZIP" >&5
7875echo "${ECHO_T}$GZIP" >&6; }
7876else
7877 { echo "$as_me:$LINENO: result: no" >&5
7878echo "${ECHO_T}no" >&6; }
7879fi
7880
7881
7882# Extract the first word of "pod2html", so it can be a program name with args.
7883set dummy pod2html; ac_word=$2
7884{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7886if test "${ac_cv_path_POD2HTML+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7888else
7889 case $POD2HTML in
7890 [\\/]* | ?:[\\/]*)
7891 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7892 ;;
7893 *)
7894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7895for as_dir in $PATH
7896do
7897 IFS=$as_save_IFS
7898 test -z "$as_dir" && as_dir=.
7899 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007900 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 +00007901 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7903 break 2
7904 fi
7905done
7906done
7907IFS=$as_save_IFS
7908
Reid Spencera773bd52006-08-04 18:18:08 +00007909 ;;
7910esac
7911fi
7912POD2HTML=$ac_cv_path_POD2HTML
7913if test -n "$POD2HTML"; then
7914 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7915echo "${ECHO_T}$POD2HTML" >&6; }
7916else
7917 { echo "$as_me:$LINENO: result: no" >&5
7918echo "${ECHO_T}no" >&6; }
7919fi
7920
7921
7922# Extract the first word of "pod2man", so it can be a program name with args.
7923set dummy pod2man; ac_word=$2
7924{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7926if test "${ac_cv_path_POD2MAN+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7928else
7929 case $POD2MAN in
7930 [\\/]* | ?:[\\/]*)
7931 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7932 ;;
7933 *)
7934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935for as_dir in $PATH
7936do
7937 IFS=$as_save_IFS
7938 test -z "$as_dir" && as_dir=.
7939 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007940 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 +00007941 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7943 break 2
7944 fi
7945done
7946done
7947IFS=$as_save_IFS
7948
Reid Spencera773bd52006-08-04 18:18:08 +00007949 ;;
7950esac
7951fi
7952POD2MAN=$ac_cv_path_POD2MAN
7953if test -n "$POD2MAN"; then
7954 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7955echo "${ECHO_T}$POD2MAN" >&6; }
7956else
7957 { echo "$as_me:$LINENO: result: no" >&5
7958echo "${ECHO_T}no" >&6; }
7959fi
7960
7961
7962# Extract the first word of "runtest", so it can be a program name with args.
7963set dummy runtest; ac_word=$2
7964{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7966if test "${ac_cv_path_RUNTEST+set}" = set; then
7967 echo $ECHO_N "(cached) $ECHO_C" >&6
7968else
7969 case $RUNTEST in
7970 [\\/]* | ?:[\\/]*)
7971 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7972 ;;
7973 *)
7974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975for as_dir in $PATH
7976do
7977 IFS=$as_save_IFS
7978 test -z "$as_dir" && as_dir=.
7979 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007980 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 +00007981 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7983 break 2
7984 fi
7985done
7986done
7987IFS=$as_save_IFS
7988
Reid Spencera773bd52006-08-04 18:18:08 +00007989 ;;
7990esac
7991fi
7992RUNTEST=$ac_cv_path_RUNTEST
7993if test -n "$RUNTEST"; then
7994 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7995echo "${ECHO_T}$RUNTEST" >&6; }
7996else
7997 { echo "$as_me:$LINENO: result: no" >&5
7998echo "${ECHO_T}no" >&6; }
7999fi
8000
8001
8002
8003no_itcl=true
8004{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8005echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8006
8007# Check whether --with-tclinclude was given.
8008if test "${with_tclinclude+set}" = set; then
8009 withval=$with_tclinclude; with_tclinclude=${withval}
8010else
8011 with_tclinclude=''
8012fi
8013
8014if test "${ac_cv_path_tclsh+set}" = set; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
8016else
8017
8018if test x"${with_tclinclude}" != x ; then
8019 if test -f ${with_tclinclude}/tclsh ; then
8020 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8021 elif test -f ${with_tclinclude}/src/tclsh ; then
8022 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8023 else
8024 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8025echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8026 { (exit 1); exit 1; }; }
8027 fi
8028fi
8029
8030if test x"${ac_cv_path_tclsh}" = x ; then
8031 { echo "$as_me:$LINENO: result: none" >&5
8032echo "${ECHO_T}none" >&6; }
8033 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
8034do
8035 # Extract the first word of "$ac_prog", so it can be a program name with args.
8036set dummy $ac_prog; ac_word=$2
8037{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8039if test "${ac_cv_path_TCLSH+set}" = set; then
8040 echo $ECHO_N "(cached) $ECHO_C" >&6
8041else
8042 case $TCLSH in
8043 [\\/]* | ?:[\\/]*)
8044 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8045 ;;
8046 *)
8047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048for as_dir in $PATH
8049do
8050 IFS=$as_save_IFS
8051 test -z "$as_dir" && as_dir=.
8052 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008053 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 +00008054 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8056 break 2
8057 fi
8058done
8059done
8060IFS=$as_save_IFS
8061
8062 ;;
8063esac
8064fi
8065TCLSH=$ac_cv_path_TCLSH
8066if test -n "$TCLSH"; then
8067 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8068echo "${ECHO_T}$TCLSH" >&6; }
8069else
8070 { echo "$as_me:$LINENO: result: no" >&5
8071echo "${ECHO_T}no" >&6; }
8072fi
8073
8074
8075 test -n "$TCLSH" && break
8076done
8077
8078 if test x"${TCLSH}" = x ; then
8079 ac_cv_path_tclsh='';
8080 else
8081 ac_cv_path_tclsh="${TCLSH}";
8082 fi
8083else
8084 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8085echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8086 TCLSH="${ac_cv_path_tclsh}"
8087
8088fi
8089
8090fi
8091
8092# Extract the first word of "zip", so it can be a program name with args.
8093set dummy zip; ac_word=$2
8094{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8096if test "${ac_cv_path_ZIP+set}" = set; then
8097 echo $ECHO_N "(cached) $ECHO_C" >&6
8098else
8099 case $ZIP in
8100 [\\/]* | ?:[\\/]*)
8101 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8102 ;;
8103 *)
8104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8105for as_dir in $PATH
8106do
8107 IFS=$as_save_IFS
8108 test -z "$as_dir" && as_dir=.
8109 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008110 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 +00008111 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8113 break 2
8114 fi
8115done
8116done
8117IFS=$as_save_IFS
8118
Reid Spencera773bd52006-08-04 18:18:08 +00008119 ;;
8120esac
8121fi
8122ZIP=$ac_cv_path_ZIP
8123if test -n "$ZIP"; then
8124 { echo "$as_me:$LINENO: result: $ZIP" >&5
8125echo "${ECHO_T}$ZIP" >&6; }
8126else
8127 { echo "$as_me:$LINENO: result: no" >&5
8128echo "${ECHO_T}no" >&6; }
8129fi
8130
8131
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008132for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008133do
8134 # Extract the first word of "$ac_prog", so it can be a program name with args.
8135set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008136{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8138if test "${ac_cv_path_OCAMLC+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8140else
8141 case $OCAMLC in
8142 [\\/]* | ?:[\\/]*)
8143 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8144 ;;
8145 *)
8146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147for as_dir in $PATH
8148do
8149 IFS=$as_save_IFS
8150 test -z "$as_dir" && as_dir=.
8151 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008152 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 +00008153 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8155 break 2
8156 fi
8157done
8158done
8159IFS=$as_save_IFS
8160
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008161 ;;
8162esac
8163fi
8164OCAMLC=$ac_cv_path_OCAMLC
8165if test -n "$OCAMLC"; then
8166 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8167echo "${ECHO_T}$OCAMLC" >&6; }
8168else
8169 { echo "$as_me:$LINENO: result: no" >&5
8170echo "${ECHO_T}no" >&6; }
8171fi
8172
8173
Gordon Henriksene7072162008-03-07 18:20:01 +00008174 test -n "$OCAMLC" && break
8175done
8176
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008177for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008178do
8179 # Extract the first word of "$ac_prog", so it can be a program name with args.
8180set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008181{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8183if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8184 echo $ECHO_N "(cached) $ECHO_C" >&6
8185else
8186 case $OCAMLOPT in
8187 [\\/]* | ?:[\\/]*)
8188 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8189 ;;
8190 *)
8191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8192for as_dir in $PATH
8193do
8194 IFS=$as_save_IFS
8195 test -z "$as_dir" && as_dir=.
8196 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008197 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 +00008198 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8200 break 2
8201 fi
8202done
8203done
8204IFS=$as_save_IFS
8205
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008206 ;;
8207esac
8208fi
8209OCAMLOPT=$ac_cv_path_OCAMLOPT
8210if test -n "$OCAMLOPT"; then
8211 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8212echo "${ECHO_T}$OCAMLOPT" >&6; }
8213else
8214 { echo "$as_me:$LINENO: result: no" >&5
8215echo "${ECHO_T}no" >&6; }
8216fi
8217
8218
Gordon Henriksene7072162008-03-07 18:20:01 +00008219 test -n "$OCAMLOPT" && break
8220done
8221
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008222for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008223do
8224 # Extract the first word of "$ac_prog", so it can be a program name with args.
8225set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008226{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8228if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8230else
8231 case $OCAMLDEP in
8232 [\\/]* | ?:[\\/]*)
8233 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8234 ;;
8235 *)
8236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237for as_dir in $PATH
8238do
8239 IFS=$as_save_IFS
8240 test -z "$as_dir" && as_dir=.
8241 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008242 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 +00008243 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8245 break 2
8246 fi
8247done
8248done
8249IFS=$as_save_IFS
8250
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008251 ;;
8252esac
8253fi
8254OCAMLDEP=$ac_cv_path_OCAMLDEP
8255if test -n "$OCAMLDEP"; then
8256 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8257echo "${ECHO_T}$OCAMLDEP" >&6; }
8258else
8259 { echo "$as_me:$LINENO: result: no" >&5
8260echo "${ECHO_T}no" >&6; }
8261fi
8262
8263
Gordon Henriksene7072162008-03-07 18:20:01 +00008264 test -n "$OCAMLDEP" && break
8265done
8266
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008267for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008268do
8269 # Extract the first word of "$ac_prog", so it can be a program name with args.
8270set dummy $ac_prog; ac_word=$2
8271{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8273if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8274 echo $ECHO_N "(cached) $ECHO_C" >&6
8275else
8276 case $OCAMLDOC in
8277 [\\/]* | ?:[\\/]*)
8278 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8279 ;;
8280 *)
8281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282for as_dir in $PATH
8283do
8284 IFS=$as_save_IFS
8285 test -z "$as_dir" && as_dir=.
8286 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008288 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8290 break 2
8291 fi
8292done
8293done
8294IFS=$as_save_IFS
8295
8296 ;;
8297esac
8298fi
8299OCAMLDOC=$ac_cv_path_OCAMLDOC
8300if test -n "$OCAMLDOC"; then
8301 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8302echo "${ECHO_T}$OCAMLDOC" >&6; }
8303else
8304 { echo "$as_me:$LINENO: result: no" >&5
8305echo "${ECHO_T}no" >&6; }
8306fi
8307
8308
8309 test -n "$OCAMLDOC" && break
8310done
8311
Torok Edwincc499a42008-10-22 09:56:27 +00008312for ac_prog in gas as
8313do
8314 # Extract the first word of "$ac_prog", so it can be a program name with args.
8315set dummy $ac_prog; ac_word=$2
8316{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8318if test "${ac_cv_path_GAS+set}" = set; then
8319 echo $ECHO_N "(cached) $ECHO_C" >&6
8320else
8321 case $GAS in
8322 [\\/]* | ?:[\\/]*)
8323 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8324 ;;
8325 *)
8326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327for as_dir in $PATH
8328do
8329 IFS=$as_save_IFS
8330 test -z "$as_dir" && as_dir=.
8331 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwincc499a42008-10-22 09:56:27 +00008333 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8335 break 2
8336 fi
8337done
8338done
8339IFS=$as_save_IFS
8340
8341 ;;
8342esac
8343fi
8344GAS=$ac_cv_path_GAS
8345if test -n "$GAS"; then
8346 { echo "$as_me:$LINENO: result: $GAS" >&5
8347echo "${ECHO_T}$GAS" >&6; }
8348else
8349 { echo "$as_me:$LINENO: result: no" >&5
8350echo "${ECHO_T}no" >&6; }
8351fi
8352
8353
8354 test -n "$GAS" && break
8355done
8356
Reid Spencera773bd52006-08-04 18:18:08 +00008357
8358{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8359echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8360if test "${llvm_cv_link_use_r+set}" = set; then
8361 echo $ECHO_N "(cached) $ECHO_C" >&6
8362else
8363 ac_ext=c
8364ac_cpp='$CPP $CPPFLAGS'
8365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8367ac_compiler_gnu=$ac_cv_c_compiler_gnu
8368
8369 oldcflags="$CFLAGS"
8370 CFLAGS="$CFLAGS -Wl,-R."
8371 cat >conftest.$ac_ext <<_ACEOF
8372/* confdefs.h. */
8373_ACEOF
8374cat confdefs.h >>conftest.$ac_ext
8375cat >>conftest.$ac_ext <<_ACEOF
8376/* end confdefs.h. */
8377
8378int
8379main ()
8380{
8381int main() { return 0; }
8382 ;
8383 return 0;
8384}
8385_ACEOF
8386rm -f conftest.$ac_objext conftest$ac_exeext
8387if { (ac_try="$ac_link"
8388case "(($ac_try" in
8389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8390 *) ac_try_echo=$ac_try;;
8391esac
8392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8393 (eval "$ac_link") 2>conftest.er1
8394 ac_status=$?
8395 grep -v '^ *+' conftest.er1 >conftest.err
8396 rm -f conftest.er1
8397 cat conftest.err >&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008399 (exit $ac_status); } &&
8400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8401 { (case "(($ac_try" in
8402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403 *) ac_try_echo=$ac_try;;
8404esac
8405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406 (eval "$ac_try") 2>&5
8407 ac_status=$?
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); }; } &&
8410 { ac_try='test -s conftest$ac_exeext'
8411 { (case "(($ac_try" in
8412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8413 *) ac_try_echo=$ac_try;;
8414esac
8415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8416 (eval "$ac_try") 2>&5
8417 ac_status=$?
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008420 llvm_cv_link_use_r=yes
8421else
8422 echo "$as_me: failed program was:" >&5
8423sed 's/^/| /' conftest.$ac_ext >&5
8424
8425 llvm_cv_link_use_r=no
8426fi
8427
Bill Wendlingebcceee2009-04-18 11:20:33 +00008428rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008429 conftest$ac_exeext conftest.$ac_ext
8430 CFLAGS="$oldcflags"
8431 ac_ext=c
8432ac_cpp='$CPP $CPPFLAGS'
8433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8435ac_compiler_gnu=$ac_cv_c_compiler_gnu
8436
8437
8438fi
8439{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8440echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8441if test "$llvm_cv_link_use_r" = yes ; then
8442
8443cat >>confdefs.h <<\_ACEOF
8444#define HAVE_LINK_R 1
8445_ACEOF
8446
8447 fi
8448
8449
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008450{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8451echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8452if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8453 echo $ECHO_N "(cached) $ECHO_C" >&6
8454else
8455 ac_ext=c
8456ac_cpp='$CPP $CPPFLAGS'
8457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8459ac_compiler_gnu=$ac_cv_c_compiler_gnu
8460
8461 oldcflags="$CFLAGS"
8462 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8463 cat >conftest.$ac_ext <<_ACEOF
8464/* confdefs.h. */
8465_ACEOF
8466cat confdefs.h >>conftest.$ac_ext
8467cat >>conftest.$ac_ext <<_ACEOF
8468/* end confdefs.h. */
8469
8470int
8471main ()
8472{
8473int main() { return 0; }
8474 ;
8475 return 0;
8476}
8477_ACEOF
8478rm -f conftest.$ac_objext conftest$ac_exeext
8479if { (ac_try="$ac_link"
8480case "(($ac_try" in
8481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8482 *) ac_try_echo=$ac_try;;
8483esac
8484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8485 (eval "$ac_link") 2>conftest.er1
8486 ac_status=$?
8487 grep -v '^ *+' conftest.er1 >conftest.err
8488 rm -f conftest.er1
8489 cat conftest.err >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008491 (exit $ac_status); } &&
8492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8493 { (case "(($ac_try" in
8494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495 *) ac_try_echo=$ac_try;;
8496esac
8497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498 (eval "$ac_try") 2>&5
8499 ac_status=$?
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; } &&
8502 { ac_try='test -s conftest$ac_exeext'
8503 { (case "(($ac_try" in
8504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505 *) ac_try_echo=$ac_try;;
8506esac
8507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8508 (eval "$ac_try") 2>&5
8509 ac_status=$?
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008512 llvm_cv_link_use_export_dynamic=yes
8513else
8514 echo "$as_me: failed program was:" >&5
8515sed 's/^/| /' conftest.$ac_ext >&5
8516
8517 llvm_cv_link_use_export_dynamic=no
8518fi
8519
Bill Wendlingebcceee2009-04-18 11:20:33 +00008520rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008521 conftest$ac_exeext conftest.$ac_ext
8522 CFLAGS="$oldcflags"
8523 ac_ext=c
8524ac_cpp='$CPP $CPPFLAGS'
8525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8527ac_compiler_gnu=$ac_cv_c_compiler_gnu
8528
8529
8530fi
8531{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8532echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8533if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8534
8535cat >>confdefs.h <<\_ACEOF
8536#define HAVE_LINK_EXPORT_DYNAMIC 1
8537_ACEOF
8538
8539 fi
8540
8541
Reid Spencera773bd52006-08-04 18:18:08 +00008542
8543
8544{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8545echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8546if test "${ac_cv_c_const+set}" = set; then
8547 echo $ECHO_N "(cached) $ECHO_C" >&6
8548else
8549 cat >conftest.$ac_ext <<_ACEOF
8550/* confdefs.h. */
8551_ACEOF
8552cat confdefs.h >>conftest.$ac_ext
8553cat >>conftest.$ac_ext <<_ACEOF
8554/* end confdefs.h. */
8555
8556int
8557main ()
8558{
8559/* FIXME: Include the comments suggested by Paul. */
8560#ifndef __cplusplus
8561 /* Ultrix mips cc rejects this. */
8562 typedef int charset[2];
Bill Wendlingebcceee2009-04-18 11:20:33 +00008563 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008564 /* SunOS 4.1.1 cc rejects this. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008565 char const *const *ccp;
8566 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008567 /* NEC SVR4.0.2 mips cc rejects this. */
8568 struct point {int x, y;};
8569 static struct point const zero = {0,0};
8570 /* AIX XL C 1.02.0.0 rejects this.
8571 It does not let you subtract one const X* pointer from another in
8572 an arm of an if-expression whose if-part is not a constant
8573 expression */
8574 const char *g = "string";
Bill Wendlingebcceee2009-04-18 11:20:33 +00008575 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008576 /* HPUX 7.0 cc rejects these. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008577 ++ccp;
8578 p = (char**) ccp;
8579 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008580 { /* SCO 3.2v4 cc rejects this. */
8581 char *t;
8582 char const *s = 0 ? (char *) 0 : (char const *) 0;
8583
8584 *t++ = 0;
8585 if (s) return 0;
8586 }
8587 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8588 int x[] = {25, 17};
8589 const int *foo = &x[0];
8590 ++foo;
8591 }
8592 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8593 typedef const int *iptr;
8594 iptr p = 0;
8595 ++p;
8596 }
8597 { /* AIX XL C 1.02.0.0 rejects this saying
8598 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8599 struct s { int j; const int *ap[3]; };
8600 struct s *b; b->j = 5;
8601 }
8602 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8603 const int foo = 10;
8604 if (!foo) return 0;
8605 }
Bill Wendlingebcceee2009-04-18 11:20:33 +00008606 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008607#endif
8608
8609 ;
8610 return 0;
8611}
8612_ACEOF
8613rm -f conftest.$ac_objext
8614if { (ac_try="$ac_compile"
8615case "(($ac_try" in
8616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8617 *) ac_try_echo=$ac_try;;
8618esac
8619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8620 (eval "$ac_compile") 2>conftest.er1
8621 ac_status=$?
8622 grep -v '^ *+' conftest.er1 >conftest.err
8623 rm -f conftest.er1
8624 cat conftest.err >&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008626 (exit $ac_status); } &&
8627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8628 { (case "(($ac_try" in
8629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630 *) ac_try_echo=$ac_try;;
8631esac
8632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633 (eval "$ac_try") 2>&5
8634 ac_status=$?
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; } &&
8637 { ac_try='test -s conftest.$ac_objext'
8638 { (case "(($ac_try" in
8639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8640 *) ac_try_echo=$ac_try;;
8641esac
8642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8643 (eval "$ac_try") 2>&5
8644 ac_status=$?
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008647 ac_cv_c_const=yes
8648else
8649 echo "$as_me: failed program was:" >&5
8650sed 's/^/| /' conftest.$ac_ext >&5
8651
8652 ac_cv_c_const=no
8653fi
8654
8655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8656fi
8657{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8658echo "${ECHO_T}$ac_cv_c_const" >&6; }
8659if test $ac_cv_c_const = no; then
8660
8661cat >>confdefs.h <<\_ACEOF
8662#define const
8663_ACEOF
8664
8665fi
8666
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008667
8668
8669
8670
8671
8672ac_header_dirent=no
8673for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8674 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008675{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8676echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8677if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008678 echo $ECHO_N "(cached) $ECHO_C" >&6
8679else
8680 cat >conftest.$ac_ext <<_ACEOF
8681/* confdefs.h. */
8682_ACEOF
8683cat confdefs.h >>conftest.$ac_ext
8684cat >>conftest.$ac_ext <<_ACEOF
8685/* end confdefs.h. */
8686#include <sys/types.h>
8687#include <$ac_hdr>
8688
8689int
8690main ()
8691{
8692if ((DIR *) 0)
8693return 0;
8694 ;
8695 return 0;
8696}
8697_ACEOF
8698rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008699if { (ac_try="$ac_compile"
8700case "(($ac_try" in
8701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8702 *) ac_try_echo=$ac_try;;
8703esac
8704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8705 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008706 ac_status=$?
8707 grep -v '^ *+' conftest.er1 >conftest.err
8708 rm -f conftest.er1
8709 cat conftest.err >&5
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008711 (exit $ac_status); } &&
8712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8713 { (case "(($ac_try" in
8714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8715 *) ac_try_echo=$ac_try;;
8716esac
8717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8718 (eval "$ac_try") 2>&5
8719 ac_status=$?
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); }; } &&
8722 { ac_try='test -s conftest.$ac_objext'
8723 { (case "(($ac_try" in
8724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8725 *) ac_try_echo=$ac_try;;
8726esac
8727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8728 (eval "$ac_try") 2>&5
8729 ac_status=$?
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008732 eval "$as_ac_Header=yes"
8733else
8734 echo "$as_me: failed program was:" >&5
8735sed 's/^/| /' conftest.$ac_ext >&5
8736
Reid Spencera773bd52006-08-04 18:18:08 +00008737 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008738fi
Reid Spencera773bd52006-08-04 18:18:08 +00008739
8740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008741fi
Reid Spencera773bd52006-08-04 18:18:08 +00008742ac_res=`eval echo '${'$as_ac_Header'}'`
8743 { echo "$as_me:$LINENO: result: $ac_res" >&5
8744echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008745if test `eval echo '${'$as_ac_Header'}'` = yes; then
8746 cat >>confdefs.h <<_ACEOF
8747#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8748_ACEOF
8749
8750ac_header_dirent=$ac_hdr; break
8751fi
8752
8753done
8754# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8755if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008756 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8757echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008758if test "${ac_cv_search_opendir+set}" = set; then
8759 echo $ECHO_N "(cached) $ECHO_C" >&6
8760else
8761 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008762cat >conftest.$ac_ext <<_ACEOF
8763/* confdefs.h. */
8764_ACEOF
8765cat confdefs.h >>conftest.$ac_ext
8766cat >>conftest.$ac_ext <<_ACEOF
8767/* end confdefs.h. */
8768
Reid Spencera773bd52006-08-04 18:18:08 +00008769/* Override any GCC internal prototype to avoid an error.
8770 Use char because int might match the return type of a GCC
8771 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008772#ifdef __cplusplus
8773extern "C"
8774#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008775char opendir ();
8776int
8777main ()
8778{
Reid Spencera773bd52006-08-04 18:18:08 +00008779return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008780 ;
8781 return 0;
8782}
8783_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008784for ac_lib in '' dir; do
8785 if test -z "$ac_lib"; then
8786 ac_res="none required"
8787 else
8788 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008789 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008790 fi
8791 rm -f conftest.$ac_objext conftest$ac_exeext
8792if { (ac_try="$ac_link"
8793case "(($ac_try" in
8794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8795 *) ac_try_echo=$ac_try;;
8796esac
8797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8798 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008799 ac_status=$?
8800 grep -v '^ *+' conftest.er1 >conftest.err
8801 rm -f conftest.er1
8802 cat conftest.err >&5
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008804 (exit $ac_status); } &&
8805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8806 { (case "(($ac_try" in
8807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8808 *) ac_try_echo=$ac_try;;
8809esac
8810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8811 (eval "$ac_try") 2>&5
8812 ac_status=$?
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); }; } &&
8815 { ac_try='test -s conftest$ac_exeext'
8816 { (case "(($ac_try" in
8817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8818 *) ac_try_echo=$ac_try;;
8819esac
8820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8821 (eval "$ac_try") 2>&5
8822 ac_status=$?
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008825 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008826else
8827 echo "$as_me: failed program was:" >&5
8828sed 's/^/| /' conftest.$ac_ext >&5
8829
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008830
8831fi
8832
Bill Wendlingebcceee2009-04-18 11:20:33 +00008833rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008834 conftest$ac_exeext
8835 if test "${ac_cv_search_opendir+set}" = set; then
8836 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008837fi
John Criswell7a73b802003-06-30 21:59:07 +00008838done
Reid Spencera773bd52006-08-04 18:18:08 +00008839if test "${ac_cv_search_opendir+set}" = set; then
8840 :
8841else
8842 ac_cv_search_opendir=no
8843fi
8844rm conftest.$ac_ext
8845LIBS=$ac_func_search_save_LIBS
8846fi
8847{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8848echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8849ac_res=$ac_cv_search_opendir
8850if test "$ac_res" != no; then
8851 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008852
Reid Spencera773bd52006-08-04 18:18:08 +00008853fi
8854
8855else
8856 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8857echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8858if test "${ac_cv_search_opendir+set}" = set; then
8859 echo $ECHO_N "(cached) $ECHO_C" >&6
8860else
8861 ac_func_search_save_LIBS=$LIBS
8862cat >conftest.$ac_ext <<_ACEOF
8863/* confdefs.h. */
8864_ACEOF
8865cat confdefs.h >>conftest.$ac_ext
8866cat >>conftest.$ac_ext <<_ACEOF
8867/* end confdefs.h. */
8868
8869/* Override any GCC internal prototype to avoid an error.
8870 Use char because int might match the return type of a GCC
8871 builtin and then its argument prototype would still apply. */
8872#ifdef __cplusplus
8873extern "C"
8874#endif
8875char opendir ();
8876int
8877main ()
8878{
8879return opendir ();
8880 ;
8881 return 0;
8882}
8883_ACEOF
8884for ac_lib in '' x; do
8885 if test -z "$ac_lib"; then
8886 ac_res="none required"
8887 else
8888 ac_res=-l$ac_lib
8889 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8890 fi
8891 rm -f conftest.$ac_objext conftest$ac_exeext
8892if { (ac_try="$ac_link"
8893case "(($ac_try" in
8894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8895 *) ac_try_echo=$ac_try;;
8896esac
8897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8898 (eval "$ac_link") 2>conftest.er1
8899 ac_status=$?
8900 grep -v '^ *+' conftest.er1 >conftest.err
8901 rm -f conftest.er1
8902 cat conftest.err >&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008904 (exit $ac_status); } &&
8905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8906 { (case "(($ac_try" in
8907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8908 *) ac_try_echo=$ac_try;;
8909esac
8910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8911 (eval "$ac_try") 2>&5
8912 ac_status=$?
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); }; } &&
8915 { ac_try='test -s conftest$ac_exeext'
8916 { (case "(($ac_try" in
8917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8918 *) ac_try_echo=$ac_try;;
8919esac
8920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8921 (eval "$ac_try") 2>&5
8922 ac_status=$?
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008925 ac_cv_search_opendir=$ac_res
8926else
8927 echo "$as_me: failed program was:" >&5
8928sed 's/^/| /' conftest.$ac_ext >&5
8929
8930
8931fi
8932
Bill Wendlingebcceee2009-04-18 11:20:33 +00008933rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008934 conftest$ac_exeext
8935 if test "${ac_cv_search_opendir+set}" = set; then
8936 break
8937fi
8938done
8939if test "${ac_cv_search_opendir+set}" = set; then
8940 :
8941else
8942 ac_cv_search_opendir=no
8943fi
8944rm conftest.$ac_ext
8945LIBS=$ac_func_search_save_LIBS
8946fi
8947{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8948echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8949ac_res=$ac_cv_search_opendir
8950if test "$ac_res" != no; then
8951 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8952
8953fi
8954
8955fi
John Criswell7a73b802003-06-30 21:59:07 +00008956
8957
8958for ac_header in dlfcn.h
8959do
8960as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008961if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8962 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8963echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8964if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008965 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008966fi
Reid Spencera773bd52006-08-04 18:18:08 +00008967ac_res=`eval echo '${'$as_ac_Header'}'`
8968 { echo "$as_me:$LINENO: result: $ac_res" >&5
8969echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008970else
Brian Gaeke0a621332004-09-08 20:38:05 +00008971 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008972{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8973echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008974cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008975/* confdefs.h. */
8976_ACEOF
8977cat confdefs.h >>conftest.$ac_ext
8978cat >>conftest.$ac_ext <<_ACEOF
8979/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008980$ac_includes_default
8981#include <$ac_header>
8982_ACEOF
8983rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008984if { (ac_try="$ac_compile"
8985case "(($ac_try" in
8986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8987 *) ac_try_echo=$ac_try;;
8988esac
8989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8990 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008991 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008992 grep -v '^ *+' conftest.er1 >conftest.err
8993 rm -f conftest.er1
8994 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008996 (exit $ac_status); } &&
8997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8998 { (case "(($ac_try" in
8999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9000 *) ac_try_echo=$ac_try;;
9001esac
9002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9003 (eval "$ac_try") 2>&5
9004 ac_status=$?
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); }; } &&
9007 { ac_try='test -s conftest.$ac_objext'
9008 { (case "(($ac_try" in
9009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9010 *) ac_try_echo=$ac_try;;
9011esac
9012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9013 (eval "$ac_try") 2>&5
9014 ac_status=$?
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009017 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00009018else
9019 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009020sed 's/^/| /' conftest.$ac_ext >&5
9021
Reid Spencera773bd52006-08-04 18:18:08 +00009022 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00009023fi
Reid Spencera773bd52006-08-04 18:18:08 +00009024
9025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9026{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9027echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009028
9029# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00009030{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9031echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009032cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00009033/* confdefs.h. */
9034_ACEOF
9035cat confdefs.h >>conftest.$ac_ext
9036cat >>conftest.$ac_ext <<_ACEOF
9037/* end confdefs.h. */
9038#include <$ac_header>
9039_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009040if { (ac_try="$ac_cpp conftest.$ac_ext"
9041case "(($ac_try" in
9042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9043 *) ac_try_echo=$ac_try;;
9044esac
9045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00009047 ac_status=$?
9048 grep -v '^ *+' conftest.er1 >conftest.err
9049 rm -f conftest.er1
9050 cat conftest.err >&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009052 (exit $ac_status); } >/dev/null; then
9053 if test -s conftest.err; then
9054 ac_cpp_err=$ac_c_preproc_warn_flag
9055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9056 else
9057 ac_cpp_err=
9058 fi
9059else
9060 ac_cpp_err=yes
9061fi
9062if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009063 ac_header_preproc=yes
9064else
9065 echo "$as_me: failed program was:" >&5
9066sed 's/^/| /' conftest.$ac_ext >&5
9067
9068 ac_header_preproc=no
9069fi
Reid Spencera773bd52006-08-04 18:18:08 +00009070
Brian Gaeke0a621332004-09-08 20:38:05 +00009071rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00009072{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9073echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009074
9075# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009076case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9077 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00009078 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9079echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9081echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9082 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00009083 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009084 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00009085 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9086echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009087 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9088echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9089 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9090echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9091 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9092echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00009093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9094echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009095 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9096echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00009097 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00009098## ----------------------------------- ##
9099## Report this to llvmbugs@cs.uiuc.edu ##
9100## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00009101_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00009102 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00009103 ;;
9104esac
Reid Spencera773bd52006-08-04 18:18:08 +00009105{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9106echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9107if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009108 echo $ECHO_N "(cached) $ECHO_C" >&6
9109else
Reid Spencer2706f8c2004-09-19 23:53:36 +00009110 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00009111fi
Reid Spencera773bd52006-08-04 18:18:08 +00009112ac_res=`eval echo '${'$as_ac_Header'}'`
9113 { echo "$as_me:$LINENO: result: $ac_res" >&5
9114echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009115
9116fi
John Criswell7a73b802003-06-30 21:59:07 +00009117if test `eval echo '${'$as_ac_Header'}'` = yes; then
9118 cat >>confdefs.h <<_ACEOF
9119#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9120_ACEOF
9121
9122fi
9123
9124done
9125
Reid Spencera773bd52006-08-04 18:18:08 +00009126# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009127if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009128 enableval=$enable_ltdl_install;
9129fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009130
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009131
Bill Wendlingebcceee2009-04-18 11:20:33 +00009132
9133
9134if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009135 INSTALL_LTDL_TRUE=
9136 INSTALL_LTDL_FALSE='#'
9137else
9138 INSTALL_LTDL_TRUE='#'
9139 INSTALL_LTDL_FALSE=
9140fi
9141
Bill Wendlingebcceee2009-04-18 11:20:33 +00009142
9143
9144if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009145 CONVENIENCE_LTDL_TRUE=
9146 CONVENIENCE_LTDL_FALSE='#'
9147else
9148 CONVENIENCE_LTDL_TRUE='#'
9149 CONVENIENCE_LTDL_FALSE=
9150fi
9151
9152
Reid Spencera773bd52006-08-04 18:18:08 +00009153{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9154echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009155library_names_spec=
9156libname_spec='lib$name'
9157soname_spec=
9158shrext_cmds=".so"
9159postinstall_cmds=
9160postuninstall_cmds=
9161finish_cmds=
9162finish_eval=
9163shlibpath_var=
9164shlibpath_overrides_runpath=unknown
9165version_type=none
9166dynamic_linker="$host_os ld.so"
9167sys_lib_dlsearch_path_spec="/lib /usr/lib"
9168if test "$GCC" = yes; then
9169 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9170 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9171 # if the path contains ";" then we assume it to be the separator
9172 # otherwise default to the standard path separator (i.e. ":") - it is
9173 # assumed that no part of a normal pathname contains ";" but that should
9174 # okay in the real world where ";" in dirpaths is itself problematic.
9175 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9176 else
9177 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9178 fi
9179else
9180 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9181fi
9182need_lib_prefix=unknown
9183hardcode_into_libs=no
9184
9185# when you set need_version to no, make sure it does not cause -set_version
9186# flags to be left without arguments
9187need_version=unknown
9188
9189case $host_os in
9190aix3*)
9191 version_type=linux
9192 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9193 shlibpath_var=LIBPATH
9194
9195 # AIX 3 has no versioning support, so we append a major version to the name.
9196 soname_spec='${libname}${release}${shared_ext}$major'
9197 ;;
9198
9199aix4* | aix5*)
9200 version_type=linux
9201 need_lib_prefix=no
9202 need_version=no
9203 hardcode_into_libs=yes
9204 if test "$host_cpu" = ia64; then
9205 # AIX 5 supports IA64
9206 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9207 shlibpath_var=LD_LIBRARY_PATH
9208 else
9209 # With GCC up to 2.95.x, collect2 would create an import file
9210 # for dependence libraries. The import file would start with
9211 # the line `#! .'. This would cause the generated library to
9212 # depend on `.', always an invalid library. This was fixed in
9213 # development snapshots of GCC prior to 3.0.
9214 case $host_os in
9215 aix4 | aix4.[01] | aix4.[01].*)
9216 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9217 echo ' yes '
9218 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9219 :
9220 else
9221 can_build_shared=no
9222 fi
9223 ;;
9224 esac
9225 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9226 # soname into executable. Probably we can add versioning support to
9227 # collect2, so additional links can be useful in future.
9228 if test "$aix_use_runtimelinking" = yes; then
9229 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9230 # instead of lib<name>.a to let people know that these are not
9231 # typical AIX shared libraries.
9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9233 else
9234 # We preserve .a as extension for shared libraries through AIX4.2
9235 # and later when we are not doing run time linking.
9236 library_names_spec='${libname}${release}.a $libname.a'
9237 soname_spec='${libname}${release}${shared_ext}$major'
9238 fi
9239 shlibpath_var=LIBPATH
9240 fi
9241 ;;
9242
9243amigaos*)
9244 library_names_spec='$libname.ixlibrary $libname.a'
9245 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9246 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'
9247 ;;
9248
9249beos*)
9250 library_names_spec='${libname}${shared_ext}'
9251 dynamic_linker="$host_os ld.so"
9252 shlibpath_var=LIBRARY_PATH
9253 ;;
9254
9255bsdi[45]*)
9256 version_type=linux
9257 need_version=no
9258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9259 soname_spec='${libname}${release}${shared_ext}$major'
9260 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9261 shlibpath_var=LD_LIBRARY_PATH
9262 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9263 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9264 # the default ld.so.conf also contains /usr/contrib/lib and
9265 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9266 # libtool to hard-code these into programs
9267 ;;
9268
9269cygwin* | mingw* | pw32*)
9270 version_type=windows
9271 shrext_cmds=".dll"
9272 need_version=no
9273 need_lib_prefix=no
9274
9275 case $GCC,$host_os in
9276 yes,cygwin* | yes,mingw* | yes,pw32*)
9277 library_names_spec='$libname.dll.a'
9278 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9279 postinstall_cmds='base_file=`basename \${file}`~
9280 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9281 dldir=$destdir/`dirname \$dlpath`~
9282 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009283 $install_prog $dir/$dlname \$dldir/$dlname~
9284 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009285 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9286 dlpath=$dir/\$dldll~
9287 $rm \$dlpath'
9288 shlibpath_overrides_runpath=yes
9289
9290 case $host_os in
9291 cygwin*)
9292 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9293 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9294 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9295 ;;
9296 mingw*)
9297 # MinGW DLLs use traditional 'lib' prefix
9298 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9299 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9300 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9301 # It is most probably a Windows format PATH printed by
9302 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9303 # path with ; separators, and with drive letters. We can handle the
9304 # drive letters (cygwin fileutils understands them), so leave them,
9305 # especially as we might pass files found there to a mingw objdump,
9306 # which wouldn't understand a cygwinified path. Ahh.
9307 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9308 else
9309 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9310 fi
9311 ;;
9312 pw32*)
9313 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009314 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 +00009315 ;;
9316 esac
9317 ;;
9318
9319 *)
9320 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9321 ;;
9322 esac
9323 dynamic_linker='Win32 ld.exe'
9324 # FIXME: first we should search . and the directory the executable is in
9325 shlibpath_var=PATH
9326 ;;
9327
9328darwin* | rhapsody*)
9329 dynamic_linker="$host_os dyld"
9330 version_type=darwin
9331 need_lib_prefix=no
9332 need_version=no
9333 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9334 soname_spec='${libname}${release}${major}$shared_ext'
9335 shlibpath_overrides_runpath=yes
9336 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009337 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009338 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9339 if test "$GCC" = yes; then
9340 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"`
9341 else
9342 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9343 fi
9344 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9345 ;;
9346
9347dgux*)
9348 version_type=linux
9349 need_lib_prefix=no
9350 need_version=no
9351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9352 soname_spec='${libname}${release}${shared_ext}$major'
9353 shlibpath_var=LD_LIBRARY_PATH
9354 ;;
9355
9356freebsd1*)
9357 dynamic_linker=no
9358 ;;
9359
9360kfreebsd*-gnu)
9361 version_type=linux
9362 need_lib_prefix=no
9363 need_version=no
9364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9365 soname_spec='${libname}${release}${shared_ext}$major'
9366 shlibpath_var=LD_LIBRARY_PATH
9367 shlibpath_overrides_runpath=no
9368 hardcode_into_libs=yes
9369 dynamic_linker='GNU ld.so'
9370 ;;
9371
Reid Spencera773bd52006-08-04 18:18:08 +00009372freebsd* | dragonfly*)
9373 # DragonFly does not have aout. When/if they implement a new
9374 # versioning mechanism, adjust this.
9375 if test -x /usr/bin/objformat; then
9376 objformat=`/usr/bin/objformat`
9377 else
9378 case $host_os in
9379 freebsd[123]*) objformat=aout ;;
9380 *) objformat=elf ;;
9381 esac
9382 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009383 version_type=freebsd-$objformat
9384 case $version_type in
9385 freebsd-elf*)
9386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9387 need_version=no
9388 need_lib_prefix=no
9389 ;;
9390 freebsd-*)
9391 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9392 need_version=yes
9393 ;;
9394 esac
9395 shlibpath_var=LD_LIBRARY_PATH
9396 case $host_os in
9397 freebsd2*)
9398 shlibpath_overrides_runpath=yes
9399 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009400 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009401 shlibpath_overrides_runpath=yes
9402 hardcode_into_libs=yes
9403 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009404 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9405 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009406 shlibpath_overrides_runpath=no
9407 hardcode_into_libs=yes
9408 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009409 freebsd*) # from 4.6 on
9410 shlibpath_overrides_runpath=yes
9411 hardcode_into_libs=yes
9412 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009413 esac
9414 ;;
9415
9416gnu*)
9417 version_type=linux
9418 need_lib_prefix=no
9419 need_version=no
9420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9421 soname_spec='${libname}${release}${shared_ext}$major'
9422 shlibpath_var=LD_LIBRARY_PATH
9423 hardcode_into_libs=yes
9424 ;;
9425
9426hpux9* | hpux10* | hpux11*)
9427 # Give a soname corresponding to the major version so that dld.sl refuses to
9428 # link against other versions.
9429 version_type=sunos
9430 need_lib_prefix=no
9431 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009432 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009433 ia64*)
9434 shrext_cmds='.so'
9435 hardcode_into_libs=yes
9436 dynamic_linker="$host_os dld.so"
9437 shlibpath_var=LD_LIBRARY_PATH
9438 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9440 soname_spec='${libname}${release}${shared_ext}$major'
9441 if test "X$HPUX_IA64_MODE" = X32; then
9442 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9443 else
9444 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9445 fi
9446 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9447 ;;
9448 hppa*64*)
9449 shrext_cmds='.sl'
9450 hardcode_into_libs=yes
9451 dynamic_linker="$host_os dld.sl"
9452 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9453 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9455 soname_spec='${libname}${release}${shared_ext}$major'
9456 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9457 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9458 ;;
9459 *)
9460 shrext_cmds='.sl'
9461 dynamic_linker="$host_os dld.sl"
9462 shlibpath_var=SHLIB_PATH
9463 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9465 soname_spec='${libname}${release}${shared_ext}$major'
9466 ;;
9467 esac
9468 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9469 postinstall_cmds='chmod 555 $lib'
9470 ;;
9471
Reid Spencera773bd52006-08-04 18:18:08 +00009472interix3*)
9473 version_type=linux
9474 need_lib_prefix=no
9475 need_version=no
9476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9477 soname_spec='${libname}${release}${shared_ext}$major'
9478 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9479 shlibpath_var=LD_LIBRARY_PATH
9480 shlibpath_overrides_runpath=no
9481 hardcode_into_libs=yes
9482 ;;
9483
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009484irix5* | irix6* | nonstopux*)
9485 case $host_os in
9486 nonstopux*) version_type=nonstopux ;;
9487 *)
9488 if test "$lt_cv_prog_gnu_ld" = yes; then
9489 version_type=linux
9490 else
9491 version_type=irix
9492 fi ;;
9493 esac
9494 need_lib_prefix=no
9495 need_version=no
9496 soname_spec='${libname}${release}${shared_ext}$major'
9497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9498 case $host_os in
9499 irix5* | nonstopux*)
9500 libsuff= shlibsuff=
9501 ;;
9502 *)
9503 case $LD in # libtool.m4 will add one of these switches to LD
9504 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9505 libsuff= shlibsuff= libmagic=32-bit;;
9506 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9507 libsuff=32 shlibsuff=N32 libmagic=N32;;
9508 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9509 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9510 *) libsuff= shlibsuff= libmagic=never-match;;
9511 esac
9512 ;;
9513 esac
9514 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9515 shlibpath_overrides_runpath=no
9516 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9517 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9518 hardcode_into_libs=yes
9519 ;;
9520
9521# No shared lib support for Linux oldld, aout, or coff.
9522linux*oldld* | linux*aout* | linux*coff*)
9523 dynamic_linker=no
9524 ;;
9525
9526# This must be Linux ELF.
9527linux*)
9528 version_type=linux
9529 need_lib_prefix=no
9530 need_version=no
9531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9532 soname_spec='${libname}${release}${shared_ext}$major'
9533 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9534 shlibpath_var=LD_LIBRARY_PATH
9535 shlibpath_overrides_runpath=no
9536 # This implies no fast_install, which is unacceptable.
9537 # Some rework will be needed to allow for fast_install
9538 # before this can be enabled.
9539 hardcode_into_libs=yes
9540
9541 # Append ld.so.conf contents to the search path
9542 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009543 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 +00009544 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9545 fi
9546
9547 # We used to test for /lib/ld.so.1 and disable shared libraries on
9548 # powerpc, because MkLinux only supported shared libraries with the
9549 # GNU dynamic linker. Since this was broken with cross compilers,
9550 # most powerpc-linux boxes support dynamic linking these days and
9551 # people can always --disable-shared, the test was removed, and we
9552 # assume the GNU/Linux dynamic linker is in use.
9553 dynamic_linker='GNU/Linux ld.so'
9554 ;;
9555
9556knetbsd*-gnu)
9557 version_type=linux
9558 need_lib_prefix=no
9559 need_version=no
9560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9561 soname_spec='${libname}${release}${shared_ext}$major'
9562 shlibpath_var=LD_LIBRARY_PATH
9563 shlibpath_overrides_runpath=no
9564 hardcode_into_libs=yes
9565 dynamic_linker='GNU ld.so'
9566 ;;
9567
9568netbsd*)
9569 version_type=sunos
9570 need_lib_prefix=no
9571 need_version=no
9572 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9574 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9575 dynamic_linker='NetBSD (a.out) ld.so'
9576 else
9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9578 soname_spec='${libname}${release}${shared_ext}$major'
9579 dynamic_linker='NetBSD ld.elf_so'
9580 fi
9581 shlibpath_var=LD_LIBRARY_PATH
9582 shlibpath_overrides_runpath=yes
9583 hardcode_into_libs=yes
9584 ;;
9585
9586newsos6)
9587 version_type=linux
9588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9589 shlibpath_var=LD_LIBRARY_PATH
9590 shlibpath_overrides_runpath=yes
9591 ;;
9592
9593nto-qnx*)
9594 version_type=linux
9595 need_lib_prefix=no
9596 need_version=no
9597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9598 soname_spec='${libname}${release}${shared_ext}$major'
9599 shlibpath_var=LD_LIBRARY_PATH
9600 shlibpath_overrides_runpath=yes
9601 ;;
9602
9603openbsd*)
9604 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009605 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009606 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009607 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9608 case $host_os in
9609 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9610 *) need_version=no ;;
9611 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9614 shlibpath_var=LD_LIBRARY_PATH
9615 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9616 case $host_os in
9617 openbsd2.[89] | openbsd2.[89].*)
9618 shlibpath_overrides_runpath=no
9619 ;;
9620 *)
9621 shlibpath_overrides_runpath=yes
9622 ;;
9623 esac
9624 else
9625 shlibpath_overrides_runpath=yes
9626 fi
9627 ;;
9628
9629os2*)
9630 libname_spec='$name'
9631 shrext_cmds=".dll"
9632 need_lib_prefix=no
9633 library_names_spec='$libname${shared_ext} $libname.a'
9634 dynamic_linker='OS/2 ld.exe'
9635 shlibpath_var=LIBPATH
9636 ;;
9637
9638osf3* | osf4* | osf5*)
9639 version_type=osf
9640 need_lib_prefix=no
9641 need_version=no
9642 soname_spec='${libname}${release}${shared_ext}$major'
9643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9644 shlibpath_var=LD_LIBRARY_PATH
9645 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9646 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9647 ;;
9648
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009649solaris*)
9650 version_type=linux
9651 need_lib_prefix=no
9652 need_version=no
9653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9654 soname_spec='${libname}${release}${shared_ext}$major'
9655 shlibpath_var=LD_LIBRARY_PATH
9656 shlibpath_overrides_runpath=yes
9657 hardcode_into_libs=yes
9658 # ldd complains unless libraries are executable
9659 postinstall_cmds='chmod +x $lib'
9660 ;;
9661
9662sunos4*)
9663 version_type=sunos
9664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9665 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9666 shlibpath_var=LD_LIBRARY_PATH
9667 shlibpath_overrides_runpath=yes
9668 if test "$with_gnu_ld" = yes; then
9669 need_lib_prefix=no
9670 fi
9671 need_version=yes
9672 ;;
9673
Reid Spencera773bd52006-08-04 18:18:08 +00009674sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009675 version_type=linux
9676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9677 soname_spec='${libname}${release}${shared_ext}$major'
9678 shlibpath_var=LD_LIBRARY_PATH
9679 case $host_vendor in
9680 sni)
9681 shlibpath_overrides_runpath=no
9682 need_lib_prefix=no
9683 export_dynamic_flag_spec='${wl}-Blargedynsym'
9684 runpath_var=LD_RUN_PATH
9685 ;;
9686 siemens)
9687 need_lib_prefix=no
9688 ;;
9689 motorola)
9690 need_lib_prefix=no
9691 need_version=no
9692 shlibpath_overrides_runpath=no
9693 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9694 ;;
9695 esac
9696 ;;
9697
9698sysv4*MP*)
9699 if test -d /usr/nec ;then
9700 version_type=linux
9701 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9702 soname_spec='$libname${shared_ext}.$major'
9703 shlibpath_var=LD_LIBRARY_PATH
9704 fi
9705 ;;
9706
Reid Spencera773bd52006-08-04 18:18:08 +00009707sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9708 version_type=freebsd-elf
9709 need_lib_prefix=no
9710 need_version=no
9711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9712 soname_spec='${libname}${release}${shared_ext}$major'
9713 shlibpath_var=LD_LIBRARY_PATH
9714 hardcode_into_libs=yes
9715 if test "$with_gnu_ld" = yes; then
9716 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9717 shlibpath_overrides_runpath=no
9718 else
9719 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9720 shlibpath_overrides_runpath=yes
9721 case $host_os in
9722 sco3.2v5*)
9723 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9724 ;;
9725 esac
9726 fi
9727 sys_lib_dlsearch_path_spec='/usr/lib'
9728 ;;
9729
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009730uts4*)
9731 version_type=linux
9732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9733 soname_spec='${libname}${release}${shared_ext}$major'
9734 shlibpath_var=LD_LIBRARY_PATH
9735 ;;
9736
9737*)
9738 dynamic_linker=no
9739 ;;
9740esac
Reid Spencera773bd52006-08-04 18:18:08 +00009741{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9742echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009743test "$dynamic_linker" = no && can_build_shared=no
9744
Reid Spencera773bd52006-08-04 18:18:08 +00009745variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9746if test "$GCC" = yes; then
9747 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9748fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009749
Reid Spencera773bd52006-08-04 18:18:08 +00009750
9751{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9752echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009753if test "${libltdl_cv_shlibext+set}" = set; then
9754 echo $ECHO_N "(cached) $ECHO_C" >&6
9755else
9756
9757module=yes
9758eval libltdl_cv_shlibext=$shrext_cmds
9759
9760fi
Reid Spencera773bd52006-08-04 18:18:08 +00009761{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9762echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009763if test -n "$libltdl_cv_shlibext"; then
9764
9765cat >>confdefs.h <<_ACEOF
9766#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9767_ACEOF
9768
9769fi
9770
9771
Reid Spencera773bd52006-08-04 18:18:08 +00009772{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9773echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009774if test "${libltdl_cv_shlibpath_var+set}" = set; then
9775 echo $ECHO_N "(cached) $ECHO_C" >&6
9776else
9777 libltdl_cv_shlibpath_var="$shlibpath_var"
9778fi
Reid Spencera773bd52006-08-04 18:18:08 +00009779{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9780echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009781if test -n "$libltdl_cv_shlibpath_var"; then
9782
9783cat >>confdefs.h <<_ACEOF
9784#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9785_ACEOF
9786
9787fi
9788
9789
Reid Spencera773bd52006-08-04 18:18:08 +00009790{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9791echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009792if test "${libltdl_cv_sys_search_path+set}" = set; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
9794else
9795 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9796fi
Reid Spencera773bd52006-08-04 18:18:08 +00009797{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9798echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009799if test -n "$libltdl_cv_sys_search_path"; then
9800 sys_search_path=
9801 for dir in $libltdl_cv_sys_search_path; do
9802 if test -z "$sys_search_path"; then
9803 sys_search_path="$dir"
9804 else
9805 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9806 fi
9807 done
9808
9809cat >>confdefs.h <<_ACEOF
9810#define LTDL_SYSSEARCHPATH "$sys_search_path"
9811_ACEOF
9812
9813fi
9814
Reid Spencera773bd52006-08-04 18:18:08 +00009815{ echo "$as_me:$LINENO: checking for objdir" >&5
9816echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009817if test "${libltdl_cv_objdir+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9819else
9820 libltdl_cv_objdir="$objdir"
9821 if test -n "$objdir"; then
9822 :
9823 else
9824 rm -f .libs 2>/dev/null
9825 mkdir .libs 2>/dev/null
9826 if test -d .libs; then
9827 libltdl_cv_objdir=.libs
9828 else
9829 # MS-DOS does not allow filenames that begin with a dot.
9830 libltdl_cv_objdir=_libs
9831 fi
9832 rmdir .libs 2>/dev/null
9833 fi
9834
9835fi
Reid Spencera773bd52006-08-04 18:18:08 +00009836{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9837echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009838
9839cat >>confdefs.h <<_ACEOF
9840#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9841_ACEOF
9842
9843
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009844
9845
9846
9847
9848# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009849{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9850echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009851if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9852 echo $ECHO_N "(cached) $ECHO_C" >&6
9853else
9854
9855# These are sane defaults that work on at least a few old systems.
9856# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9857
9858# Character class describing NM global symbol codes.
9859symcode='[BCDEGRST]'
9860
9861# Regexp to match symbols that can be accessed directly from C.
9862sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9863
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009864# Transform an extracted symbol line into a proper C declaration
9865lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9866
9867# Transform an extracted symbol line into symbol name and symbol address
9868lt_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'"
9869
9870# Define system-specific variables.
9871case $host_os in
9872aix*)
9873 symcode='[BCDT]'
9874 ;;
9875cygwin* | mingw* | pw32*)
9876 symcode='[ABCDGISTW]'
9877 ;;
9878hpux*) # Its linker distinguishes data from code symbols
9879 if test "$host_cpu" = ia64; then
9880 symcode='[ABCDEGRST]'
9881 fi
9882 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9883 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'"
9884 ;;
9885linux*)
9886 if test "$host_cpu" = ia64; then
9887 symcode='[ABCDGIRSTW]'
9888 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9889 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'"
9890 fi
9891 ;;
9892irix* | nonstopux*)
9893 symcode='[BCDEGRST]'
9894 ;;
9895osf*)
9896 symcode='[BCDEGQRST]'
9897 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009898solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009899 symcode='[BDRT]'
9900 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009901sco3.2v5*)
9902 symcode='[DT]'
9903 ;;
9904sysv4.2uw2*)
9905 symcode='[DT]'
9906 ;;
9907sysv5* | sco5v6* | unixware* | OpenUNIX*)
9908 symcode='[ABDT]'
9909 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009910sysv4)
9911 symcode='[DFNSTU]'
9912 ;;
9913esac
9914
9915# Handle CRLF in mingw tool chain
9916opt_cr=
9917case $build_os in
9918mingw*)
9919 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9920 ;;
9921esac
9922
9923# If we're using GNU nm, then use its standard symbol codes.
9924case `$NM -V 2>&1` in
9925*GNU* | *'with BFD'*)
9926 symcode='[ABCDGIRSTW]' ;;
9927esac
9928
9929# Try without a prefix undercore, then with it.
9930for ac_symprfx in "" "_"; do
9931
Reid Spencera773bd52006-08-04 18:18:08 +00009932 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9933 symxfrm="\\1 $ac_symprfx\\2 \\2"
9934
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009935 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009936 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 +00009937
9938 # Check to see that the pipe works correctly.
9939 pipe_works=no
9940
9941 rm -f conftest*
9942 cat > conftest.$ac_ext <<EOF
9943#ifdef __cplusplus
9944extern "C" {
9945#endif
9946char nm_test_var;
9947void nm_test_func(){}
9948#ifdef __cplusplus
9949}
9950#endif
9951int main(){nm_test_var='a';nm_test_func();return(0);}
9952EOF
9953
9954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9955 (eval $ac_compile) 2>&5
9956 ac_status=$?
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); }; then
9959 # Now try to grab the symbols.
9960 nlist=conftest.nm
9961 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9962 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9963 ac_status=$?
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); } && test -s "$nlist"; then
9966 # Try sorting and uniquifying the output.
9967 if sort "$nlist" | uniq > "$nlist"T; then
9968 mv -f "$nlist"T "$nlist"
9969 else
9970 rm -f "$nlist"T
9971 fi
9972
9973 # Make sure that we snagged all the symbols we need.
9974 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9975 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9976 cat <<EOF > conftest.$ac_ext
9977#ifdef __cplusplus
9978extern "C" {
9979#endif
9980
9981EOF
9982 # Now generate the symbol file.
9983 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9984
9985 cat <<EOF >> conftest.$ac_ext
9986#if defined (__STDC__) && __STDC__
9987# define lt_ptr_t void *
9988#else
9989# define lt_ptr_t char *
9990# define const
9991#endif
9992
9993/* The mapping between symbol names and symbols. */
9994const struct {
9995 const char *name;
9996 lt_ptr_t address;
9997}
9998lt_preloaded_symbols[] =
9999{
10000EOF
10001 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10002 cat <<\EOF >> conftest.$ac_ext
10003 {0, (lt_ptr_t) 0}
10004};
10005
10006#ifdef __cplusplus
10007}
10008#endif
10009EOF
10010 # Now try linking the two files.
10011 mv conftest.$ac_objext conftstm.$ac_objext
10012 lt_save_LIBS="$LIBS"
10013 lt_save_CFLAGS="$CFLAGS"
10014 LIBS="conftstm.$ac_objext"
10015 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10017 (eval $ac_link) 2>&5
10018 ac_status=$?
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10021 pipe_works=yes
10022 fi
10023 LIBS="$lt_save_LIBS"
10024 CFLAGS="$lt_save_CFLAGS"
10025 else
10026 echo "cannot find nm_test_func in $nlist" >&5
10027 fi
10028 else
10029 echo "cannot find nm_test_var in $nlist" >&5
10030 fi
10031 else
10032 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10033 fi
10034 else
10035 echo "$progname: failed program was:" >&5
10036 cat conftest.$ac_ext >&5
10037 fi
10038 rm -f conftest* conftst*
10039
10040 # Do not use the global_symbol_pipe unless it works.
10041 if test "$pipe_works" = yes; then
10042 break
10043 else
10044 lt_cv_sys_global_symbol_pipe=
10045 fi
10046done
10047
10048fi
10049
10050if test -z "$lt_cv_sys_global_symbol_pipe"; then
10051 lt_cv_sys_global_symbol_to_cdecl=
10052fi
10053if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000010054 { echo "$as_me:$LINENO: result: failed" >&5
10055echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010056else
Reid Spencera773bd52006-08-04 18:18:08 +000010057 { echo "$as_me:$LINENO: result: ok" >&5
10058echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010059fi
10060
10061
Reid Spencera773bd52006-08-04 18:18:08 +000010062{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10063echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010064if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10065 echo $ECHO_N "(cached) $ECHO_C" >&6
10066else
10067 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10068 libltdl_cv_preloaded_symbols=yes
10069 else
10070 libltdl_cv_preloaded_symbols=no
10071 fi
10072
10073fi
Reid Spencera773bd52006-08-04 18:18:08 +000010074{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10075echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010076if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10077
10078cat >>confdefs.h <<\_ACEOF
10079#define HAVE_PRELOADED_SYMBOLS 1
10080_ACEOF
10081
10082fi
10083
10084LIBADD_DL=
10085
10086ac_ext=c
10087ac_cpp='$CPP $CPPFLAGS'
10088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10090ac_compiler_gnu=$ac_cv_c_compiler_gnu
10091
10092
Reid Spencera773bd52006-08-04 18:18:08 +000010093{ echo "$as_me:$LINENO: checking for shl_load" >&5
10094echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010095if test "${ac_cv_func_shl_load+set}" = set; then
10096 echo $ECHO_N "(cached) $ECHO_C" >&6
10097else
10098 cat >conftest.$ac_ext <<_ACEOF
10099/* confdefs.h. */
10100_ACEOF
10101cat confdefs.h >>conftest.$ac_ext
10102cat >>conftest.$ac_ext <<_ACEOF
10103/* end confdefs.h. */
10104/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10106#define shl_load innocuous_shl_load
10107
10108/* System header to define __stub macros and hopefully few prototypes,
10109 which can conflict with char shl_load (); below.
10110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10111 <limits.h> exists even on freestanding compilers. */
10112
10113#ifdef __STDC__
10114# include <limits.h>
10115#else
10116# include <assert.h>
10117#endif
10118
10119#undef shl_load
10120
Reid Spencera773bd52006-08-04 18:18:08 +000010121/* Override any GCC internal prototype to avoid an error.
10122 Use char because int might match the return type of a GCC
10123 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010124#ifdef __cplusplus
10125extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010126#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010127char shl_load ();
10128/* The GNU C library defines this for functions which it implements
10129 to always fail with ENOSYS. Some functions are actually named
10130 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010131#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010132choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010133#endif
10134
10135int
10136main ()
10137{
Reid Spencera773bd52006-08-04 18:18:08 +000010138return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010139 ;
10140 return 0;
10141}
10142_ACEOF
10143rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010144if { (ac_try="$ac_link"
10145case "(($ac_try" in
10146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10147 *) ac_try_echo=$ac_try;;
10148esac
10149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10150 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010151 ac_status=$?
10152 grep -v '^ *+' conftest.er1 >conftest.err
10153 rm -f conftest.er1
10154 cat conftest.err >&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010156 (exit $ac_status); } &&
10157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10158 { (case "(($ac_try" in
10159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10160 *) ac_try_echo=$ac_try;;
10161esac
10162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10163 (eval "$ac_try") 2>&5
10164 ac_status=$?
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; } &&
10167 { ac_try='test -s conftest$ac_exeext'
10168 { (case "(($ac_try" in
10169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10170 *) ac_try_echo=$ac_try;;
10171esac
10172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10173 (eval "$ac_try") 2>&5
10174 ac_status=$?
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010177 ac_cv_func_shl_load=yes
10178else
10179 echo "$as_me: failed program was:" >&5
10180sed 's/^/| /' conftest.$ac_ext >&5
10181
Reid Spencera773bd52006-08-04 18:18:08 +000010182 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010183fi
Reid Spencera773bd52006-08-04 18:18:08 +000010184
Bill Wendlingebcceee2009-04-18 11:20:33 +000010185rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010186 conftest$ac_exeext conftest.$ac_ext
10187fi
Reid Spencera773bd52006-08-04 18:18:08 +000010188{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10189echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010190if test $ac_cv_func_shl_load = yes; then
10191
10192cat >>confdefs.h <<\_ACEOF
10193#define HAVE_SHL_LOAD 1
10194_ACEOF
10195
10196else
Reid Spencera773bd52006-08-04 18:18:08 +000010197 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10198echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010199if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10200 echo $ECHO_N "(cached) $ECHO_C" >&6
10201else
10202 ac_check_lib_save_LIBS=$LIBS
10203LIBS="-ldld $LIBS"
10204cat >conftest.$ac_ext <<_ACEOF
10205/* confdefs.h. */
10206_ACEOF
10207cat confdefs.h >>conftest.$ac_ext
10208cat >>conftest.$ac_ext <<_ACEOF
10209/* end confdefs.h. */
10210
Reid Spencera773bd52006-08-04 18:18:08 +000010211/* Override any GCC internal prototype to avoid an error.
10212 Use char because int might match the return type of a GCC
10213 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010214#ifdef __cplusplus
10215extern "C"
10216#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010217char shl_load ();
10218int
10219main ()
10220{
Reid Spencera773bd52006-08-04 18:18:08 +000010221return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010222 ;
10223 return 0;
10224}
10225_ACEOF
10226rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010227if { (ac_try="$ac_link"
10228case "(($ac_try" in
10229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10230 *) ac_try_echo=$ac_try;;
10231esac
10232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10233 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010234 ac_status=$?
10235 grep -v '^ *+' conftest.er1 >conftest.err
10236 rm -f conftest.er1
10237 cat conftest.err >&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010239 (exit $ac_status); } &&
10240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10241 { (case "(($ac_try" in
10242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10243 *) ac_try_echo=$ac_try;;
10244esac
10245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10246 (eval "$ac_try") 2>&5
10247 ac_status=$?
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); }; } &&
10250 { ac_try='test -s conftest$ac_exeext'
10251 { (case "(($ac_try" in
10252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10253 *) ac_try_echo=$ac_try;;
10254esac
10255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10256 (eval "$ac_try") 2>&5
10257 ac_status=$?
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010260 ac_cv_lib_dld_shl_load=yes
10261else
10262 echo "$as_me: failed program was:" >&5
10263sed 's/^/| /' conftest.$ac_ext >&5
10264
Reid Spencera773bd52006-08-04 18:18:08 +000010265 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010266fi
Reid Spencera773bd52006-08-04 18:18:08 +000010267
Bill Wendlingebcceee2009-04-18 11:20:33 +000010268rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010269 conftest$ac_exeext conftest.$ac_ext
10270LIBS=$ac_check_lib_save_LIBS
10271fi
Reid Spencera773bd52006-08-04 18:18:08 +000010272{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10273echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010274if test $ac_cv_lib_dld_shl_load = yes; then
10275
10276cat >>confdefs.h <<\_ACEOF
10277#define HAVE_SHL_LOAD 1
10278_ACEOF
10279
10280 LIBADD_DL="$LIBADD_DL -ldld"
10281else
Reid Spencera773bd52006-08-04 18:18:08 +000010282 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10283echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010284if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10285 echo $ECHO_N "(cached) $ECHO_C" >&6
10286else
10287 ac_check_lib_save_LIBS=$LIBS
10288LIBS="-ldl $LIBS"
10289cat >conftest.$ac_ext <<_ACEOF
10290/* confdefs.h. */
10291_ACEOF
10292cat confdefs.h >>conftest.$ac_ext
10293cat >>conftest.$ac_ext <<_ACEOF
10294/* end confdefs.h. */
10295
Reid Spencera773bd52006-08-04 18:18:08 +000010296/* Override any GCC internal prototype to avoid an error.
10297 Use char because int might match the return type of a GCC
10298 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010299#ifdef __cplusplus
10300extern "C"
10301#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010302char dlopen ();
10303int
10304main ()
10305{
Reid Spencera773bd52006-08-04 18:18:08 +000010306return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010307 ;
10308 return 0;
10309}
10310_ACEOF
10311rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010312if { (ac_try="$ac_link"
10313case "(($ac_try" in
10314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10315 *) ac_try_echo=$ac_try;;
10316esac
10317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10318 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010319 ac_status=$?
10320 grep -v '^ *+' conftest.er1 >conftest.err
10321 rm -f conftest.er1
10322 cat conftest.err >&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010324 (exit $ac_status); } &&
10325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10326 { (case "(($ac_try" in
10327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10328 *) ac_try_echo=$ac_try;;
10329esac
10330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10331 (eval "$ac_try") 2>&5
10332 ac_status=$?
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); }; } &&
10335 { ac_try='test -s conftest$ac_exeext'
10336 { (case "(($ac_try" in
10337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10338 *) ac_try_echo=$ac_try;;
10339esac
10340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10341 (eval "$ac_try") 2>&5
10342 ac_status=$?
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010345 ac_cv_lib_dl_dlopen=yes
10346else
10347 echo "$as_me: failed program was:" >&5
10348sed 's/^/| /' conftest.$ac_ext >&5
10349
Reid Spencera773bd52006-08-04 18:18:08 +000010350 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010351fi
Reid Spencera773bd52006-08-04 18:18:08 +000010352
Bill Wendlingebcceee2009-04-18 11:20:33 +000010353rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010354 conftest$ac_exeext conftest.$ac_ext
10355LIBS=$ac_check_lib_save_LIBS
10356fi
Reid Spencera773bd52006-08-04 18:18:08 +000010357{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10358echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010359if test $ac_cv_lib_dl_dlopen = yes; then
10360
10361cat >>confdefs.h <<\_ACEOF
10362#define HAVE_LIBDL 1
10363_ACEOF
10364
10365 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10366else
10367 cat >conftest.$ac_ext <<_ACEOF
10368/* confdefs.h. */
10369_ACEOF
10370cat confdefs.h >>conftest.$ac_ext
10371cat >>conftest.$ac_ext <<_ACEOF
10372/* end confdefs.h. */
10373#if HAVE_DLFCN_H
10374# include <dlfcn.h>
10375#endif
10376
10377int
10378main ()
10379{
10380dlopen(0, 0);
10381 ;
10382 return 0;
10383}
10384_ACEOF
10385rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010386if { (ac_try="$ac_link"
10387case "(($ac_try" in
10388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10389 *) ac_try_echo=$ac_try;;
10390esac
10391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10392 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010393 ac_status=$?
10394 grep -v '^ *+' conftest.er1 >conftest.err
10395 rm -f conftest.er1
10396 cat conftest.err >&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010398 (exit $ac_status); } &&
10399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10400 { (case "(($ac_try" in
10401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10402 *) ac_try_echo=$ac_try;;
10403esac
10404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10405 (eval "$ac_try") 2>&5
10406 ac_status=$?
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); }; } &&
10409 { ac_try='test -s conftest$ac_exeext'
10410 { (case "(($ac_try" in
10411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10412 *) ac_try_echo=$ac_try;;
10413esac
10414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10415 (eval "$ac_try") 2>&5
10416 ac_status=$?
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010419
10420cat >>confdefs.h <<\_ACEOF
10421#define HAVE_LIBDL 1
10422_ACEOF
10423 libltdl_cv_func_dlopen="yes"
10424else
10425 echo "$as_me: failed program was:" >&5
10426sed 's/^/| /' conftest.$ac_ext >&5
10427
Reid Spencera773bd52006-08-04 18:18:08 +000010428 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10429echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010430if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10431 echo $ECHO_N "(cached) $ECHO_C" >&6
10432else
10433 ac_check_lib_save_LIBS=$LIBS
10434LIBS="-lsvld $LIBS"
10435cat >conftest.$ac_ext <<_ACEOF
10436/* confdefs.h. */
10437_ACEOF
10438cat confdefs.h >>conftest.$ac_ext
10439cat >>conftest.$ac_ext <<_ACEOF
10440/* end confdefs.h. */
10441
Reid Spencera773bd52006-08-04 18:18:08 +000010442/* Override any GCC internal prototype to avoid an error.
10443 Use char because int might match the return type of a GCC
10444 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010445#ifdef __cplusplus
10446extern "C"
10447#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010448char dlopen ();
10449int
10450main ()
10451{
Reid Spencera773bd52006-08-04 18:18:08 +000010452return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010453 ;
10454 return 0;
10455}
10456_ACEOF
10457rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010458if { (ac_try="$ac_link"
10459case "(($ac_try" in
10460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10461 *) ac_try_echo=$ac_try;;
10462esac
10463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10464 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010465 ac_status=$?
10466 grep -v '^ *+' conftest.er1 >conftest.err
10467 rm -f conftest.er1
10468 cat conftest.err >&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010470 (exit $ac_status); } &&
10471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10472 { (case "(($ac_try" in
10473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10474 *) ac_try_echo=$ac_try;;
10475esac
10476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10477 (eval "$ac_try") 2>&5
10478 ac_status=$?
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); }; } &&
10481 { ac_try='test -s conftest$ac_exeext'
10482 { (case "(($ac_try" in
10483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10484 *) ac_try_echo=$ac_try;;
10485esac
10486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10487 (eval "$ac_try") 2>&5
10488 ac_status=$?
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010491 ac_cv_lib_svld_dlopen=yes
10492else
10493 echo "$as_me: failed program was:" >&5
10494sed 's/^/| /' conftest.$ac_ext >&5
10495
Reid Spencera773bd52006-08-04 18:18:08 +000010496 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010497fi
Reid Spencera773bd52006-08-04 18:18:08 +000010498
Bill Wendlingebcceee2009-04-18 11:20:33 +000010499rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010500 conftest$ac_exeext conftest.$ac_ext
10501LIBS=$ac_check_lib_save_LIBS
10502fi
Reid Spencera773bd52006-08-04 18:18:08 +000010503{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10504echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010505if test $ac_cv_lib_svld_dlopen = yes; then
10506
10507cat >>confdefs.h <<\_ACEOF
10508#define HAVE_LIBDL 1
10509_ACEOF
10510
10511 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10512else
Reid Spencera773bd52006-08-04 18:18:08 +000010513 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10514echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010515if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10516 echo $ECHO_N "(cached) $ECHO_C" >&6
10517else
10518 ac_check_lib_save_LIBS=$LIBS
10519LIBS="-ldld $LIBS"
10520cat >conftest.$ac_ext <<_ACEOF
10521/* confdefs.h. */
10522_ACEOF
10523cat confdefs.h >>conftest.$ac_ext
10524cat >>conftest.$ac_ext <<_ACEOF
10525/* end confdefs.h. */
10526
Reid Spencera773bd52006-08-04 18:18:08 +000010527/* Override any GCC internal prototype to avoid an error.
10528 Use char because int might match the return type of a GCC
10529 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010530#ifdef __cplusplus
10531extern "C"
10532#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010533char dld_link ();
10534int
10535main ()
10536{
Reid Spencera773bd52006-08-04 18:18:08 +000010537return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010538 ;
10539 return 0;
10540}
10541_ACEOF
10542rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010543if { (ac_try="$ac_link"
10544case "(($ac_try" in
10545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10546 *) ac_try_echo=$ac_try;;
10547esac
10548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10549 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010550 ac_status=$?
10551 grep -v '^ *+' conftest.er1 >conftest.err
10552 rm -f conftest.er1
10553 cat conftest.err >&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010555 (exit $ac_status); } &&
10556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10557 { (case "(($ac_try" in
10558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10559 *) ac_try_echo=$ac_try;;
10560esac
10561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10562 (eval "$ac_try") 2>&5
10563 ac_status=$?
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); }; } &&
10566 { ac_try='test -s conftest$ac_exeext'
10567 { (case "(($ac_try" in
10568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10569 *) ac_try_echo=$ac_try;;
10570esac
10571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10572 (eval "$ac_try") 2>&5
10573 ac_status=$?
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010576 ac_cv_lib_dld_dld_link=yes
10577else
10578 echo "$as_me: failed program was:" >&5
10579sed 's/^/| /' conftest.$ac_ext >&5
10580
Reid Spencera773bd52006-08-04 18:18:08 +000010581 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010582fi
Reid Spencera773bd52006-08-04 18:18:08 +000010583
Bill Wendlingebcceee2009-04-18 11:20:33 +000010584rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010585 conftest$ac_exeext conftest.$ac_ext
10586LIBS=$ac_check_lib_save_LIBS
10587fi
Reid Spencera773bd52006-08-04 18:18:08 +000010588{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10589echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010590if test $ac_cv_lib_dld_dld_link = yes; then
10591
10592cat >>confdefs.h <<\_ACEOF
10593#define HAVE_DLD 1
10594_ACEOF
10595
10596 LIBADD_DL="$LIBADD_DL -ldld"
10597else
Reid Spencera773bd52006-08-04 18:18:08 +000010598 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10599echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010600if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10601 echo $ECHO_N "(cached) $ECHO_C" >&6
10602else
10603 cat >conftest.$ac_ext <<_ACEOF
10604/* confdefs.h. */
10605_ACEOF
10606cat confdefs.h >>conftest.$ac_ext
10607cat >>conftest.$ac_ext <<_ACEOF
10608/* end confdefs.h. */
10609/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10611#define _dyld_func_lookup innocuous__dyld_func_lookup
10612
10613/* System header to define __stub macros and hopefully few prototypes,
10614 which can conflict with char _dyld_func_lookup (); below.
10615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10616 <limits.h> exists even on freestanding compilers. */
10617
10618#ifdef __STDC__
10619# include <limits.h>
10620#else
10621# include <assert.h>
10622#endif
10623
10624#undef _dyld_func_lookup
10625
Reid Spencera773bd52006-08-04 18:18:08 +000010626/* Override any GCC internal prototype to avoid an error.
10627 Use char because int might match the return type of a GCC
10628 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010629#ifdef __cplusplus
10630extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010631#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010632char _dyld_func_lookup ();
10633/* The GNU C library defines this for functions which it implements
10634 to always fail with ENOSYS. Some functions are actually named
10635 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010636#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010637choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010638#endif
10639
10640int
10641main ()
10642{
Reid Spencera773bd52006-08-04 18:18:08 +000010643return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010644 ;
10645 return 0;
10646}
10647_ACEOF
10648rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010649if { (ac_try="$ac_link"
10650case "(($ac_try" in
10651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10652 *) ac_try_echo=$ac_try;;
10653esac
10654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10655 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010656 ac_status=$?
10657 grep -v '^ *+' conftest.er1 >conftest.err
10658 rm -f conftest.er1
10659 cat conftest.err >&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010661 (exit $ac_status); } &&
10662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10663 { (case "(($ac_try" in
10664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10665 *) ac_try_echo=$ac_try;;
10666esac
10667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10668 (eval "$ac_try") 2>&5
10669 ac_status=$?
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); }; } &&
10672 { ac_try='test -s conftest$ac_exeext'
10673 { (case "(($ac_try" in
10674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10675 *) ac_try_echo=$ac_try;;
10676esac
10677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10678 (eval "$ac_try") 2>&5
10679 ac_status=$?
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010682 ac_cv_func__dyld_func_lookup=yes
10683else
10684 echo "$as_me: failed program was:" >&5
10685sed 's/^/| /' conftest.$ac_ext >&5
10686
Reid Spencera773bd52006-08-04 18:18:08 +000010687 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010688fi
Reid Spencera773bd52006-08-04 18:18:08 +000010689
Bill Wendlingebcceee2009-04-18 11:20:33 +000010690rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010691 conftest$ac_exeext conftest.$ac_ext
10692fi
Reid Spencera773bd52006-08-04 18:18:08 +000010693{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10694echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010695if test $ac_cv_func__dyld_func_lookup = yes; then
10696
10697cat >>confdefs.h <<\_ACEOF
10698#define HAVE_DYLD 1
10699_ACEOF
10700
10701fi
10702
10703
10704fi
10705
10706
10707fi
10708
10709
10710fi
Reid Spencera773bd52006-08-04 18:18:08 +000010711
Bill Wendlingebcceee2009-04-18 11:20:33 +000010712rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010713 conftest$ac_exeext conftest.$ac_ext
10714
10715fi
10716
10717
10718fi
10719
10720
10721fi
10722
10723
10724if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10725then
10726 lt_save_LIBS="$LIBS"
10727 LIBS="$LIBS $LIBADD_DL"
10728
10729for ac_func in dlerror
10730do
10731as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010732{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10733echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10734if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010735 echo $ECHO_N "(cached) $ECHO_C" >&6
10736else
10737 cat >conftest.$ac_ext <<_ACEOF
10738/* confdefs.h. */
10739_ACEOF
10740cat confdefs.h >>conftest.$ac_ext
10741cat >>conftest.$ac_ext <<_ACEOF
10742/* end confdefs.h. */
10743/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10745#define $ac_func innocuous_$ac_func
10746
10747/* System header to define __stub macros and hopefully few prototypes,
10748 which can conflict with char $ac_func (); below.
10749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10750 <limits.h> exists even on freestanding compilers. */
10751
10752#ifdef __STDC__
10753# include <limits.h>
10754#else
10755# include <assert.h>
10756#endif
10757
10758#undef $ac_func
10759
Reid Spencera773bd52006-08-04 18:18:08 +000010760/* Override any GCC internal prototype to avoid an error.
10761 Use char because int might match the return type of a GCC
10762 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010763#ifdef __cplusplus
10764extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010765#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010766char $ac_func ();
10767/* The GNU C library defines this for functions which it implements
10768 to always fail with ENOSYS. Some functions are actually named
10769 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010770#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010771choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010772#endif
10773
10774int
10775main ()
10776{
Reid Spencera773bd52006-08-04 18:18:08 +000010777return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010778 ;
10779 return 0;
10780}
10781_ACEOF
10782rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010783if { (ac_try="$ac_link"
10784case "(($ac_try" in
10785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786 *) ac_try_echo=$ac_try;;
10787esac
10788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10789 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010790 ac_status=$?
10791 grep -v '^ *+' conftest.er1 >conftest.err
10792 rm -f conftest.er1
10793 cat conftest.err >&5
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010795 (exit $ac_status); } &&
10796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10797 { (case "(($ac_try" in
10798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10799 *) ac_try_echo=$ac_try;;
10800esac
10801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10802 (eval "$ac_try") 2>&5
10803 ac_status=$?
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); }; } &&
10806 { ac_try='test -s conftest$ac_exeext'
10807 { (case "(($ac_try" in
10808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809 *) ac_try_echo=$ac_try;;
10810esac
10811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812 (eval "$ac_try") 2>&5
10813 ac_status=$?
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010816 eval "$as_ac_var=yes"
10817else
10818 echo "$as_me: failed program was:" >&5
10819sed 's/^/| /' conftest.$ac_ext >&5
10820
Reid Spencera773bd52006-08-04 18:18:08 +000010821 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010822fi
Reid Spencera773bd52006-08-04 18:18:08 +000010823
Bill Wendlingebcceee2009-04-18 11:20:33 +000010824rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010825 conftest$ac_exeext conftest.$ac_ext
10826fi
Reid Spencera773bd52006-08-04 18:18:08 +000010827ac_res=`eval echo '${'$as_ac_var'}'`
10828 { echo "$as_me:$LINENO: result: $ac_res" >&5
10829echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010830if test `eval echo '${'$as_ac_var'}'` = yes; then
10831 cat >>confdefs.h <<_ACEOF
10832#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10833_ACEOF
10834
10835fi
10836done
10837
10838 LIBS="$lt_save_LIBS"
10839fi
10840ac_ext=c
10841ac_cpp='$CPP $CPPFLAGS'
10842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10844ac_compiler_gnu=$ac_cv_c_compiler_gnu
10845
10846
10847
Reid Spencera773bd52006-08-04 18:18:08 +000010848{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10849echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010850if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10851 echo $ECHO_N "(cached) $ECHO_C" >&6
10852else
10853 ac_cv_sys_symbol_underscore=no
10854 cat > conftest.$ac_ext <<EOF
10855void nm_test_func(){}
10856int main(){nm_test_func;return 0;}
10857EOF
10858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10859 (eval $ac_compile) 2>&5
10860 ac_status=$?
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); }; then
10863 # Now try to grab the symbols.
10864 ac_nlist=conftest.nm
10865 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10866 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10867 ac_status=$?
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); } && test -s "$ac_nlist"; then
10870 # See whether the symbols have a leading underscore.
10871 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10872 ac_cv_sys_symbol_underscore=yes
10873 else
10874 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10875 :
10876 else
10877 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10878 fi
10879 fi
10880 else
10881 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10882 fi
10883 else
10884 echo "configure: failed program was:" >&5
10885 cat conftest.c >&5
10886 fi
10887 rm -rf conftest*
10888
10889fi
Reid Spencera773bd52006-08-04 18:18:08 +000010890{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10891echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010892
10893
10894if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10895 if test x"$libltdl_cv_func_dlopen" = xyes ||
10896 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010897 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10898echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010899if test "${libltdl_cv_need_uscore+set}" = set; then
10900 echo $ECHO_N "(cached) $ECHO_C" >&6
10901else
10902 libltdl_cv_need_uscore=unknown
10903 save_LIBS="$LIBS"
10904 LIBS="$LIBS $LIBADD_DL"
10905 if test "$cross_compiling" = yes; then :
10906 libltdl_cv_need_uscore=cross
10907else
10908 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10909 lt_status=$lt_dlunknown
10910 cat > conftest.$ac_ext <<EOF
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000010911#line 10916 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010912#include "confdefs.h"
10913
10914#if HAVE_DLFCN_H
10915#include <dlfcn.h>
10916#endif
10917
10918#include <stdio.h>
10919
10920#ifdef RTLD_GLOBAL
10921# define LT_DLGLOBAL RTLD_GLOBAL
10922#else
10923# ifdef DL_GLOBAL
10924# define LT_DLGLOBAL DL_GLOBAL
10925# else
10926# define LT_DLGLOBAL 0
10927# endif
10928#endif
10929
10930/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10931 find out it does not work in some platform. */
10932#ifndef LT_DLLAZY_OR_NOW
10933# ifdef RTLD_LAZY
10934# define LT_DLLAZY_OR_NOW RTLD_LAZY
10935# else
10936# ifdef DL_LAZY
10937# define LT_DLLAZY_OR_NOW DL_LAZY
10938# else
10939# ifdef RTLD_NOW
10940# define LT_DLLAZY_OR_NOW RTLD_NOW
10941# else
10942# ifdef DL_NOW
10943# define LT_DLLAZY_OR_NOW DL_NOW
10944# else
10945# define LT_DLLAZY_OR_NOW 0
10946# endif
10947# endif
10948# endif
10949# endif
10950#endif
10951
10952#ifdef __cplusplus
10953extern "C" void exit (int);
10954#endif
10955
10956void fnord() { int i=42;}
10957int main ()
10958{
10959 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10960 int status = $lt_dlunknown;
10961
10962 if (self)
10963 {
10964 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10965 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10966 /* dlclose (self); */
10967 }
Reid Spencera773bd52006-08-04 18:18:08 +000010968 else
10969 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010970
10971 exit (status);
10972}
10973EOF
10974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10975 (eval $ac_link) 2>&5
10976 ac_status=$?
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010979 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010980 lt_status=$?
10981 case x$lt_status in
10982 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10983 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010984 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010985 esac
10986 else :
10987 # compilation failed
10988
10989 fi
10990fi
10991rm -fr conftest*
10992
10993 LIBS="$save_LIBS"
10994
10995fi
Reid Spencera773bd52006-08-04 18:18:08 +000010996{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10997echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010998 fi
10999fi
11000
11001if test x"$libltdl_cv_need_uscore" = xyes; then
11002
11003cat >>confdefs.h <<\_ACEOF
11004#define NEED_USCORE 1
11005_ACEOF
11006
11007fi
11008
11009
Reid Spencera773bd52006-08-04 18:18:08 +000011010{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11011echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011012if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11013 echo $ECHO_N "(cached) $ECHO_C" >&6
11014else
11015 # PORTME does your system automatically load deplibs for dlopen?
11016 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11017 # For now, we just catch OSes we know something about -- in the
11018 # future, we'll try test this programmatically.
11019 libltdl_cv_sys_dlopen_deplibs=unknown
11020 case "$host_os" in
11021 aix3*|aix4.1.*|aix4.2.*)
11022 # Unknown whether this is true for these versions of AIX, but
11023 # we want this `case' here to explicitly catch those versions.
11024 libltdl_cv_sys_dlopen_deplibs=unknown
11025 ;;
11026 aix[45]*)
11027 libltdl_cv_sys_dlopen_deplibs=yes
11028 ;;
11029 darwin*)
11030 # Assuming the user has installed a libdl from somewhere, this is true
11031 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11032 libltdl_cv_sys_dlopen_deplibs=yes
11033 ;;
11034 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11035 # GNU and its variants, using gnu ld.so (Glibc)
11036 libltdl_cv_sys_dlopen_deplibs=yes
11037 ;;
11038 hpux10*|hpux11*)
11039 libltdl_cv_sys_dlopen_deplibs=yes
11040 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011041 interix*)
11042 libltdl_cv_sys_dlopen_deplibs=yes
11043 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011044 irix[12345]*|irix6.[01]*)
11045 # Catch all versions of IRIX before 6.2, and indicate that we don't
11046 # know how it worked for any of those versions.
11047 libltdl_cv_sys_dlopen_deplibs=unknown
11048 ;;
11049 irix*)
11050 # The case above catches anything before 6.2, and it's known that
11051 # at 6.2 and later dlopen does load deplibs.
11052 libltdl_cv_sys_dlopen_deplibs=yes
11053 ;;
11054 netbsd*)
11055 libltdl_cv_sys_dlopen_deplibs=yes
11056 ;;
11057 openbsd*)
11058 libltdl_cv_sys_dlopen_deplibs=yes
11059 ;;
11060 osf[1234]*)
11061 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11062 # it did *not* use an RPATH in a shared library to find objects the
11063 # library depends on, so we explictly say `no'.
11064 libltdl_cv_sys_dlopen_deplibs=no
11065 ;;
11066 osf5.0|osf5.0a|osf5.1)
11067 # dlopen *does* load deplibs and with the right loader patch applied
11068 # it even uses RPATH in a shared library to search for shared objects
11069 # that the library depends on, but there's no easy way to know if that
11070 # patch is installed. Since this is the case, all we can really
11071 # say is unknown -- it depends on the patch being installed. If
11072 # it is, this changes to `yes'. Without it, it would be `no'.
11073 libltdl_cv_sys_dlopen_deplibs=unknown
11074 ;;
11075 osf*)
11076 # the two cases above should catch all versions of osf <= 5.1. Read
11077 # the comments above for what we know about them.
11078 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11079 # is used to find them so we can finally say `yes'.
11080 libltdl_cv_sys_dlopen_deplibs=yes
11081 ;;
11082 solaris*)
11083 libltdl_cv_sys_dlopen_deplibs=yes
11084 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011085 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11086 libltdl_cv_sys_dlopen_deplibs=yes
11087 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011088 esac
11089
11090fi
Reid Spencera773bd52006-08-04 18:18:08 +000011091{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11092echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011093if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11094
11095cat >>confdefs.h <<\_ACEOF
11096#define LTDL_DLOPEN_DEPLIBS 1
11097_ACEOF
11098
11099fi
11100
11101
11102for ac_header in argz.h
11103do
11104as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011105if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11107echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11108if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011109 echo $ECHO_N "(cached) $ECHO_C" >&6
11110fi
Reid Spencera773bd52006-08-04 18:18:08 +000011111ac_res=`eval echo '${'$as_ac_Header'}'`
11112 { echo "$as_me:$LINENO: result: $ac_res" >&5
11113echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011114else
11115 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011116{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11117echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011118cat >conftest.$ac_ext <<_ACEOF
11119/* confdefs.h. */
11120_ACEOF
11121cat confdefs.h >>conftest.$ac_ext
11122cat >>conftest.$ac_ext <<_ACEOF
11123/* end confdefs.h. */
11124$ac_includes_default
11125#include <$ac_header>
11126_ACEOF
11127rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011128if { (ac_try="$ac_compile"
11129case "(($ac_try" in
11130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11131 *) ac_try_echo=$ac_try;;
11132esac
11133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11134 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011135 ac_status=$?
11136 grep -v '^ *+' conftest.er1 >conftest.err
11137 rm -f conftest.er1
11138 cat conftest.err >&5
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011140 (exit $ac_status); } &&
11141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11142 { (case "(($ac_try" in
11143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144 *) ac_try_echo=$ac_try;;
11145esac
11146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11147 (eval "$ac_try") 2>&5
11148 ac_status=$?
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); }; } &&
11151 { ac_try='test -s conftest.$ac_objext'
11152 { (case "(($ac_try" in
11153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11154 *) ac_try_echo=$ac_try;;
11155esac
11156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11157 (eval "$ac_try") 2>&5
11158 ac_status=$?
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011161 ac_header_compiler=yes
11162else
11163 echo "$as_me: failed program was:" >&5
11164sed 's/^/| /' conftest.$ac_ext >&5
11165
Reid Spencera773bd52006-08-04 18:18:08 +000011166 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011167fi
Reid Spencera773bd52006-08-04 18:18:08 +000011168
11169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11170{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11171echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011172
11173# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011174{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11175echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011176cat >conftest.$ac_ext <<_ACEOF
11177/* confdefs.h. */
11178_ACEOF
11179cat confdefs.h >>conftest.$ac_ext
11180cat >>conftest.$ac_ext <<_ACEOF
11181/* end confdefs.h. */
11182#include <$ac_header>
11183_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011184if { (ac_try="$ac_cpp conftest.$ac_ext"
11185case "(($ac_try" in
11186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11187 *) ac_try_echo=$ac_try;;
11188esac
11189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011191 ac_status=$?
11192 grep -v '^ *+' conftest.er1 >conftest.err
11193 rm -f conftest.er1
11194 cat conftest.err >&5
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011196 (exit $ac_status); } >/dev/null; then
11197 if test -s conftest.err; then
11198 ac_cpp_err=$ac_c_preproc_warn_flag
11199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11200 else
11201 ac_cpp_err=
11202 fi
11203else
11204 ac_cpp_err=yes
11205fi
11206if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011207 ac_header_preproc=yes
11208else
11209 echo "$as_me: failed program was:" >&5
11210sed 's/^/| /' conftest.$ac_ext >&5
11211
11212 ac_header_preproc=no
11213fi
Reid Spencera773bd52006-08-04 18:18:08 +000011214
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011215rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011216{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11217echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011218
11219# So? What about this header?
11220case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11221 yes:no: )
11222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11223echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11225echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11226 ac_header_preproc=yes
11227 ;;
11228 no:yes:* )
11229 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11230echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11231 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11232echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11233 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11234echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11235 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11236echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11238echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11239 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11240echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011241 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011242## ----------------------------------- ##
11243## Report this to llvmbugs@cs.uiuc.edu ##
11244## ----------------------------------- ##
11245_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011246 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011247 ;;
11248esac
Reid Spencera773bd52006-08-04 18:18:08 +000011249{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11250echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11251if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011252 echo $ECHO_N "(cached) $ECHO_C" >&6
11253else
11254 eval "$as_ac_Header=\$ac_header_preproc"
11255fi
Reid Spencera773bd52006-08-04 18:18:08 +000011256ac_res=`eval echo '${'$as_ac_Header'}'`
11257 { echo "$as_me:$LINENO: result: $ac_res" >&5
11258echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011259
11260fi
11261if test `eval echo '${'$as_ac_Header'}'` = yes; then
11262 cat >>confdefs.h <<_ACEOF
11263#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11264_ACEOF
11265
11266fi
11267
11268done
11269
11270
Reid Spencera773bd52006-08-04 18:18:08 +000011271{ echo "$as_me:$LINENO: checking for error_t" >&5
11272echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011273if test "${ac_cv_type_error_t+set}" = set; then
11274 echo $ECHO_N "(cached) $ECHO_C" >&6
11275else
11276 cat >conftest.$ac_ext <<_ACEOF
11277/* confdefs.h. */
11278_ACEOF
11279cat confdefs.h >>conftest.$ac_ext
11280cat >>conftest.$ac_ext <<_ACEOF
11281/* end confdefs.h. */
11282#if HAVE_ARGZ_H
11283# include <argz.h>
11284#endif
11285
Reid Spencera773bd52006-08-04 18:18:08 +000011286typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011287int
11288main ()
11289{
Reid Spencera773bd52006-08-04 18:18:08 +000011290if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011291 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000011292if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011293 return 0;
11294 ;
11295 return 0;
11296}
11297_ACEOF
11298rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011299if { (ac_try="$ac_compile"
11300case "(($ac_try" in
11301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302 *) ac_try_echo=$ac_try;;
11303esac
11304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11305 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011306 ac_status=$?
11307 grep -v '^ *+' conftest.er1 >conftest.err
11308 rm -f conftest.er1
11309 cat conftest.err >&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011311 (exit $ac_status); } &&
11312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11313 { (case "(($ac_try" in
11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315 *) ac_try_echo=$ac_try;;
11316esac
11317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318 (eval "$ac_try") 2>&5
11319 ac_status=$?
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; } &&
11322 { ac_try='test -s conftest.$ac_objext'
11323 { (case "(($ac_try" in
11324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11325 *) ac_try_echo=$ac_try;;
11326esac
11327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11328 (eval "$ac_try") 2>&5
11329 ac_status=$?
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011332 ac_cv_type_error_t=yes
11333else
11334 echo "$as_me: failed program was:" >&5
11335sed 's/^/| /' conftest.$ac_ext >&5
11336
Reid Spencera773bd52006-08-04 18:18:08 +000011337 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011338fi
Reid Spencera773bd52006-08-04 18:18:08 +000011339
11340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011341fi
Reid Spencera773bd52006-08-04 18:18:08 +000011342{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11343echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011344if test $ac_cv_type_error_t = yes; then
11345
11346cat >>confdefs.h <<_ACEOF
11347#define HAVE_ERROR_T 1
11348_ACEOF
11349
11350
11351else
11352
11353cat >>confdefs.h <<\_ACEOF
11354#define error_t int
11355_ACEOF
11356
11357fi
11358
11359
11360
11361
11362
11363
11364
11365for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11366do
11367as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011368{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11369echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11370if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011371 echo $ECHO_N "(cached) $ECHO_C" >&6
11372else
11373 cat >conftest.$ac_ext <<_ACEOF
11374/* confdefs.h. */
11375_ACEOF
11376cat confdefs.h >>conftest.$ac_ext
11377cat >>conftest.$ac_ext <<_ACEOF
11378/* end confdefs.h. */
11379/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11381#define $ac_func innocuous_$ac_func
11382
11383/* System header to define __stub macros and hopefully few prototypes,
11384 which can conflict with char $ac_func (); below.
11385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11386 <limits.h> exists even on freestanding compilers. */
11387
11388#ifdef __STDC__
11389# include <limits.h>
11390#else
11391# include <assert.h>
11392#endif
11393
11394#undef $ac_func
11395
Reid Spencera773bd52006-08-04 18:18:08 +000011396/* Override any GCC internal prototype to avoid an error.
11397 Use char because int might match the return type of a GCC
11398 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011399#ifdef __cplusplus
11400extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011401#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011402char $ac_func ();
11403/* The GNU C library defines this for functions which it implements
11404 to always fail with ENOSYS. Some functions are actually named
11405 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011406#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011407choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011408#endif
11409
11410int
11411main ()
11412{
Reid Spencera773bd52006-08-04 18:18:08 +000011413return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011414 ;
11415 return 0;
11416}
11417_ACEOF
11418rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011419if { (ac_try="$ac_link"
11420case "(($ac_try" in
11421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11422 *) ac_try_echo=$ac_try;;
11423esac
11424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11425 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011426 ac_status=$?
11427 grep -v '^ *+' conftest.er1 >conftest.err
11428 rm -f conftest.er1
11429 cat conftest.err >&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011431 (exit $ac_status); } &&
11432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11433 { (case "(($ac_try" in
11434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11435 *) ac_try_echo=$ac_try;;
11436esac
11437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11438 (eval "$ac_try") 2>&5
11439 ac_status=$?
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); }; } &&
11442 { ac_try='test -s conftest$ac_exeext'
11443 { (case "(($ac_try" in
11444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445 *) ac_try_echo=$ac_try;;
11446esac
11447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11448 (eval "$ac_try") 2>&5
11449 ac_status=$?
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011452 eval "$as_ac_var=yes"
11453else
11454 echo "$as_me: failed program was:" >&5
11455sed 's/^/| /' conftest.$ac_ext >&5
11456
Reid Spencera773bd52006-08-04 18:18:08 +000011457 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011458fi
Reid Spencera773bd52006-08-04 18:18:08 +000011459
Bill Wendlingebcceee2009-04-18 11:20:33 +000011460rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011461 conftest$ac_exeext conftest.$ac_ext
11462fi
Reid Spencera773bd52006-08-04 18:18:08 +000011463ac_res=`eval echo '${'$as_ac_var'}'`
11464 { echo "$as_me:$LINENO: result: $ac_res" >&5
11465echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011466if test `eval echo '${'$as_ac_var'}'` = yes; then
11467 cat >>confdefs.h <<_ACEOF
11468#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11469_ACEOF
11470
11471fi
11472done
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11502 stdio.h unistd.h
11503do
11504as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011505if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11508if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011509 echo $ECHO_N "(cached) $ECHO_C" >&6
11510fi
Reid Spencera773bd52006-08-04 18:18:08 +000011511ac_res=`eval echo '${'$as_ac_Header'}'`
11512 { echo "$as_me:$LINENO: result: $ac_res" >&5
11513echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011514else
11515 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011516{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11517echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011518cat >conftest.$ac_ext <<_ACEOF
11519/* confdefs.h. */
11520_ACEOF
11521cat confdefs.h >>conftest.$ac_ext
11522cat >>conftest.$ac_ext <<_ACEOF
11523/* end confdefs.h. */
11524$ac_includes_default
11525#include <$ac_header>
11526_ACEOF
11527rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011528if { (ac_try="$ac_compile"
11529case "(($ac_try" in
11530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11531 *) ac_try_echo=$ac_try;;
11532esac
11533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11534 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011535 ac_status=$?
11536 grep -v '^ *+' conftest.er1 >conftest.err
11537 rm -f conftest.er1
11538 cat conftest.err >&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011540 (exit $ac_status); } &&
11541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11542 { (case "(($ac_try" in
11543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11544 *) ac_try_echo=$ac_try;;
11545esac
11546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11547 (eval "$ac_try") 2>&5
11548 ac_status=$?
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); }; } &&
11551 { ac_try='test -s conftest.$ac_objext'
11552 { (case "(($ac_try" in
11553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11554 *) ac_try_echo=$ac_try;;
11555esac
11556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11557 (eval "$ac_try") 2>&5
11558 ac_status=$?
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011561 ac_header_compiler=yes
11562else
11563 echo "$as_me: failed program was:" >&5
11564sed 's/^/| /' conftest.$ac_ext >&5
11565
Reid Spencera773bd52006-08-04 18:18:08 +000011566 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011567fi
Reid Spencera773bd52006-08-04 18:18:08 +000011568
11569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11570{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11571echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011572
11573# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011574{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11575echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011576cat >conftest.$ac_ext <<_ACEOF
11577/* confdefs.h. */
11578_ACEOF
11579cat confdefs.h >>conftest.$ac_ext
11580cat >>conftest.$ac_ext <<_ACEOF
11581/* end confdefs.h. */
11582#include <$ac_header>
11583_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011584if { (ac_try="$ac_cpp conftest.$ac_ext"
11585case "(($ac_try" in
11586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587 *) ac_try_echo=$ac_try;;
11588esac
11589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011591 ac_status=$?
11592 grep -v '^ *+' conftest.er1 >conftest.err
11593 rm -f conftest.er1
11594 cat conftest.err >&5
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011596 (exit $ac_status); } >/dev/null; then
11597 if test -s conftest.err; then
11598 ac_cpp_err=$ac_c_preproc_warn_flag
11599 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11600 else
11601 ac_cpp_err=
11602 fi
11603else
11604 ac_cpp_err=yes
11605fi
11606if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011607 ac_header_preproc=yes
11608else
11609 echo "$as_me: failed program was:" >&5
11610sed 's/^/| /' conftest.$ac_ext >&5
11611
11612 ac_header_preproc=no
11613fi
Reid Spencera773bd52006-08-04 18:18:08 +000011614
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011615rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011616{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11617echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011618
11619# So? What about this header?
11620case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11621 yes:no: )
11622 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11623echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11625echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11626 ac_header_preproc=yes
11627 ;;
11628 no:yes:* )
11629 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11630echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11631 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11632echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11633 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11634echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11635 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11636echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11638echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11639 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11640echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011641 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011642## ----------------------------------- ##
11643## Report this to llvmbugs@cs.uiuc.edu ##
11644## ----------------------------------- ##
11645_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011646 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011647 ;;
11648esac
Reid Spencera773bd52006-08-04 18:18:08 +000011649{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11651if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011652 echo $ECHO_N "(cached) $ECHO_C" >&6
11653else
11654 eval "$as_ac_Header=\$ac_header_preproc"
11655fi
Reid Spencera773bd52006-08-04 18:18:08 +000011656ac_res=`eval echo '${'$as_ac_Header'}'`
11657 { echo "$as_me:$LINENO: result: $ac_res" >&5
11658echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011659
11660fi
11661if test `eval echo '${'$as_ac_Header'}'` = yes; then
11662 cat >>confdefs.h <<_ACEOF
11663#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11664_ACEOF
11665
11666fi
11667
11668done
11669
11670
11671
11672
11673
11674for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11675do
11676as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011677if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11679echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11680if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011681 echo $ECHO_N "(cached) $ECHO_C" >&6
11682fi
Reid Spencera773bd52006-08-04 18:18:08 +000011683ac_res=`eval echo '${'$as_ac_Header'}'`
11684 { echo "$as_me:$LINENO: result: $ac_res" >&5
11685echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011686else
11687 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011688{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11689echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011690cat >conftest.$ac_ext <<_ACEOF
11691/* confdefs.h. */
11692_ACEOF
11693cat confdefs.h >>conftest.$ac_ext
11694cat >>conftest.$ac_ext <<_ACEOF
11695/* end confdefs.h. */
11696$ac_includes_default
11697#include <$ac_header>
11698_ACEOF
11699rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011700if { (ac_try="$ac_compile"
11701case "(($ac_try" in
11702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11703 *) ac_try_echo=$ac_try;;
11704esac
11705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11706 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011707 ac_status=$?
11708 grep -v '^ *+' conftest.er1 >conftest.err
11709 rm -f conftest.er1
11710 cat conftest.err >&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011712 (exit $ac_status); } &&
11713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11714 { (case "(($ac_try" in
11715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11716 *) ac_try_echo=$ac_try;;
11717esac
11718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11719 (eval "$ac_try") 2>&5
11720 ac_status=$?
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; } &&
11723 { ac_try='test -s conftest.$ac_objext'
11724 { (case "(($ac_try" in
11725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11726 *) ac_try_echo=$ac_try;;
11727esac
11728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11729 (eval "$ac_try") 2>&5
11730 ac_status=$?
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011733 ac_header_compiler=yes
11734else
11735 echo "$as_me: failed program was:" >&5
11736sed 's/^/| /' conftest.$ac_ext >&5
11737
Reid Spencera773bd52006-08-04 18:18:08 +000011738 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011739fi
Reid Spencera773bd52006-08-04 18:18:08 +000011740
11741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11742{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11743echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011744
11745# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011746{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11747echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011748cat >conftest.$ac_ext <<_ACEOF
11749/* confdefs.h. */
11750_ACEOF
11751cat confdefs.h >>conftest.$ac_ext
11752cat >>conftest.$ac_ext <<_ACEOF
11753/* end confdefs.h. */
11754#include <$ac_header>
11755_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011756if { (ac_try="$ac_cpp conftest.$ac_ext"
11757case "(($ac_try" in
11758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11759 *) ac_try_echo=$ac_try;;
11760esac
11761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011763 ac_status=$?
11764 grep -v '^ *+' conftest.er1 >conftest.err
11765 rm -f conftest.er1
11766 cat conftest.err >&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011768 (exit $ac_status); } >/dev/null; then
11769 if test -s conftest.err; then
11770 ac_cpp_err=$ac_c_preproc_warn_flag
11771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11772 else
11773 ac_cpp_err=
11774 fi
11775else
11776 ac_cpp_err=yes
11777fi
11778if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011779 ac_header_preproc=yes
11780else
11781 echo "$as_me: failed program was:" >&5
11782sed 's/^/| /' conftest.$ac_ext >&5
11783
11784 ac_header_preproc=no
11785fi
Reid Spencera773bd52006-08-04 18:18:08 +000011786
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011787rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011788{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11789echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011790
11791# So? What about this header?
11792case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11793 yes:no: )
11794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11795echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11797echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11798 ac_header_preproc=yes
11799 ;;
11800 no:yes:* )
11801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11802echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11804echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11805 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11806echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11807 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11808echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11810echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11811 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11812echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011813 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011814## ----------------------------------- ##
11815## Report this to llvmbugs@cs.uiuc.edu ##
11816## ----------------------------------- ##
11817_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011818 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011819 ;;
11820esac
Reid Spencera773bd52006-08-04 18:18:08 +000011821{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11822echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11823if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011824 echo $ECHO_N "(cached) $ECHO_C" >&6
11825else
11826 eval "$as_ac_Header=\$ac_header_preproc"
11827fi
Reid Spencera773bd52006-08-04 18:18:08 +000011828ac_res=`eval echo '${'$as_ac_Header'}'`
11829 { echo "$as_me:$LINENO: result: $ac_res" >&5
11830echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011831
11832fi
11833if test `eval echo '${'$as_ac_Header'}'` = yes; then
11834 cat >>confdefs.h <<_ACEOF
11835#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11836_ACEOF
11837
11838fi
11839
11840done
11841
11842
11843
11844for ac_header in string.h strings.h
11845do
11846as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011847if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11848 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11849echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11850if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011851 echo $ECHO_N "(cached) $ECHO_C" >&6
11852fi
Reid Spencera773bd52006-08-04 18:18:08 +000011853ac_res=`eval echo '${'$as_ac_Header'}'`
11854 { echo "$as_me:$LINENO: result: $ac_res" >&5
11855echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011856else
11857 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011858{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11859echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011860cat >conftest.$ac_ext <<_ACEOF
11861/* confdefs.h. */
11862_ACEOF
11863cat confdefs.h >>conftest.$ac_ext
11864cat >>conftest.$ac_ext <<_ACEOF
11865/* end confdefs.h. */
11866$ac_includes_default
11867#include <$ac_header>
11868_ACEOF
11869rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011870if { (ac_try="$ac_compile"
11871case "(($ac_try" in
11872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11873 *) ac_try_echo=$ac_try;;
11874esac
11875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11876 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011877 ac_status=$?
11878 grep -v '^ *+' conftest.er1 >conftest.err
11879 rm -f conftest.er1
11880 cat conftest.err >&5
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011882 (exit $ac_status); } &&
11883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11884 { (case "(($ac_try" in
11885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11886 *) ac_try_echo=$ac_try;;
11887esac
11888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11889 (eval "$ac_try") 2>&5
11890 ac_status=$?
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; } &&
11893 { ac_try='test -s conftest.$ac_objext'
11894 { (case "(($ac_try" in
11895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11896 *) ac_try_echo=$ac_try;;
11897esac
11898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11899 (eval "$ac_try") 2>&5
11900 ac_status=$?
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011903 ac_header_compiler=yes
11904else
11905 echo "$as_me: failed program was:" >&5
11906sed 's/^/| /' conftest.$ac_ext >&5
11907
Reid Spencera773bd52006-08-04 18:18:08 +000011908 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011909fi
Reid Spencera773bd52006-08-04 18:18:08 +000011910
11911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11912{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11913echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011914
11915# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011916{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11917echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011918cat >conftest.$ac_ext <<_ACEOF
11919/* confdefs.h. */
11920_ACEOF
11921cat confdefs.h >>conftest.$ac_ext
11922cat >>conftest.$ac_ext <<_ACEOF
11923/* end confdefs.h. */
11924#include <$ac_header>
11925_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011926if { (ac_try="$ac_cpp conftest.$ac_ext"
11927case "(($ac_try" in
11928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11929 *) ac_try_echo=$ac_try;;
11930esac
11931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011933 ac_status=$?
11934 grep -v '^ *+' conftest.er1 >conftest.err
11935 rm -f conftest.er1
11936 cat conftest.err >&5
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011938 (exit $ac_status); } >/dev/null; then
11939 if test -s conftest.err; then
11940 ac_cpp_err=$ac_c_preproc_warn_flag
11941 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11942 else
11943 ac_cpp_err=
11944 fi
11945else
11946 ac_cpp_err=yes
11947fi
11948if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011949 ac_header_preproc=yes
11950else
11951 echo "$as_me: failed program was:" >&5
11952sed 's/^/| /' conftest.$ac_ext >&5
11953
11954 ac_header_preproc=no
11955fi
Reid Spencera773bd52006-08-04 18:18:08 +000011956
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011957rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011958{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11959echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011960
11961# So? What about this header?
11962case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11963 yes:no: )
11964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11965echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11967echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11968 ac_header_preproc=yes
11969 ;;
11970 no:yes:* )
11971 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11972echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11973 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11974echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11975 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11976echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11977 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11978echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11980echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11981 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11982echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011983 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011984## ----------------------------------- ##
11985## Report this to llvmbugs@cs.uiuc.edu ##
11986## ----------------------------------- ##
11987_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011988 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011989 ;;
11990esac
Reid Spencera773bd52006-08-04 18:18:08 +000011991{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11992echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11993if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011994 echo $ECHO_N "(cached) $ECHO_C" >&6
11995else
11996 eval "$as_ac_Header=\$ac_header_preproc"
11997fi
Reid Spencera773bd52006-08-04 18:18:08 +000011998ac_res=`eval echo '${'$as_ac_Header'}'`
11999 { echo "$as_me:$LINENO: result: $ac_res" >&5
12000echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012001
12002fi
12003if test `eval echo '${'$as_ac_Header'}'` = yes; then
12004 cat >>confdefs.h <<_ACEOF
12005#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12006_ACEOF
12007 break
12008fi
12009
12010done
12011
12012
12013
12014
12015for ac_func in strchr index
12016do
12017as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012018{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12019echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12020if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012021 echo $ECHO_N "(cached) $ECHO_C" >&6
12022else
12023 cat >conftest.$ac_ext <<_ACEOF
12024/* confdefs.h. */
12025_ACEOF
12026cat confdefs.h >>conftest.$ac_ext
12027cat >>conftest.$ac_ext <<_ACEOF
12028/* end confdefs.h. */
12029/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12031#define $ac_func innocuous_$ac_func
12032
12033/* System header to define __stub macros and hopefully few prototypes,
12034 which can conflict with char $ac_func (); below.
12035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12036 <limits.h> exists even on freestanding compilers. */
12037
12038#ifdef __STDC__
12039# include <limits.h>
12040#else
12041# include <assert.h>
12042#endif
12043
12044#undef $ac_func
12045
Reid Spencera773bd52006-08-04 18:18:08 +000012046/* Override any GCC internal prototype to avoid an error.
12047 Use char because int might match the return type of a GCC
12048 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012049#ifdef __cplusplus
12050extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012051#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012052char $ac_func ();
12053/* The GNU C library defines this for functions which it implements
12054 to always fail with ENOSYS. Some functions are actually named
12055 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012056#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012057choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012058#endif
12059
12060int
12061main ()
12062{
Reid Spencera773bd52006-08-04 18:18:08 +000012063return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012064 ;
12065 return 0;
12066}
12067_ACEOF
12068rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012069if { (ac_try="$ac_link"
12070case "(($ac_try" in
12071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12072 *) ac_try_echo=$ac_try;;
12073esac
12074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12075 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012076 ac_status=$?
12077 grep -v '^ *+' conftest.er1 >conftest.err
12078 rm -f conftest.er1
12079 cat conftest.err >&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012081 (exit $ac_status); } &&
12082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12083 { (case "(($ac_try" in
12084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12085 *) ac_try_echo=$ac_try;;
12086esac
12087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12088 (eval "$ac_try") 2>&5
12089 ac_status=$?
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); }; } &&
12092 { ac_try='test -s conftest$ac_exeext'
12093 { (case "(($ac_try" in
12094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12095 *) ac_try_echo=$ac_try;;
12096esac
12097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12098 (eval "$ac_try") 2>&5
12099 ac_status=$?
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012102 eval "$as_ac_var=yes"
12103else
12104 echo "$as_me: failed program was:" >&5
12105sed 's/^/| /' conftest.$ac_ext >&5
12106
Reid Spencera773bd52006-08-04 18:18:08 +000012107 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012108fi
Reid Spencera773bd52006-08-04 18:18:08 +000012109
Bill Wendlingebcceee2009-04-18 11:20:33 +000012110rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012111 conftest$ac_exeext conftest.$ac_ext
12112fi
Reid Spencera773bd52006-08-04 18:18:08 +000012113ac_res=`eval echo '${'$as_ac_var'}'`
12114 { echo "$as_me:$LINENO: result: $ac_res" >&5
12115echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012116if test `eval echo '${'$as_ac_var'}'` = yes; then
12117 cat >>confdefs.h <<_ACEOF
12118#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12119_ACEOF
12120 break
12121fi
12122done
12123
12124
12125
12126for ac_func in strrchr rindex
12127do
12128as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012129{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12130echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12131if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012132 echo $ECHO_N "(cached) $ECHO_C" >&6
12133else
12134 cat >conftest.$ac_ext <<_ACEOF
12135/* confdefs.h. */
12136_ACEOF
12137cat confdefs.h >>conftest.$ac_ext
12138cat >>conftest.$ac_ext <<_ACEOF
12139/* end confdefs.h. */
12140/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12142#define $ac_func innocuous_$ac_func
12143
12144/* System header to define __stub macros and hopefully few prototypes,
12145 which can conflict with char $ac_func (); below.
12146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12147 <limits.h> exists even on freestanding compilers. */
12148
12149#ifdef __STDC__
12150# include <limits.h>
12151#else
12152# include <assert.h>
12153#endif
12154
12155#undef $ac_func
12156
Reid Spencera773bd52006-08-04 18:18:08 +000012157/* Override any GCC internal prototype to avoid an error.
12158 Use char because int might match the return type of a GCC
12159 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012160#ifdef __cplusplus
12161extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012162#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012163char $ac_func ();
12164/* The GNU C library defines this for functions which it implements
12165 to always fail with ENOSYS. Some functions are actually named
12166 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012167#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012168choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012169#endif
12170
12171int
12172main ()
12173{
Reid Spencera773bd52006-08-04 18:18:08 +000012174return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012175 ;
12176 return 0;
12177}
12178_ACEOF
12179rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012180if { (ac_try="$ac_link"
12181case "(($ac_try" in
12182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12183 *) ac_try_echo=$ac_try;;
12184esac
12185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12186 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012187 ac_status=$?
12188 grep -v '^ *+' conftest.er1 >conftest.err
12189 rm -f conftest.er1
12190 cat conftest.err >&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012192 (exit $ac_status); } &&
12193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12194 { (case "(($ac_try" in
12195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12196 *) ac_try_echo=$ac_try;;
12197esac
12198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12199 (eval "$ac_try") 2>&5
12200 ac_status=$?
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); }; } &&
12203 { ac_try='test -s conftest$ac_exeext'
12204 { (case "(($ac_try" in
12205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12206 *) ac_try_echo=$ac_try;;
12207esac
12208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12209 (eval "$ac_try") 2>&5
12210 ac_status=$?
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012213 eval "$as_ac_var=yes"
12214else
12215 echo "$as_me: failed program was:" >&5
12216sed 's/^/| /' conftest.$ac_ext >&5
12217
Reid Spencera773bd52006-08-04 18:18:08 +000012218 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012219fi
Reid Spencera773bd52006-08-04 18:18:08 +000012220
Bill Wendlingebcceee2009-04-18 11:20:33 +000012221rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012222 conftest$ac_exeext conftest.$ac_ext
12223fi
Reid Spencera773bd52006-08-04 18:18:08 +000012224ac_res=`eval echo '${'$as_ac_var'}'`
12225 { echo "$as_me:$LINENO: result: $ac_res" >&5
12226echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012227if test `eval echo '${'$as_ac_var'}'` = yes; then
12228 cat >>confdefs.h <<_ACEOF
12229#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12230_ACEOF
12231 break
12232fi
12233done
12234
12235
12236
12237for ac_func in memcpy bcopy
12238do
12239as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012240{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12241echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12242if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012243 echo $ECHO_N "(cached) $ECHO_C" >&6
12244else
12245 cat >conftest.$ac_ext <<_ACEOF
12246/* confdefs.h. */
12247_ACEOF
12248cat confdefs.h >>conftest.$ac_ext
12249cat >>conftest.$ac_ext <<_ACEOF
12250/* end confdefs.h. */
12251/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12253#define $ac_func innocuous_$ac_func
12254
12255/* System header to define __stub macros and hopefully few prototypes,
12256 which can conflict with char $ac_func (); below.
12257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12258 <limits.h> exists even on freestanding compilers. */
12259
12260#ifdef __STDC__
12261# include <limits.h>
12262#else
12263# include <assert.h>
12264#endif
12265
12266#undef $ac_func
12267
Reid Spencera773bd52006-08-04 18:18:08 +000012268/* Override any GCC internal prototype to avoid an error.
12269 Use char because int might match the return type of a GCC
12270 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012271#ifdef __cplusplus
12272extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012273#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012274char $ac_func ();
12275/* The GNU C library defines this for functions which it implements
12276 to always fail with ENOSYS. Some functions are actually named
12277 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012278#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012279choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012280#endif
12281
12282int
12283main ()
12284{
Reid Spencera773bd52006-08-04 18:18:08 +000012285return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012286 ;
12287 return 0;
12288}
12289_ACEOF
12290rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012291if { (ac_try="$ac_link"
12292case "(($ac_try" in
12293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12294 *) ac_try_echo=$ac_try;;
12295esac
12296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12297 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012298 ac_status=$?
12299 grep -v '^ *+' conftest.er1 >conftest.err
12300 rm -f conftest.er1
12301 cat conftest.err >&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012303 (exit $ac_status); } &&
12304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12305 { (case "(($ac_try" in
12306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12307 *) ac_try_echo=$ac_try;;
12308esac
12309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12310 (eval "$ac_try") 2>&5
12311 ac_status=$?
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); }; } &&
12314 { ac_try='test -s conftest$ac_exeext'
12315 { (case "(($ac_try" in
12316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12317 *) ac_try_echo=$ac_try;;
12318esac
12319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12320 (eval "$ac_try") 2>&5
12321 ac_status=$?
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012324 eval "$as_ac_var=yes"
12325else
12326 echo "$as_me: failed program was:" >&5
12327sed 's/^/| /' conftest.$ac_ext >&5
12328
Reid Spencera773bd52006-08-04 18:18:08 +000012329 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012330fi
Reid Spencera773bd52006-08-04 18:18:08 +000012331
Bill Wendlingebcceee2009-04-18 11:20:33 +000012332rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012333 conftest$ac_exeext conftest.$ac_ext
12334fi
Reid Spencera773bd52006-08-04 18:18:08 +000012335ac_res=`eval echo '${'$as_ac_var'}'`
12336 { echo "$as_me:$LINENO: result: $ac_res" >&5
12337echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012338if test `eval echo '${'$as_ac_var'}'` = yes; then
12339 cat >>confdefs.h <<_ACEOF
12340#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12341_ACEOF
12342 break
12343fi
12344done
12345
12346
12347
12348for ac_func in memmove strcmp
12349do
12350as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012351{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12352echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12353if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012354 echo $ECHO_N "(cached) $ECHO_C" >&6
12355else
12356 cat >conftest.$ac_ext <<_ACEOF
12357/* confdefs.h. */
12358_ACEOF
12359cat confdefs.h >>conftest.$ac_ext
12360cat >>conftest.$ac_ext <<_ACEOF
12361/* end confdefs.h. */
12362/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12364#define $ac_func innocuous_$ac_func
12365
12366/* System header to define __stub macros and hopefully few prototypes,
12367 which can conflict with char $ac_func (); below.
12368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12369 <limits.h> exists even on freestanding compilers. */
12370
12371#ifdef __STDC__
12372# include <limits.h>
12373#else
12374# include <assert.h>
12375#endif
12376
12377#undef $ac_func
12378
Reid Spencera773bd52006-08-04 18:18:08 +000012379/* Override any GCC internal prototype to avoid an error.
12380 Use char because int might match the return type of a GCC
12381 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012382#ifdef __cplusplus
12383extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012384#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012385char $ac_func ();
12386/* The GNU C library defines this for functions which it implements
12387 to always fail with ENOSYS. Some functions are actually named
12388 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012389#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012390choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012391#endif
12392
12393int
12394main ()
12395{
Reid Spencera773bd52006-08-04 18:18:08 +000012396return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012397 ;
12398 return 0;
12399}
12400_ACEOF
12401rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012402if { (ac_try="$ac_link"
12403case "(($ac_try" in
12404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12405 *) ac_try_echo=$ac_try;;
12406esac
12407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12408 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012409 ac_status=$?
12410 grep -v '^ *+' conftest.er1 >conftest.err
12411 rm -f conftest.er1
12412 cat conftest.err >&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012414 (exit $ac_status); } &&
12415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12416 { (case "(($ac_try" in
12417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12418 *) ac_try_echo=$ac_try;;
12419esac
12420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12421 (eval "$ac_try") 2>&5
12422 ac_status=$?
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); }; } &&
12425 { ac_try='test -s conftest$ac_exeext'
12426 { (case "(($ac_try" in
12427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428 *) ac_try_echo=$ac_try;;
12429esac
12430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12431 (eval "$ac_try") 2>&5
12432 ac_status=$?
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012435 eval "$as_ac_var=yes"
12436else
12437 echo "$as_me: failed program was:" >&5
12438sed 's/^/| /' conftest.$ac_ext >&5
12439
Reid Spencera773bd52006-08-04 18:18:08 +000012440 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012441fi
Reid Spencera773bd52006-08-04 18:18:08 +000012442
Bill Wendlingebcceee2009-04-18 11:20:33 +000012443rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012444 conftest$ac_exeext conftest.$ac_ext
12445fi
Reid Spencera773bd52006-08-04 18:18:08 +000012446ac_res=`eval echo '${'$as_ac_var'}'`
12447 { echo "$as_me:$LINENO: result: $ac_res" >&5
12448echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012449if test `eval echo '${'$as_ac_var'}'` = yes; then
12450 cat >>confdefs.h <<_ACEOF
12451#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12452_ACEOF
12453
12454fi
12455done
12456
12457
12458
12459
12460for ac_func in closedir opendir readdir
12461do
12462as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012463{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12464echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12465if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012466 echo $ECHO_N "(cached) $ECHO_C" >&6
12467else
12468 cat >conftest.$ac_ext <<_ACEOF
12469/* confdefs.h. */
12470_ACEOF
12471cat confdefs.h >>conftest.$ac_ext
12472cat >>conftest.$ac_ext <<_ACEOF
12473/* end confdefs.h. */
12474/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12476#define $ac_func innocuous_$ac_func
12477
12478/* System header to define __stub macros and hopefully few prototypes,
12479 which can conflict with char $ac_func (); below.
12480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12481 <limits.h> exists even on freestanding compilers. */
12482
12483#ifdef __STDC__
12484# include <limits.h>
12485#else
12486# include <assert.h>
12487#endif
12488
12489#undef $ac_func
12490
Reid Spencera773bd52006-08-04 18:18:08 +000012491/* Override any GCC internal prototype to avoid an error.
12492 Use char because int might match the return type of a GCC
12493 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012494#ifdef __cplusplus
12495extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012496#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012497char $ac_func ();
12498/* The GNU C library defines this for functions which it implements
12499 to always fail with ENOSYS. Some functions are actually named
12500 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012501#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012502choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012503#endif
12504
12505int
12506main ()
12507{
Reid Spencera773bd52006-08-04 18:18:08 +000012508return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012509 ;
12510 return 0;
12511}
12512_ACEOF
12513rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012514if { (ac_try="$ac_link"
12515case "(($ac_try" in
12516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12517 *) ac_try_echo=$ac_try;;
12518esac
12519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12520 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012521 ac_status=$?
12522 grep -v '^ *+' conftest.er1 >conftest.err
12523 rm -f conftest.er1
12524 cat conftest.err >&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012526 (exit $ac_status); } &&
12527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12528 { (case "(($ac_try" in
12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12531esac
12532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533 (eval "$ac_try") 2>&5
12534 ac_status=$?
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; } &&
12537 { ac_try='test -s conftest$ac_exeext'
12538 { (case "(($ac_try" in
12539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12540 *) ac_try_echo=$ac_try;;
12541esac
12542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12543 (eval "$ac_try") 2>&5
12544 ac_status=$?
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012547 eval "$as_ac_var=yes"
12548else
12549 echo "$as_me: failed program was:" >&5
12550sed 's/^/| /' conftest.$ac_ext >&5
12551
Reid Spencera773bd52006-08-04 18:18:08 +000012552 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012553fi
Reid Spencera773bd52006-08-04 18:18:08 +000012554
Bill Wendlingebcceee2009-04-18 11:20:33 +000012555rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012556 conftest$ac_exeext conftest.$ac_ext
12557fi
Reid Spencera773bd52006-08-04 18:18:08 +000012558ac_res=`eval echo '${'$as_ac_var'}'`
12559 { echo "$as_me:$LINENO: result: $ac_res" >&5
12560echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012561if test `eval echo '${'$as_ac_var'}'` = yes; then
12562 cat >>confdefs.h <<_ACEOF
12563#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12564_ACEOF
12565
12566fi
12567done
12568
12569
Reid Spencera773bd52006-08-04 18:18:08 +000012570# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012571if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012572 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012573 case $enableval in
12574 yes) enable_shared=yes ;;
12575 no) enable_shared=no ;;
12576 *)
12577 enable_shared=no
12578 # Look at the argument we got. We use all the common list separators.
12579 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12580 for pkg in $enableval; do
12581 IFS="$lt_save_ifs"
12582 if test "X$pkg" = "X$p"; then
12583 enable_shared=yes
12584 fi
12585 done
12586 IFS="$lt_save_ifs"
12587 ;;
12588 esac
12589else
12590 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012591fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012592
Reid Spencera773bd52006-08-04 18:18:08 +000012593
12594# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012595if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012596 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012597 case $enableval in
12598 yes) enable_static=yes ;;
12599 no) enable_static=no ;;
12600 *)
12601 enable_static=no
12602 # Look at the argument we got. We use all the common list separators.
12603 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12604 for pkg in $enableval; do
12605 IFS="$lt_save_ifs"
12606 if test "X$pkg" = "X$p"; then
12607 enable_static=yes
12608 fi
12609 done
12610 IFS="$lt_save_ifs"
12611 ;;
12612 esac
12613else
12614 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012615fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012616
Reid Spencera773bd52006-08-04 18:18:08 +000012617
12618# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012619if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012620 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012621 case $enableval in
12622 yes) enable_fast_install=yes ;;
12623 no) enable_fast_install=no ;;
12624 *)
12625 enable_fast_install=no
12626 # Look at the argument we got. We use all the common list separators.
12627 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12628 for pkg in $enableval; do
12629 IFS="$lt_save_ifs"
12630 if test "X$pkg" = "X$p"; then
12631 enable_fast_install=yes
12632 fi
12633 done
12634 IFS="$lt_save_ifs"
12635 ;;
12636 esac
12637else
12638 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012639fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012640
Reid Spencera773bd52006-08-04 18:18:08 +000012641
12642{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12643echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012644if test "${lt_cv_path_SED+set}" = set; then
12645 echo $ECHO_N "(cached) $ECHO_C" >&6
12646else
12647 # Loop through the user's path and test for sed and gsed.
12648# Then use that list of sed's as ones to test for truncation.
12649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12650for as_dir in $PATH
12651do
12652 IFS=$as_save_IFS
12653 test -z "$as_dir" && as_dir=.
12654 for lt_ac_prog in sed gsed; do
12655 for ac_exec_ext in '' $ac_executable_extensions; do
12656 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12657 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12658 fi
12659 done
12660 done
12661done
12662lt_ac_max=0
12663lt_ac_count=0
12664# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12665# along with /bin/sed that truncates output.
12666for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012667 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012668 cat /dev/null > conftest.in
12669 lt_ac_count=0
12670 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12671 # Check for GNU sed and select it if it is found.
12672 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12673 lt_cv_path_SED=$lt_ac_sed
12674 break
12675 fi
12676 while true; do
12677 cat conftest.in conftest.in >conftest.tmp
12678 mv conftest.tmp conftest.in
12679 cp conftest.in conftest.nl
12680 echo >>conftest.nl
12681 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12682 cmp -s conftest.out conftest.nl || break
12683 # 10000 chars as input seems more than enough
12684 test $lt_ac_count -gt 10 && break
12685 lt_ac_count=`expr $lt_ac_count + 1`
12686 if test $lt_ac_count -gt $lt_ac_max; then
12687 lt_ac_max=$lt_ac_count
12688 lt_cv_path_SED=$lt_ac_sed
12689 fi
12690 done
12691done
12692
12693fi
12694
12695SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012696{ echo "$as_me:$LINENO: result: $SED" >&5
12697echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012698
12699
Reid Spencera773bd52006-08-04 18:18:08 +000012700# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012701if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012702 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012703else
12704 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012705fi
12706
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012707ac_prog=ld
12708if test "$GCC" = yes; then
12709 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012710 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12711echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012712 case $host in
12713 *-*-mingw*)
12714 # gcc leaves a trailing carriage return which upsets mingw
12715 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12716 *)
12717 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12718 esac
12719 case $ac_prog in
12720 # Accept absolute paths.
12721 [\\/]* | ?:[\\/]*)
12722 re_direlt='/[^/][^/]*/\.\./'
12723 # Canonicalize the pathname of ld
12724 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12725 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12726 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12727 done
12728 test -z "$LD" && LD="$ac_prog"
12729 ;;
12730 "")
12731 # If it fails, then pretend we aren't using GCC.
12732 ac_prog=ld
12733 ;;
12734 *)
12735 # If it is relative, then search for the first ld in PATH.
12736 with_gnu_ld=unknown
12737 ;;
12738 esac
12739elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012740 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12741echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012742else
Reid Spencera773bd52006-08-04 18:18:08 +000012743 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12744echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012745fi
12746if test "${lt_cv_path_LD+set}" = set; then
12747 echo $ECHO_N "(cached) $ECHO_C" >&6
12748else
12749 if test -z "$LD"; then
12750 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12751 for ac_dir in $PATH; do
12752 IFS="$lt_save_ifs"
12753 test -z "$ac_dir" && ac_dir=.
12754 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12755 lt_cv_path_LD="$ac_dir/$ac_prog"
12756 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012757 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012758 # Break only if it was the GNU/non-GNU ld that we prefer.
12759 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12760 *GNU* | *'with BFD'*)
12761 test "$with_gnu_ld" != no && break
12762 ;;
12763 *)
12764 test "$with_gnu_ld" != yes && break
12765 ;;
12766 esac
12767 fi
12768 done
12769 IFS="$lt_save_ifs"
12770else
12771 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12772fi
12773fi
12774
12775LD="$lt_cv_path_LD"
12776if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012777 { echo "$as_me:$LINENO: result: $LD" >&5
12778echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012779else
Reid Spencera773bd52006-08-04 18:18:08 +000012780 { echo "$as_me:$LINENO: result: no" >&5
12781echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012782fi
12783test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12784echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12785 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012786{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12787echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012788if test "${lt_cv_prog_gnu_ld+set}" = set; then
12789 echo $ECHO_N "(cached) $ECHO_C" >&6
12790else
Reid Spencera773bd52006-08-04 18:18:08 +000012791 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012792case `$LD -v 2>&1 </dev/null` in
12793*GNU* | *'with BFD'*)
12794 lt_cv_prog_gnu_ld=yes
12795 ;;
12796*)
12797 lt_cv_prog_gnu_ld=no
12798 ;;
12799esac
12800fi
Reid Spencera773bd52006-08-04 18:18:08 +000012801{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12802echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012803with_gnu_ld=$lt_cv_prog_gnu_ld
12804
12805
Reid Spencera773bd52006-08-04 18:18:08 +000012806{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12807echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012808if test "${lt_cv_ld_reload_flag+set}" = set; then
12809 echo $ECHO_N "(cached) $ECHO_C" >&6
12810else
12811 lt_cv_ld_reload_flag='-r'
12812fi
Reid Spencera773bd52006-08-04 18:18:08 +000012813{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12814echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012815reload_flag=$lt_cv_ld_reload_flag
12816case $reload_flag in
12817"" | " "*) ;;
12818*) reload_flag=" $reload_flag" ;;
12819esac
12820reload_cmds='$LD$reload_flag -o $output$reload_objs'
12821case $host_os in
12822 darwin*)
12823 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012824 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012825 else
12826 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12827 fi
12828 ;;
12829esac
12830
Reid Spencera773bd52006-08-04 18:18:08 +000012831{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12832echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012833if test "${lt_cv_deplibs_check_method+set}" = set; then
12834 echo $ECHO_N "(cached) $ECHO_C" >&6
12835else
12836 lt_cv_file_magic_cmd='$MAGIC_CMD'
12837lt_cv_file_magic_test_file=
12838lt_cv_deplibs_check_method='unknown'
12839# Need to set the preceding variable on all platforms that support
12840# interlibrary dependencies.
12841# 'none' -- dependencies not supported.
12842# `unknown' -- same as none, but documents that we really don't know.
12843# 'pass_all' -- all dependencies passed with no checks.
12844# 'test_compile' -- check by making test program.
12845# 'file_magic [[regex]]' -- check by looking for files in library path
12846# which responds to the $file_magic_cmd with a given extended regex.
12847# If you have `file' or equivalent on your system and you're not sure
12848# whether `pass_all' will *always* work, you probably want this one.
12849
12850case $host_os in
12851aix4* | aix5*)
12852 lt_cv_deplibs_check_method=pass_all
12853 ;;
12854
12855beos*)
12856 lt_cv_deplibs_check_method=pass_all
12857 ;;
12858
12859bsdi[45]*)
12860 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12861 lt_cv_file_magic_cmd='/usr/bin/file -L'
12862 lt_cv_file_magic_test_file=/shlib/libc.so
12863 ;;
12864
12865cygwin*)
12866 # func_win32_libid is a shell function defined in ltmain.sh
12867 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12868 lt_cv_file_magic_cmd='func_win32_libid'
12869 ;;
12870
12871mingw* | pw32*)
12872 # Base MSYS/MinGW do not provide the 'file' command needed by
12873 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12874 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12875 lt_cv_file_magic_cmd='$OBJDUMP -f'
12876 ;;
12877
12878darwin* | rhapsody*)
12879 lt_cv_deplibs_check_method=pass_all
12880 ;;
12881
Reid Spencera773bd52006-08-04 18:18:08 +000012882freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012883 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12884 case $host_cpu in
12885 i*86 )
12886 # Not sure whether the presence of OpenBSD here was a mistake.
12887 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012888 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 +000012889 lt_cv_file_magic_cmd=/usr/bin/file
12890 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12891 ;;
12892 esac
12893 else
12894 lt_cv_deplibs_check_method=pass_all
12895 fi
12896 ;;
12897
12898gnu*)
12899 lt_cv_deplibs_check_method=pass_all
12900 ;;
12901
12902hpux10.20* | hpux11*)
12903 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012904 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012905 ia64*)
12906 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12907 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12908 ;;
12909 hppa*64*)
12910 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]'
12911 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12912 ;;
12913 *)
12914 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12915 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12916 ;;
12917 esac
12918 ;;
12919
Reid Spencera773bd52006-08-04 18:18:08 +000012920interix3*)
12921 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12922 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12923 ;;
12924
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012925irix5* | irix6* | nonstopux*)
12926 case $LD in
12927 *-32|*"-32 ") libmagic=32-bit;;
12928 *-n32|*"-n32 ") libmagic=N32;;
12929 *-64|*"-64 ") libmagic=64-bit;;
12930 *) libmagic=never-match;;
12931 esac
12932 lt_cv_deplibs_check_method=pass_all
12933 ;;
12934
12935# This must be Linux ELF.
12936linux*)
12937 lt_cv_deplibs_check_method=pass_all
12938 ;;
12939
12940netbsd*)
12941 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12942 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12943 else
12944 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12945 fi
12946 ;;
12947
12948newos6*)
12949 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12950 lt_cv_file_magic_cmd=/usr/bin/file
12951 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12952 ;;
12953
12954nto-qnx*)
12955 lt_cv_deplibs_check_method=unknown
12956 ;;
12957
12958openbsd*)
12959 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12960 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12961 else
12962 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12963 fi
12964 ;;
12965
12966osf3* | osf4* | osf5*)
12967 lt_cv_deplibs_check_method=pass_all
12968 ;;
12969
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012970solaris*)
12971 lt_cv_deplibs_check_method=pass_all
12972 ;;
12973
Reid Spencera773bd52006-08-04 18:18:08 +000012974sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012975 case $host_vendor in
12976 motorola)
12977 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]'
12978 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12979 ;;
12980 ncr)
12981 lt_cv_deplibs_check_method=pass_all
12982 ;;
12983 sequent)
12984 lt_cv_file_magic_cmd='/bin/file'
12985 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12986 ;;
12987 sni)
12988 lt_cv_file_magic_cmd='/bin/file'
12989 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12990 lt_cv_file_magic_test_file=/lib/libc.so
12991 ;;
12992 siemens)
12993 lt_cv_deplibs_check_method=pass_all
12994 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012995 pc)
12996 lt_cv_deplibs_check_method=pass_all
12997 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012998 esac
12999 ;;
13000
Reid Spencera773bd52006-08-04 18:18:08 +000013001sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013002 lt_cv_deplibs_check_method=pass_all
13003 ;;
13004esac
13005
13006fi
Reid Spencera773bd52006-08-04 18:18:08 +000013007{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13008echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013009file_magic_cmd=$lt_cv_file_magic_cmd
13010deplibs_check_method=$lt_cv_deplibs_check_method
13011test -z "$deplibs_check_method" && deplibs_check_method=unknown
13012
13013
13014
13015# If no C compiler was specified, use CC.
13016LTCC=${LTCC-"$CC"}
13017
Reid Spencera773bd52006-08-04 18:18:08 +000013018# If no C compiler flags were specified, use CFLAGS.
13019LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13020
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013021# Allow CC to be a program name with arguments.
13022compiler=$CC
13023
Reid Spencera773bd52006-08-04 18:18:08 +000013024# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013025if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013026 enableval=$enable_libtool_lock;
13027fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013028
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013029test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13030
13031# Some flags need to be propagated to the compiler or linker for good
13032# libtool support.
13033case $host in
13034ia64-*-hpux*)
13035 # Find out which ABI we are using.
13036 echo 'int i;' > conftest.$ac_ext
13037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13038 (eval $ac_compile) 2>&5
13039 ac_status=$?
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); }; then
13042 case `/usr/bin/file conftest.$ac_objext` in
13043 *ELF-32*)
13044 HPUX_IA64_MODE="32"
13045 ;;
13046 *ELF-64*)
13047 HPUX_IA64_MODE="64"
13048 ;;
13049 esac
13050 fi
13051 rm -rf conftest*
13052 ;;
13053*-*-irix6*)
13054 # Find out which ABI we are using.
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013055 echo '#line 13060 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13057 (eval $ac_compile) 2>&5
13058 ac_status=$?
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); }; then
13061 if test "$lt_cv_prog_gnu_ld" = yes; then
13062 case `/usr/bin/file conftest.$ac_objext` in
13063 *32-bit*)
13064 LD="${LD-ld} -melf32bsmip"
13065 ;;
13066 *N32*)
13067 LD="${LD-ld} -melf32bmipn32"
13068 ;;
13069 *64-bit*)
13070 LD="${LD-ld} -melf64bmip"
13071 ;;
13072 esac
13073 else
13074 case `/usr/bin/file conftest.$ac_objext` in
13075 *32-bit*)
13076 LD="${LD-ld} -32"
13077 ;;
13078 *N32*)
13079 LD="${LD-ld} -n32"
13080 ;;
13081 *64-bit*)
13082 LD="${LD-ld} -64"
13083 ;;
13084 esac
13085 fi
13086 fi
13087 rm -rf conftest*
13088 ;;
13089
13090x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13091 # Find out which ABI we are using.
13092 echo 'int i;' > conftest.$ac_ext
13093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13094 (eval $ac_compile) 2>&5
13095 ac_status=$?
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013098 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013099 *32-bit*)
13100 case $host in
13101 x86_64-*linux*)
13102 LD="${LD-ld} -m elf_i386"
13103 ;;
13104 ppc64-*linux*|powerpc64-*linux*)
13105 LD="${LD-ld} -m elf32ppclinux"
13106 ;;
13107 s390x-*linux*)
13108 LD="${LD-ld} -m elf_s390"
13109 ;;
13110 sparc64-*linux*)
13111 LD="${LD-ld} -m elf32_sparc"
13112 ;;
13113 esac
13114 ;;
13115 *64-bit*)
13116 case $host in
13117 x86_64-*linux*)
13118 LD="${LD-ld} -m elf_x86_64"
13119 ;;
13120 ppc*-*linux*|powerpc*-*linux*)
13121 LD="${LD-ld} -m elf64ppc"
13122 ;;
13123 s390*-*linux*)
13124 LD="${LD-ld} -m elf64_s390"
13125 ;;
13126 sparc*-*linux*)
13127 LD="${LD-ld} -m elf64_sparc"
13128 ;;
13129 esac
13130 ;;
13131 esac
13132 fi
13133 rm -rf conftest*
13134 ;;
13135
13136*-*-sco3.2v5*)
13137 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13138 SAVE_CFLAGS="$CFLAGS"
13139 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000013140 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13141echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013142if test "${lt_cv_cc_needs_belf+set}" = set; then
13143 echo $ECHO_N "(cached) $ECHO_C" >&6
13144else
13145 ac_ext=c
13146ac_cpp='$CPP $CPPFLAGS'
13147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13149ac_compiler_gnu=$ac_cv_c_compiler_gnu
13150
13151 cat >conftest.$ac_ext <<_ACEOF
13152/* confdefs.h. */
13153_ACEOF
13154cat confdefs.h >>conftest.$ac_ext
13155cat >>conftest.$ac_ext <<_ACEOF
13156/* end confdefs.h. */
13157
Reid Spencera773bd52006-08-04 18:18:08 +000013158int
13159main ()
13160{
13161
13162 ;
13163 return 0;
13164}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013165_ACEOF
13166rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000013167if { (ac_try="$ac_link"
13168case "(($ac_try" in
13169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13170 *) ac_try_echo=$ac_try;;
13171esac
13172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13173 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013174 ac_status=$?
13175 grep -v '^ *+' conftest.er1 >conftest.err
13176 rm -f conftest.er1
13177 cat conftest.err >&5
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013179 (exit $ac_status); } &&
13180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13181 { (case "(($ac_try" in
13182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13183 *) ac_try_echo=$ac_try;;
13184esac
13185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13186 (eval "$ac_try") 2>&5
13187 ac_status=$?
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); }; } &&
13190 { ac_try='test -s conftest$ac_exeext'
13191 { (case "(($ac_try" in
13192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13193 *) ac_try_echo=$ac_try;;
13194esac
13195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13196 (eval "$ac_try") 2>&5
13197 ac_status=$?
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013200 lt_cv_cc_needs_belf=yes
13201else
13202 echo "$as_me: failed program was:" >&5
13203sed 's/^/| /' conftest.$ac_ext >&5
13204
Reid Spencera773bd52006-08-04 18:18:08 +000013205 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013206fi
Reid Spencera773bd52006-08-04 18:18:08 +000013207
Bill Wendlingebcceee2009-04-18 11:20:33 +000013208rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013209 conftest$ac_exeext conftest.$ac_ext
13210 ac_ext=c
13211ac_cpp='$CPP $CPPFLAGS'
13212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13214ac_compiler_gnu=$ac_cv_c_compiler_gnu
13215
13216fi
Reid Spencera773bd52006-08-04 18:18:08 +000013217{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13218echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013219 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13220 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13221 CFLAGS="$SAVE_CFLAGS"
13222 fi
13223 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013224sparc*-*solaris*)
13225 # Find out which ABI we are using.
13226 echo 'int i;' > conftest.$ac_ext
13227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13228 (eval $ac_compile) 2>&5
13229 ac_status=$?
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }; then
13232 case `/usr/bin/file conftest.o` in
13233 *64-bit*)
13234 case $lt_cv_prog_gnu_ld in
13235 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13236 *) LD="${LD-ld} -64" ;;
13237 esac
13238 ;;
13239 esac
13240 fi
13241 rm -rf conftest*
13242 ;;
13243
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013244
13245esac
13246
13247need_locks="$enable_libtool_lock"
13248
13249
Reid Spencer2706f8c2004-09-19 23:53:36 +000013250
13251
13252if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13253 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13254 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013255 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013256ac_cpp='$CXXCPP $CPPFLAGS'
13257ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13258ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13259ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000013260{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13261echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013262if test -z "$CXXCPP"; then
13263 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013264 echo $ECHO_N "(cached) $ECHO_C" >&6
13265else
John Criswell47fdd832003-07-14 16:52:07 +000013266 # Double quotes because CXXCPP needs to be expanded
13267 for CXXCPP in "$CXX -E" "/lib/cpp"
13268 do
13269 ac_preproc_ok=false
13270for ac_cxx_preproc_warn_flag in '' yes
13271do
13272 # Use a header file that comes with gcc, so configuring glibc
13273 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013274 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13275 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013276 # On the NeXT, cc -E runs the code through the compiler's parser,
13277 # not just through cpp. "Syntax error" is here to catch this case.
13278 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013279/* confdefs.h. */
13280_ACEOF
13281cat confdefs.h >>conftest.$ac_ext
13282cat >>conftest.$ac_ext <<_ACEOF
13283/* end confdefs.h. */
13284#ifdef __STDC__
13285# include <limits.h>
13286#else
13287# include <assert.h>
13288#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013289 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013290_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013291if { (ac_try="$ac_cpp conftest.$ac_ext"
13292case "(($ac_try" in
13293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13294 *) ac_try_echo=$ac_try;;
13295esac
13296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013298 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013299 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013300 rm -f conftest.er1
13301 cat conftest.err >&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013303 (exit $ac_status); } >/dev/null; then
13304 if test -s conftest.err; then
13305 ac_cpp_err=$ac_cxx_preproc_warn_flag
13306 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13307 else
13308 ac_cpp_err=
13309 fi
13310else
13311 ac_cpp_err=yes
13312fi
13313if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013314 :
13315else
13316 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013317sed 's/^/| /' conftest.$ac_ext >&5
13318
John Criswell47fdd832003-07-14 16:52:07 +000013319 # Broken: fails on valid input.
13320continue
13321fi
Reid Spencera773bd52006-08-04 18:18:08 +000013322
John Criswell47fdd832003-07-14 16:52:07 +000013323rm -f conftest.err conftest.$ac_ext
13324
Reid Spencera773bd52006-08-04 18:18:08 +000013325 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013326 # can be detected and how.
13327 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013328/* confdefs.h. */
13329_ACEOF
13330cat confdefs.h >>conftest.$ac_ext
13331cat >>conftest.$ac_ext <<_ACEOF
13332/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013333#include <ac_nonexistent.h>
13334_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013335if { (ac_try="$ac_cpp conftest.$ac_ext"
13336case "(($ac_try" in
13337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13338 *) ac_try_echo=$ac_try;;
13339esac
13340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013342 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013343 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013344 rm -f conftest.er1
13345 cat conftest.err >&5
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013347 (exit $ac_status); } >/dev/null; then
13348 if test -s conftest.err; then
13349 ac_cpp_err=$ac_cxx_preproc_warn_flag
13350 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13351 else
13352 ac_cpp_err=
13353 fi
13354else
13355 ac_cpp_err=yes
13356fi
13357if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013358 # Broken: success on invalid input.
13359continue
13360else
13361 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013362sed 's/^/| /' conftest.$ac_ext >&5
13363
John Criswell47fdd832003-07-14 16:52:07 +000013364 # Passes both tests.
13365ac_preproc_ok=:
13366break
13367fi
Reid Spencera773bd52006-08-04 18:18:08 +000013368
John Criswell47fdd832003-07-14 16:52:07 +000013369rm -f conftest.err conftest.$ac_ext
13370
13371done
13372# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13373rm -f conftest.err conftest.$ac_ext
13374if $ac_preproc_ok; then
13375 break
John Criswell7a73b802003-06-30 21:59:07 +000013376fi
13377
John Criswell47fdd832003-07-14 16:52:07 +000013378 done
13379 ac_cv_prog_CXXCPP=$CXXCPP
13380
13381fi
13382 CXXCPP=$ac_cv_prog_CXXCPP
13383else
13384 ac_cv_prog_CXXCPP=$CXXCPP
13385fi
Reid Spencera773bd52006-08-04 18:18:08 +000013386{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13387echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013388ac_preproc_ok=false
13389for ac_cxx_preproc_warn_flag in '' yes
13390do
13391 # Use a header file that comes with gcc, so configuring glibc
13392 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13394 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013395 # On the NeXT, cc -E runs the code through the compiler's parser,
13396 # not just through cpp. "Syntax error" is here to catch this case.
13397 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013398/* confdefs.h. */
13399_ACEOF
13400cat confdefs.h >>conftest.$ac_ext
13401cat >>conftest.$ac_ext <<_ACEOF
13402/* end confdefs.h. */
13403#ifdef __STDC__
13404# include <limits.h>
13405#else
13406# include <assert.h>
13407#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013408 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013409_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013410if { (ac_try="$ac_cpp conftest.$ac_ext"
13411case "(($ac_try" in
13412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13413 *) ac_try_echo=$ac_try;;
13414esac
13415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013417 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013418 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013419 rm -f conftest.er1
13420 cat conftest.err >&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013422 (exit $ac_status); } >/dev/null; then
13423 if test -s conftest.err; then
13424 ac_cpp_err=$ac_cxx_preproc_warn_flag
13425 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13426 else
13427 ac_cpp_err=
13428 fi
13429else
13430 ac_cpp_err=yes
13431fi
13432if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013433 :
13434else
13435 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013436sed 's/^/| /' conftest.$ac_ext >&5
13437
John Criswell47fdd832003-07-14 16:52:07 +000013438 # Broken: fails on valid input.
13439continue
13440fi
Reid Spencera773bd52006-08-04 18:18:08 +000013441
John Criswell47fdd832003-07-14 16:52:07 +000013442rm -f conftest.err conftest.$ac_ext
13443
Reid Spencera773bd52006-08-04 18:18:08 +000013444 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013445 # can be detected and how.
13446 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013447/* confdefs.h. */
13448_ACEOF
13449cat confdefs.h >>conftest.$ac_ext
13450cat >>conftest.$ac_ext <<_ACEOF
13451/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013452#include <ac_nonexistent.h>
13453_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013454if { (ac_try="$ac_cpp conftest.$ac_ext"
13455case "(($ac_try" in
13456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13457 *) ac_try_echo=$ac_try;;
13458esac
13459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013461 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013462 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013463 rm -f conftest.er1
13464 cat conftest.err >&5
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013466 (exit $ac_status); } >/dev/null; then
13467 if test -s conftest.err; then
13468 ac_cpp_err=$ac_cxx_preproc_warn_flag
13469 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13470 else
13471 ac_cpp_err=
13472 fi
13473else
13474 ac_cpp_err=yes
13475fi
13476if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013477 # Broken: success on invalid input.
13478continue
13479else
13480 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013481sed 's/^/| /' conftest.$ac_ext >&5
13482
John Criswell47fdd832003-07-14 16:52:07 +000013483 # Passes both tests.
13484ac_preproc_ok=:
13485break
13486fi
Reid Spencera773bd52006-08-04 18:18:08 +000013487
John Criswell47fdd832003-07-14 16:52:07 +000013488rm -f conftest.err conftest.$ac_ext
13489
13490done
13491# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13492rm -f conftest.err conftest.$ac_ext
13493if $ac_preproc_ok; then
13494 :
13495else
John Criswell0c38eaf2003-09-10 15:17:25 +000013496 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13497See \`config.log' for more details." >&5
13498echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13499See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013500 { (exit 1); exit 1; }; }
13501fi
13502
Reid Spencera773bd52006-08-04 18:18:08 +000013503ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013504ac_cpp='$CXXCPP $CPPFLAGS'
13505ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13506ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13507ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13508
Reid Spencer2706f8c2004-09-19 23:53:36 +000013509fi
13510
John Criswell47fdd832003-07-14 16:52:07 +000013511
13512ac_ext=f
13513ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13514ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13515ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13516if test -n "$ac_tool_prefix"; then
Bill Wendlingebcceee2009-04-18 11:20:33 +000013517 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 +000013518 do
13519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13520set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013521{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013523if test "${ac_cv_prog_F77+set}" = set; then
13524 echo $ECHO_N "(cached) $ECHO_C" >&6
13525else
13526 if test -n "$F77"; then
13527 ac_cv_prog_F77="$F77" # Let the user override the test.
13528else
13529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13530for as_dir in $PATH
13531do
13532 IFS=$as_save_IFS
13533 test -z "$as_dir" && as_dir=.
13534 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013535 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 +000013536 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13538 break 2
13539 fi
13540done
13541done
Reid Spencera773bd52006-08-04 18:18:08 +000013542IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013543
13544fi
13545fi
13546F77=$ac_cv_prog_F77
13547if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013548 { echo "$as_me:$LINENO: result: $F77" >&5
13549echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013550else
Reid Spencera773bd52006-08-04 18:18:08 +000013551 { echo "$as_me:$LINENO: result: no" >&5
13552echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013553fi
13554
Reid Spencera773bd52006-08-04 18:18:08 +000013555
John Criswell47fdd832003-07-14 16:52:07 +000013556 test -n "$F77" && break
13557 done
13558fi
13559if test -z "$F77"; then
13560 ac_ct_F77=$F77
Bill Wendlingebcceee2009-04-18 11:20:33 +000013561 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 +000013562do
13563 # Extract the first word of "$ac_prog", so it can be a program name with args.
13564set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013565{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013567if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13568 echo $ECHO_N "(cached) $ECHO_C" >&6
13569else
13570 if test -n "$ac_ct_F77"; then
13571 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13572else
13573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13574for as_dir in $PATH
13575do
13576 IFS=$as_save_IFS
13577 test -z "$as_dir" && as_dir=.
13578 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013579 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 +000013580 ac_cv_prog_ac_ct_F77="$ac_prog"
13581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13582 break 2
13583 fi
13584done
13585done
Reid Spencera773bd52006-08-04 18:18:08 +000013586IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013587
13588fi
13589fi
13590ac_ct_F77=$ac_cv_prog_ac_ct_F77
13591if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013592 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13593echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013594else
Reid Spencera773bd52006-08-04 18:18:08 +000013595 { echo "$as_me:$LINENO: result: no" >&5
13596echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013597fi
13598
Reid Spencera773bd52006-08-04 18:18:08 +000013599
John Criswell47fdd832003-07-14 16:52:07 +000013600 test -n "$ac_ct_F77" && break
13601done
13602
Reid Spencera773bd52006-08-04 18:18:08 +000013603 if test "x$ac_ct_F77" = x; then
13604 F77=""
13605 else
13606 case $cross_compiling:$ac_tool_warned in
13607yes:)
13608{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13609whose name does not start with the host triplet. If you think this
13610configuration is useful to you, please write to autoconf@gnu.org." >&5
13611echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13612whose name does not start with the host triplet. If you think this
13613configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13614ac_tool_warned=yes ;;
13615esac
13616 F77=$ac_ct_F77
13617 fi
John Criswell47fdd832003-07-14 16:52:07 +000013618fi
13619
13620
13621# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013622echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013623ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013624{ (ac_try="$ac_compiler --version >&5"
13625case "(($ac_try" in
13626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627 *) ac_try_echo=$ac_try;;
13628esac
13629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13630 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013631 ac_status=$?
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013634{ (ac_try="$ac_compiler -v >&5"
13635case "(($ac_try" in
13636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13637 *) ac_try_echo=$ac_try;;
13638esac
13639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13640 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013641 ac_status=$?
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013644{ (ac_try="$ac_compiler -V >&5"
13645case "(($ac_try" in
13646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647 *) ac_try_echo=$ac_try;;
13648esac
13649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013651 ac_status=$?
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013654rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013655
13656# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013657# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013658ac_save_ext=$ac_ext
13659ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013660{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13661echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013662if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13663 echo $ECHO_N "(cached) $ECHO_C" >&6
13664else
13665 cat >conftest.$ac_ext <<_ACEOF
13666 program main
13667#ifndef __GNUC__
13668 choke me
13669#endif
13670
13671 end
13672_ACEOF
13673rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013674if { (ac_try="$ac_compile"
13675case "(($ac_try" in
13676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677 *) ac_try_echo=$ac_try;;
13678esac
13679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013681 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013682 grep -v '^ *+' conftest.er1 >conftest.err
13683 rm -f conftest.er1
13684 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013686 (exit $ac_status); } &&
13687 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13688 { (case "(($ac_try" in
13689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13690 *) ac_try_echo=$ac_try;;
13691esac
13692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13693 (eval "$ac_try") 2>&5
13694 ac_status=$?
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); }; } &&
13697 { ac_try='test -s conftest.$ac_objext'
13698 { (case "(($ac_try" in
13699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13700 *) ac_try_echo=$ac_try;;
13701esac
13702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13703 (eval "$ac_try") 2>&5
13704 ac_status=$?
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013707 ac_compiler_gnu=yes
13708else
13709 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013710sed 's/^/| /' conftest.$ac_ext >&5
13711
Reid Spencera773bd52006-08-04 18:18:08 +000013712 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013713fi
Reid Spencera773bd52006-08-04 18:18:08 +000013714
13715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013716ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13717
13718fi
Reid Spencera773bd52006-08-04 18:18:08 +000013719{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13720echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013721ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013722ac_test_FFLAGS=${FFLAGS+set}
13723ac_save_FFLAGS=$FFLAGS
13724FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013725{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13726echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013727if test "${ac_cv_prog_f77_g+set}" = set; then
13728 echo $ECHO_N "(cached) $ECHO_C" >&6
13729else
13730 FFLAGS=-g
13731cat >conftest.$ac_ext <<_ACEOF
13732 program main
13733
13734 end
13735_ACEOF
13736rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013737if { (ac_try="$ac_compile"
13738case "(($ac_try" in
13739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13740 *) ac_try_echo=$ac_try;;
13741esac
13742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13743 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013744 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013745 grep -v '^ *+' conftest.er1 >conftest.err
13746 rm -f conftest.er1
13747 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013749 (exit $ac_status); } &&
13750 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13751 { (case "(($ac_try" in
13752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13753 *) ac_try_echo=$ac_try;;
13754esac
13755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13756 (eval "$ac_try") 2>&5
13757 ac_status=$?
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }; } &&
13760 { ac_try='test -s conftest.$ac_objext'
13761 { (case "(($ac_try" in
13762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763 *) ac_try_echo=$ac_try;;
13764esac
13765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766 (eval "$ac_try") 2>&5
13767 ac_status=$?
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013770 ac_cv_prog_f77_g=yes
13771else
13772 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013773sed 's/^/| /' conftest.$ac_ext >&5
13774
Reid Spencera773bd52006-08-04 18:18:08 +000013775 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013776fi
Reid Spencera773bd52006-08-04 18:18:08 +000013777
13778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013779
13780fi
Reid Spencera773bd52006-08-04 18:18:08 +000013781{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13782echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013783if test "$ac_test_FFLAGS" = set; then
13784 FFLAGS=$ac_save_FFLAGS
13785elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013786 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013787 FFLAGS="-g -O2"
13788 else
13789 FFLAGS="-g"
13790 fi
13791else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013792 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013793 FFLAGS="-O2"
13794 else
13795 FFLAGS=
13796 fi
13797fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013798
13799G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013800ac_ext=c
13801ac_cpp='$CPP $CPPFLAGS'
13802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13804ac_compiler_gnu=$ac_cv_c_compiler_gnu
13805
13806
13807
13808# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13809
13810# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013811{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13812echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013813if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13814 echo $ECHO_N "(cached) $ECHO_C" >&6
13815else
13816 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013817 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013818
13819 case $build_os in
13820 msdosdjgpp*)
13821 # On DJGPP, this test can blow up pretty badly due to problems in libc
13822 # (any single argument exceeding 2000 bytes causes a buffer overrun
13823 # during glob expansion). Even if it were fixed, the result of this
13824 # check would be larger than it should be.
13825 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13826 ;;
13827
13828 gnu*)
13829 # Under GNU Hurd, this test is not required because there is
13830 # no limit to the length of command line arguments.
13831 # Libtool will interpret -1 as no limit whatsoever
13832 lt_cv_sys_max_cmd_len=-1;
13833 ;;
13834
13835 cygwin* | mingw*)
13836 # On Win9x/ME, this test blows up -- it succeeds, but takes
13837 # about 5 minutes as the teststring grows exponentially.
13838 # Worse, since 9x/ME are not pre-emptively multitasking,
13839 # you end up with a "frozen" computer, even though with patience
13840 # the test eventually succeeds (with a max line length of 256k).
13841 # Instead, let's just punt: use the minimum linelength reported by
13842 # all of the supported platforms: 8192 (on NT/2K/XP).
13843 lt_cv_sys_max_cmd_len=8192;
13844 ;;
13845
Reid Spencer2706f8c2004-09-19 23:53:36 +000013846 amigaos*)
13847 # On AmigaOS with pdksh, this test takes hours, literally.
13848 # So we just punt and use a minimum line length of 8192.
13849 lt_cv_sys_max_cmd_len=8192;
13850 ;;
13851
Reid Spencera773bd52006-08-04 18:18:08 +000013852 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013853 # This has been around since 386BSD, at least. Likely further.
13854 if test -x /sbin/sysctl; then
13855 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13856 elif test -x /usr/sbin/sysctl; then
13857 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13858 else
Reid Spencera773bd52006-08-04 18:18:08 +000013859 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013860 fi
13861 # And add a safety zone
13862 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013863 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013864 ;;
13865
Reid Spencera773bd52006-08-04 18:18:08 +000013866 interix*)
13867 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13868 lt_cv_sys_max_cmd_len=196608
13869 ;;
13870
13871 osf*)
13872 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13873 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13874 # nice to cause kernel panics so lets avoid the loop below.
13875 # First set a reasonable default.
13876 lt_cv_sys_max_cmd_len=16384
13877 #
13878 if test -x /sbin/sysconfig; then
13879 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13880 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13881 esac
13882 fi
13883 ;;
13884 sco3.2v5*)
13885 lt_cv_sys_max_cmd_len=102400
13886 ;;
13887 sysv5* | sco5v6* | sysv4.2uw2*)
13888 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13889 if test -n "$kargmax"; then
13890 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13891 else
13892 lt_cv_sys_max_cmd_len=32768
13893 fi
13894 ;;
13895 *)
John Criswell47fdd832003-07-14 16:52:07 +000013896 # If test is not a shell built-in, we'll probably end up computing a
13897 # maximum length that is only half of the actual maximum length, but
13898 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013899 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13900 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13901 = "XX$teststring") >/dev/null 2>&1 &&
13902 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013903 lt_cv_sys_max_cmd_len=$new_result &&
13904 test $i != 17 # 1/2 MB should be enough
13905 do
13906 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013907 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013908 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013909 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013910 # Add a significant safety factor because C++ compilers can tack on massive
13911 # amounts of additional arguments before passing them to the linker.
13912 # It appears as though 1/2 is a usable value.
13913 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13914 ;;
13915 esac
13916
13917fi
13918
13919if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013920 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13921echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013922else
Reid Spencera773bd52006-08-04 18:18:08 +000013923 { echo "$as_me:$LINENO: result: none" >&5
13924echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013925fi
13926
13927
13928
13929
13930# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013931{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13932echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013933if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13934 echo $ECHO_N "(cached) $ECHO_C" >&6
13935else
13936
13937# These are sane defaults that work on at least a few old systems.
13938# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13939
13940# Character class describing NM global symbol codes.
13941symcode='[BCDEGRST]'
13942
13943# Regexp to match symbols that can be accessed directly from C.
13944sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13945
John Criswell47fdd832003-07-14 16:52:07 +000013946# Transform an extracted symbol line into a proper C declaration
13947lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13948
13949# Transform an extracted symbol line into symbol name and symbol address
13950lt_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'"
13951
13952# Define system-specific variables.
13953case $host_os in
13954aix*)
13955 symcode='[BCDT]'
13956 ;;
13957cygwin* | mingw* | pw32*)
13958 symcode='[ABCDGISTW]'
13959 ;;
13960hpux*) # Its linker distinguishes data from code symbols
13961 if test "$host_cpu" = ia64; then
13962 symcode='[ABCDEGRST]'
13963 fi
13964 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13965 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'"
13966 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013967linux*)
13968 if test "$host_cpu" = ia64; then
13969 symcode='[ABCDGIRSTW]'
13970 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13971 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'"
13972 fi
13973 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013974irix* | nonstopux*)
13975 symcode='[BCDEGRST]'
13976 ;;
13977osf*)
13978 symcode='[BCDEGQRST]'
13979 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013980solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013981 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013982 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013983sco3.2v5*)
13984 symcode='[DT]'
13985 ;;
13986sysv4.2uw2*)
13987 symcode='[DT]'
13988 ;;
13989sysv5* | sco5v6* | unixware* | OpenUNIX*)
13990 symcode='[ABDT]'
13991 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013992sysv4)
13993 symcode='[DFNSTU]'
13994 ;;
13995esac
13996
13997# Handle CRLF in mingw tool chain
13998opt_cr=
13999case $build_os in
14000mingw*)
14001 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14002 ;;
14003esac
14004
14005# If we're using GNU nm, then use its standard symbol codes.
14006case `$NM -V 2>&1` in
14007*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014008 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000014009esac
14010
14011# Try without a prefix undercore, then with it.
14012for ac_symprfx in "" "_"; do
14013
Reid Spencera773bd52006-08-04 18:18:08 +000014014 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14015 symxfrm="\\1 $ac_symprfx\\2 \\2"
14016
John Criswell47fdd832003-07-14 16:52:07 +000014017 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000014018 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 +000014019
14020 # Check to see that the pipe works correctly.
14021 pipe_works=no
14022
14023 rm -f conftest*
14024 cat > conftest.$ac_ext <<EOF
14025#ifdef __cplusplus
14026extern "C" {
14027#endif
14028char nm_test_var;
14029void nm_test_func(){}
14030#ifdef __cplusplus
14031}
14032#endif
14033int main(){nm_test_var='a';nm_test_func();return(0);}
14034EOF
14035
14036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14037 (eval $ac_compile) 2>&5
14038 ac_status=$?
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; then
14041 # Now try to grab the symbols.
14042 nlist=conftest.nm
14043 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14044 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14045 ac_status=$?
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); } && test -s "$nlist"; then
14048 # Try sorting and uniquifying the output.
14049 if sort "$nlist" | uniq > "$nlist"T; then
14050 mv -f "$nlist"T "$nlist"
14051 else
14052 rm -f "$nlist"T
14053 fi
14054
14055 # Make sure that we snagged all the symbols we need.
14056 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14057 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14058 cat <<EOF > conftest.$ac_ext
14059#ifdef __cplusplus
14060extern "C" {
14061#endif
14062
14063EOF
14064 # Now generate the symbol file.
14065 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14066
14067 cat <<EOF >> conftest.$ac_ext
14068#if defined (__STDC__) && __STDC__
14069# define lt_ptr_t void *
14070#else
14071# define lt_ptr_t char *
14072# define const
14073#endif
14074
14075/* The mapping between symbol names and symbols. */
14076const struct {
14077 const char *name;
14078 lt_ptr_t address;
14079}
14080lt_preloaded_symbols[] =
14081{
14082EOF
14083 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14084 cat <<\EOF >> conftest.$ac_ext
14085 {0, (lt_ptr_t) 0}
14086};
14087
14088#ifdef __cplusplus
14089}
14090#endif
14091EOF
14092 # Now try linking the two files.
14093 mv conftest.$ac_objext conftstm.$ac_objext
14094 lt_save_LIBS="$LIBS"
14095 lt_save_CFLAGS="$CFLAGS"
14096 LIBS="conftstm.$ac_objext"
14097 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14099 (eval $ac_link) 2>&5
14100 ac_status=$?
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14103 pipe_works=yes
14104 fi
14105 LIBS="$lt_save_LIBS"
14106 CFLAGS="$lt_save_CFLAGS"
14107 else
14108 echo "cannot find nm_test_func in $nlist" >&5
14109 fi
14110 else
14111 echo "cannot find nm_test_var in $nlist" >&5
14112 fi
14113 else
14114 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14115 fi
14116 else
14117 echo "$progname: failed program was:" >&5
14118 cat conftest.$ac_ext >&5
14119 fi
14120 rm -f conftest* conftst*
14121
14122 # Do not use the global_symbol_pipe unless it works.
14123 if test "$pipe_works" = yes; then
14124 break
14125 else
14126 lt_cv_sys_global_symbol_pipe=
14127 fi
14128done
14129
14130fi
14131
14132if test -z "$lt_cv_sys_global_symbol_pipe"; then
14133 lt_cv_sys_global_symbol_to_cdecl=
14134fi
14135if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014136 { echo "$as_me:$LINENO: result: failed" >&5
14137echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014138else
Reid Spencera773bd52006-08-04 18:18:08 +000014139 { echo "$as_me:$LINENO: result: ok" >&5
14140echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014141fi
14142
Reid Spencera773bd52006-08-04 18:18:08 +000014143{ echo "$as_me:$LINENO: checking for objdir" >&5
14144echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014145if test "${lt_cv_objdir+set}" = set; then
14146 echo $ECHO_N "(cached) $ECHO_C" >&6
14147else
14148 rm -f .libs 2>/dev/null
14149mkdir .libs 2>/dev/null
14150if test -d .libs; then
14151 lt_cv_objdir=.libs
14152else
14153 # MS-DOS does not allow filenames that begin with a dot.
14154 lt_cv_objdir=_libs
14155fi
14156rmdir .libs 2>/dev/null
14157fi
Reid Spencera773bd52006-08-04 18:18:08 +000014158{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14159echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014160objdir=$lt_cv_objdir
14161
14162
14163
14164
14165
14166case $host_os in
14167aix3*)
14168 # AIX sometimes has problems with the GCC collect2 program. For some
14169 # reason, if we set the COLLECT_NAMES environment variable, the problems
14170 # vanish in a puff of smoke.
14171 if test "X${COLLECT_NAMES+set}" != Xset; then
14172 COLLECT_NAMES=
14173 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000014174 fi
14175 ;;
14176esac
14177
John Criswell47fdd832003-07-14 16:52:07 +000014178# Sed substitution that helps us do robust quoting. It backslashifies
14179# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000014180Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000014181sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14182
14183# Same as above, but do not quote variable references.
14184double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14185
14186# Sed substitution to delay expansion of an escaped shell variable in a
14187# double_quote_subst'ed string.
14188delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14189
14190# Sed substitution to avoid accidental globbing in evaled expressions
14191no_glob_subst='s/\*/\\\*/g'
14192
14193# Constants:
14194rm="rm -f"
14195
14196# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000014197default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000014198can_build_shared=yes
14199
Reid Spencera773bd52006-08-04 18:18:08 +000014200# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000014201# which needs '.lib').
14202libext=a
14203ltmain="$ac_aux_dir/ltmain.sh"
14204ofile="$default_ofile"
14205with_gnu_ld="$lt_cv_prog_gnu_ld"
14206
14207if test -n "$ac_tool_prefix"; then
14208 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14209set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014210{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014212if test "${ac_cv_prog_AR+set}" = set; then
14213 echo $ECHO_N "(cached) $ECHO_C" >&6
14214else
14215 if test -n "$AR"; then
14216 ac_cv_prog_AR="$AR" # Let the user override the test.
14217else
14218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14219for as_dir in $PATH
14220do
14221 IFS=$as_save_IFS
14222 test -z "$as_dir" && as_dir=.
14223 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014224 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 +000014225 ac_cv_prog_AR="${ac_tool_prefix}ar"
14226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14227 break 2
14228 fi
14229done
14230done
Reid Spencera773bd52006-08-04 18:18:08 +000014231IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014232
14233fi
14234fi
14235AR=$ac_cv_prog_AR
14236if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014237 { echo "$as_me:$LINENO: result: $AR" >&5
14238echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014239else
Reid Spencera773bd52006-08-04 18:18:08 +000014240 { echo "$as_me:$LINENO: result: no" >&5
14241echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014242fi
14243
Reid Spencera773bd52006-08-04 18:18:08 +000014244
John Criswell47fdd832003-07-14 16:52:07 +000014245fi
14246if test -z "$ac_cv_prog_AR"; then
14247 ac_ct_AR=$AR
14248 # Extract the first word of "ar", so it can be a program name with args.
14249set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014250{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014252if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14253 echo $ECHO_N "(cached) $ECHO_C" >&6
14254else
14255 if test -n "$ac_ct_AR"; then
14256 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14257else
14258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14259for as_dir in $PATH
14260do
14261 IFS=$as_save_IFS
14262 test -z "$as_dir" && as_dir=.
14263 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014264 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 +000014265 ac_cv_prog_ac_ct_AR="ar"
14266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14267 break 2
14268 fi
14269done
14270done
Reid Spencera773bd52006-08-04 18:18:08 +000014271IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014272
John Criswell47fdd832003-07-14 16:52:07 +000014273fi
14274fi
14275ac_ct_AR=$ac_cv_prog_ac_ct_AR
14276if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014277 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14278echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014279else
Reid Spencera773bd52006-08-04 18:18:08 +000014280 { echo "$as_me:$LINENO: result: no" >&5
14281echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014282fi
14283
Reid Spencera773bd52006-08-04 18:18:08 +000014284 if test "x$ac_ct_AR" = x; then
14285 AR="false"
14286 else
14287 case $cross_compiling:$ac_tool_warned in
14288yes:)
14289{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14290whose name does not start with the host triplet. If you think this
14291configuration is useful to you, please write to autoconf@gnu.org." >&5
14292echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14293whose name does not start with the host triplet. If you think this
14294configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14295ac_tool_warned=yes ;;
14296esac
14297 AR=$ac_ct_AR
14298 fi
John Criswell47fdd832003-07-14 16:52:07 +000014299else
14300 AR="$ac_cv_prog_AR"
14301fi
14302
John Criswell7a73b802003-06-30 21:59:07 +000014303if test -n "$ac_tool_prefix"; then
14304 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14305set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014306{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014308if test "${ac_cv_prog_RANLIB+set}" = set; then
14309 echo $ECHO_N "(cached) $ECHO_C" >&6
14310else
14311 if test -n "$RANLIB"; then
14312 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14313else
14314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14315for as_dir in $PATH
14316do
14317 IFS=$as_save_IFS
14318 test -z "$as_dir" && as_dir=.
14319 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014320 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 +000014321 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14323 break 2
14324 fi
14325done
14326done
Reid Spencera773bd52006-08-04 18:18:08 +000014327IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014328
14329fi
14330fi
14331RANLIB=$ac_cv_prog_RANLIB
14332if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014333 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14334echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014335else
Reid Spencera773bd52006-08-04 18:18:08 +000014336 { echo "$as_me:$LINENO: result: no" >&5
14337echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014338fi
14339
Reid Spencera773bd52006-08-04 18:18:08 +000014340
John Criswell7a73b802003-06-30 21:59:07 +000014341fi
14342if test -z "$ac_cv_prog_RANLIB"; then
14343 ac_ct_RANLIB=$RANLIB
14344 # Extract the first word of "ranlib", so it can be a program name with args.
14345set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014346{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014348if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14349 echo $ECHO_N "(cached) $ECHO_C" >&6
14350else
14351 if test -n "$ac_ct_RANLIB"; then
14352 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14353else
14354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14355for as_dir in $PATH
14356do
14357 IFS=$as_save_IFS
14358 test -z "$as_dir" && as_dir=.
14359 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014360 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 +000014361 ac_cv_prog_ac_ct_RANLIB="ranlib"
14362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14363 break 2
14364 fi
14365done
14366done
Reid Spencera773bd52006-08-04 18:18:08 +000014367IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014368
John Criswell7a73b802003-06-30 21:59:07 +000014369fi
14370fi
14371ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14372if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014373 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14374echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014375else
Reid Spencera773bd52006-08-04 18:18:08 +000014376 { echo "$as_me:$LINENO: result: no" >&5
14377echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014378fi
14379
Reid Spencera773bd52006-08-04 18:18:08 +000014380 if test "x$ac_ct_RANLIB" = x; then
14381 RANLIB=":"
14382 else
14383 case $cross_compiling:$ac_tool_warned in
14384yes:)
14385{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14386whose name does not start with the host triplet. If you think this
14387configuration is useful to you, please write to autoconf@gnu.org." >&5
14388echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14389whose name does not start with the host triplet. If you think this
14390configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14391ac_tool_warned=yes ;;
14392esac
14393 RANLIB=$ac_ct_RANLIB
14394 fi
John Criswell7a73b802003-06-30 21:59:07 +000014395else
14396 RANLIB="$ac_cv_prog_RANLIB"
14397fi
14398
14399if test -n "$ac_tool_prefix"; then
14400 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14401set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014402{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014404if test "${ac_cv_prog_STRIP+set}" = set; then
14405 echo $ECHO_N "(cached) $ECHO_C" >&6
14406else
14407 if test -n "$STRIP"; then
14408 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14409else
14410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14411for as_dir in $PATH
14412do
14413 IFS=$as_save_IFS
14414 test -z "$as_dir" && as_dir=.
14415 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014416 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 +000014417 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14419 break 2
14420 fi
14421done
14422done
Reid Spencera773bd52006-08-04 18:18:08 +000014423IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014424
14425fi
14426fi
14427STRIP=$ac_cv_prog_STRIP
14428if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014429 { echo "$as_me:$LINENO: result: $STRIP" >&5
14430echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014431else
Reid Spencera773bd52006-08-04 18:18:08 +000014432 { echo "$as_me:$LINENO: result: no" >&5
14433echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014434fi
14435
Reid Spencera773bd52006-08-04 18:18:08 +000014436
John Criswell7a73b802003-06-30 21:59:07 +000014437fi
14438if test -z "$ac_cv_prog_STRIP"; then
14439 ac_ct_STRIP=$STRIP
14440 # Extract the first word of "strip", so it can be a program name with args.
14441set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014442{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014444if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14445 echo $ECHO_N "(cached) $ECHO_C" >&6
14446else
14447 if test -n "$ac_ct_STRIP"; then
14448 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14449else
14450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14451for as_dir in $PATH
14452do
14453 IFS=$as_save_IFS
14454 test -z "$as_dir" && as_dir=.
14455 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014456 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 +000014457 ac_cv_prog_ac_ct_STRIP="strip"
14458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14459 break 2
14460 fi
14461done
14462done
Reid Spencera773bd52006-08-04 18:18:08 +000014463IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014464
John Criswell7a73b802003-06-30 21:59:07 +000014465fi
14466fi
14467ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14468if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014469 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14470echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014471else
Reid Spencera773bd52006-08-04 18:18:08 +000014472 { echo "$as_me:$LINENO: result: no" >&5
14473echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014474fi
14475
Reid Spencera773bd52006-08-04 18:18:08 +000014476 if test "x$ac_ct_STRIP" = x; then
14477 STRIP=":"
14478 else
14479 case $cross_compiling:$ac_tool_warned in
14480yes:)
14481{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14482whose name does not start with the host triplet. If you think this
14483configuration is useful to you, please write to autoconf@gnu.org." >&5
14484echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14485whose name does not start with the host triplet. If you think this
14486configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14487ac_tool_warned=yes ;;
14488esac
14489 STRIP=$ac_ct_STRIP
14490 fi
John Criswell7a73b802003-06-30 21:59:07 +000014491else
14492 STRIP="$ac_cv_prog_STRIP"
14493fi
14494
14495
John Criswell7a73b802003-06-30 21:59:07 +000014496old_CC="$CC"
14497old_CFLAGS="$CFLAGS"
14498
14499# Set sane defaults for various variables
14500test -z "$AR" && AR=ar
14501test -z "$AR_FLAGS" && AR_FLAGS=cru
14502test -z "$AS" && AS=as
14503test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014504test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014505test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014506test -z "$DLLTOOL" && DLLTOOL=dlltool
14507test -z "$LD" && LD=ld
14508test -z "$LN_S" && LN_S="ln -s"
14509test -z "$MAGIC_CMD" && MAGIC_CMD=file
14510test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014511test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014512test -z "$OBJDUMP" && OBJDUMP=objdump
14513test -z "$RANLIB" && RANLIB=:
14514test -z "$STRIP" && STRIP=:
14515test -z "$ac_objext" && ac_objext=o
14516
John Criswell7a73b802003-06-30 21:59:07 +000014517# Determine commands to create old-style static archives.
14518old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14519old_postinstall_cmds='chmod 644 $oldlib'
14520old_postuninstall_cmds=
14521
14522if test -n "$RANLIB"; then
14523 case $host_os in
14524 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014525 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014526 ;;
14527 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014528 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014529 ;;
14530 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014531 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014532fi
14533
Reid Spencera773bd52006-08-04 18:18:08 +000014534for cc_temp in $compiler""; do
14535 case $cc_temp in
14536 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14537 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14538 \-*) ;;
14539 *) break;;
14540 esac
14541done
14542cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14543
Reid Spencer2706f8c2004-09-19 23:53:36 +000014544
John Criswell47fdd832003-07-14 16:52:07 +000014545# Only perform the check for file, if the check method requires it
14546case $deplibs_check_method in
14547file_magic*)
14548 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014549 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14550echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014551if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14552 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014553else
John Criswell47fdd832003-07-14 16:52:07 +000014554 case $MAGIC_CMD in
14555[\\/*] | ?:[\\/]*)
14556 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14557 ;;
14558*)
14559 lt_save_MAGIC_CMD="$MAGIC_CMD"
14560 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14561 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14562 for ac_dir in $ac_dummy; do
14563 IFS="$lt_save_ifs"
14564 test -z "$ac_dir" && ac_dir=.
14565 if test -f $ac_dir/${ac_tool_prefix}file; then
14566 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14567 if test -n "$file_magic_test_file"; then
14568 case $deplibs_check_method in
14569 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014570 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014571 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14572 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14573 $EGREP "$file_magic_regex" > /dev/null; then
14574 :
14575 else
14576 cat <<EOF 1>&2
14577
14578*** Warning: the command libtool uses to detect shared libraries,
14579*** $file_magic_cmd, produces output that libtool cannot recognize.
14580*** The result is that libtool may fail to recognize shared libraries
14581*** as such. This will affect the creation of libtool libraries that
14582*** depend on shared libraries, but programs linked with such libtool
14583*** libraries will work regardless of this problem. Nevertheless, you
14584*** may want to report the problem to your system manager and/or to
14585*** bug-libtool@gnu.org
14586
14587EOF
14588 fi ;;
14589 esac
14590 fi
14591 break
14592 fi
14593 done
14594 IFS="$lt_save_ifs"
14595 MAGIC_CMD="$lt_save_MAGIC_CMD"
14596 ;;
14597esac
John Criswell7a73b802003-06-30 21:59:07 +000014598fi
John Criswell7a73b802003-06-30 21:59:07 +000014599
John Criswell47fdd832003-07-14 16:52:07 +000014600MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14601if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014602 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14603echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014604else
Reid Spencera773bd52006-08-04 18:18:08 +000014605 { echo "$as_me:$LINENO: result: no" >&5
14606echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014607fi
John Criswell7a73b802003-06-30 21:59:07 +000014608
John Criswell47fdd832003-07-14 16:52:07 +000014609if test -z "$lt_cv_path_MAGIC_CMD"; then
14610 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014611 { echo "$as_me:$LINENO: checking for file" >&5
14612echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014613if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14614 echo $ECHO_N "(cached) $ECHO_C" >&6
14615else
14616 case $MAGIC_CMD in
14617[\\/*] | ?:[\\/]*)
14618 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14619 ;;
14620*)
14621 lt_save_MAGIC_CMD="$MAGIC_CMD"
14622 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14623 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14624 for ac_dir in $ac_dummy; do
14625 IFS="$lt_save_ifs"
14626 test -z "$ac_dir" && ac_dir=.
14627 if test -f $ac_dir/file; then
14628 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14629 if test -n "$file_magic_test_file"; then
14630 case $deplibs_check_method in
14631 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014632 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014633 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14634 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14635 $EGREP "$file_magic_regex" > /dev/null; then
14636 :
14637 else
14638 cat <<EOF 1>&2
14639
14640*** Warning: the command libtool uses to detect shared libraries,
14641*** $file_magic_cmd, produces output that libtool cannot recognize.
14642*** The result is that libtool may fail to recognize shared libraries
14643*** as such. This will affect the creation of libtool libraries that
14644*** depend on shared libraries, but programs linked with such libtool
14645*** libraries will work regardless of this problem. Nevertheless, you
14646*** may want to report the problem to your system manager and/or to
14647*** bug-libtool@gnu.org
14648
14649EOF
14650 fi ;;
14651 esac
14652 fi
14653 break
14654 fi
14655 done
14656 IFS="$lt_save_ifs"
14657 MAGIC_CMD="$lt_save_MAGIC_CMD"
14658 ;;
14659esac
14660fi
14661
14662MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14663if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014664 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14665echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014666else
Reid Spencera773bd52006-08-04 18:18:08 +000014667 { echo "$as_me:$LINENO: result: no" >&5
14668echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014669fi
14670
14671 else
14672 MAGIC_CMD=:
14673 fi
14674fi
14675
14676 fi
14677 ;;
14678esac
14679
Reid Spencer17795972004-11-18 09:47:37 +000014680enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014681enable_win32_dll=no
14682
Reid Spencera773bd52006-08-04 18:18:08 +000014683# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014684if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014685 enableval=$enable_libtool_lock;
14686fi
John Criswell47fdd832003-07-14 16:52:07 +000014687
John Criswell47fdd832003-07-14 16:52:07 +000014688test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14689
John Criswell7a73b802003-06-30 21:59:07 +000014690
Reid Spencera773bd52006-08-04 18:18:08 +000014691# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014692if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014693 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014694else
14695 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014696fi
14697
John Criswell7a73b802003-06-30 21:59:07 +000014698test -z "$pic_mode" && pic_mode=default
14699
John Criswell47fdd832003-07-14 16:52:07 +000014700# Use C for the default configuration in the libtool script
14701tagname=
14702lt_save_CC="$CC"
14703ac_ext=c
14704ac_cpp='$CPP $CPPFLAGS'
14705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14707ac_compiler_gnu=$ac_cv_c_compiler_gnu
14708
14709
14710# Source file extension for C test sources.
14711ac_ext=c
14712
14713# Object file extension for compiled C test sources.
14714objext=o
14715objext=$objext
14716
14717# Code to be used in simple compile tests
14718lt_simple_compile_test_code="int some_variable = 0;\n"
14719
14720# Code to be used in simple link tests
14721lt_simple_link_test_code='int main(){return(0);}\n'
14722
14723
14724# If no C compiler was specified, use CC.
14725LTCC=${LTCC-"$CC"}
14726
Reid Spencera773bd52006-08-04 18:18:08 +000014727# If no C compiler flags were specified, use CFLAGS.
14728LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14729
John Criswell47fdd832003-07-14 16:52:07 +000014730# Allow CC to be a program name with arguments.
14731compiler=$CC
14732
14733
Reid Spencera773bd52006-08-04 18:18:08 +000014734# save warnings/boilerplate of simple test code
14735ac_outfile=conftest.$ac_objext
14736printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14737eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14738_lt_compiler_boilerplate=`cat conftest.err`
14739$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014740
Reid Spencera773bd52006-08-04 18:18:08 +000014741ac_outfile=conftest.$ac_objext
14742printf "$lt_simple_link_test_code" >conftest.$ac_ext
14743eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14744_lt_linker_boilerplate=`cat conftest.err`
14745$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014746
14747
John Criswell47fdd832003-07-14 16:52:07 +000014748
14749lt_prog_compiler_no_builtin_flag=
14750
14751if test "$GCC" = yes; then
14752 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14753
Reid Spencer2706f8c2004-09-19 23:53:36 +000014754
Reid Spencera773bd52006-08-04 18:18:08 +000014755{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14756echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014757if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14758 echo $ECHO_N "(cached) $ECHO_C" >&6
14759else
14760 lt_cv_prog_compiler_rtti_exceptions=no
14761 ac_outfile=conftest.$ac_objext
14762 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14763 lt_compiler_flag="-fno-rtti -fno-exceptions"
14764 # Insert the option either (1) after the last *FLAGS variable, or
14765 # (2) before a word containing "conftest.", or (3) at the end.
14766 # Note that $ac_compile itself does not contain backslashes and begins
14767 # with a dollar sign (not a hyphen), so the echo should work correctly.
14768 # The option is referenced via a variable to avoid confusing sed.
14769 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014770 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014771 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14772 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000014773 (eval echo "\"\$as_me:14778: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014774 (eval "$lt_compile" 2>conftest.err)
14775 ac_status=$?
14776 cat conftest.err >&5
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000014777 echo "$as_me:14782: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014778 if (exit $ac_status) && test -s "$ac_outfile"; then
14779 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014780 # So say no if there are warnings other than the usual output.
14781 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14782 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14783 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014784 lt_cv_prog_compiler_rtti_exceptions=yes
14785 fi
14786 fi
14787 $rm conftest*
14788
14789fi
Reid Spencera773bd52006-08-04 18:18:08 +000014790{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14791echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014792
14793if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14794 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14795else
14796 :
14797fi
14798
14799fi
14800
14801lt_prog_compiler_wl=
14802lt_prog_compiler_pic=
14803lt_prog_compiler_static=
14804
Reid Spencera773bd52006-08-04 18:18:08 +000014805{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14806echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014807
14808 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014809 lt_prog_compiler_wl='-Wl,'
14810 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014811
14812 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014813 aix*)
14814 # All AIX code is PIC.
14815 if test "$host_cpu" = ia64; then
14816 # AIX 5 now supports IA64 processor
14817 lt_prog_compiler_static='-Bstatic'
14818 fi
John Criswell7a73b802003-06-30 21:59:07 +000014819 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014820
John Criswell7a73b802003-06-30 21:59:07 +000014821 amigaos*)
14822 # FIXME: we need at least 68020 code to build shared libraries, but
14823 # adding the `-m68020' flag to GCC prevents building anything better,
14824 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014825 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014826 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014827
14828 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014829 # PIC is the default for these OSes.
14830 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014831
14832 mingw* | pw32* | os2*)
14833 # This hack is so that the source file can tell whether it is being
14834 # built for inclusion in a dll (and should export symbols for example).
14835 lt_prog_compiler_pic='-DDLL_EXPORT'
14836 ;;
14837
John Criswell7a73b802003-06-30 21:59:07 +000014838 darwin* | rhapsody*)
14839 # PIC is the default on this platform
14840 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014841 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014842 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014843
Reid Spencera773bd52006-08-04 18:18:08 +000014844 interix3*)
14845 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14846 # Instead, we relocate shared libraries at runtime.
14847 ;;
14848
John Criswell47fdd832003-07-14 16:52:07 +000014849 msdosdjgpp*)
14850 # Just because we use GCC doesn't mean we suddenly get shared libraries
14851 # on systems that don't support them.
14852 lt_prog_compiler_can_build_shared=no
14853 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014854 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014855
John Criswell7a73b802003-06-30 21:59:07 +000014856 sysv4*MP*)
14857 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014858 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014859 fi
14860 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014861
14862 hpux*)
14863 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14864 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014865 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014866 hppa*64*|ia64*)
14867 # +Z the default
14868 ;;
14869 *)
14870 lt_prog_compiler_pic='-fPIC'
14871 ;;
14872 esac
14873 ;;
14874
John Criswell7a73b802003-06-30 21:59:07 +000014875 *)
John Criswell47fdd832003-07-14 16:52:07 +000014876 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014877 ;;
14878 esac
14879 else
John Criswell47fdd832003-07-14 16:52:07 +000014880 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014881 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014882 aix*)
14883 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014884 if test "$host_cpu" = ia64; then
14885 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014886 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014887 else
John Criswell47fdd832003-07-14 16:52:07 +000014888 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014889 fi
14890 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014891 darwin*)
14892 # PIC is the default on this platform
14893 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014894 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014895 xlc*)
14896 lt_prog_compiler_pic='-qnocommon'
14897 lt_prog_compiler_wl='-Wl,'
14898 ;;
14899 esac
14900 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014901
John Criswell47fdd832003-07-14 16:52:07 +000014902 mingw* | pw32* | os2*)
14903 # This hack is so that the source file can tell whether it is being
14904 # built for inclusion in a dll (and should export symbols for example).
14905 lt_prog_compiler_pic='-DDLL_EXPORT'
14906 ;;
14907
John Criswell7a73b802003-06-30 21:59:07 +000014908 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014909 lt_prog_compiler_wl='-Wl,'
14910 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14911 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014912 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014913 hppa*64*|ia64*)
14914 # +Z the default
14915 ;;
14916 *)
14917 lt_prog_compiler_pic='+Z'
14918 ;;
14919 esac
14920 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14921 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014922 ;;
14923
John Criswell47fdd832003-07-14 16:52:07 +000014924 irix5* | irix6* | nonstopux*)
14925 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014926 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014927 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014928 ;;
14929
14930 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014931 lt_prog_compiler_pic='-KPIC'
14932 lt_prog_compiler_static='-Bstatic'
14933 ;;
14934
14935 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014936 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014937 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014938 lt_prog_compiler_wl='-Wl,'
14939 lt_prog_compiler_pic='-KPIC'
14940 lt_prog_compiler_static='-static'
14941 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014942 pgcc* | pgf77* | pgf90* | pgf95*)
14943 # Portland Group compilers (*not* the Pentium gcc compiler,
14944 # which looks to be a dead project)
14945 lt_prog_compiler_wl='-Wl,'
14946 lt_prog_compiler_pic='-fpic'
14947 lt_prog_compiler_static='-Bstatic'
14948 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014949 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014950 lt_prog_compiler_wl='-Wl,'
14951 # All Alpha code is PIC.
14952 lt_prog_compiler_static='-non_shared'
14953 ;;
14954 esac
John Criswell7a73b802003-06-30 21:59:07 +000014955 ;;
14956
14957 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014958 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014959 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014960 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014961 ;;
14962
John Criswell7a73b802003-06-30 21:59:07 +000014963 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014964 lt_prog_compiler_pic='-KPIC'
14965 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014966 case $cc_basename in
14967 f77* | f90* | f95*)
14968 lt_prog_compiler_wl='-Qoption ld ';;
14969 *)
14970 lt_prog_compiler_wl='-Wl,';;
14971 esac
John Criswell7a73b802003-06-30 21:59:07 +000014972 ;;
14973
14974 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014975 lt_prog_compiler_wl='-Qoption ld '
14976 lt_prog_compiler_pic='-PIC'
14977 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014978 ;;
14979
Reid Spencera773bd52006-08-04 18:18:08 +000014980 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014981 lt_prog_compiler_wl='-Wl,'
14982 lt_prog_compiler_pic='-KPIC'
14983 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014984 ;;
14985
14986 sysv4*MP*)
14987 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014988 lt_prog_compiler_pic='-Kconform_pic'
14989 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014990 fi
14991 ;;
14992
Reid Spencera773bd52006-08-04 18:18:08 +000014993 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14994 lt_prog_compiler_wl='-Wl,'
14995 lt_prog_compiler_pic='-KPIC'
14996 lt_prog_compiler_static='-Bstatic'
14997 ;;
14998
14999 unicos*)
15000 lt_prog_compiler_wl='-Wl,'
15001 lt_prog_compiler_can_build_shared=no
15002 ;;
15003
John Criswell47fdd832003-07-14 16:52:07 +000015004 uts4*)
15005 lt_prog_compiler_pic='-pic'
15006 lt_prog_compiler_static='-Bstatic'
15007 ;;
15008
John Criswell7a73b802003-06-30 21:59:07 +000015009 *)
John Criswell47fdd832003-07-14 16:52:07 +000015010 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015011 ;;
15012 esac
15013 fi
15014
Reid Spencera773bd52006-08-04 18:18:08 +000015015{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15016echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015017
John Criswell47fdd832003-07-14 16:52:07 +000015018#
15019# Check to make sure the PIC flag actually works.
15020#
15021if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015022
Reid Spencera773bd52006-08-04 18:18:08 +000015023{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15024echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015025if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015026 echo $ECHO_N "(cached) $ECHO_C" >&6
15027else
John Criswell47fdd832003-07-14 16:52:07 +000015028 lt_prog_compiler_pic_works=no
15029 ac_outfile=conftest.$ac_objext
15030 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15031 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15032 # Insert the option either (1) after the last *FLAGS variable, or
15033 # (2) before a word containing "conftest.", or (3) at the end.
15034 # Note that $ac_compile itself does not contain backslashes and begins
15035 # with a dollar sign (not a hyphen), so the echo should work correctly.
15036 # The option is referenced via a variable to avoid confusing sed.
15037 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015038 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15040 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000015041 (eval echo "\"\$as_me:15046: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015042 (eval "$lt_compile" 2>conftest.err)
15043 ac_status=$?
15044 cat conftest.err >&5
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000015045 echo "$as_me:15050: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015046 if (exit $ac_status) && test -s "$ac_outfile"; then
15047 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000015048 # So say no if there are warnings other than the usual output.
15049 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15050 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15051 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015052 lt_prog_compiler_pic_works=yes
15053 fi
15054 fi
15055 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015056
John Criswell47fdd832003-07-14 16:52:07 +000015057fi
Reid Spencera773bd52006-08-04 18:18:08 +000015058{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15059echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015060
John Criswell47fdd832003-07-14 16:52:07 +000015061if test x"$lt_prog_compiler_pic_works" = xyes; then
15062 case $lt_prog_compiler_pic in
15063 "" | " "*) ;;
15064 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15065 esac
John Criswell7a73b802003-06-30 21:59:07 +000015066else
John Criswell47fdd832003-07-14 16:52:07 +000015067 lt_prog_compiler_pic=
15068 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015069fi
15070
John Criswell7a73b802003-06-30 21:59:07 +000015071fi
Reid Spencera773bd52006-08-04 18:18:08 +000015072case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015073 # For platforms which do not support PIC, -DPIC is meaningless:
15074 *djgpp*)
15075 lt_prog_compiler_pic=
15076 ;;
15077 *)
15078 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15079 ;;
15080esac
John Criswell7a73b802003-06-30 21:59:07 +000015081
Reid Spencera773bd52006-08-04 18:18:08 +000015082#
15083# Check to make sure the static flag actually works.
15084#
15085wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15086{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15087echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15088if test "${lt_prog_compiler_static_works+set}" = set; then
15089 echo $ECHO_N "(cached) $ECHO_C" >&6
15090else
15091 lt_prog_compiler_static_works=no
15092 save_LDFLAGS="$LDFLAGS"
15093 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15094 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15095 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15096 # The linker can only warn and ignore the option if not recognized
15097 # So say no if there are warnings
15098 if test -s conftest.err; then
15099 # Append any errors to the config.log.
15100 cat conftest.err 1>&5
15101 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15102 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15103 if diff conftest.exp conftest.er2 >/dev/null; then
15104 lt_prog_compiler_static_works=yes
15105 fi
15106 else
15107 lt_prog_compiler_static_works=yes
15108 fi
15109 fi
15110 $rm conftest*
15111 LDFLAGS="$save_LDFLAGS"
15112
15113fi
15114{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15115echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15116
15117if test x"$lt_prog_compiler_static_works" = xyes; then
15118 :
15119else
15120 lt_prog_compiler_static=
15121fi
15122
15123
15124{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15125echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015126if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015127 echo $ECHO_N "(cached) $ECHO_C" >&6
15128else
John Criswell47fdd832003-07-14 16:52:07 +000015129 lt_cv_prog_compiler_c_o=no
15130 $rm -r conftest 2>/dev/null
15131 mkdir conftest
15132 cd conftest
15133 mkdir out
15134 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015135
John Criswell47fdd832003-07-14 16:52:07 +000015136 lt_compiler_flag="-o out/conftest2.$ac_objext"
15137 # Insert the option either (1) after the last *FLAGS variable, or
15138 # (2) before a word containing "conftest.", or (3) at the end.
15139 # Note that $ac_compile itself does not contain backslashes and begins
15140 # with a dollar sign (not a hyphen), so the echo should work correctly.
15141 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015142 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015143 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15144 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000015145 (eval echo "\"\$as_me:15150: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015146 (eval "$lt_compile" 2>out/conftest.err)
15147 ac_status=$?
15148 cat out/conftest.err >&5
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000015149 echo "$as_me:15154: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015150 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15151 then
15152 # The compiler can only warn and ignore the option if not recognized
15153 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000015154 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15155 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15156 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015157 lt_cv_prog_compiler_c_o=yes
15158 fi
15159 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015160 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015161 $rm conftest*
15162 # SGI C++ compiler will create directory out/ii_files/ for
15163 # template instantiation
15164 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15165 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000015166 cd ..
15167 rmdir conftest
15168 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015169
15170fi
Reid Spencera773bd52006-08-04 18:18:08 +000015171{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15172echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015173
John Criswell7a73b802003-06-30 21:59:07 +000015174
John Criswell7a73b802003-06-30 21:59:07 +000015175hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000015176if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000015177 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000015178 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15179echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015180 hard_links=yes
15181 $rm conftest*
15182 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15183 touch conftest.a
15184 ln conftest.a conftest.b 2>&5 || hard_links=no
15185 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000015186 { echo "$as_me:$LINENO: result: $hard_links" >&5
15187echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015188 if test "$hard_links" = no; then
15189 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15190echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15191 need_locks=warn
15192 fi
15193else
15194 need_locks=no
15195fi
John Criswell7a73b802003-06-30 21:59:07 +000015196
Reid Spencera773bd52006-08-04 18:18:08 +000015197{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15198echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015199
15200 runpath_var=
15201 allow_undefined_flag=
15202 enable_shared_with_static_runtimes=no
15203 archive_cmds=
15204 archive_expsym_cmds=
15205 old_archive_From_new_cmds=
15206 old_archive_from_expsyms_cmds=
15207 export_dynamic_flag_spec=
15208 whole_archive_flag_spec=
15209 thread_safe_flag_spec=
15210 hardcode_libdir_flag_spec=
15211 hardcode_libdir_flag_spec_ld=
15212 hardcode_libdir_separator=
15213 hardcode_direct=no
15214 hardcode_minus_L=no
15215 hardcode_shlibpath_var=unsupported
15216 link_all_deplibs=unknown
15217 hardcode_automatic=no
15218 module_cmds=
15219 module_expsym_cmds=
15220 always_export_symbols=no
15221 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15222 # include_expsyms should be a list of space-separated symbols to be *always*
15223 # included in the symbol list
15224 include_expsyms=
15225 # exclude_expsyms can be an extended regexp of symbols to exclude
15226 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15227 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15228 # as well as any symbol that contains `d'.
15229 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15230 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15231 # platforms (ab)use it in PIC code, but their linkers get confused if
15232 # the symbol is explicitly referenced. Since portable code cannot
15233 # rely on this symbol name, it's probably fine to never include it in
15234 # preloaded symbol tables.
15235 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000015236 # Just being paranoid about ensuring that cc_basename is set.
15237 for cc_temp in $compiler""; do
15238 case $cc_temp in
15239 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15240 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15241 \-*) ;;
15242 *) break;;
15243 esac
15244done
15245cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000015246
15247 case $host_os in
15248 cygwin* | mingw* | pw32*)
15249 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15250 # When not using gcc, we currently assume that we are using
15251 # Microsoft Visual C++.
15252 if test "$GCC" != yes; then
15253 with_gnu_ld=no
15254 fi
15255 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015256 interix*)
15257 # we just hope/assume this is gcc and not c89 (= MSVC++)
15258 with_gnu_ld=yes
15259 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015260 openbsd*)
15261 with_gnu_ld=no
15262 ;;
15263 esac
15264
15265 ld_shlibs=yes
15266 if test "$with_gnu_ld" = yes; then
15267 # If archive_cmds runs LD, not CC, wlarc should be empty
15268 wlarc='${wl}'
15269
Reid Spencera773bd52006-08-04 18:18:08 +000015270 # Set some defaults for GNU ld with shared library support. These
15271 # are reset later if shared libraries are not supported. Putting them
15272 # here allows them to be overridden if necessary.
15273 runpath_var=LD_RUN_PATH
15274 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15275 export_dynamic_flag_spec='${wl}--export-dynamic'
15276 # ancient GNU ld didn't support --whole-archive et. al.
15277 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15278 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15279 else
15280 whole_archive_flag_spec=
15281 fi
15282 supports_anon_versioning=no
15283 case `$LD -v 2>/dev/null` in
15284 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15285 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15286 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15287 *\ 2.11.*) ;; # other 2.11 versions
15288 *) supports_anon_versioning=yes ;;
15289 esac
15290
John Criswell47fdd832003-07-14 16:52:07 +000015291 # See if GNU ld supports shared libraries.
15292 case $host_os in
15293 aix3* | aix4* | aix5*)
15294 # On AIX/PPC, the GNU linker is very broken
15295 if test "$host_cpu" != ia64; then
15296 ld_shlibs=no
15297 cat <<EOF 1>&2
15298
15299*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15300*** to be unable to reliably create shared libraries on AIX.
15301*** Therefore, libtool is disabling shared libraries support. If you
15302*** really care for shared libraries, you may want to modify your PATH
15303*** so that a non-GNU linker is found, and then restart.
15304
15305EOF
15306 fi
15307 ;;
15308
15309 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015310 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 +000015311 hardcode_libdir_flag_spec='-L$libdir'
15312 hardcode_minus_L=yes
15313
15314 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15315 # that the semantics of dynamic libraries on AmigaOS, at least up
15316 # to version 4, is to share data among multiple programs linked
15317 # with the same dynamic library. Since this doesn't match the
15318 # behavior of shared libraries on other platforms, we can't use
15319 # them.
15320 ld_shlibs=no
15321 ;;
15322
15323 beos*)
15324 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15325 allow_undefined_flag=unsupported
15326 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15327 # support --undefined. This deserves some investigation. FIXME
15328 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15329 else
15330 ld_shlibs=no
15331 fi
15332 ;;
15333
15334 cygwin* | mingw* | pw32*)
15335 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15336 # as there is no search path for DLLs.
15337 hardcode_libdir_flag_spec='-L$libdir'
15338 allow_undefined_flag=unsupported
15339 always_export_symbols=no
15340 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015341 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 +000015342
15343 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015344 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 +000015345 # If the export-symbols file already is a .def file (1st line
15346 # is EXPORTS), use it as is; otherwise, prepend...
15347 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15348 cp $export_symbols $output_objdir/$soname.def;
15349 else
15350 echo EXPORTS > $output_objdir/$soname.def;
15351 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015352 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015353 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15354 else
15355 ld_shlibs=no
15356 fi
15357 ;;
15358
15359 interix3*)
15360 hardcode_direct=no
15361 hardcode_shlibpath_var=no
15362 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15363 export_dynamic_flag_spec='${wl}-E'
15364 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15365 # Instead, shared libraries are loaded at an image base (0x10000000 by
15366 # default) and relocated if they conflict, which is a slow very memory
15367 # consuming and fragmenting process. To avoid this, we pick a random,
15368 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15369 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15370 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15371 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'
15372 ;;
15373
15374 linux*)
15375 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15376 tmp_addflag=
15377 case $cc_basename,$host_cpu in
15378 pgcc*) # Portland Group C compiler
15379 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'
15380 tmp_addflag=' $pic_flag'
15381 ;;
15382 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15383 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'
15384 tmp_addflag=' $pic_flag -Mnomain' ;;
15385 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15386 tmp_addflag=' -i_dynamic' ;;
15387 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15388 tmp_addflag=' -i_dynamic -nofor_main' ;;
15389 ifc* | ifort*) # Intel Fortran compiler
15390 tmp_addflag=' -nofor_main' ;;
15391 esac
15392 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15393
15394 if test $supports_anon_versioning = yes; then
15395 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15396 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15397 $echo "local: *; };" >> $output_objdir/$libname.ver~
15398 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15399 fi
John Criswell47fdd832003-07-14 16:52:07 +000015400 else
15401 ld_shlibs=no
15402 fi
15403 ;;
15404
15405 netbsd*)
15406 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15407 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15408 wlarc=
15409 else
15410 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15411 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15412 fi
15413 ;;
15414
Reid Spencera773bd52006-08-04 18:18:08 +000015415 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015416 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15417 ld_shlibs=no
15418 cat <<EOF 1>&2
15419
15420*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15421*** create shared libraries on Solaris systems. Therefore, libtool
15422*** is disabling shared libraries support. We urge you to upgrade GNU
15423*** binutils to release 2.9.1 or newer. Another option is to modify
15424*** your PATH or compiler configuration so that the native linker is
15425*** used, and then restart.
15426
15427EOF
15428 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15429 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15430 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15431 else
15432 ld_shlibs=no
15433 fi
15434 ;;
15435
Reid Spencera773bd52006-08-04 18:18:08 +000015436 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15437 case `$LD -v 2>&1` in
15438 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15439 ld_shlibs=no
15440 cat <<_LT_EOF 1>&2
15441
15442*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15443*** reliably create shared libraries on SCO systems. Therefore, libtool
15444*** is disabling shared libraries support. We urge you to upgrade GNU
15445*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15446*** your PATH or compiler configuration so that the native linker is
15447*** used, and then restart.
15448
15449_LT_EOF
15450 ;;
15451 *)
15452 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15453 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15454 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15455 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15456 else
15457 ld_shlibs=no
15458 fi
15459 ;;
15460 esac
15461 ;;
15462
John Criswell47fdd832003-07-14 16:52:07 +000015463 sunos4*)
15464 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15465 wlarc=
15466 hardcode_direct=yes
15467 hardcode_shlibpath_var=no
15468 ;;
15469
15470 *)
15471 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15472 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15473 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15474 else
15475 ld_shlibs=no
15476 fi
15477 ;;
15478 esac
15479
Reid Spencera773bd52006-08-04 18:18:08 +000015480 if test "$ld_shlibs" = no; then
15481 runpath_var=
15482 hardcode_libdir_flag_spec=
15483 export_dynamic_flag_spec=
15484 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015485 fi
15486 else
15487 # PORTME fill in a description of your system's linker (not GNU ld)
15488 case $host_os in
15489 aix3*)
15490 allow_undefined_flag=unsupported
15491 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015492 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 +000015493 # Note: this linker hardcodes the directories in LIBPATH if there
15494 # are no directories specified by -L.
15495 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015496 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015497 # Neither direct hardcoding nor static linking is supported with a
15498 # broken collect2.
15499 hardcode_direct=unsupported
15500 fi
15501 ;;
15502
15503 aix4* | aix5*)
15504 if test "$host_cpu" = ia64; then
15505 # On IA64, the linker does run time linking by default, so we don't
15506 # have to do anything special.
15507 aix_use_runtimelinking=no
15508 exp_sym_flag='-Bexport'
15509 no_entry_flag=""
15510 else
15511 # If we're using GNU nm, then we don't want the "-C" option.
15512 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15513 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15514 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'
15515 else
15516 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'
15517 fi
15518 aix_use_runtimelinking=no
15519
15520 # Test if we are trying to use run time linking or normal
15521 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15522 # need to do runtime linking.
15523 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15524 for ld_flag in $LDFLAGS; do
15525 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15526 aix_use_runtimelinking=yes
15527 break
15528 fi
15529 done
Reid Spencera773bd52006-08-04 18:18:08 +000015530 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015531 esac
15532
15533 exp_sym_flag='-bexport'
15534 no_entry_flag='-bnoentry'
15535 fi
15536
15537 # When large executables or shared objects are built, AIX ld can
15538 # have problems creating the table of contents. If linking a library
15539 # or program results in "error TOC overflow" add -mminimal-toc to
15540 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15541 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15542
15543 archive_cmds=''
15544 hardcode_direct=yes
15545 hardcode_libdir_separator=':'
15546 link_all_deplibs=yes
15547
15548 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015549 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015550 # We only want to do this on AIX 4.2 and lower, the check
15551 # below for broken collect2 doesn't work under 4.3+
15552 collect2name=`${CC} -print-prog-name=collect2`
15553 if test -f "$collect2name" && \
15554 strings "$collect2name" | grep resolve_lib_name >/dev/null
15555 then
15556 # We have reworked collect2
15557 hardcode_direct=yes
15558 else
15559 # We have old collect2
15560 hardcode_direct=unsupported
15561 # It fails to find uninstalled libraries when the uninstalled
15562 # path is not listed in the libpath. Setting hardcode_minus_L
15563 # to unsupported forces relinking
15564 hardcode_minus_L=yes
15565 hardcode_libdir_flag_spec='-L$libdir'
15566 hardcode_libdir_separator=
15567 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015568 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015569 esac
15570 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015571 if test "$aix_use_runtimelinking" = yes; then
15572 shared_flag="$shared_flag "'${wl}-G'
15573 fi
John Criswell47fdd832003-07-14 16:52:07 +000015574 else
15575 # not using gcc
15576 if test "$host_cpu" = ia64; then
15577 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15578 # chokes on -Wl,-G. The following line is correct:
15579 shared_flag='-G'
15580 else
Reid Spencera773bd52006-08-04 18:18:08 +000015581 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015582 shared_flag='${wl}-G'
15583 else
15584 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015585 fi
John Criswell47fdd832003-07-14 16:52:07 +000015586 fi
15587 fi
15588
15589 # It seems that -bexpall does not export symbols beginning with
15590 # underscore (_), so it is better to generate a list of symbols to export.
15591 always_export_symbols=yes
15592 if test "$aix_use_runtimelinking" = yes; then
15593 # Warning - without using the other runtime loading flags (-brtl),
15594 # -berok will link without error, but may produce a broken library.
15595 allow_undefined_flag='-berok'
15596 # Determine the default libpath from the value encoded in an empty executable.
15597 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015598/* confdefs.h. */
15599_ACEOF
15600cat confdefs.h >>conftest.$ac_ext
15601cat >>conftest.$ac_ext <<_ACEOF
15602/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015603
John Criswell7a73b802003-06-30 21:59:07 +000015604int
15605main ()
15606{
John Criswell47fdd832003-07-14 16:52:07 +000015607
John Criswell7a73b802003-06-30 21:59:07 +000015608 ;
15609 return 0;
15610}
15611_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015612rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015613if { (ac_try="$ac_link"
15614case "(($ac_try" in
15615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15616 *) ac_try_echo=$ac_try;;
15617esac
15618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15619 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015620 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015621 grep -v '^ *+' conftest.er1 >conftest.err
15622 rm -f conftest.er1
15623 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015625 (exit $ac_status); } &&
15626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15627 { (case "(($ac_try" in
15628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15629 *) ac_try_echo=$ac_try;;
15630esac
15631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15632 (eval "$ac_try") 2>&5
15633 ac_status=$?
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); }; } &&
15636 { ac_try='test -s conftest$ac_exeext'
15637 { (case "(($ac_try" in
15638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15639 *) ac_try_echo=$ac_try;;
15640esac
15641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15642 (eval "$ac_try") 2>&5
15643 ac_status=$?
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015646
John Criswell47fdd832003-07-14 16:52:07 +000015647aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15648}'`
15649# Check for a 64-bit object if we didn't find anything.
15650if 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; }
15651}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015652else
15653 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015654sed 's/^/| /' conftest.$ac_ext >&5
15655
Reid Spencera773bd52006-08-04 18:18:08 +000015656
John Criswell7a73b802003-06-30 21:59:07 +000015657fi
Reid Spencera773bd52006-08-04 18:18:08 +000015658
Bill Wendlingebcceee2009-04-18 11:20:33 +000015659rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015660 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015661if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015662
John Criswell47fdd832003-07-14 16:52:07 +000015663 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015664 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 +000015665 else
15666 if test "$host_cpu" = ia64; then
15667 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15668 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015669 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 +000015670 else
15671 # Determine the default libpath from the value encoded in an empty executable.
15672 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015673/* confdefs.h. */
15674_ACEOF
15675cat confdefs.h >>conftest.$ac_ext
15676cat >>conftest.$ac_ext <<_ACEOF
15677/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015678
John Criswell47fdd832003-07-14 16:52:07 +000015679int
15680main ()
15681{
John Criswell7a73b802003-06-30 21:59:07 +000015682
John Criswell47fdd832003-07-14 16:52:07 +000015683 ;
15684 return 0;
15685}
15686_ACEOF
15687rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015688if { (ac_try="$ac_link"
15689case "(($ac_try" in
15690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691 *) ac_try_echo=$ac_try;;
15692esac
15693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15694 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015695 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015696 grep -v '^ *+' conftest.er1 >conftest.err
15697 rm -f conftest.er1
15698 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015700 (exit $ac_status); } &&
15701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15702 { (case "(($ac_try" in
15703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15704 *) ac_try_echo=$ac_try;;
15705esac
15706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15707 (eval "$ac_try") 2>&5
15708 ac_status=$?
15709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710 (exit $ac_status); }; } &&
15711 { ac_try='test -s conftest$ac_exeext'
15712 { (case "(($ac_try" in
15713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15714 *) ac_try_echo=$ac_try;;
15715esac
15716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15717 (eval "$ac_try") 2>&5
15718 ac_status=$?
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015721
John Criswell47fdd832003-07-14 16:52:07 +000015722aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15723}'`
15724# Check for a 64-bit object if we didn't find anything.
15725if 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; }
15726}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015727else
John Criswell47fdd832003-07-14 16:52:07 +000015728 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015729sed 's/^/| /' conftest.$ac_ext >&5
15730
Reid Spencera773bd52006-08-04 18:18:08 +000015731
John Criswell47fdd832003-07-14 16:52:07 +000015732fi
Reid Spencera773bd52006-08-04 18:18:08 +000015733
Bill Wendlingebcceee2009-04-18 11:20:33 +000015734rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015735 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015736if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015737
John Criswell47fdd832003-07-14 16:52:07 +000015738 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15739 # Warning - without using the other run time loading flags,
15740 # -berok will link without error, but may produce a broken library.
15741 no_undefined_flag=' ${wl}-bernotok'
15742 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015743 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015744 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015745 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015746 # This is similar to how AIX traditionally builds its shared libraries.
15747 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 +000015748 fi
15749 fi
John Criswell7a73b802003-06-30 21:59:07 +000015750 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015751
15752 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015753 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 +000015754 hardcode_libdir_flag_spec='-L$libdir'
15755 hardcode_minus_L=yes
15756 # see comment about different semantics on the GNU ld section
15757 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015758 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015759
Reid Spencer2706f8c2004-09-19 23:53:36 +000015760 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015761 export_dynamic_flag_spec=-rdynamic
15762 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015763
John Criswell47fdd832003-07-14 16:52:07 +000015764 cygwin* | mingw* | pw32*)
15765 # When not using gcc, we currently assume that we are using
15766 # Microsoft Visual C++.
15767 # hardcode_libdir_flag_spec is actually meaningless, as there is
15768 # no search path for DLLs.
15769 hardcode_libdir_flag_spec=' '
15770 allow_undefined_flag=unsupported
15771 # Tell ltmain to make .lib files, not .a files.
15772 libext=lib
15773 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015774 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015775 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015776 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015777 # The linker will automatically build a .lib file if we build a DLL.
15778 old_archive_From_new_cmds='true'
15779 # FIXME: Should let the user specify the lib program.
15780 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15781 fix_srcfile_path='`cygpath -w "$srcfile"`'
15782 enable_shared_with_static_runtimes=yes
15783 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015784
John Criswell47fdd832003-07-14 16:52:07 +000015785 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015786 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015787 rhapsody* | darwin1.[012])
15788 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15789 ;;
15790 *) # Darwin 1.3 on
15791 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15792 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15793 else
15794 case ${MACOSX_DEPLOYMENT_TARGET} in
15795 10.[012])
15796 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15797 ;;
15798 10.*)
15799 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15800 ;;
15801 esac
15802 fi
15803 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015804 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015805 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015806 hardcode_direct=no
15807 hardcode_automatic=yes
15808 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015809 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015810 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015811 if test "$GCC" = yes ; then
15812 output_verbose_link_cmd='echo'
15813 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15814 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015815 # 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 +000015816 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}'
15817 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 +000015818 else
Reid Spencera773bd52006-08-04 18:18:08 +000015819 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015820 xlc*)
15821 output_verbose_link_cmd='echo'
15822 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15823 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015824 # 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 +000015825 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}'
15826 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 +000015827 ;;
15828 *)
15829 ld_shlibs=no
15830 ;;
15831 esac
John Criswell7a73b802003-06-30 21:59:07 +000015832 fi
John Criswell47fdd832003-07-14 16:52:07 +000015833 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015834
John Criswell47fdd832003-07-14 16:52:07 +000015835 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015836 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015837 hardcode_libdir_flag_spec='-L$libdir'
15838 hardcode_shlibpath_var=no
15839 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015840
John Criswell47fdd832003-07-14 16:52:07 +000015841 freebsd1*)
15842 ld_shlibs=no
15843 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015844
John Criswell47fdd832003-07-14 16:52:07 +000015845 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15846 # support. Future versions do this automatically, but an explicit c++rt0.o
15847 # does not break anything, and helps significantly (at the cost of a little
15848 # extra space).
15849 freebsd2.2*)
15850 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15851 hardcode_libdir_flag_spec='-R$libdir'
15852 hardcode_direct=yes
15853 hardcode_shlibpath_var=no
15854 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015855
John Criswell47fdd832003-07-14 16:52:07 +000015856 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15857 freebsd2*)
15858 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15859 hardcode_direct=yes
15860 hardcode_minus_L=yes
15861 hardcode_shlibpath_var=no
15862 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015863
John Criswell47fdd832003-07-14 16:52:07 +000015864 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015865 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015866 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15867 hardcode_libdir_flag_spec='-R$libdir'
15868 hardcode_direct=yes
15869 hardcode_shlibpath_var=no
15870 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015871
John Criswell47fdd832003-07-14 16:52:07 +000015872 hpux9*)
15873 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015874 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 +000015875 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015876 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 +000015877 fi
15878 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15879 hardcode_libdir_separator=:
15880 hardcode_direct=yes
15881
15882 # hardcode_minus_L: Not really in the search PATH,
15883 # but as the default location of the library.
15884 hardcode_minus_L=yes
15885 export_dynamic_flag_spec='${wl}-E'
15886 ;;
15887
Reid Spencera773bd52006-08-04 18:18:08 +000015888 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015889 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015890 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15891 else
15892 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15893 fi
15894 if test "$with_gnu_ld" = no; then
15895 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15896 hardcode_libdir_separator=:
15897
15898 hardcode_direct=yes
15899 export_dynamic_flag_spec='${wl}-E'
15900
15901 # hardcode_minus_L: Not really in the search PATH,
15902 # but as the default location of the library.
15903 hardcode_minus_L=yes
15904 fi
15905 ;;
15906
15907 hpux11*)
15908 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15909 case $host_cpu in
15910 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015911 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15912 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015913 ia64*)
15914 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15915 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015916 *)
15917 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15918 ;;
15919 esac
15920 else
Reid Spencera773bd52006-08-04 18:18:08 +000015921 case $host_cpu in
15922 hppa*64*)
15923 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15924 ;;
15925 ia64*)
15926 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015927 ;;
15928 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015929 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 +000015930 ;;
15931 esac
15932 fi
15933 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015934 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15935 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015936
Reid Spencera773bd52006-08-04 18:18:08 +000015937 case $host_cpu in
15938 hppa*64*|ia64*)
15939 hardcode_libdir_flag_spec_ld='+b $libdir'
15940 hardcode_direct=no
15941 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015942 ;;
15943 *)
John Criswell47fdd832003-07-14 16:52:07 +000015944 hardcode_direct=yes
15945 export_dynamic_flag_spec='${wl}-E'
15946
15947 # hardcode_minus_L: Not really in the search PATH,
15948 # but as the default location of the library.
15949 hardcode_minus_L=yes
15950 ;;
15951 esac
15952 fi
15953 ;;
15954
15955 irix5* | irix6* | nonstopux*)
15956 if test "$GCC" = yes; then
15957 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'
15958 else
15959 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'
15960 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15961 fi
15962 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15963 hardcode_libdir_separator=:
15964 link_all_deplibs=yes
15965 ;;
15966
15967 netbsd*)
15968 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15969 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15970 else
15971 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15972 fi
15973 hardcode_libdir_flag_spec='-R$libdir'
15974 hardcode_direct=yes
15975 hardcode_shlibpath_var=no
15976 ;;
15977
15978 newsos6)
15979 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15980 hardcode_direct=yes
15981 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15982 hardcode_libdir_separator=:
15983 hardcode_shlibpath_var=no
15984 ;;
15985
15986 openbsd*)
15987 hardcode_direct=yes
15988 hardcode_shlibpath_var=no
15989 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15990 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015991 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 +000015992 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15993 export_dynamic_flag_spec='${wl}-E'
15994 else
15995 case $host_os in
15996 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15997 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15998 hardcode_libdir_flag_spec='-R$libdir'
15999 ;;
16000 *)
16001 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16002 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16003 ;;
16004 esac
16005 fi
16006 ;;
16007
16008 os2*)
16009 hardcode_libdir_flag_spec='-L$libdir'
16010 hardcode_minus_L=yes
16011 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000016012 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 +000016013 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16014 ;;
16015
16016 osf3*)
16017 if test "$GCC" = yes; then
16018 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16019 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'
16020 else
16021 allow_undefined_flag=' -expect_unresolved \*'
16022 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'
16023 fi
16024 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16025 hardcode_libdir_separator=:
16026 ;;
16027
16028 osf4* | osf5*) # as osf3* with the addition of -msym flag
16029 if test "$GCC" = yes; then
16030 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16031 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'
16032 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16033 else
16034 allow_undefined_flag=' -expect_unresolved \*'
16035 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 +000016036 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 +000016037 $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 +000016038
John Criswell47fdd832003-07-14 16:52:07 +000016039 # Both c and cxx compiler support -rpath directly
16040 hardcode_libdir_flag_spec='-rpath $libdir'
16041 fi
16042 hardcode_libdir_separator=:
16043 ;;
16044
John Criswell47fdd832003-07-14 16:52:07 +000016045 solaris*)
16046 no_undefined_flag=' -z text'
16047 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016048 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000016049 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016050 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16051 $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 +000016052 else
Reid Spencera773bd52006-08-04 18:18:08 +000016053 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000016054 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016055 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16056 $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 +000016057 fi
16058 hardcode_libdir_flag_spec='-R$libdir'
16059 hardcode_shlibpath_var=no
16060 case $host_os in
16061 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016062 *)
16063 # The compiler driver will combine linker options so we
16064 # cannot just pass the convience library names through
16065 # without $wl, iff we do not link with $LD.
16066 # Luckily, gcc supports the same syntax we need for Sun Studio.
16067 # Supported since Solaris 2.6 (maybe 2.5.1?)
16068 case $wlarc in
16069 '')
16070 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16071 *)
16072 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' ;;
16073 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000016074 esac
16075 link_all_deplibs=yes
16076 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016077
John Criswell47fdd832003-07-14 16:52:07 +000016078 sunos4*)
16079 if test "x$host_vendor" = xsequent; then
16080 # Use $CC to link under sequent, because it throws in some extra .o
16081 # files that make .init and .fini sections work.
16082 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16083 else
16084 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16085 fi
16086 hardcode_libdir_flag_spec='-L$libdir'
16087 hardcode_direct=yes
16088 hardcode_minus_L=yes
16089 hardcode_shlibpath_var=no
16090 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016091
John Criswell47fdd832003-07-14 16:52:07 +000016092 sysv4)
16093 case $host_vendor in
16094 sni)
16095 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16096 hardcode_direct=yes # is this really true???
16097 ;;
16098 siemens)
16099 ## LD is ld it makes a PLAMLIB
16100 ## CC just makes a GrossModule.
16101 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16102 reload_cmds='$CC -r -o $output$reload_objs'
16103 hardcode_direct=no
16104 ;;
16105 motorola)
16106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16107 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16108 ;;
16109 esac
16110 runpath_var='LD_RUN_PATH'
16111 hardcode_shlibpath_var=no
16112 ;;
16113
16114 sysv4.3*)
16115 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16116 hardcode_shlibpath_var=no
16117 export_dynamic_flag_spec='-Bexport'
16118 ;;
16119
16120 sysv4*MP*)
16121 if test -d /usr/nec; then
16122 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16123 hardcode_shlibpath_var=no
16124 runpath_var=LD_RUN_PATH
16125 hardcode_runpath_var=yes
16126 ld_shlibs=yes
16127 fi
16128 ;;
16129
Reid Spencera773bd52006-08-04 18:18:08 +000016130 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16131 no_undefined_flag='${wl}-z,text'
16132 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016133 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016134 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000016135
John Criswell47fdd832003-07-14 16:52:07 +000016136 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016137 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16138 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 +000016139 else
Reid Spencera773bd52006-08-04 18:18:08 +000016140 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16141 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 +000016142 fi
John Criswell47fdd832003-07-14 16:52:07 +000016143 ;;
16144
Reid Spencera773bd52006-08-04 18:18:08 +000016145 sysv5* | sco3.2v5* | sco5v6*)
16146 # Note: We can NOT use -z defs as we might desire, because we do not
16147 # link with -lc, and that would cause any symbols used from libc to
16148 # always be unresolved, which means just about no library would
16149 # ever link correctly. If we're not using GNU ld we use -z text
16150 # though, which does catch some bad symbols but isn't as heavy-handed
16151 # as -z defs.
16152 no_undefined_flag='${wl}-z,text'
16153 allow_undefined_flag='${wl}-z,nodefs'
16154 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016155 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016156 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16157 hardcode_libdir_separator=':'
16158 link_all_deplibs=yes
16159 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000016160 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000016161
16162 if test "$GCC" = yes; then
16163 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16164 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16165 else
16166 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16167 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16168 fi
John Criswell47fdd832003-07-14 16:52:07 +000016169 ;;
16170
16171 uts4*)
16172 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16173 hardcode_libdir_flag_spec='-L$libdir'
16174 hardcode_shlibpath_var=no
16175 ;;
16176
16177 *)
16178 ld_shlibs=no
16179 ;;
16180 esac
16181 fi
16182
Reid Spencera773bd52006-08-04 18:18:08 +000016183{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16184echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016185test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016186
John Criswell47fdd832003-07-14 16:52:07 +000016187#
16188# Do we need to explicitly link libc?
16189#
16190case "x$archive_cmds_need_lc" in
16191x|xyes)
16192 # Assume -lc should be added
16193 archive_cmds_need_lc=yes
16194
16195 if test "$enable_shared" = yes && test "$GCC" = yes; then
16196 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016197 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016198 # FIXME: we may have to deal with multi-command sequences.
16199 ;;
16200 '$CC '*)
16201 # Test whether the compiler implicitly links with -lc since on some
16202 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16203 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000016204 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16205echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016206 $rm conftest*
16207 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16208
16209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16210 (eval $ac_compile) 2>&5
16211 ac_status=$?
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); } 2>conftest.err; then
16214 soname=conftest
16215 lib=conftest
16216 libobjs=conftest.$ac_objext
16217 deplibs=
16218 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000016219 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000016220 compiler_flags=-v
16221 linker_flags=-v
16222 verstring=
16223 output_objdir=.
16224 libname=conftest
16225 lt_save_allow_undefined_flag=$allow_undefined_flag
16226 allow_undefined_flag=
16227 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16228 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16229 ac_status=$?
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); }
16232 then
16233 archive_cmds_need_lc=no
16234 else
16235 archive_cmds_need_lc=yes
16236 fi
16237 allow_undefined_flag=$lt_save_allow_undefined_flag
16238 else
16239 cat conftest.err 1>&5
16240 fi
16241 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000016242 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16243echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016244 ;;
16245 esac
16246 fi
16247 ;;
16248esac
16249
Reid Spencera773bd52006-08-04 18:18:08 +000016250{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16251echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016252library_names_spec=
16253libname_spec='lib$name'
16254soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016255shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000016256postinstall_cmds=
16257postuninstall_cmds=
16258finish_cmds=
16259finish_eval=
16260shlibpath_var=
16261shlibpath_overrides_runpath=unknown
16262version_type=none
16263dynamic_linker="$host_os ld.so"
16264sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016265if test "$GCC" = yes; then
16266 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16267 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16268 # if the path contains ";" then we assume it to be the separator
16269 # otherwise default to the standard path separator (i.e. ":") - it is
16270 # assumed that no part of a normal pathname contains ";" but that should
16271 # okay in the real world where ";" in dirpaths is itself problematic.
16272 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16273 else
16274 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16275 fi
16276else
16277 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16278fi
16279need_lib_prefix=unknown
16280hardcode_into_libs=no
16281
16282# when you set need_version to no, make sure it does not cause -set_version
16283# flags to be left without arguments
16284need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000016285
16286case $host_os in
16287aix3*)
16288 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016289 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016290 shlibpath_var=LIBPATH
16291
John Criswell47fdd832003-07-14 16:52:07 +000016292 # AIX 3 has no versioning support, so we append a major version to the name.
16293 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016294 ;;
16295
16296aix4* | aix5*)
16297 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016298 need_lib_prefix=no
16299 need_version=no
16300 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016301 if test "$host_cpu" = ia64; then
16302 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000016303 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016304 shlibpath_var=LD_LIBRARY_PATH
16305 else
16306 # With GCC up to 2.95.x, collect2 would create an import file
16307 # for dependence libraries. The import file would start with
16308 # the line `#! .'. This would cause the generated library to
16309 # depend on `.', always an invalid library. This was fixed in
16310 # development snapshots of GCC prior to 3.0.
16311 case $host_os in
16312 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000016313 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16314 echo ' yes '
16315 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16316 :
16317 else
16318 can_build_shared=no
16319 fi
16320 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016321 esac
John Criswell47fdd832003-07-14 16:52:07 +000016322 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16323 # soname into executable. Probably we can add versioning support to
16324 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000016325 if test "$aix_use_runtimelinking" = yes; then
16326 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16327 # instead of lib<name>.a to let people know that these are not
16328 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016330 else
16331 # We preserve .a as extension for shared libraries through AIX4.2
16332 # and later when we are not doing run time linking.
16333 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016334 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016335 fi
16336 shlibpath_var=LIBPATH
16337 fi
16338 ;;
16339
16340amigaos*)
16341 library_names_spec='$libname.ixlibrary $libname.a'
16342 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016343 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 +000016344 ;;
16345
16346beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016347 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016348 dynamic_linker="$host_os ld.so"
16349 shlibpath_var=LIBRARY_PATH
16350 ;;
16351
Reid Spencer2706f8c2004-09-19 23:53:36 +000016352bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016353 version_type=linux
16354 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16356 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016357 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16358 shlibpath_var=LD_LIBRARY_PATH
16359 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16360 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016361 # the default ld.so.conf also contains /usr/contrib/lib and
16362 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16363 # libtool to hard-code these into programs
16364 ;;
16365
16366cygwin* | mingw* | pw32*)
16367 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016368 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016369 need_version=no
16370 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016371
John Criswell7a73b802003-06-30 21:59:07 +000016372 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016373 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016374 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016375 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016376 postinstall_cmds='base_file=`basename \${file}`~
16377 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16378 dldir=$destdir/`dirname \$dlpath`~
16379 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016380 $install_prog $dir/$dlname \$dldir/$dlname~
16381 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016382 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16383 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016384 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016385 shlibpath_overrides_runpath=yes
16386
16387 case $host_os in
16388 cygwin*)
16389 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16390 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 +000016391 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016392 ;;
16393 mingw*)
16394 # MinGW DLLs use traditional 'lib' prefix
16395 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16396 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16397 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16398 # It is most probably a Windows format PATH printed by
16399 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16400 # path with ; separators, and with drive letters. We can handle the
16401 # drive letters (cygwin fileutils understands them), so leave them,
16402 # especially as we might pass files found there to a mingw objdump,
16403 # which wouldn't understand a cygwinified path. Ahh.
16404 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16405 else
16406 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16407 fi
16408 ;;
16409 pw32*)
16410 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016411 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 +000016412 ;;
16413 esac
John Criswell7a73b802003-06-30 21:59:07 +000016414 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016415
John Criswell7a73b802003-06-30 21:59:07 +000016416 *)
John Criswell47fdd832003-07-14 16:52:07 +000016417 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016418 ;;
16419 esac
16420 dynamic_linker='Win32 ld.exe'
16421 # FIXME: first we should search . and the directory the executable is in
16422 shlibpath_var=PATH
16423 ;;
16424
16425darwin* | rhapsody*)
16426 dynamic_linker="$host_os dyld"
16427 version_type=darwin
16428 need_lib_prefix=no
16429 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016430 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016431 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016432 shlibpath_overrides_runpath=yes
16433 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016434 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016435 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016436 if test "$GCC" = yes; then
16437 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"`
16438 else
16439 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016440 fi
16441 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16442 ;;
16443
16444dgux*)
16445 version_type=linux
16446 need_lib_prefix=no
16447 need_version=no
16448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16449 soname_spec='${libname}${release}${shared_ext}$major'
16450 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016451 ;;
16452
16453freebsd1*)
16454 dynamic_linker=no
16455 ;;
16456
Reid Spencer2706f8c2004-09-19 23:53:36 +000016457kfreebsd*-gnu)
16458 version_type=linux
16459 need_lib_prefix=no
16460 need_version=no
16461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16462 soname_spec='${libname}${release}${shared_ext}$major'
16463 shlibpath_var=LD_LIBRARY_PATH
16464 shlibpath_overrides_runpath=no
16465 hardcode_into_libs=yes
16466 dynamic_linker='GNU ld.so'
16467 ;;
16468
Reid Spencera773bd52006-08-04 18:18:08 +000016469freebsd* | dragonfly*)
16470 # DragonFly does not have aout. When/if they implement a new
16471 # versioning mechanism, adjust this.
16472 if test -x /usr/bin/objformat; then
16473 objformat=`/usr/bin/objformat`
16474 else
16475 case $host_os in
16476 freebsd[123]*) objformat=aout ;;
16477 *) objformat=elf ;;
16478 esac
16479 fi
John Criswell7a73b802003-06-30 21:59:07 +000016480 version_type=freebsd-$objformat
16481 case $version_type in
16482 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016484 need_version=no
16485 need_lib_prefix=no
16486 ;;
16487 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016488 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016489 need_version=yes
16490 ;;
16491 esac
16492 shlibpath_var=LD_LIBRARY_PATH
16493 case $host_os in
16494 freebsd2*)
16495 shlibpath_overrides_runpath=yes
16496 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016497 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016498 shlibpath_overrides_runpath=yes
16499 hardcode_into_libs=yes
16500 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016501 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16502 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016503 shlibpath_overrides_runpath=no
16504 hardcode_into_libs=yes
16505 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016506 freebsd*) # from 4.6 on
16507 shlibpath_overrides_runpath=yes
16508 hardcode_into_libs=yes
16509 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016510 esac
16511 ;;
16512
16513gnu*)
16514 version_type=linux
16515 need_lib_prefix=no
16516 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16518 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016519 shlibpath_var=LD_LIBRARY_PATH
16520 hardcode_into_libs=yes
16521 ;;
16522
16523hpux9* | hpux10* | hpux11*)
16524 # Give a soname corresponding to the major version so that dld.sl refuses to
16525 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016526 version_type=sunos
16527 need_lib_prefix=no
16528 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016529 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016530 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016531 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016532 hardcode_into_libs=yes
16533 dynamic_linker="$host_os dld.so"
16534 shlibpath_var=LD_LIBRARY_PATH
16535 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16537 soname_spec='${libname}${release}${shared_ext}$major'
16538 if test "X$HPUX_IA64_MODE" = X32; then
16539 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16540 else
16541 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16542 fi
16543 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16544 ;;
16545 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016546 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016547 hardcode_into_libs=yes
16548 dynamic_linker="$host_os dld.sl"
16549 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16550 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16552 soname_spec='${libname}${release}${shared_ext}$major'
16553 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16554 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16555 ;;
16556 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016557 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016558 dynamic_linker="$host_os dld.sl"
16559 shlibpath_var=SHLIB_PATH
16560 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16562 soname_spec='${libname}${release}${shared_ext}$major'
16563 ;;
16564 esac
John Criswell7a73b802003-06-30 21:59:07 +000016565 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16566 postinstall_cmds='chmod 555 $lib'
16567 ;;
16568
Reid Spencera773bd52006-08-04 18:18:08 +000016569interix3*)
16570 version_type=linux
16571 need_lib_prefix=no
16572 need_version=no
16573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16574 soname_spec='${libname}${release}${shared_ext}$major'
16575 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16576 shlibpath_var=LD_LIBRARY_PATH
16577 shlibpath_overrides_runpath=no
16578 hardcode_into_libs=yes
16579 ;;
16580
John Criswell47fdd832003-07-14 16:52:07 +000016581irix5* | irix6* | nonstopux*)
16582 case $host_os in
16583 nonstopux*) version_type=nonstopux ;;
16584 *)
16585 if test "$lt_cv_prog_gnu_ld" = yes; then
16586 version_type=linux
16587 else
16588 version_type=irix
16589 fi ;;
16590 esac
John Criswell7a73b802003-06-30 21:59:07 +000016591 need_lib_prefix=no
16592 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016593 soname_spec='${libname}${release}${shared_ext}$major'
16594 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 +000016595 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016596 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016597 libsuff= shlibsuff=
16598 ;;
16599 *)
16600 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016601 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16602 libsuff= shlibsuff= libmagic=32-bit;;
16603 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16604 libsuff=32 shlibsuff=N32 libmagic=N32;;
16605 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16606 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016607 *) libsuff= shlibsuff= libmagic=never-match;;
16608 esac
16609 ;;
16610 esac
16611 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16612 shlibpath_overrides_runpath=no
16613 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16614 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016615 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016616 ;;
16617
16618# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016619linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016620 dynamic_linker=no
16621 ;;
16622
16623# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016624linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016625 version_type=linux
16626 need_lib_prefix=no
16627 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16629 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016630 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16631 shlibpath_var=LD_LIBRARY_PATH
16632 shlibpath_overrides_runpath=no
16633 # This implies no fast_install, which is unacceptable.
16634 # Some rework will be needed to allow for fast_install
16635 # before this can be enabled.
16636 hardcode_into_libs=yes
16637
Reid Spencer2706f8c2004-09-19 23:53:36 +000016638 # Append ld.so.conf contents to the search path
16639 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016640 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 +000016641 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16642 fi
16643
John Criswell7a73b802003-06-30 21:59:07 +000016644 # We used to test for /lib/ld.so.1 and disable shared libraries on
16645 # powerpc, because MkLinux only supported shared libraries with the
16646 # GNU dynamic linker. Since this was broken with cross compilers,
16647 # most powerpc-linux boxes support dynamic linking these days and
16648 # people can always --disable-shared, the test was removed, and we
16649 # assume the GNU/Linux dynamic linker is in use.
16650 dynamic_linker='GNU/Linux ld.so'
16651 ;;
16652
Reid Spencer2706f8c2004-09-19 23:53:36 +000016653knetbsd*-gnu)
16654 version_type=linux
16655 need_lib_prefix=no
16656 need_version=no
16657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16658 soname_spec='${libname}${release}${shared_ext}$major'
16659 shlibpath_var=LD_LIBRARY_PATH
16660 shlibpath_overrides_runpath=no
16661 hardcode_into_libs=yes
16662 dynamic_linker='GNU ld.so'
16663 ;;
16664
John Criswell7a73b802003-06-30 21:59:07 +000016665netbsd*)
16666 version_type=sunos
16667 need_lib_prefix=no
16668 need_version=no
16669 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016671 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16672 dynamic_linker='NetBSD (a.out) ld.so'
16673 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016675 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016676 dynamic_linker='NetBSD ld.elf_so'
16677 fi
16678 shlibpath_var=LD_LIBRARY_PATH
16679 shlibpath_overrides_runpath=yes
16680 hardcode_into_libs=yes
16681 ;;
16682
16683newsos6)
16684 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16686 shlibpath_var=LD_LIBRARY_PATH
16687 shlibpath_overrides_runpath=yes
16688 ;;
16689
Reid Spencer2706f8c2004-09-19 23:53:36 +000016690nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016691 version_type=linux
16692 need_lib_prefix=no
16693 need_version=no
16694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16695 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016696 shlibpath_var=LD_LIBRARY_PATH
16697 shlibpath_overrides_runpath=yes
16698 ;;
16699
16700openbsd*)
16701 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016702 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016703 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016704 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16705 case $host_os in
16706 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16707 *) need_version=no ;;
16708 esac
John Criswell47fdd832003-07-14 16:52:07 +000016709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16710 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16711 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016712 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 +000016713 case $host_os in
16714 openbsd2.[89] | openbsd2.[89].*)
16715 shlibpath_overrides_runpath=no
16716 ;;
16717 *)
16718 shlibpath_overrides_runpath=yes
16719 ;;
16720 esac
John Criswell7a73b802003-06-30 21:59:07 +000016721 else
16722 shlibpath_overrides_runpath=yes
16723 fi
John Criswell7a73b802003-06-30 21:59:07 +000016724 ;;
16725
16726os2*)
16727 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016728 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016729 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016730 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016731 dynamic_linker='OS/2 ld.exe'
16732 shlibpath_var=LIBPATH
16733 ;;
16734
16735osf3* | osf4* | osf5*)
16736 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016737 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016738 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016739 soname_spec='${libname}${release}${shared_ext}$major'
16740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016741 shlibpath_var=LD_LIBRARY_PATH
16742 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16743 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16744 ;;
16745
John Criswell7a73b802003-06-30 21:59:07 +000016746solaris*)
16747 version_type=linux
16748 need_lib_prefix=no
16749 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16751 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016752 shlibpath_var=LD_LIBRARY_PATH
16753 shlibpath_overrides_runpath=yes
16754 hardcode_into_libs=yes
16755 # ldd complains unless libraries are executable
16756 postinstall_cmds='chmod +x $lib'
16757 ;;
16758
16759sunos4*)
16760 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016762 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16763 shlibpath_var=LD_LIBRARY_PATH
16764 shlibpath_overrides_runpath=yes
16765 if test "$with_gnu_ld" = yes; then
16766 need_lib_prefix=no
16767 fi
16768 need_version=yes
16769 ;;
16770
Reid Spencera773bd52006-08-04 18:18:08 +000016771sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016772 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16774 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016775 shlibpath_var=LD_LIBRARY_PATH
16776 case $host_vendor in
16777 sni)
16778 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016779 need_lib_prefix=no
16780 export_dynamic_flag_spec='${wl}-Blargedynsym'
16781 runpath_var=LD_RUN_PATH
16782 ;;
16783 siemens)
16784 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016785 ;;
16786 motorola)
16787 need_lib_prefix=no
16788 need_version=no
16789 shlibpath_overrides_runpath=no
16790 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16791 ;;
16792 esac
16793 ;;
16794
John Criswell7a73b802003-06-30 21:59:07 +000016795sysv4*MP*)
16796 if test -d /usr/nec ;then
16797 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016798 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16799 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016800 shlibpath_var=LD_LIBRARY_PATH
16801 fi
16802 ;;
16803
Reid Spencera773bd52006-08-04 18:18:08 +000016804sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16805 version_type=freebsd-elf
16806 need_lib_prefix=no
16807 need_version=no
16808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16809 soname_spec='${libname}${release}${shared_ext}$major'
16810 shlibpath_var=LD_LIBRARY_PATH
16811 hardcode_into_libs=yes
16812 if test "$with_gnu_ld" = yes; then
16813 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16814 shlibpath_overrides_runpath=no
16815 else
16816 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16817 shlibpath_overrides_runpath=yes
16818 case $host_os in
16819 sco3.2v5*)
16820 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16821 ;;
16822 esac
16823 fi
16824 sys_lib_dlsearch_path_spec='/usr/lib'
16825 ;;
16826
John Criswell47fdd832003-07-14 16:52:07 +000016827uts4*)
16828 version_type=linux
16829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16830 soname_spec='${libname}${release}${shared_ext}$major'
16831 shlibpath_var=LD_LIBRARY_PATH
16832 ;;
16833
John Criswell7a73b802003-06-30 21:59:07 +000016834*)
16835 dynamic_linker=no
16836 ;;
16837esac
Reid Spencera773bd52006-08-04 18:18:08 +000016838{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16839echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016840test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016841
Reid Spencera773bd52006-08-04 18:18:08 +000016842variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16843if test "$GCC" = yes; then
16844 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16845fi
16846
16847{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16848echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016849hardcode_action=
16850if test -n "$hardcode_libdir_flag_spec" || \
16851 test -n "$runpath_var" || \
16852 test "X$hardcode_automatic" = "Xyes" ; then
16853
16854 # We can hardcode non-existant directories.
16855 if test "$hardcode_direct" != no &&
16856 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16857 # have to relink, otherwise we might link with an installed library
16858 # when we should be linking with a yet-to-be-installed one
16859 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16860 test "$hardcode_minus_L" != no; then
16861 # Linking always hardcodes the temporary library directory.
16862 hardcode_action=relink
16863 else
16864 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16865 hardcode_action=immediate
16866 fi
16867else
16868 # We cannot hardcode anything, or else we can only hardcode existing
16869 # directories.
16870 hardcode_action=unsupported
16871fi
Reid Spencera773bd52006-08-04 18:18:08 +000016872{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16873echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016874
16875if test "$hardcode_action" = relink; then
16876 # Fast installation is not supported
16877 enable_fast_install=no
16878elif test "$shlibpath_overrides_runpath" = yes ||
16879 test "$enable_shared" = no; then
16880 # Fast installation is not necessary
16881 enable_fast_install=needless
16882fi
16883
16884striplib=
16885old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016886{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16887echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016888if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16889 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16890 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016891 { echo "$as_me:$LINENO: result: yes" >&5
16892echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016893else
16894# FIXME - insert some real tests, host_os isn't really good enough
16895 case $host_os in
16896 darwin*)
16897 if test -n "$STRIP" ; then
16898 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016899 { echo "$as_me:$LINENO: result: yes" >&5
16900echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016901 else
Reid Spencera773bd52006-08-04 18:18:08 +000016902 { echo "$as_me:$LINENO: result: no" >&5
16903echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016904fi
16905 ;;
16906 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016907 { echo "$as_me:$LINENO: result: no" >&5
16908echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016909 ;;
16910 esac
16911fi
16912
John Criswell7a73b802003-06-30 21:59:07 +000016913if test "x$enable_dlopen" != xyes; then
16914 enable_dlopen=unknown
16915 enable_dlopen_self=unknown
16916 enable_dlopen_self_static=unknown
16917else
16918 lt_cv_dlopen=no
16919 lt_cv_dlopen_libs=
16920
16921 case $host_os in
16922 beos*)
16923 lt_cv_dlopen="load_add_on"
16924 lt_cv_dlopen_libs=
16925 lt_cv_dlopen_self=yes
16926 ;;
16927
John Criswell47fdd832003-07-14 16:52:07 +000016928 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016929 lt_cv_dlopen="LoadLibrary"
16930 lt_cv_dlopen_libs=
16931 ;;
16932
John Criswell47fdd832003-07-14 16:52:07 +000016933 cygwin*)
16934 lt_cv_dlopen="dlopen"
16935 lt_cv_dlopen_libs=
16936 ;;
16937
16938 darwin*)
16939 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016940 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16941echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016942if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16943 echo $ECHO_N "(cached) $ECHO_C" >&6
16944else
16945 ac_check_lib_save_LIBS=$LIBS
16946LIBS="-ldl $LIBS"
16947cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016948/* confdefs.h. */
16949_ACEOF
16950cat confdefs.h >>conftest.$ac_ext
16951cat >>conftest.$ac_ext <<_ACEOF
16952/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016953
Reid Spencera773bd52006-08-04 18:18:08 +000016954/* Override any GCC internal prototype to avoid an error.
16955 Use char because int might match the return type of a GCC
16956 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016957#ifdef __cplusplus
16958extern "C"
16959#endif
John Criswell47fdd832003-07-14 16:52:07 +000016960char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016961int
16962main ()
16963{
Reid Spencera773bd52006-08-04 18:18:08 +000016964return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016965 ;
16966 return 0;
16967}
16968_ACEOF
16969rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016970if { (ac_try="$ac_link"
16971case "(($ac_try" in
16972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16973 *) ac_try_echo=$ac_try;;
16974esac
16975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16976 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016977 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016978 grep -v '^ *+' conftest.er1 >conftest.err
16979 rm -f conftest.er1
16980 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016982 (exit $ac_status); } &&
16983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16984 { (case "(($ac_try" in
16985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986 *) ac_try_echo=$ac_try;;
16987esac
16988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989 (eval "$ac_try") 2>&5
16990 ac_status=$?
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); }; } &&
16993 { ac_try='test -s conftest$ac_exeext'
16994 { (case "(($ac_try" in
16995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16996 *) ac_try_echo=$ac_try;;
16997esac
16998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16999 (eval "$ac_try") 2>&5
17000 ac_status=$?
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000017003 ac_cv_lib_dl_dlopen=yes
17004else
17005 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017006sed 's/^/| /' conftest.$ac_ext >&5
17007
Reid Spencera773bd52006-08-04 18:18:08 +000017008 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000017009fi
Reid Spencera773bd52006-08-04 18:18:08 +000017010
Bill Wendlingebcceee2009-04-18 11:20:33 +000017011rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017012 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017013LIBS=$ac_check_lib_save_LIBS
17014fi
Reid Spencera773bd52006-08-04 18:18:08 +000017015{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17016echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017017if test $ac_cv_lib_dl_dlopen = yes; then
17018 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17019else
17020
17021 lt_cv_dlopen="dyld"
17022 lt_cv_dlopen_libs=
17023 lt_cv_dlopen_self=yes
17024
17025fi
17026
17027 ;;
17028
John Criswell7a73b802003-06-30 21:59:07 +000017029 *)
Reid Spencera773bd52006-08-04 18:18:08 +000017030 { echo "$as_me:$LINENO: checking for shl_load" >&5
17031echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017032if test "${ac_cv_func_shl_load+set}" = set; then
17033 echo $ECHO_N "(cached) $ECHO_C" >&6
17034else
17035 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017036/* confdefs.h. */
17037_ACEOF
17038cat confdefs.h >>conftest.$ac_ext
17039cat >>conftest.$ac_ext <<_ACEOF
17040/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017041/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17043#define shl_load innocuous_shl_load
17044
John Criswell7a73b802003-06-30 21:59:07 +000017045/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017046 which can conflict with char shl_load (); below.
17047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17048 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017049
John Criswell0c38eaf2003-09-10 15:17:25 +000017050#ifdef __STDC__
17051# include <limits.h>
17052#else
17053# include <assert.h>
17054#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017055
17056#undef shl_load
17057
Reid Spencera773bd52006-08-04 18:18:08 +000017058/* Override any GCC internal prototype to avoid an error.
17059 Use char because int might match the return type of a GCC
17060 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017061#ifdef __cplusplus
17062extern "C"
17063#endif
John Criswell7a73b802003-06-30 21:59:07 +000017064char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017065/* The GNU C library defines this for functions which it implements
17066 to always fail with ENOSYS. Some functions are actually named
17067 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017068#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000017069choke me
John Criswell7a73b802003-06-30 21:59:07 +000017070#endif
17071
John Criswell0c38eaf2003-09-10 15:17:25 +000017072int
17073main ()
17074{
Reid Spencera773bd52006-08-04 18:18:08 +000017075return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017076 ;
17077 return 0;
17078}
17079_ACEOF
17080rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017081if { (ac_try="$ac_link"
17082case "(($ac_try" in
17083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17084 *) ac_try_echo=$ac_try;;
17085esac
17086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17087 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017088 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017089 grep -v '^ *+' conftest.er1 >conftest.err
17090 rm -f conftest.er1
17091 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017093 (exit $ac_status); } &&
17094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17095 { (case "(($ac_try" in
17096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17097 *) ac_try_echo=$ac_try;;
17098esac
17099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17100 (eval "$ac_try") 2>&5
17101 ac_status=$?
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); }; } &&
17104 { ac_try='test -s conftest$ac_exeext'
17105 { (case "(($ac_try" in
17106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107 *) ac_try_echo=$ac_try;;
17108esac
17109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17110 (eval "$ac_try") 2>&5
17111 ac_status=$?
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017114 ac_cv_func_shl_load=yes
17115else
17116 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017117sed 's/^/| /' conftest.$ac_ext >&5
17118
Reid Spencera773bd52006-08-04 18:18:08 +000017119 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017120fi
Reid Spencera773bd52006-08-04 18:18:08 +000017121
Bill Wendlingebcceee2009-04-18 11:20:33 +000017122rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017123 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017124fi
Reid Spencera773bd52006-08-04 18:18:08 +000017125{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17126echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017127if test $ac_cv_func_shl_load = yes; then
17128 lt_cv_dlopen="shl_load"
17129else
Reid Spencera773bd52006-08-04 18:18:08 +000017130 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17131echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017132if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17133 echo $ECHO_N "(cached) $ECHO_C" >&6
17134else
17135 ac_check_lib_save_LIBS=$LIBS
17136LIBS="-ldld $LIBS"
17137cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017138/* confdefs.h. */
17139_ACEOF
17140cat confdefs.h >>conftest.$ac_ext
17141cat >>conftest.$ac_ext <<_ACEOF
17142/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017143
Reid Spencera773bd52006-08-04 18:18:08 +000017144/* Override any GCC internal prototype to avoid an error.
17145 Use char because int might match the return type of a GCC
17146 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017147#ifdef __cplusplus
17148extern "C"
17149#endif
John Criswell7a73b802003-06-30 21:59:07 +000017150char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017151int
17152main ()
17153{
Reid Spencera773bd52006-08-04 18:18:08 +000017154return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017155 ;
17156 return 0;
17157}
17158_ACEOF
17159rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017160if { (ac_try="$ac_link"
17161case "(($ac_try" in
17162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163 *) ac_try_echo=$ac_try;;
17164esac
17165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17166 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017167 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017168 grep -v '^ *+' conftest.er1 >conftest.err
17169 rm -f conftest.er1
17170 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017172 (exit $ac_status); } &&
17173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17174 { (case "(($ac_try" in
17175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17176 *) ac_try_echo=$ac_try;;
17177esac
17178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17179 (eval "$ac_try") 2>&5
17180 ac_status=$?
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); }; } &&
17183 { ac_try='test -s conftest$ac_exeext'
17184 { (case "(($ac_try" in
17185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17186 *) ac_try_echo=$ac_try;;
17187esac
17188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17189 (eval "$ac_try") 2>&5
17190 ac_status=$?
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017193 ac_cv_lib_dld_shl_load=yes
17194else
17195 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017196sed 's/^/| /' conftest.$ac_ext >&5
17197
Reid Spencera773bd52006-08-04 18:18:08 +000017198 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017199fi
Reid Spencera773bd52006-08-04 18:18:08 +000017200
Bill Wendlingebcceee2009-04-18 11:20:33 +000017201rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017202 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017203LIBS=$ac_check_lib_save_LIBS
17204fi
Reid Spencera773bd52006-08-04 18:18:08 +000017205{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17206echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017207if test $ac_cv_lib_dld_shl_load = yes; then
17208 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17209else
Reid Spencera773bd52006-08-04 18:18:08 +000017210 { echo "$as_me:$LINENO: checking for dlopen" >&5
17211echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017212if test "${ac_cv_func_dlopen+set}" = set; then
17213 echo $ECHO_N "(cached) $ECHO_C" >&6
17214else
17215 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017216/* confdefs.h. */
17217_ACEOF
17218cat confdefs.h >>conftest.$ac_ext
17219cat >>conftest.$ac_ext <<_ACEOF
17220/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017221/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17223#define dlopen innocuous_dlopen
17224
John Criswell7a73b802003-06-30 21:59:07 +000017225/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017226 which can conflict with char dlopen (); below.
17227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17228 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017229
John Criswell0c38eaf2003-09-10 15:17:25 +000017230#ifdef __STDC__
17231# include <limits.h>
17232#else
17233# include <assert.h>
17234#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017235
17236#undef dlopen
17237
Reid Spencera773bd52006-08-04 18:18:08 +000017238/* Override any GCC internal prototype to avoid an error.
17239 Use char because int might match the return type of a GCC
17240 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017241#ifdef __cplusplus
17242extern "C"
17243#endif
John Criswell7a73b802003-06-30 21:59:07 +000017244char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017245/* The GNU C library defines this for functions which it implements
17246 to always fail with ENOSYS. Some functions are actually named
17247 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017248#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000017249choke me
John Criswell7a73b802003-06-30 21:59:07 +000017250#endif
17251
John Criswell0c38eaf2003-09-10 15:17:25 +000017252int
17253main ()
17254{
Reid Spencera773bd52006-08-04 18:18:08 +000017255return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017256 ;
17257 return 0;
17258}
17259_ACEOF
17260rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017261if { (ac_try="$ac_link"
17262case "(($ac_try" in
17263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17264 *) ac_try_echo=$ac_try;;
17265esac
17266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17267 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017268 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017269 grep -v '^ *+' conftest.er1 >conftest.err
17270 rm -f conftest.er1
17271 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017273 (exit $ac_status); } &&
17274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17275 { (case "(($ac_try" in
17276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17277 *) ac_try_echo=$ac_try;;
17278esac
17279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17280 (eval "$ac_try") 2>&5
17281 ac_status=$?
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); }; } &&
17284 { ac_try='test -s conftest$ac_exeext'
17285 { (case "(($ac_try" in
17286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17287 *) ac_try_echo=$ac_try;;
17288esac
17289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17290 (eval "$ac_try") 2>&5
17291 ac_status=$?
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017294 ac_cv_func_dlopen=yes
17295else
17296 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017297sed 's/^/| /' conftest.$ac_ext >&5
17298
Reid Spencera773bd52006-08-04 18:18:08 +000017299 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017300fi
Reid Spencera773bd52006-08-04 18:18:08 +000017301
Bill Wendlingebcceee2009-04-18 11:20:33 +000017302rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017303 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017304fi
Reid Spencera773bd52006-08-04 18:18:08 +000017305{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17306echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017307if test $ac_cv_func_dlopen = yes; then
17308 lt_cv_dlopen="dlopen"
17309else
Reid Spencera773bd52006-08-04 18:18:08 +000017310 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17311echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017312if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17313 echo $ECHO_N "(cached) $ECHO_C" >&6
17314else
17315 ac_check_lib_save_LIBS=$LIBS
17316LIBS="-ldl $LIBS"
17317cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017318/* confdefs.h. */
17319_ACEOF
17320cat confdefs.h >>conftest.$ac_ext
17321cat >>conftest.$ac_ext <<_ACEOF
17322/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017323
Reid Spencera773bd52006-08-04 18:18:08 +000017324/* Override any GCC internal prototype to avoid an error.
17325 Use char because int might match the return type of a GCC
17326 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017327#ifdef __cplusplus
17328extern "C"
17329#endif
John Criswell7a73b802003-06-30 21:59:07 +000017330char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017331int
17332main ()
17333{
Reid Spencera773bd52006-08-04 18:18:08 +000017334return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017335 ;
17336 return 0;
17337}
17338_ACEOF
17339rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017340if { (ac_try="$ac_link"
17341case "(($ac_try" in
17342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17343 *) ac_try_echo=$ac_try;;
17344esac
17345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17346 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017347 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017348 grep -v '^ *+' conftest.er1 >conftest.err
17349 rm -f conftest.er1
17350 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017352 (exit $ac_status); } &&
17353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17354 { (case "(($ac_try" in
17355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356 *) ac_try_echo=$ac_try;;
17357esac
17358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17359 (eval "$ac_try") 2>&5
17360 ac_status=$?
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); }; } &&
17363 { ac_try='test -s conftest$ac_exeext'
17364 { (case "(($ac_try" in
17365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366 *) ac_try_echo=$ac_try;;
17367esac
17368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17369 (eval "$ac_try") 2>&5
17370 ac_status=$?
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017373 ac_cv_lib_dl_dlopen=yes
17374else
17375 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017376sed 's/^/| /' conftest.$ac_ext >&5
17377
Reid Spencera773bd52006-08-04 18:18:08 +000017378 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017379fi
Reid Spencera773bd52006-08-04 18:18:08 +000017380
Bill Wendlingebcceee2009-04-18 11:20:33 +000017381rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017382 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017383LIBS=$ac_check_lib_save_LIBS
17384fi
Reid Spencera773bd52006-08-04 18:18:08 +000017385{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17386echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017387if test $ac_cv_lib_dl_dlopen = yes; then
17388 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17389else
Reid Spencera773bd52006-08-04 18:18:08 +000017390 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17391echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017392if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17393 echo $ECHO_N "(cached) $ECHO_C" >&6
17394else
17395 ac_check_lib_save_LIBS=$LIBS
17396LIBS="-lsvld $LIBS"
17397cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017398/* confdefs.h. */
17399_ACEOF
17400cat confdefs.h >>conftest.$ac_ext
17401cat >>conftest.$ac_ext <<_ACEOF
17402/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017403
Reid Spencera773bd52006-08-04 18:18:08 +000017404/* Override any GCC internal prototype to avoid an error.
17405 Use char because int might match the return type of a GCC
17406 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017407#ifdef __cplusplus
17408extern "C"
17409#endif
John Criswell7a73b802003-06-30 21:59:07 +000017410char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017411int
17412main ()
17413{
Reid Spencera773bd52006-08-04 18:18:08 +000017414return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017415 ;
17416 return 0;
17417}
17418_ACEOF
17419rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017420if { (ac_try="$ac_link"
17421case "(($ac_try" in
17422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17423 *) ac_try_echo=$ac_try;;
17424esac
17425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17426 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017427 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017428 grep -v '^ *+' conftest.er1 >conftest.err
17429 rm -f conftest.er1
17430 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017432 (exit $ac_status); } &&
17433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17434 { (case "(($ac_try" in
17435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17436 *) ac_try_echo=$ac_try;;
17437esac
17438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17439 (eval "$ac_try") 2>&5
17440 ac_status=$?
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }; } &&
17443 { ac_try='test -s conftest$ac_exeext'
17444 { (case "(($ac_try" in
17445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17446 *) ac_try_echo=$ac_try;;
17447esac
17448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17449 (eval "$ac_try") 2>&5
17450 ac_status=$?
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017453 ac_cv_lib_svld_dlopen=yes
17454else
17455 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017456sed 's/^/| /' conftest.$ac_ext >&5
17457
Reid Spencera773bd52006-08-04 18:18:08 +000017458 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017459fi
Reid Spencera773bd52006-08-04 18:18:08 +000017460
Bill Wendlingebcceee2009-04-18 11:20:33 +000017461rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017462 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017463LIBS=$ac_check_lib_save_LIBS
17464fi
Reid Spencera773bd52006-08-04 18:18:08 +000017465{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17466echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017467if test $ac_cv_lib_svld_dlopen = yes; then
17468 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17469else
Reid Spencera773bd52006-08-04 18:18:08 +000017470 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17471echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017472if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17473 echo $ECHO_N "(cached) $ECHO_C" >&6
17474else
17475 ac_check_lib_save_LIBS=$LIBS
17476LIBS="-ldld $LIBS"
17477cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017478/* confdefs.h. */
17479_ACEOF
17480cat confdefs.h >>conftest.$ac_ext
17481cat >>conftest.$ac_ext <<_ACEOF
17482/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017483
Reid Spencera773bd52006-08-04 18:18:08 +000017484/* Override any GCC internal prototype to avoid an error.
17485 Use char because int might match the return type of a GCC
17486 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017487#ifdef __cplusplus
17488extern "C"
17489#endif
John Criswell7a73b802003-06-30 21:59:07 +000017490char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017491int
17492main ()
17493{
Reid Spencera773bd52006-08-04 18:18:08 +000017494return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017495 ;
17496 return 0;
17497}
17498_ACEOF
17499rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017500if { (ac_try="$ac_link"
17501case "(($ac_try" in
17502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17503 *) ac_try_echo=$ac_try;;
17504esac
17505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17506 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017507 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017508 grep -v '^ *+' conftest.er1 >conftest.err
17509 rm -f conftest.er1
17510 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017512 (exit $ac_status); } &&
17513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17514 { (case "(($ac_try" in
17515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17516 *) ac_try_echo=$ac_try;;
17517esac
17518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17519 (eval "$ac_try") 2>&5
17520 ac_status=$?
17521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 (exit $ac_status); }; } &&
17523 { ac_try='test -s conftest$ac_exeext'
17524 { (case "(($ac_try" in
17525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17526 *) ac_try_echo=$ac_try;;
17527esac
17528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17529 (eval "$ac_try") 2>&5
17530 ac_status=$?
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017533 ac_cv_lib_dld_dld_link=yes
17534else
17535 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017536sed 's/^/| /' conftest.$ac_ext >&5
17537
Reid Spencera773bd52006-08-04 18:18:08 +000017538 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017539fi
Reid Spencera773bd52006-08-04 18:18:08 +000017540
Bill Wendlingebcceee2009-04-18 11:20:33 +000017541rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017542 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017543LIBS=$ac_check_lib_save_LIBS
17544fi
Reid Spencera773bd52006-08-04 18:18:08 +000017545{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17546echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017547if test $ac_cv_lib_dld_dld_link = yes; then
17548 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17549fi
17550
17551
17552fi
17553
17554
17555fi
17556
17557
17558fi
17559
17560
17561fi
17562
17563
17564fi
17565
17566 ;;
17567 esac
17568
17569 if test "x$lt_cv_dlopen" != xno; then
17570 enable_dlopen=yes
17571 else
17572 enable_dlopen=no
17573 fi
17574
17575 case $lt_cv_dlopen in
17576 dlopen)
17577 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017578 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017579
17580 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017581 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017582
17583 save_LIBS="$LIBS"
17584 LIBS="$lt_cv_dlopen_libs $LIBS"
17585
Reid Spencera773bd52006-08-04 18:18:08 +000017586 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17587echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017588if test "${lt_cv_dlopen_self+set}" = set; then
17589 echo $ECHO_N "(cached) $ECHO_C" >&6
17590else
17591 if test "$cross_compiling" = yes; then :
17592 lt_cv_dlopen_self=cross
17593else
John Criswell47fdd832003-07-14 16:52:07 +000017594 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017595 lt_status=$lt_dlunknown
17596 cat > conftest.$ac_ext <<EOF
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000017597#line 17602 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017598#include "confdefs.h"
17599
17600#if HAVE_DLFCN_H
17601#include <dlfcn.h>
17602#endif
17603
17604#include <stdio.h>
17605
17606#ifdef RTLD_GLOBAL
17607# define LT_DLGLOBAL RTLD_GLOBAL
17608#else
17609# ifdef DL_GLOBAL
17610# define LT_DLGLOBAL DL_GLOBAL
17611# else
17612# define LT_DLGLOBAL 0
17613# endif
17614#endif
17615
17616/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17617 find out it does not work in some platform. */
17618#ifndef LT_DLLAZY_OR_NOW
17619# ifdef RTLD_LAZY
17620# define LT_DLLAZY_OR_NOW RTLD_LAZY
17621# else
17622# ifdef DL_LAZY
17623# define LT_DLLAZY_OR_NOW DL_LAZY
17624# else
17625# ifdef RTLD_NOW
17626# define LT_DLLAZY_OR_NOW RTLD_NOW
17627# else
17628# ifdef DL_NOW
17629# define LT_DLLAZY_OR_NOW DL_NOW
17630# else
17631# define LT_DLLAZY_OR_NOW 0
17632# endif
17633# endif
17634# endif
17635# endif
17636#endif
17637
17638#ifdef __cplusplus
17639extern "C" void exit (int);
17640#endif
17641
17642void fnord() { int i=42;}
17643int main ()
17644{
17645 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17646 int status = $lt_dlunknown;
17647
17648 if (self)
17649 {
17650 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17651 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17652 /* dlclose (self); */
17653 }
Reid Spencera773bd52006-08-04 18:18:08 +000017654 else
17655 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017656
17657 exit (status);
17658}
17659EOF
17660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17661 (eval $ac_link) 2>&5
17662 ac_status=$?
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017665 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017666 lt_status=$?
17667 case x$lt_status in
17668 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17669 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017670 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017671 esac
17672 else :
17673 # compilation failed
17674 lt_cv_dlopen_self=no
17675 fi
17676fi
17677rm -fr conftest*
17678
17679
17680fi
Reid Spencera773bd52006-08-04 18:18:08 +000017681{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17682echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017683
17684 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017685 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17686 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17687echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017688if test "${lt_cv_dlopen_self_static+set}" = set; then
17689 echo $ECHO_N "(cached) $ECHO_C" >&6
17690else
17691 if test "$cross_compiling" = yes; then :
17692 lt_cv_dlopen_self_static=cross
17693else
John Criswell47fdd832003-07-14 16:52:07 +000017694 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017695 lt_status=$lt_dlunknown
17696 cat > conftest.$ac_ext <<EOF
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000017697#line 17702 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017698#include "confdefs.h"
17699
17700#if HAVE_DLFCN_H
17701#include <dlfcn.h>
17702#endif
17703
17704#include <stdio.h>
17705
17706#ifdef RTLD_GLOBAL
17707# define LT_DLGLOBAL RTLD_GLOBAL
17708#else
17709# ifdef DL_GLOBAL
17710# define LT_DLGLOBAL DL_GLOBAL
17711# else
17712# define LT_DLGLOBAL 0
17713# endif
17714#endif
17715
17716/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17717 find out it does not work in some platform. */
17718#ifndef LT_DLLAZY_OR_NOW
17719# ifdef RTLD_LAZY
17720# define LT_DLLAZY_OR_NOW RTLD_LAZY
17721# else
17722# ifdef DL_LAZY
17723# define LT_DLLAZY_OR_NOW DL_LAZY
17724# else
17725# ifdef RTLD_NOW
17726# define LT_DLLAZY_OR_NOW RTLD_NOW
17727# else
17728# ifdef DL_NOW
17729# define LT_DLLAZY_OR_NOW DL_NOW
17730# else
17731# define LT_DLLAZY_OR_NOW 0
17732# endif
17733# endif
17734# endif
17735# endif
17736#endif
17737
17738#ifdef __cplusplus
17739extern "C" void exit (int);
17740#endif
17741
17742void fnord() { int i=42;}
17743int main ()
17744{
17745 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17746 int status = $lt_dlunknown;
17747
17748 if (self)
17749 {
17750 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17751 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17752 /* dlclose (self); */
17753 }
Reid Spencera773bd52006-08-04 18:18:08 +000017754 else
17755 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017756
17757 exit (status);
17758}
17759EOF
17760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17761 (eval $ac_link) 2>&5
17762 ac_status=$?
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017765 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017766 lt_status=$?
17767 case x$lt_status in
17768 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17769 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017770 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017771 esac
17772 else :
17773 # compilation failed
17774 lt_cv_dlopen_self_static=no
17775 fi
17776fi
17777rm -fr conftest*
17778
17779
17780fi
Reid Spencera773bd52006-08-04 18:18:08 +000017781{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17782echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017783 fi
17784
17785 CPPFLAGS="$save_CPPFLAGS"
17786 LDFLAGS="$save_LDFLAGS"
17787 LIBS="$save_LIBS"
17788 ;;
17789 esac
17790
17791 case $lt_cv_dlopen_self in
17792 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17793 *) enable_dlopen_self=unknown ;;
17794 esac
17795
17796 case $lt_cv_dlopen_self_static in
17797 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17798 *) enable_dlopen_self_static=unknown ;;
17799 esac
17800fi
17801
17802
Reid Spencera773bd52006-08-04 18:18:08 +000017803# Report which library types will actually be built
17804{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17805echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17806{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17807echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017808
Reid Spencera773bd52006-08-04 18:18:08 +000017809{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17810echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017811test "$can_build_shared" = "no" && enable_shared=no
17812
17813# On AIX, shared libraries and static libraries use the same namespace, and
17814# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017815case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017816aix3*)
17817 test "$enable_shared" = yes && enable_static=no
17818 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017819 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017820 postinstall_cmds='$RANLIB $lib'
17821 fi
17822 ;;
17823
Reid Spencer2706f8c2004-09-19 23:53:36 +000017824aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017825 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17826 test "$enable_shared" = yes && enable_static=no
17827 fi
John Criswell7a73b802003-06-30 21:59:07 +000017828 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017829esac
Reid Spencera773bd52006-08-04 18:18:08 +000017830{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17831echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017832
Reid Spencera773bd52006-08-04 18:18:08 +000017833{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17834echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017835# Make sure either enable_shared or enable_static is yes.
17836test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017837{ echo "$as_me:$LINENO: result: $enable_static" >&5
17838echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017839
17840# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017841# libtool distribution, otherwise you forgot to ship ltmain.sh
17842# with your package, and you will get complaints that there are
17843# no rules to generate ltmain.sh.
17844if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017845 # See if we are running on zsh, and set the options which allow our commands through
17846 # without removal of \ escapes.
17847 if test -n "${ZSH_VERSION+set}" ; then
17848 setopt NO_GLOB_SUBST
17849 fi
John Criswell7a73b802003-06-30 21:59:07 +000017850 # Now quote all the things that may contain metacharacters while being
17851 # careful not to overquote the AC_SUBSTed values. We take copies of the
17852 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017853 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 +000017854 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017855 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17856 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17857 deplibs_check_method reload_flag reload_cmds need_locks \
17858 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17859 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017860 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017861 old_postinstall_cmds old_postuninstall_cmds \
17862 compiler \
17863 CC \
17864 LD \
17865 lt_prog_compiler_wl \
17866 lt_prog_compiler_pic \
17867 lt_prog_compiler_static \
17868 lt_prog_compiler_no_builtin_flag \
17869 export_dynamic_flag_spec \
17870 thread_safe_flag_spec \
17871 whole_archive_flag_spec \
17872 enable_shared_with_static_runtimes \
17873 old_archive_cmds \
17874 old_archive_from_new_cmds \
17875 predep_objects \
17876 postdep_objects \
17877 predeps \
17878 postdeps \
17879 compiler_lib_search_path \
17880 archive_cmds \
17881 archive_expsym_cmds \
17882 postinstall_cmds \
17883 postuninstall_cmds \
17884 old_archive_from_expsyms_cmds \
17885 allow_undefined_flag \
17886 no_undefined_flag \
17887 export_symbols_cmds \
17888 hardcode_libdir_flag_spec \
17889 hardcode_libdir_flag_spec_ld \
17890 hardcode_libdir_separator \
17891 hardcode_automatic \
17892 module_cmds \
17893 module_expsym_cmds \
17894 lt_cv_prog_compiler_c_o \
17895 exclude_expsyms \
17896 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017897
17898 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017899 old_archive_cmds | \
17900 old_archive_from_new_cmds | \
17901 archive_cmds | \
17902 archive_expsym_cmds | \
17903 module_cmds | \
17904 module_expsym_cmds | \
17905 old_archive_from_expsyms_cmds | \
17906 export_symbols_cmds | \
17907 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017908 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017909 old_postinstall_cmds | old_postuninstall_cmds | \
17910 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017911 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017912 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 +000017913 ;;
17914 *)
17915 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17916 ;;
17917 esac
17918 done
17919
John Criswell47fdd832003-07-14 16:52:07 +000017920 case $lt_echo in
17921 *'\$0 --fallback-echo"')
17922 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17923 ;;
17924 esac
17925
17926cfgfile="${ofile}T"
17927 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17928 $rm -f "$cfgfile"
17929 { echo "$as_me:$LINENO: creating $ofile" >&5
17930echo "$as_me: creating $ofile" >&6;}
17931
17932 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017933#! $SHELL
17934
John Criswell47fdd832003-07-14 16:52:07 +000017935# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017936# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17937# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17938#
John Criswell47fdd832003-07-14 16:52:07 +000017939# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17940# Free Software Foundation, Inc.
17941#
17942# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017943# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17944#
17945# This program is free software; you can redistribute it and/or modify
17946# it under the terms of the GNU General Public License as published by
17947# the Free Software Foundation; either version 2 of the License, or
17948# (at your option) any later version.
17949#
17950# This program is distributed in the hope that it will be useful, but
17951# WITHOUT ANY WARRANTY; without even the implied warranty of
17952# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17953# General Public License for more details.
17954#
17955# You should have received a copy of the GNU General Public License
17956# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017957# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017958#
17959# As a special exception to the GNU General Public License, if you
17960# distribute this file as part of a program that contains a
17961# configuration script generated by Autoconf, you may include it under
17962# the same distribution terms that you use for the rest of that program.
17963
John Criswell47fdd832003-07-14 16:52:07 +000017964# A sed program that does not truncate output.
17965SED=$lt_SED
17966
John Criswell7a73b802003-06-30 21:59:07 +000017967# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017968Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017969
17970# The HP-UX ksh and POSIX shell print the target directory to stdout
17971# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017972(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017973
John Criswell47fdd832003-07-14 16:52:07 +000017974# The names of the tagged configurations supported by this script.
17975available_tags=
17976
John Criswell7a73b802003-06-30 21:59:07 +000017977# ### BEGIN LIBTOOL CONFIG
17978
17979# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17980
17981# Shell to use when invoking shell scripts.
17982SHELL=$lt_SHELL
17983
17984# Whether or not to build shared libraries.
17985build_libtool_libs=$enable_shared
17986
17987# Whether or not to build static libraries.
17988build_old_libs=$enable_static
17989
17990# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017991build_libtool_need_lc=$archive_cmds_need_lc
17992
17993# Whether or not to disallow shared libs when runtime libs are static
17994allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017995
17996# Whether or not to optimize for fast installation.
17997fast_install=$enable_fast_install
17998
17999# The host system.
18000host_alias=$host_alias
18001host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000018002host_os=$host_os
18003
18004# The build system.
18005build_alias=$build_alias
18006build=$build
18007build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000018008
18009# An echo program that does not interpret backslashes.
18010echo=$lt_echo
18011
18012# The archiver.
18013AR=$lt_AR
18014AR_FLAGS=$lt_AR_FLAGS
18015
John Criswell47fdd832003-07-14 16:52:07 +000018016# A C compiler.
18017LTCC=$lt_LTCC
18018
Reid Spencera773bd52006-08-04 18:18:08 +000018019# LTCC compiler flags.
18020LTCFLAGS=$lt_LTCFLAGS
18021
John Criswell47fdd832003-07-14 16:52:07 +000018022# A language-specific compiler.
18023CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000018024
18025# Is the compiler the GNU C compiler?
18026with_gcc=$GCC
18027
John Criswell47fdd832003-07-14 16:52:07 +000018028# An ERE matcher.
18029EGREP=$lt_EGREP
18030
John Criswell7a73b802003-06-30 21:59:07 +000018031# The linker used to build libraries.
18032LD=$lt_LD
18033
18034# Whether we need hard or soft links.
18035LN_S=$lt_LN_S
18036
18037# A BSD-compatible nm program.
18038NM=$lt_NM
18039
18040# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018041STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000018042
18043# Used to examine libraries when file_magic_cmd begins "file"
18044MAGIC_CMD=$MAGIC_CMD
18045
18046# Used on cygwin: DLL creation program.
18047DLLTOOL="$DLLTOOL"
18048
18049# Used on cygwin: object dumper.
18050OBJDUMP="$OBJDUMP"
18051
18052# Used on cygwin: assembler.
18053AS="$AS"
18054
18055# The name of the directory that contains temporary libtool files.
18056objdir=$objdir
18057
18058# How to create reloadable object files.
18059reload_flag=$lt_reload_flag
18060reload_cmds=$lt_reload_cmds
18061
18062# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000018063wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000018064
18065# Object file suffix (normally "o").
18066objext="$ac_objext"
18067
18068# Old archive suffix (normally "a").
18069libext="$libext"
18070
John Criswell47fdd832003-07-14 16:52:07 +000018071# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018072shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018073
John Criswell7a73b802003-06-30 21:59:07 +000018074# Executable file suffix (normally "").
18075exeext="$exeext"
18076
18077# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000018078pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000018079pic_mode=$pic_mode
18080
John Criswell47fdd832003-07-14 16:52:07 +000018081# What is the maximum length of a command?
18082max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000018083
John Criswell47fdd832003-07-14 16:52:07 +000018084# Does compiler simultaneously support -c and -o options?
18085compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000018086
Reid Spencera773bd52006-08-04 18:18:08 +000018087# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000018088need_locks=$lt_need_locks
18089
18090# Do we need the lib prefix for modules?
18091need_lib_prefix=$need_lib_prefix
18092
18093# Do we need a version for libraries?
18094need_version=$need_version
18095
18096# Whether dlopen is supported.
18097dlopen_support=$enable_dlopen
18098
18099# Whether dlopen of programs is supported.
18100dlopen_self=$enable_dlopen_self
18101
18102# Whether dlopen of statically linked programs is supported.
18103dlopen_self_static=$enable_dlopen_self_static
18104
18105# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000018106link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000018107
18108# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000018109no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000018110
18111# Compiler flag to allow reflexive dlopens.
18112export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18113
18114# Compiler flag to generate shared objects directly from archives.
18115whole_archive_flag_spec=$lt_whole_archive_flag_spec
18116
18117# Compiler flag to generate thread-safe objects.
18118thread_safe_flag_spec=$lt_thread_safe_flag_spec
18119
18120# Library versioning type.
18121version_type=$version_type
18122
18123# Format of library name prefix.
18124libname_spec=$lt_libname_spec
18125
18126# List of archive names. First name is the real one, the rest are links.
18127# The last name is the one that the linker finds with -lNAME.
18128library_names_spec=$lt_library_names_spec
18129
18130# The coded name of the library, if different from the real name.
18131soname_spec=$lt_soname_spec
18132
18133# Commands used to build and install an old-style archive.
18134RANLIB=$lt_RANLIB
18135old_archive_cmds=$lt_old_archive_cmds
18136old_postinstall_cmds=$lt_old_postinstall_cmds
18137old_postuninstall_cmds=$lt_old_postuninstall_cmds
18138
18139# Create an old-style archive from a shared archive.
18140old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18141
18142# Create a temporary old-style archive to link instead of a shared archive.
18143old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18144
18145# Commands used to build and install a shared archive.
18146archive_cmds=$lt_archive_cmds
18147archive_expsym_cmds=$lt_archive_expsym_cmds
18148postinstall_cmds=$lt_postinstall_cmds
18149postuninstall_cmds=$lt_postuninstall_cmds
18150
John Criswell47fdd832003-07-14 16:52:07 +000018151# Commands used to build a loadable module (assumed same as above if empty)
18152module_cmds=$lt_module_cmds
18153module_expsym_cmds=$lt_module_expsym_cmds
18154
John Criswell7a73b802003-06-30 21:59:07 +000018155# Commands to strip libraries.
18156old_striplib=$lt_old_striplib
18157striplib=$lt_striplib
18158
John Criswell47fdd832003-07-14 16:52:07 +000018159# Dependencies to place before the objects being linked to create a
18160# shared library.
18161predep_objects=$lt_predep_objects
18162
18163# Dependencies to place after the objects being linked to create a
18164# shared library.
18165postdep_objects=$lt_postdep_objects
18166
18167# Dependencies to place before the objects being linked to create a
18168# shared library.
18169predeps=$lt_predeps
18170
18171# Dependencies to place after the objects being linked to create a
18172# shared library.
18173postdeps=$lt_postdeps
18174
18175# The library search path used internally by the compiler when linking
18176# a shared library.
18177compiler_lib_search_path=$lt_compiler_lib_search_path
18178
John Criswell7a73b802003-06-30 21:59:07 +000018179# Method to check whether dependent libraries are shared objects.
18180deplibs_check_method=$lt_deplibs_check_method
18181
18182# Command to use when deplibs_check_method == file_magic.
18183file_magic_cmd=$lt_file_magic_cmd
18184
18185# Flag that allows shared libraries with undefined symbols to be built.
18186allow_undefined_flag=$lt_allow_undefined_flag
18187
18188# Flag that forces no undefined symbols.
18189no_undefined_flag=$lt_no_undefined_flag
18190
18191# Commands used to finish a libtool library installation in a directory.
18192finish_cmds=$lt_finish_cmds
18193
18194# Same as above, but a single script fragment to be evaled but not shown.
18195finish_eval=$lt_finish_eval
18196
18197# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000018198global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000018199
18200# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000018201global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000018202
18203# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000018204global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000018205
18206# This is the shared library runtime path variable.
18207runpath_var=$runpath_var
18208
18209# This is the shared library path variable.
18210shlibpath_var=$shlibpath_var
18211
18212# Is shlibpath searched before the hard-coded library search path?
18213shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18214
18215# How to hardcode a shared library path into an executable.
18216hardcode_action=$hardcode_action
18217
18218# Whether we should hardcode library paths into libraries.
18219hardcode_into_libs=$hardcode_into_libs
18220
18221# Flag to hardcode \$libdir into a binary during linking.
18222# This must work even if \$libdir does not exist.
18223hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18224
John Criswell47fdd832003-07-14 16:52:07 +000018225# If ld is used when linking, flag to hardcode \$libdir into
18226# a binary during linking. This must work even if \$libdir does
18227# not exist.
18228hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18229
John Criswell7a73b802003-06-30 21:59:07 +000018230# Whether we need a single -rpath flag with a separated argument.
18231hardcode_libdir_separator=$lt_hardcode_libdir_separator
18232
John Criswell47fdd832003-07-14 16:52:07 +000018233# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000018234# resulting binary.
18235hardcode_direct=$hardcode_direct
18236
18237# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18238# resulting binary.
18239hardcode_minus_L=$hardcode_minus_L
18240
18241# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18242# the resulting binary.
18243hardcode_shlibpath_var=$hardcode_shlibpath_var
18244
John Criswell47fdd832003-07-14 16:52:07 +000018245# Set to yes if building a shared library automatically hardcodes DIR into the library
18246# and all subsequent libraries and executables linked against it.
18247hardcode_automatic=$hardcode_automatic
18248
John Criswell7a73b802003-06-30 21:59:07 +000018249# Variables whose values should be saved in libtool wrapper scripts and
18250# restored at relink time.
18251variables_saved_for_relink="$variables_saved_for_relink"
18252
18253# Whether libtool must link a program against all its dependency libraries.
18254link_all_deplibs=$link_all_deplibs
18255
18256# Compile-time system search path for libraries
18257sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18258
18259# Run-time system search path for libraries
18260sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18261
18262# Fix the shell variable \$srcfile for the compiler.
18263fix_srcfile_path="$fix_srcfile_path"
18264
18265# Set to yes if exported symbols are required.
18266always_export_symbols=$always_export_symbols
18267
18268# The commands to list exported symbols.
18269export_symbols_cmds=$lt_export_symbols_cmds
18270
18271# The commands to extract the exported symbol list from a shared archive.
18272extract_expsyms_cmds=$lt_extract_expsyms_cmds
18273
18274# Symbols that should not be listed in the preloaded symbols.
18275exclude_expsyms=$lt_exclude_expsyms
18276
18277# Symbols that must always be exported.
18278include_expsyms=$lt_include_expsyms
18279
18280# ### END LIBTOOL CONFIG
18281
18282__EOF__
18283
John Criswell47fdd832003-07-14 16:52:07 +000018284
John Criswell7a73b802003-06-30 21:59:07 +000018285 case $host_os in
18286 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000018287 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018288
18289# AIX sometimes has problems with the GCC collect2 program. For some
18290# reason, if we set the COLLECT_NAMES environment variable, the problems
18291# vanish in a puff of smoke.
18292if test "X${COLLECT_NAMES+set}" != Xset; then
18293 COLLECT_NAMES=
18294 export COLLECT_NAMES
18295fi
18296EOF
18297 ;;
18298 esac
18299
John Criswell7a73b802003-06-30 21:59:07 +000018300 # We use sed instead of cat because bash on DJGPP gets confused if
18301 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18302 # text mode, it properly converts lines to CR/LF. This bash problem
18303 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000018304 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000018305
John Criswell47fdd832003-07-14 16:52:07 +000018306 mv -f "$cfgfile" "$ofile" || \
18307 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000018308 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000018309
18310else
18311 # If there is no Makefile yet, we rely on a make rule to execute
18312 # `config.status --recheck' to rerun these tests and create the
18313 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018314 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18315 if test -f "$ltmain_in"; then
18316 test -f Makefile && make "$ltmain"
18317 fi
John Criswell7a73b802003-06-30 21:59:07 +000018318fi
John Criswell7a73b802003-06-30 21:59:07 +000018319
18320
John Criswell47fdd832003-07-14 16:52:07 +000018321ac_ext=c
18322ac_cpp='$CPP $CPPFLAGS'
18323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18325ac_compiler_gnu=$ac_cv_c_compiler_gnu
18326
18327CC="$lt_save_CC"
18328
18329
Reid Spencera773bd52006-08-04 18:18:08 +000018330# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018331if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018332 withval=$with_tags; tagnames="$withval"
18333fi
18334
John Criswell47fdd832003-07-14 16:52:07 +000018335
18336if test -f "$ltmain" && test -n "$tagnames"; then
18337 if test ! -f "${ofile}"; then
18338 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18339echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18340 fi
18341
18342 if test -z "$LTCC"; then
18343 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18344 if test -z "$LTCC"; then
18345 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18346echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18347 else
18348 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18349echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18350 fi
18351 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018352 if test -z "$LTCFLAGS"; then
18353 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18354 fi
John Criswell47fdd832003-07-14 16:52:07 +000018355
18356 # Extract list of available tagged configurations in $ofile.
18357 # Note that this assumes the entire list is on one line.
18358 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18359
18360 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18361 for tagname in $tagnames; do
18362 IFS="$lt_save_ifs"
18363 # Check whether tagname contains only valid characters
18364 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18365 "") ;;
18366 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18367echo "$as_me: error: invalid tag name: $tagname" >&2;}
18368 { (exit 1); exit 1; }; }
18369 ;;
18370 esac
18371
18372 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18373 then
18374 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18375echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18376 { (exit 1); exit 1; }; }
18377 fi
18378
18379 # Update the list of available tags.
18380 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018381 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018382
18383 case $tagname in
18384 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018385 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18386 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18387 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018388 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018389ac_cpp='$CXXCPP $CPPFLAGS'
18390ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18391ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18392ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18393
18394
18395
18396
18397archive_cmds_need_lc_CXX=no
18398allow_undefined_flag_CXX=
18399always_export_symbols_CXX=no
18400archive_expsym_cmds_CXX=
18401export_dynamic_flag_spec_CXX=
18402hardcode_direct_CXX=no
18403hardcode_libdir_flag_spec_CXX=
18404hardcode_libdir_flag_spec_ld_CXX=
18405hardcode_libdir_separator_CXX=
18406hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018407hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018408hardcode_automatic_CXX=no
18409module_cmds_CXX=
18410module_expsym_cmds_CXX=
18411link_all_deplibs_CXX=unknown
18412old_archive_cmds_CXX=$old_archive_cmds
18413no_undefined_flag_CXX=
18414whole_archive_flag_spec_CXX=
18415enable_shared_with_static_runtimes_CXX=no
18416
18417# Dependencies to place before and after the object being linked:
18418predep_objects_CXX=
18419postdep_objects_CXX=
18420predeps_CXX=
18421postdeps_CXX=
18422compiler_lib_search_path_CXX=
18423
18424# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018425ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018426
18427# Object file extension for compiled C++ test sources.
18428objext=o
18429objext_CXX=$objext
18430
18431# Code to be used in simple compile tests
18432lt_simple_compile_test_code="int some_variable = 0;\n"
18433
18434# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018435lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018436
18437# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18438
18439# If no C compiler was specified, use CC.
18440LTCC=${LTCC-"$CC"}
18441
Reid Spencera773bd52006-08-04 18:18:08 +000018442# If no C compiler flags were specified, use CFLAGS.
18443LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18444
John Criswell47fdd832003-07-14 16:52:07 +000018445# Allow CC to be a program name with arguments.
18446compiler=$CC
18447
18448
Reid Spencera773bd52006-08-04 18:18:08 +000018449# save warnings/boilerplate of simple test code
18450ac_outfile=conftest.$ac_objext
18451printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18452eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18453_lt_compiler_boilerplate=`cat conftest.err`
18454$rm conftest*
18455
18456ac_outfile=conftest.$ac_objext
18457printf "$lt_simple_link_test_code" >conftest.$ac_ext
18458eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18459_lt_linker_boilerplate=`cat conftest.err`
18460$rm conftest*
18461
18462
John Criswell47fdd832003-07-14 16:52:07 +000018463# Allow CC to be a program name with arguments.
18464lt_save_CC=$CC
18465lt_save_LD=$LD
18466lt_save_GCC=$GCC
18467GCC=$GXX
18468lt_save_with_gnu_ld=$with_gnu_ld
18469lt_save_path_LD=$lt_cv_path_LD
18470if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18471 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18472else
Reid Spencera773bd52006-08-04 18:18:08 +000018473 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018474fi
18475if test -n "${lt_cv_path_LDCXX+set}"; then
18476 lt_cv_path_LD=$lt_cv_path_LDCXX
18477else
Reid Spencera773bd52006-08-04 18:18:08 +000018478 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018479fi
18480test -z "${LDCXX+set}" || LD=$LDCXX
18481CC=${CXX-"c++"}
18482compiler=$CC
18483compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018484for cc_temp in $compiler""; do
18485 case $cc_temp in
18486 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18487 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18488 \-*) ;;
18489 *) break;;
18490 esac
18491done
18492cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18493
John Criswell47fdd832003-07-14 16:52:07 +000018494
18495# We don't want -fno-exception wen compiling C++ code, so set the
18496# no_builtin_flag separately
18497if test "$GXX" = yes; then
18498 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18499else
18500 lt_prog_compiler_no_builtin_flag_CXX=
18501fi
18502
18503if test "$GXX" = yes; then
18504 # Set up default GNU C++ configuration
18505
18506
Reid Spencera773bd52006-08-04 18:18:08 +000018507# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018508if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018509 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018510else
18511 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018512fi
18513
John Criswell47fdd832003-07-14 16:52:07 +000018514ac_prog=ld
18515if test "$GCC" = yes; then
18516 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018517 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18518echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018519 case $host in
18520 *-*-mingw*)
18521 # gcc leaves a trailing carriage return which upsets mingw
18522 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18523 *)
18524 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18525 esac
18526 case $ac_prog in
18527 # Accept absolute paths.
18528 [\\/]* | ?:[\\/]*)
18529 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018530 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018531 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18532 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18533 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18534 done
18535 test -z "$LD" && LD="$ac_prog"
18536 ;;
18537 "")
18538 # If it fails, then pretend we aren't using GCC.
18539 ac_prog=ld
18540 ;;
18541 *)
18542 # If it is relative, then search for the first ld in PATH.
18543 with_gnu_ld=unknown
18544 ;;
18545 esac
18546elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018547 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18548echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018549else
Reid Spencera773bd52006-08-04 18:18:08 +000018550 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18551echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018552fi
18553if test "${lt_cv_path_LD+set}" = set; then
18554 echo $ECHO_N "(cached) $ECHO_C" >&6
18555else
18556 if test -z "$LD"; then
18557 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18558 for ac_dir in $PATH; do
18559 IFS="$lt_save_ifs"
18560 test -z "$ac_dir" && ac_dir=.
18561 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18562 lt_cv_path_LD="$ac_dir/$ac_prog"
18563 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018564 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018565 # Break only if it was the GNU/non-GNU ld that we prefer.
18566 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18567 *GNU* | *'with BFD'*)
18568 test "$with_gnu_ld" != no && break
18569 ;;
18570 *)
18571 test "$with_gnu_ld" != yes && break
18572 ;;
18573 esac
18574 fi
18575 done
18576 IFS="$lt_save_ifs"
18577else
18578 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18579fi
18580fi
18581
18582LD="$lt_cv_path_LD"
18583if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018584 { echo "$as_me:$LINENO: result: $LD" >&5
18585echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018586else
Reid Spencera773bd52006-08-04 18:18:08 +000018587 { echo "$as_me:$LINENO: result: no" >&5
18588echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018589fi
18590test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18591echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18592 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018593{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18594echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018595if test "${lt_cv_prog_gnu_ld+set}" = set; then
18596 echo $ECHO_N "(cached) $ECHO_C" >&6
18597else
Reid Spencera773bd52006-08-04 18:18:08 +000018598 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018599case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018600*GNU* | *'with BFD'*)
18601 lt_cv_prog_gnu_ld=yes
18602 ;;
18603*)
18604 lt_cv_prog_gnu_ld=no
18605 ;;
18606esac
18607fi
Reid Spencera773bd52006-08-04 18:18:08 +000018608{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18609echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018610with_gnu_ld=$lt_cv_prog_gnu_ld
18611
18612
18613
18614 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18615 # archiving commands below assume that GNU ld is being used.
18616 if test "$with_gnu_ld" = yes; then
18617 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18618 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'
18619
18620 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18621 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18622
18623 # If archive_cmds runs LD, not CC, wlarc should be empty
18624 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18625 # investigate it a little bit more. (MM)
18626 wlarc='${wl}'
18627
18628 # ancient GNU ld didn't support --whole-archive et. al.
18629 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18630 grep 'no-whole-archive' > /dev/null; then
18631 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18632 else
18633 whole_archive_flag_spec_CXX=
18634 fi
18635 else
18636 with_gnu_ld=no
18637 wlarc=
18638
18639 # A generic and very simple default shared library creation
18640 # command for GNU C++ for the case where it uses the native
18641 # linker, instead of GNU ld. If possible, this setting should
18642 # overridden to take advantage of the native linker features on
18643 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018644 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018645 fi
18646
18647 # Commands to make compiler produce verbose output that lists
18648 # what "hidden" libraries, object files and flags are used when
18649 # linking a shared library.
18650 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18651
18652else
18653 GXX=no
18654 with_gnu_ld=no
18655 wlarc=
18656fi
18657
18658# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018659{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18660echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018661ld_shlibs_CXX=yes
18662case $host_os in
18663 aix3*)
18664 # FIXME: insert proper C++ library support
18665 ld_shlibs_CXX=no
18666 ;;
18667 aix4* | aix5*)
18668 if test "$host_cpu" = ia64; then
18669 # On IA64, the linker does run time linking by default, so we don't
18670 # have to do anything special.
18671 aix_use_runtimelinking=no
18672 exp_sym_flag='-Bexport'
18673 no_entry_flag=""
18674 else
18675 aix_use_runtimelinking=no
18676
18677 # Test if we are trying to use run time linking or normal
18678 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18679 # need to do runtime linking.
18680 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18681 for ld_flag in $LDFLAGS; do
18682 case $ld_flag in
18683 *-brtl*)
18684 aix_use_runtimelinking=yes
18685 break
18686 ;;
18687 esac
18688 done
Reid Spencera773bd52006-08-04 18:18:08 +000018689 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018690 esac
18691
18692 exp_sym_flag='-bexport'
18693 no_entry_flag='-bnoentry'
18694 fi
18695
18696 # When large executables or shared objects are built, AIX ld can
18697 # have problems creating the table of contents. If linking a library
18698 # or program results in "error TOC overflow" add -mminimal-toc to
18699 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18700 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18701
18702 archive_cmds_CXX=''
18703 hardcode_direct_CXX=yes
18704 hardcode_libdir_separator_CXX=':'
18705 link_all_deplibs_CXX=yes
18706
18707 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018708 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018709 # We only want to do this on AIX 4.2 and lower, the check
18710 # below for broken collect2 doesn't work under 4.3+
18711 collect2name=`${CC} -print-prog-name=collect2`
18712 if test -f "$collect2name" && \
18713 strings "$collect2name" | grep resolve_lib_name >/dev/null
18714 then
18715 # We have reworked collect2
18716 hardcode_direct_CXX=yes
18717 else
18718 # We have old collect2
18719 hardcode_direct_CXX=unsupported
18720 # It fails to find uninstalled libraries when the uninstalled
18721 # path is not listed in the libpath. Setting hardcode_minus_L
18722 # to unsupported forces relinking
18723 hardcode_minus_L_CXX=yes
18724 hardcode_libdir_flag_spec_CXX='-L$libdir'
18725 hardcode_libdir_separator_CXX=
18726 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018727 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018728 esac
18729 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018730 if test "$aix_use_runtimelinking" = yes; then
18731 shared_flag="$shared_flag "'${wl}-G'
18732 fi
John Criswell47fdd832003-07-14 16:52:07 +000018733 else
18734 # not using gcc
18735 if test "$host_cpu" = ia64; then
18736 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18737 # chokes on -Wl,-G. The following line is correct:
18738 shared_flag='-G'
18739 else
18740 if test "$aix_use_runtimelinking" = yes; then
18741 shared_flag='${wl}-G'
18742 else
18743 shared_flag='${wl}-bM:SRE'
18744 fi
18745 fi
18746 fi
18747
18748 # It seems that -bexpall does not export symbols beginning with
18749 # underscore (_), so it is better to generate a list of symbols to export.
18750 always_export_symbols_CXX=yes
18751 if test "$aix_use_runtimelinking" = yes; then
18752 # Warning - without using the other runtime loading flags (-brtl),
18753 # -berok will link without error, but may produce a broken library.
18754 allow_undefined_flag_CXX='-berok'
18755 # Determine the default libpath from the value encoded in an empty executable.
18756 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018757/* confdefs.h. */
18758_ACEOF
18759cat confdefs.h >>conftest.$ac_ext
18760cat >>conftest.$ac_ext <<_ACEOF
18761/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018762
John Criswell47fdd832003-07-14 16:52:07 +000018763int
18764main ()
18765{
18766
18767 ;
18768 return 0;
18769}
18770_ACEOF
18771rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018772if { (ac_try="$ac_link"
18773case "(($ac_try" in
18774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18775 *) ac_try_echo=$ac_try;;
18776esac
18777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18778 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018779 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018780 grep -v '^ *+' conftest.er1 >conftest.err
18781 rm -f conftest.er1
18782 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018784 (exit $ac_status); } &&
18785 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18786 { (case "(($ac_try" in
18787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18788 *) ac_try_echo=$ac_try;;
18789esac
18790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18791 (eval "$ac_try") 2>&5
18792 ac_status=$?
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); }; } &&
18795 { ac_try='test -s conftest$ac_exeext'
18796 { (case "(($ac_try" in
18797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18798 *) ac_try_echo=$ac_try;;
18799esac
18800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18801 (eval "$ac_try") 2>&5
18802 ac_status=$?
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018805
18806aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18807}'`
18808# Check for a 64-bit object if we didn't find anything.
18809if 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; }
18810}'`; fi
18811else
18812 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018813sed 's/^/| /' conftest.$ac_ext >&5
18814
Reid Spencera773bd52006-08-04 18:18:08 +000018815
John Criswell47fdd832003-07-14 16:52:07 +000018816fi
Reid Spencera773bd52006-08-04 18:18:08 +000018817
Bill Wendlingebcceee2009-04-18 11:20:33 +000018818rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018819 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018820if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18821
18822 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18823
Reid Spencera773bd52006-08-04 18:18:08 +000018824 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 +000018825 else
18826 if test "$host_cpu" = ia64; then
18827 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18828 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018829 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 +000018830 else
18831 # Determine the default libpath from the value encoded in an empty executable.
18832 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018833/* confdefs.h. */
18834_ACEOF
18835cat confdefs.h >>conftest.$ac_ext
18836cat >>conftest.$ac_ext <<_ACEOF
18837/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018838
John Criswell47fdd832003-07-14 16:52:07 +000018839int
18840main ()
18841{
18842
18843 ;
18844 return 0;
18845}
18846_ACEOF
18847rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018848if { (ac_try="$ac_link"
18849case "(($ac_try" in
18850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851 *) ac_try_echo=$ac_try;;
18852esac
18853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18854 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018855 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018856 grep -v '^ *+' conftest.er1 >conftest.err
18857 rm -f conftest.er1
18858 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018860 (exit $ac_status); } &&
18861 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18862 { (case "(($ac_try" in
18863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18864 *) ac_try_echo=$ac_try;;
18865esac
18866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18867 (eval "$ac_try") 2>&5
18868 ac_status=$?
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); }; } &&
18871 { ac_try='test -s conftest$ac_exeext'
18872 { (case "(($ac_try" in
18873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18874 *) ac_try_echo=$ac_try;;
18875esac
18876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18877 (eval "$ac_try") 2>&5
18878 ac_status=$?
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018881
18882aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18883}'`
18884# Check for a 64-bit object if we didn't find anything.
18885if 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; }
18886}'`; fi
18887else
18888 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018889sed 's/^/| /' conftest.$ac_ext >&5
18890
Reid Spencera773bd52006-08-04 18:18:08 +000018891
John Criswell47fdd832003-07-14 16:52:07 +000018892fi
Reid Spencera773bd52006-08-04 18:18:08 +000018893
Bill Wendlingebcceee2009-04-18 11:20:33 +000018894rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018895 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018896if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18897
18898 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18899 # Warning - without using the other run time loading flags,
18900 # -berok will link without error, but may produce a broken library.
18901 no_undefined_flag_CXX=' ${wl}-bernotok'
18902 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018903 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018904 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018905 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018906 # This is similar to how AIX traditionally builds its shared libraries.
18907 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 +000018908 fi
18909 fi
18910 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018911
18912 beos*)
18913 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18914 allow_undefined_flag_CXX=unsupported
18915 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18916 # support --undefined. This deserves some investigation. FIXME
18917 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18918 else
18919 ld_shlibs_CXX=no
18920 fi
18921 ;;
18922
John Criswell47fdd832003-07-14 16:52:07 +000018923 chorus*)
18924 case $cc_basename in
18925 *)
18926 # FIXME: insert proper C++ library support
18927 ld_shlibs_CXX=no
18928 ;;
18929 esac
18930 ;;
18931
18932 cygwin* | mingw* | pw32*)
18933 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18934 # as there is no search path for DLLs.
18935 hardcode_libdir_flag_spec_CXX='-L$libdir'
18936 allow_undefined_flag_CXX=unsupported
18937 always_export_symbols_CXX=no
18938 enable_shared_with_static_runtimes_CXX=yes
18939
18940 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018941 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 +000018942 # If the export-symbols file already is a .def file (1st line
18943 # is EXPORTS), use it as is; otherwise, prepend...
18944 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18945 cp $export_symbols $output_objdir/$soname.def;
18946 else
18947 echo EXPORTS > $output_objdir/$soname.def;
18948 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018949 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018950 $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 +000018951 else
18952 ld_shlibs_CXX=no
18953 fi
18954 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018955 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018956 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018957 rhapsody* | darwin1.[012])
18958 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18959 ;;
18960 *) # Darwin 1.3 on
18961 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18962 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18963 else
18964 case ${MACOSX_DEPLOYMENT_TARGET} in
18965 10.[012])
18966 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18967 ;;
18968 10.*)
18969 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18970 ;;
18971 esac
18972 fi
18973 ;;
18974 esac
18975 archive_cmds_need_lc_CXX=no
18976 hardcode_direct_CXX=no
18977 hardcode_automatic_CXX=yes
18978 hardcode_shlibpath_var_CXX=unsupported
18979 whole_archive_flag_spec_CXX=''
18980 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018981
Reid Spencer2706f8c2004-09-19 23:53:36 +000018982 if test "$GXX" = yes ; then
18983 lt_int_apple_cc_single_mod=no
18984 output_verbose_link_cmd='echo'
18985 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18986 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018987 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018988 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018989 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 +000018990 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018991 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 +000018992 fi
18993 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018994 # 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 +000018995 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018996 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 +000018997 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018998 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 +000018999 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000019000 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 +000019001 else
Reid Spencera773bd52006-08-04 18:18:08 +000019002 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019003 xlc*)
19004 output_verbose_link_cmd='echo'
19005 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'
19006 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000019007 # 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 +000019008 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}'
19009 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 +000019010 ;;
19011 *)
19012 ld_shlibs_CXX=no
19013 ;;
19014 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000019015 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019016 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019017
19018 dgux*)
19019 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019020 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019021 # FIXME: insert proper C++ library support
19022 ld_shlibs_CXX=no
19023 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019024 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019025 # Green Hills C++ Compiler
19026 # FIXME: insert proper C++ library support
19027 ld_shlibs_CXX=no
19028 ;;
19029 *)
19030 # FIXME: insert proper C++ library support
19031 ld_shlibs_CXX=no
19032 ;;
19033 esac
19034 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019035 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000019036 # C++ shared libraries reported to be fairly broken before switch to ELF
19037 ld_shlibs_CXX=no
19038 ;;
19039 freebsd-elf*)
19040 archive_cmds_need_lc_CXX=no
19041 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019042 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019043 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19044 # conventions
19045 ld_shlibs_CXX=yes
19046 ;;
19047 gnu*)
19048 ;;
19049 hpux9*)
19050 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19051 hardcode_libdir_separator_CXX=:
19052 export_dynamic_flag_spec_CXX='${wl}-E'
19053 hardcode_direct_CXX=yes
19054 hardcode_minus_L_CXX=yes # Not in the search PATH,
19055 # but as the default
19056 # location of the library.
19057
19058 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019059 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019060 # FIXME: insert proper C++ library support
19061 ld_shlibs_CXX=no
19062 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019063 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019064 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 +000019065 # Commands to make compiler produce verbose output that lists
19066 # what "hidden" libraries, object files and flags are used when
19067 # linking a shared library.
19068 #
19069 # There doesn't appear to be a way to prevent this compiler from
19070 # explicitly linking system object files so we need to strip them
19071 # from the output so that they don't get included in the library
19072 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000019073 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 +000019074 ;;
19075 *)
19076 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019077 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 +000019078 else
19079 # FIXME: insert proper C++ library support
19080 ld_shlibs_CXX=no
19081 fi
19082 ;;
19083 esac
19084 ;;
19085 hpux10*|hpux11*)
19086 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019087 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19088 hardcode_libdir_separator_CXX=:
19089
19090 case $host_cpu in
19091 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019092 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000019093 ;;
19094 *)
John Criswell47fdd832003-07-14 16:52:07 +000019095 export_dynamic_flag_spec_CXX='${wl}-E'
19096 ;;
19097 esac
19098 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019099 case $host_cpu in
19100 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019101 hardcode_direct_CXX=no
19102 hardcode_shlibpath_var_CXX=no
19103 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019104 *)
19105 hardcode_direct_CXX=yes
19106 hardcode_minus_L_CXX=yes # Not in the search PATH,
19107 # but as the default
19108 # location of the library.
19109 ;;
19110 esac
19111
19112 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019113 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019114 # FIXME: insert proper C++ library support
19115 ld_shlibs_CXX=no
19116 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019117 aCC*)
19118 case $host_cpu in
19119 hppa*64*)
19120 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19121 ;;
19122 ia64*)
19123 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 +000019124 ;;
19125 *)
19126 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19127 ;;
19128 esac
19129 # Commands to make compiler produce verbose output that lists
19130 # what "hidden" libraries, object files and flags are used when
19131 # linking a shared library.
19132 #
19133 # There doesn't appear to be a way to prevent this compiler from
19134 # explicitly linking system object files so we need to strip them
19135 # from the output so that they don't get included in the library
19136 # dependencies.
19137 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'
19138 ;;
19139 *)
19140 if test "$GXX" = yes; then
19141 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019142 case $host_cpu in
19143 hppa*64*)
19144 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19145 ;;
19146 ia64*)
19147 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 +000019148 ;;
19149 *)
19150 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'
19151 ;;
19152 esac
19153 fi
19154 else
19155 # FIXME: insert proper C++ library support
19156 ld_shlibs_CXX=no
19157 fi
19158 ;;
19159 esac
19160 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019161 interix3*)
19162 hardcode_direct_CXX=no
19163 hardcode_shlibpath_var_CXX=no
19164 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19165 export_dynamic_flag_spec_CXX='${wl}-E'
19166 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19167 # Instead, shared libraries are loaded at an image base (0x10000000 by
19168 # default) and relocated if they conflict, which is a slow very memory
19169 # consuming and fragmenting process. To avoid this, we pick a random,
19170 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19171 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19172 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'
19173 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'
19174 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019175 irix5* | irix6*)
19176 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019177 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019178 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000019179 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 +000019180
19181 # Archives containing C++ object files must be created using
19182 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19183 # necessary to make sure instantiated templates are included
19184 # in the archive.
19185 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19186 ;;
19187 *)
19188 if test "$GXX" = yes; then
19189 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019190 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 +000019191 else
19192 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'
19193 fi
19194 fi
19195 link_all_deplibs_CXX=yes
19196 ;;
19197 esac
19198 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19199 hardcode_libdir_separator_CXX=:
19200 ;;
19201 linux*)
19202 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019203 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019204 # Kuck and Associates, Inc. (KAI) C++ Compiler
19205
19206 # KCC will only create a shared library if the output file
19207 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19208 # to its proper name (with version) after linking.
19209 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'
19210 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'
19211 # Commands to make compiler produce verbose output that lists
19212 # what "hidden" libraries, object files and flags are used when
19213 # linking a shared library.
19214 #
19215 # There doesn't appear to be a way to prevent this compiler from
19216 # explicitly linking system object files so we need to strip them
19217 # from the output so that they don't get included in the library
19218 # dependencies.
19219 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'
19220
19221 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19222 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19223
19224 # Archives containing C++ object files must be created using
19225 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19226 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19227 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019228 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019229 # Intel C++
19230 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019231 # version 8.0 and above of icpc choke on multiply defined symbols
19232 # if we add $predep_objects and $postdep_objects, however 7.1 and
19233 # earlier do not add the objects themselves.
19234 case `$CC -V 2>&1` in
19235 *"Version 7."*)
19236 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19237 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'
19238 ;;
19239 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000019240 tmp_idyn=
19241 case $host_cpu in
19242 ia64*) tmp_idyn=' -i_dynamic';;
19243 esac
19244 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19245 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 +000019246 ;;
19247 esac
John Criswell47fdd832003-07-14 16:52:07 +000019248 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000019249 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19250 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19251 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19252 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019253 pgCC*)
19254 # Portland Group C++ compiler
19255 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19256 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'
19257
19258 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19259 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19260 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'
19261 ;;
19262 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019263 # Compaq C++
19264 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19265 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'
19266
19267 runpath_var=LD_RUN_PATH
19268 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19269 hardcode_libdir_separator_CXX=:
19270
19271 # Commands to make compiler produce verbose output that lists
19272 # what "hidden" libraries, object files and flags are used when
19273 # linking a shared library.
19274 #
19275 # There doesn't appear to be a way to prevent this compiler from
19276 # explicitly linking system object files so we need to strip them
19277 # from the output so that they don't get included in the library
19278 # dependencies.
19279 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'
19280 ;;
19281 esac
19282 ;;
19283 lynxos*)
19284 # FIXME: insert proper C++ library support
19285 ld_shlibs_CXX=no
19286 ;;
19287 m88k*)
19288 # FIXME: insert proper C++ library support
19289 ld_shlibs_CXX=no
19290 ;;
19291 mvs*)
19292 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019293 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019294 # FIXME: insert proper C++ library support
19295 ld_shlibs_CXX=no
19296 ;;
19297 *)
19298 # FIXME: insert proper C++ library support
19299 ld_shlibs_CXX=no
19300 ;;
19301 esac
19302 ;;
19303 netbsd*)
19304 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19305 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19306 wlarc=
19307 hardcode_libdir_flag_spec_CXX='-R$libdir'
19308 hardcode_direct_CXX=yes
19309 hardcode_shlibpath_var_CXX=no
19310 fi
19311 # Workaround some broken pre-1.5 toolchains
19312 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19313 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019314 openbsd2*)
19315 # C++ shared libraries are fairly broken
19316 ld_shlibs_CXX=no
19317 ;;
19318 openbsd*)
19319 hardcode_direct_CXX=yes
19320 hardcode_shlibpath_var_CXX=no
19321 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19322 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19323 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19324 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19325 export_dynamic_flag_spec_CXX='${wl}-E'
19326 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19327 fi
19328 output_verbose_link_cmd='echo'
19329 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019330 osf3*)
19331 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019332 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019333 # Kuck and Associates, Inc. (KAI) C++ Compiler
19334
19335 # KCC will only create a shared library if the output file
19336 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19337 # to its proper name (with version) after linking.
19338 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'
19339
19340 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19341 hardcode_libdir_separator_CXX=:
19342
19343 # Archives containing C++ object files must be created using
19344 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19345 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19346
19347 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019348 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019349 # Rational C++ 2.4.1
19350 # FIXME: insert proper C++ library support
19351 ld_shlibs_CXX=no
19352 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019353 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019354 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019355 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 +000019356
19357 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19358 hardcode_libdir_separator_CXX=:
19359
19360 # Commands to make compiler produce verbose output that lists
19361 # what "hidden" libraries, object files and flags are used when
19362 # linking a shared library.
19363 #
19364 # There doesn't appear to be a way to prevent this compiler from
19365 # explicitly linking system object files so we need to strip them
19366 # from the output so that they don't get included in the library
19367 # dependencies.
19368 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'
19369 ;;
19370 *)
19371 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19372 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019373 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 +000019374
19375 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19376 hardcode_libdir_separator_CXX=:
19377
19378 # Commands to make compiler produce verbose output that lists
19379 # what "hidden" libraries, object files and flags are used when
19380 # linking a shared library.
19381 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19382
19383 else
19384 # FIXME: insert proper C++ library support
19385 ld_shlibs_CXX=no
19386 fi
19387 ;;
19388 esac
19389 ;;
19390 osf4* | osf5*)
19391 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019392 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019393 # Kuck and Associates, Inc. (KAI) C++ Compiler
19394
19395 # KCC will only create a shared library if the output file
19396 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19397 # to its proper name (with version) after linking.
19398 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'
19399
19400 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19401 hardcode_libdir_separator_CXX=:
19402
19403 # Archives containing C++ object files must be created using
19404 # the KAI C++ compiler.
19405 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19406 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019407 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019408 # Rational C++ 2.4.1
19409 # FIXME: insert proper C++ library support
19410 ld_shlibs_CXX=no
19411 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019412 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019413 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019414 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 +000019415 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19416 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019417 $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 +000019418 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019419
19420 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19421 hardcode_libdir_separator_CXX=:
19422
19423 # Commands to make compiler produce verbose output that lists
19424 # what "hidden" libraries, object files and flags are used when
19425 # linking a shared library.
19426 #
19427 # There doesn't appear to be a way to prevent this compiler from
19428 # explicitly linking system object files so we need to strip them
19429 # from the output so that they don't get included in the library
19430 # dependencies.
19431 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'
19432 ;;
19433 *)
19434 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19435 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019436 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 +000019437
19438 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19439 hardcode_libdir_separator_CXX=:
19440
19441 # Commands to make compiler produce verbose output that lists
19442 # what "hidden" libraries, object files and flags are used when
19443 # linking a shared library.
19444 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19445
19446 else
19447 # FIXME: insert proper C++ library support
19448 ld_shlibs_CXX=no
19449 fi
19450 ;;
19451 esac
19452 ;;
19453 psos*)
19454 # FIXME: insert proper C++ library support
19455 ld_shlibs_CXX=no
19456 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019457 sunos4*)
19458 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019459 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019460 # Sun C++ 4.x
19461 # FIXME: insert proper C++ library support
19462 ld_shlibs_CXX=no
19463 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019464 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019465 # Lucid
19466 # FIXME: insert proper C++ library support
19467 ld_shlibs_CXX=no
19468 ;;
19469 *)
19470 # FIXME: insert proper C++ library support
19471 ld_shlibs_CXX=no
19472 ;;
19473 esac
19474 ;;
19475 solaris*)
19476 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019477 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019478 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019479 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019480 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019481 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 +000019482 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 +000019483 $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 +000019484
19485 hardcode_libdir_flag_spec_CXX='-R$libdir'
19486 hardcode_shlibpath_var_CXX=no
19487 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019488 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019489 *)
19490 # The C++ compiler is used as linker so we must use $wl
19491 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019492 # linker. We must also pass each convience library through
19493 # to the system linker between allextract/defaultextract.
19494 # The C++ compiler will combine linker options so we
19495 # cannot just pass the convience library names through
19496 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019497 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019498 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 +000019499 ;;
19500 esac
19501 link_all_deplibs_CXX=yes
19502
Reid Spencera773bd52006-08-04 18:18:08 +000019503 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019504
19505 # Archives containing C++ object files must be created using
19506 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19507 # necessary to make sure instantiated templates are included
19508 # in the archive.
19509 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19510 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019511 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019512 # Green Hills C++ Compiler
19513 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19514
19515 # The C++ compiler must be used to create the archive.
19516 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19517 ;;
19518 *)
19519 # GNU C++ compiler with Solaris linker
19520 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19521 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19522 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019523 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 +000019524 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19525 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19526
John Criswell47fdd832003-07-14 16:52:07 +000019527 # Commands to make compiler produce verbose output that lists
19528 # what "hidden" libraries, object files and flags are used when
19529 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019530 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019531 else
19532 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19533 # platform.
19534 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 +000019535 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19536 $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 +000019537
19538 # Commands to make compiler produce verbose output that lists
19539 # what "hidden" libraries, object files and flags are used when
19540 # linking a shared library.
19541 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19542 fi
19543
19544 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19545 fi
19546 ;;
19547 esac
19548 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019549 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19550 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019551 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019552 hardcode_shlibpath_var_CXX=no
19553 runpath_var='LD_RUN_PATH'
19554
19555 case $cc_basename in
19556 CC*)
19557 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19558 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19559 ;;
19560 *)
19561 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19562 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19563 ;;
19564 esac
19565 ;;
19566 sysv5* | sco3.2v5* | sco5v6*)
19567 # Note: We can NOT use -z defs as we might desire, because we do not
19568 # link with -lc, and that would cause any symbols used from libc to
19569 # always be unresolved, which means just about no library would
19570 # ever link correctly. If we're not using GNU ld we use -z text
19571 # though, which does catch some bad symbols but isn't as heavy-handed
19572 # as -z defs.
19573 # For security reasons, it is highly recommended that you always
19574 # use absolute paths for naming shared libraries, and exclude the
19575 # DT_RUNPATH tag from executables and libraries. But doing so
19576 # requires that you compile everything twice, which is a pain.
19577 # So that behaviour is only enabled if SCOABSPATH is set to a
19578 # non-empty value in the environment. Most likely only useful for
19579 # creating official distributions of packages.
19580 # This is a hack until libtool officially supports absolute path
19581 # names for shared libraries.
19582 no_undefined_flag_CXX='${wl}-z,text'
19583 allow_undefined_flag_CXX='${wl}-z,nodefs'
19584 archive_cmds_need_lc_CXX=no
19585 hardcode_shlibpath_var_CXX=no
19586 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19587 hardcode_libdir_separator_CXX=':'
19588 link_all_deplibs_CXX=yes
19589 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19590 runpath_var='LD_RUN_PATH'
19591
19592 case $cc_basename in
19593 CC*)
19594 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19595 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19596 ;;
19597 *)
19598 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19599 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19600 ;;
19601 esac
John Criswell47fdd832003-07-14 16:52:07 +000019602 ;;
19603 tandem*)
19604 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019605 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019606 # NonStop-UX NCC 3.20
19607 # FIXME: insert proper C++ library support
19608 ld_shlibs_CXX=no
19609 ;;
19610 *)
19611 # FIXME: insert proper C++ library support
19612 ld_shlibs_CXX=no
19613 ;;
19614 esac
19615 ;;
19616 vxworks*)
19617 # FIXME: insert proper C++ library support
19618 ld_shlibs_CXX=no
19619 ;;
19620 *)
19621 # FIXME: insert proper C++ library support
19622 ld_shlibs_CXX=no
19623 ;;
19624esac
Reid Spencera773bd52006-08-04 18:18:08 +000019625{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19626echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019627test "$ld_shlibs_CXX" = no && can_build_shared=no
19628
19629GCC_CXX="$GXX"
19630LD_CXX="$LD"
19631
John Criswell47fdd832003-07-14 16:52:07 +000019632
19633cat > conftest.$ac_ext <<EOF
19634class Foo
19635{
19636public:
19637 Foo (void) { a = 0; }
19638private:
19639 int a;
19640};
19641EOF
19642
19643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19644 (eval $ac_compile) 2>&5
19645 ac_status=$?
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); }; then
19648 # Parse the compiler output and extract the necessary
19649 # objects, libraries and library flags.
19650
19651 # Sentinel used to keep track of whether or not we are before
19652 # the conftest object file.
19653 pre_test_object_deps_done=no
19654
19655 # The `*' in the case matches for architectures that use `case' in
19656 # $output_verbose_cmd can trigger glob expansion during the loop
19657 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019658 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019659
19660 for p in `eval $output_verbose_link_cmd`; do
19661 case $p in
19662
19663 -L* | -R* | -l*)
19664 # Some compilers place space between "-{L,R}" and the path.
19665 # Remove the space.
19666 if test $p = "-L" \
19667 || test $p = "-R"; then
19668 prev=$p
19669 continue
19670 else
19671 prev=
19672 fi
19673
19674 if test "$pre_test_object_deps_done" = no; then
19675 case $p in
19676 -L* | -R*)
19677 # Internal compiler library paths should come after those
19678 # provided the user. The postdeps already come after the
19679 # user supplied libs so there is no need to process them.
19680 if test -z "$compiler_lib_search_path_CXX"; then
19681 compiler_lib_search_path_CXX="${prev}${p}"
19682 else
19683 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19684 fi
19685 ;;
19686 # The "-l" case would never come before the object being
19687 # linked, so don't bother handling this case.
19688 esac
19689 else
19690 if test -z "$postdeps_CXX"; then
19691 postdeps_CXX="${prev}${p}"
19692 else
19693 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19694 fi
19695 fi
19696 ;;
19697
19698 *.$objext)
19699 # This assumes that the test object file only shows up
19700 # once in the compiler output.
19701 if test "$p" = "conftest.$objext"; then
19702 pre_test_object_deps_done=yes
19703 continue
19704 fi
19705
19706 if test "$pre_test_object_deps_done" = no; then
19707 if test -z "$predep_objects_CXX"; then
19708 predep_objects_CXX="$p"
19709 else
19710 predep_objects_CXX="$predep_objects_CXX $p"
19711 fi
19712 else
19713 if test -z "$postdep_objects_CXX"; then
19714 postdep_objects_CXX="$p"
19715 else
19716 postdep_objects_CXX="$postdep_objects_CXX $p"
19717 fi
19718 fi
19719 ;;
19720
19721 *) ;; # Ignore the rest.
19722
19723 esac
19724 done
19725
19726 # Clean up.
19727 rm -f a.out a.exe
19728else
19729 echo "libtool.m4: error: problem compiling CXX test program"
19730fi
19731
19732$rm -f confest.$objext
19733
Reid Spencera773bd52006-08-04 18:18:08 +000019734# PORTME: override above test on systems where it is broken
19735case $host_os in
19736interix3*)
19737 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19738 # hack all around it, let's just trust "g++" to DTRT.
19739 predep_objects_CXX=
19740 postdep_objects_CXX=
19741 postdeps_CXX=
19742 ;;
19743
19744solaris*)
19745 case $cc_basename in
19746 CC*)
19747 # Adding this requires a known-good setup of shared libraries for
19748 # Sun compiler versions before 5.6, else PIC objects from an old
19749 # archive will be linked into the output, leading to subtle bugs.
19750 postdeps_CXX='-lCstd -lCrun'
19751 ;;
19752 esac
19753 ;;
19754esac
19755
19756
John Criswell47fdd832003-07-14 16:52:07 +000019757case " $postdeps_CXX " in
19758*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19759esac
19760
19761lt_prog_compiler_wl_CXX=
19762lt_prog_compiler_pic_CXX=
19763lt_prog_compiler_static_CXX=
19764
Reid Spencera773bd52006-08-04 18:18:08 +000019765{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19766echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019767
19768 # C++ specific cases for pic, static, wl, etc.
19769 if test "$GXX" = yes; then
19770 lt_prog_compiler_wl_CXX='-Wl,'
19771 lt_prog_compiler_static_CXX='-static'
19772
19773 case $host_os in
19774 aix*)
19775 # All AIX code is PIC.
19776 if test "$host_cpu" = ia64; then
19777 # AIX 5 now supports IA64 processor
19778 lt_prog_compiler_static_CXX='-Bstatic'
19779 fi
19780 ;;
19781 amigaos*)
19782 # FIXME: we need at least 68020 code to build shared libraries, but
19783 # adding the `-m68020' flag to GCC prevents building anything better,
19784 # like `-m68040'.
19785 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19786 ;;
19787 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19788 # PIC is the default for these OSes.
19789 ;;
19790 mingw* | os2* | pw32*)
19791 # This hack is so that the source file can tell whether it is being
19792 # built for inclusion in a dll (and should export symbols for example).
19793 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19794 ;;
19795 darwin* | rhapsody*)
19796 # PIC is the default on this platform
19797 # Common symbols not allowed in MH_DYLIB files
19798 lt_prog_compiler_pic_CXX='-fno-common'
19799 ;;
19800 *djgpp*)
19801 # DJGPP does not support shared libraries at all
19802 lt_prog_compiler_pic_CXX=
19803 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019804 interix3*)
19805 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19806 # Instead, we relocate shared libraries at runtime.
19807 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019808 sysv4*MP*)
19809 if test -d /usr/nec; then
19810 lt_prog_compiler_pic_CXX=-Kconform_pic
19811 fi
19812 ;;
19813 hpux*)
19814 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19815 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019816 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019817 hppa*64*|ia64*)
19818 ;;
19819 *)
19820 lt_prog_compiler_pic_CXX='-fPIC'
19821 ;;
19822 esac
19823 ;;
19824 *)
19825 lt_prog_compiler_pic_CXX='-fPIC'
19826 ;;
19827 esac
19828 else
19829 case $host_os in
19830 aix4* | aix5*)
19831 # All AIX code is PIC.
19832 if test "$host_cpu" = ia64; then
19833 # AIX 5 now supports IA64 processor
19834 lt_prog_compiler_static_CXX='-Bstatic'
19835 else
19836 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19837 fi
19838 ;;
19839 chorus*)
19840 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019841 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019842 # Green Hills C++ Compiler
19843 # _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"
19844 ;;
19845 esac
19846 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019847 darwin*)
19848 # PIC is the default on this platform
19849 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019850 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019851 xlc*)
19852 lt_prog_compiler_pic_CXX='-qnocommon'
19853 lt_prog_compiler_wl_CXX='-Wl,'
19854 ;;
19855 esac
19856 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019857 dgux*)
19858 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019859 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019860 lt_prog_compiler_pic_CXX='-KPIC'
19861 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019862 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019863 # Green Hills C++ Compiler
19864 lt_prog_compiler_pic_CXX='-pic'
19865 ;;
19866 *)
19867 ;;
19868 esac
19869 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019870 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019871 # FreeBSD uses GNU C++
19872 ;;
19873 hpux9* | hpux10* | hpux11*)
19874 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019875 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019876 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019877 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019878 if test "$host_cpu" != ia64; then
19879 lt_prog_compiler_pic_CXX='+Z'
19880 fi
19881 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019882 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019883 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019884 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19885 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019886 hppa*64*|ia64*)
19887 # +Z the default
19888 ;;
19889 *)
19890 lt_prog_compiler_pic_CXX='+Z'
19891 ;;
19892 esac
19893 ;;
19894 *)
19895 ;;
19896 esac
19897 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019898 interix*)
19899 # This is c89, which is MS Visual C++ (no shared libs)
19900 # Anyone wants to do a port?
19901 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019902 irix5* | irix6* | nonstopux*)
19903 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019904 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019905 lt_prog_compiler_wl_CXX='-Wl,'
19906 lt_prog_compiler_static_CXX='-non_shared'
19907 # CC pic flag -KPIC is the default.
19908 ;;
19909 *)
19910 ;;
19911 esac
19912 ;;
19913 linux*)
19914 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019915 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019916 # KAI C++ Compiler
19917 lt_prog_compiler_wl_CXX='--backend -Wl,'
19918 lt_prog_compiler_pic_CXX='-fPIC'
19919 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019920 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019921 # Intel C++
19922 lt_prog_compiler_wl_CXX='-Wl,'
19923 lt_prog_compiler_pic_CXX='-KPIC'
19924 lt_prog_compiler_static_CXX='-static'
19925 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019926 pgCC*)
19927 # Portland Group C++ compiler.
19928 lt_prog_compiler_wl_CXX='-Wl,'
19929 lt_prog_compiler_pic_CXX='-fpic'
19930 lt_prog_compiler_static_CXX='-Bstatic'
19931 ;;
19932 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019933 # Compaq C++
19934 # Make sure the PIC flag is empty. It appears that all Alpha
19935 # Linux and Compaq Tru64 Unix objects are PIC.
19936 lt_prog_compiler_pic_CXX=
19937 lt_prog_compiler_static_CXX='-non_shared'
19938 ;;
19939 *)
19940 ;;
19941 esac
19942 ;;
19943 lynxos*)
19944 ;;
19945 m88k*)
19946 ;;
19947 mvs*)
19948 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019949 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019950 lt_prog_compiler_pic_CXX='-W c,exportall'
19951 ;;
19952 *)
19953 ;;
19954 esac
19955 ;;
19956 netbsd*)
19957 ;;
19958 osf3* | osf4* | osf5*)
19959 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019960 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019961 lt_prog_compiler_wl_CXX='--backend -Wl,'
19962 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019963 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019964 # Rational C++ 2.4.1
19965 lt_prog_compiler_pic_CXX='-pic'
19966 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019967 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019968 # Digital/Compaq C++
19969 lt_prog_compiler_wl_CXX='-Wl,'
19970 # Make sure the PIC flag is empty. It appears that all Alpha
19971 # Linux and Compaq Tru64 Unix objects are PIC.
19972 lt_prog_compiler_pic_CXX=
19973 lt_prog_compiler_static_CXX='-non_shared'
19974 ;;
19975 *)
19976 ;;
19977 esac
19978 ;;
19979 psos*)
19980 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019981 solaris*)
19982 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019983 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019984 # Sun C++ 4.2, 5.x and Centerline C++
19985 lt_prog_compiler_pic_CXX='-KPIC'
19986 lt_prog_compiler_static_CXX='-Bstatic'
19987 lt_prog_compiler_wl_CXX='-Qoption ld '
19988 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019989 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019990 # Green Hills C++ Compiler
19991 lt_prog_compiler_pic_CXX='-PIC'
19992 ;;
19993 *)
19994 ;;
19995 esac
19996 ;;
19997 sunos4*)
19998 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019999 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000020000 # Sun C++ 4.x
20001 lt_prog_compiler_pic_CXX='-pic'
20002 lt_prog_compiler_static_CXX='-Bstatic'
20003 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020004 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000020005 # Lucid
20006 lt_prog_compiler_pic_CXX='-pic'
20007 ;;
20008 *)
20009 ;;
20010 esac
20011 ;;
20012 tandem*)
20013 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020014 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020015 # NonStop-UX NCC 3.20
20016 lt_prog_compiler_pic_CXX='-KPIC'
20017 ;;
20018 *)
20019 ;;
20020 esac
20021 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020022 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20023 case $cc_basename in
20024 CC*)
20025 lt_prog_compiler_wl_CXX='-Wl,'
20026 lt_prog_compiler_pic_CXX='-KPIC'
20027 lt_prog_compiler_static_CXX='-Bstatic'
20028 ;;
20029 esac
John Criswell47fdd832003-07-14 16:52:07 +000020030 ;;
20031 vxworks*)
20032 ;;
20033 *)
20034 lt_prog_compiler_can_build_shared_CXX=no
20035 ;;
20036 esac
20037 fi
20038
Reid Spencera773bd52006-08-04 18:18:08 +000020039{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20040echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020041
20042#
20043# Check to make sure the PIC flag actually works.
20044#
20045if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020046
Reid Spencera773bd52006-08-04 18:18:08 +000020047{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20048echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020049if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20050 echo $ECHO_N "(cached) $ECHO_C" >&6
20051else
20052 lt_prog_compiler_pic_works_CXX=no
20053 ac_outfile=conftest.$ac_objext
20054 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20055 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20056 # Insert the option either (1) after the last *FLAGS variable, or
20057 # (2) before a word containing "conftest.", or (3) at the end.
20058 # Note that $ac_compile itself does not contain backslashes and begins
20059 # with a dollar sign (not a hyphen), so the echo should work correctly.
20060 # The option is referenced via a variable to avoid confusing sed.
20061 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020062 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020063 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20064 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020065 (eval echo "\"\$as_me:20070: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020066 (eval "$lt_compile" 2>conftest.err)
20067 ac_status=$?
20068 cat conftest.err >&5
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020069 echo "$as_me:20074: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020070 if (exit $ac_status) && test -s "$ac_outfile"; then
20071 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000020072 # So say no if there are warnings other than the usual output.
20073 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20074 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20075 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020076 lt_prog_compiler_pic_works_CXX=yes
20077 fi
20078 fi
20079 $rm conftest*
20080
20081fi
Reid Spencera773bd52006-08-04 18:18:08 +000020082{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20083echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020084
20085if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20086 case $lt_prog_compiler_pic_CXX in
20087 "" | " "*) ;;
20088 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20089 esac
20090else
20091 lt_prog_compiler_pic_CXX=
20092 lt_prog_compiler_can_build_shared_CXX=no
20093fi
20094
20095fi
Reid Spencera773bd52006-08-04 18:18:08 +000020096case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020097 # For platforms which do not support PIC, -DPIC is meaningless:
20098 *djgpp*)
20099 lt_prog_compiler_pic_CXX=
20100 ;;
20101 *)
20102 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20103 ;;
20104esac
20105
Reid Spencera773bd52006-08-04 18:18:08 +000020106#
20107# Check to make sure the static flag actually works.
20108#
20109wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20110{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20111echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20112if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20113 echo $ECHO_N "(cached) $ECHO_C" >&6
20114else
20115 lt_prog_compiler_static_works_CXX=no
20116 save_LDFLAGS="$LDFLAGS"
20117 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20118 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20119 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20120 # The linker can only warn and ignore the option if not recognized
20121 # So say no if there are warnings
20122 if test -s conftest.err; then
20123 # Append any errors to the config.log.
20124 cat conftest.err 1>&5
20125 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20126 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20127 if diff conftest.exp conftest.er2 >/dev/null; then
20128 lt_prog_compiler_static_works_CXX=yes
20129 fi
20130 else
20131 lt_prog_compiler_static_works_CXX=yes
20132 fi
20133 fi
20134 $rm conftest*
20135 LDFLAGS="$save_LDFLAGS"
20136
20137fi
20138{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20139echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20140
20141if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20142 :
20143else
20144 lt_prog_compiler_static_CXX=
20145fi
20146
20147
20148{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20149echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020150if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20151 echo $ECHO_N "(cached) $ECHO_C" >&6
20152else
20153 lt_cv_prog_compiler_c_o_CXX=no
20154 $rm -r conftest 2>/dev/null
20155 mkdir conftest
20156 cd conftest
20157 mkdir out
20158 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20159
John Criswell47fdd832003-07-14 16:52:07 +000020160 lt_compiler_flag="-o out/conftest2.$ac_objext"
20161 # Insert the option either (1) after the last *FLAGS variable, or
20162 # (2) before a word containing "conftest.", or (3) at the end.
20163 # Note that $ac_compile itself does not contain backslashes and begins
20164 # with a dollar sign (not a hyphen), so the echo should work correctly.
20165 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020166 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020167 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20168 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020169 (eval echo "\"\$as_me:20174: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020170 (eval "$lt_compile" 2>out/conftest.err)
20171 ac_status=$?
20172 cat out/conftest.err >&5
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020173 echo "$as_me:20178: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020174 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20175 then
20176 # The compiler can only warn and ignore the option if not recognized
20177 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000020178 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20179 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20180 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020181 lt_cv_prog_compiler_c_o_CXX=yes
20182 fi
20183 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020184 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020185 $rm conftest*
20186 # SGI C++ compiler will create directory out/ii_files/ for
20187 # template instantiation
20188 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20189 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000020190 cd ..
20191 rmdir conftest
20192 $rm conftest*
20193
20194fi
Reid Spencera773bd52006-08-04 18:18:08 +000020195{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20196echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020197
20198
20199hard_links="nottested"
20200if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20201 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000020202 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20203echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020204 hard_links=yes
20205 $rm conftest*
20206 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20207 touch conftest.a
20208 ln conftest.a conftest.b 2>&5 || hard_links=no
20209 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000020210 { echo "$as_me:$LINENO: result: $hard_links" >&5
20211echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020212 if test "$hard_links" = no; then
20213 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20214echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20215 need_locks=warn
20216 fi
20217else
20218 need_locks=no
20219fi
20220
Reid Spencera773bd52006-08-04 18:18:08 +000020221{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20222echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020223
20224 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20225 case $host_os in
20226 aix4* | aix5*)
20227 # If we're using GNU nm, then we don't want the "-C" option.
20228 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20229 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20230 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'
20231 else
20232 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'
20233 fi
20234 ;;
20235 pw32*)
20236 export_symbols_cmds_CXX="$ltdll_cmds"
20237 ;;
20238 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000020239 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 +000020240 ;;
20241 *)
20242 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20243 ;;
20244 esac
20245
Reid Spencera773bd52006-08-04 18:18:08 +000020246{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20247echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020248test "$ld_shlibs_CXX" = no && can_build_shared=no
20249
John Criswell47fdd832003-07-14 16:52:07 +000020250#
20251# Do we need to explicitly link libc?
20252#
20253case "x$archive_cmds_need_lc_CXX" in
20254x|xyes)
20255 # Assume -lc should be added
20256 archive_cmds_need_lc_CXX=yes
20257
20258 if test "$enable_shared" = yes && test "$GCC" = yes; then
20259 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020260 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020261 # FIXME: we may have to deal with multi-command sequences.
20262 ;;
20263 '$CC '*)
20264 # Test whether the compiler implicitly links with -lc since on some
20265 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20266 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000020267 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20268echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020269 $rm conftest*
20270 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20271
20272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20273 (eval $ac_compile) 2>&5
20274 ac_status=$?
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); } 2>conftest.err; then
20277 soname=conftest
20278 lib=conftest
20279 libobjs=conftest.$ac_objext
20280 deplibs=
20281 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000020282 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000020283 compiler_flags=-v
20284 linker_flags=-v
20285 verstring=
20286 output_objdir=.
20287 libname=conftest
20288 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20289 allow_undefined_flag_CXX=
20290 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20291 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20292 ac_status=$?
20293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); }
20295 then
20296 archive_cmds_need_lc_CXX=no
20297 else
20298 archive_cmds_need_lc_CXX=yes
20299 fi
20300 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20301 else
20302 cat conftest.err 1>&5
20303 fi
20304 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000020305 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20306echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020307 ;;
20308 esac
20309 fi
20310 ;;
20311esac
20312
Reid Spencera773bd52006-08-04 18:18:08 +000020313{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20314echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020315library_names_spec=
20316libname_spec='lib$name'
20317soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020318shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020319postinstall_cmds=
20320postuninstall_cmds=
20321finish_cmds=
20322finish_eval=
20323shlibpath_var=
20324shlibpath_overrides_runpath=unknown
20325version_type=none
20326dynamic_linker="$host_os ld.so"
20327sys_lib_dlsearch_path_spec="/lib /usr/lib"
20328if test "$GCC" = yes; then
20329 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20330 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20331 # if the path contains ";" then we assume it to be the separator
20332 # otherwise default to the standard path separator (i.e. ":") - it is
20333 # assumed that no part of a normal pathname contains ";" but that should
20334 # okay in the real world where ";" in dirpaths is itself problematic.
20335 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20336 else
20337 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20338 fi
20339else
20340 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20341fi
20342need_lib_prefix=unknown
20343hardcode_into_libs=no
20344
20345# when you set need_version to no, make sure it does not cause -set_version
20346# flags to be left without arguments
20347need_version=unknown
20348
20349case $host_os in
20350aix3*)
20351 version_type=linux
20352 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20353 shlibpath_var=LIBPATH
20354
20355 # AIX 3 has no versioning support, so we append a major version to the name.
20356 soname_spec='${libname}${release}${shared_ext}$major'
20357 ;;
20358
20359aix4* | aix5*)
20360 version_type=linux
20361 need_lib_prefix=no
20362 need_version=no
20363 hardcode_into_libs=yes
20364 if test "$host_cpu" = ia64; then
20365 # AIX 5 supports IA64
20366 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20367 shlibpath_var=LD_LIBRARY_PATH
20368 else
20369 # With GCC up to 2.95.x, collect2 would create an import file
20370 # for dependence libraries. The import file would start with
20371 # the line `#! .'. This would cause the generated library to
20372 # depend on `.', always an invalid library. This was fixed in
20373 # development snapshots of GCC prior to 3.0.
20374 case $host_os in
20375 aix4 | aix4.[01] | aix4.[01].*)
20376 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20377 echo ' yes '
20378 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20379 :
20380 else
20381 can_build_shared=no
20382 fi
20383 ;;
20384 esac
20385 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20386 # soname into executable. Probably we can add versioning support to
20387 # collect2, so additional links can be useful in future.
20388 if test "$aix_use_runtimelinking" = yes; then
20389 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20390 # instead of lib<name>.a to let people know that these are not
20391 # typical AIX shared libraries.
20392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20393 else
20394 # We preserve .a as extension for shared libraries through AIX4.2
20395 # and later when we are not doing run time linking.
20396 library_names_spec='${libname}${release}.a $libname.a'
20397 soname_spec='${libname}${release}${shared_ext}$major'
20398 fi
20399 shlibpath_var=LIBPATH
20400 fi
20401 ;;
20402
20403amigaos*)
20404 library_names_spec='$libname.ixlibrary $libname.a'
20405 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020406 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 +000020407 ;;
20408
20409beos*)
20410 library_names_spec='${libname}${shared_ext}'
20411 dynamic_linker="$host_os ld.so"
20412 shlibpath_var=LIBRARY_PATH
20413 ;;
20414
Reid Spencer2706f8c2004-09-19 23:53:36 +000020415bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020416 version_type=linux
20417 need_version=no
20418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20419 soname_spec='${libname}${release}${shared_ext}$major'
20420 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20421 shlibpath_var=LD_LIBRARY_PATH
20422 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20423 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20424 # the default ld.so.conf also contains /usr/contrib/lib and
20425 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20426 # libtool to hard-code these into programs
20427 ;;
20428
20429cygwin* | mingw* | pw32*)
20430 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020431 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020432 need_version=no
20433 need_lib_prefix=no
20434
20435 case $GCC,$host_os in
20436 yes,cygwin* | yes,mingw* | yes,pw32*)
20437 library_names_spec='$libname.dll.a'
20438 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020439 postinstall_cmds='base_file=`basename \${file}`~
20440 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20441 dldir=$destdir/`dirname \$dlpath`~
20442 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020443 $install_prog $dir/$dlname \$dldir/$dlname~
20444 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020445 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20446 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020447 $rm \$dlpath'
20448 shlibpath_overrides_runpath=yes
20449
20450 case $host_os in
20451 cygwin*)
20452 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20453 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 +000020454 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020455 ;;
20456 mingw*)
20457 # MinGW DLLs use traditional 'lib' prefix
20458 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20459 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20460 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20461 # It is most probably a Windows format PATH printed by
20462 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20463 # path with ; separators, and with drive letters. We can handle the
20464 # drive letters (cygwin fileutils understands them), so leave them,
20465 # especially as we might pass files found there to a mingw objdump,
20466 # which wouldn't understand a cygwinified path. Ahh.
20467 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20468 else
20469 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20470 fi
20471 ;;
20472 pw32*)
20473 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020474 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 +000020475 ;;
20476 esac
20477 ;;
20478
20479 *)
20480 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20481 ;;
20482 esac
20483 dynamic_linker='Win32 ld.exe'
20484 # FIXME: first we should search . and the directory the executable is in
20485 shlibpath_var=PATH
20486 ;;
20487
20488darwin* | rhapsody*)
20489 dynamic_linker="$host_os dyld"
20490 version_type=darwin
20491 need_lib_prefix=no
20492 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020493 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020494 soname_spec='${libname}${release}${major}$shared_ext'
20495 shlibpath_overrides_runpath=yes
20496 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020497 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020498 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020499 if test "$GCC" = yes; then
20500 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"`
20501 else
20502 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020503 fi
20504 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20505 ;;
20506
20507dgux*)
20508 version_type=linux
20509 need_lib_prefix=no
20510 need_version=no
20511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20512 soname_spec='${libname}${release}${shared_ext}$major'
20513 shlibpath_var=LD_LIBRARY_PATH
20514 ;;
20515
20516freebsd1*)
20517 dynamic_linker=no
20518 ;;
20519
Reid Spencer2706f8c2004-09-19 23:53:36 +000020520kfreebsd*-gnu)
20521 version_type=linux
20522 need_lib_prefix=no
20523 need_version=no
20524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20525 soname_spec='${libname}${release}${shared_ext}$major'
20526 shlibpath_var=LD_LIBRARY_PATH
20527 shlibpath_overrides_runpath=no
20528 hardcode_into_libs=yes
20529 dynamic_linker='GNU ld.so'
20530 ;;
20531
Reid Spencera773bd52006-08-04 18:18:08 +000020532freebsd* | dragonfly*)
20533 # DragonFly does not have aout. When/if they implement a new
20534 # versioning mechanism, adjust this.
20535 if test -x /usr/bin/objformat; then
20536 objformat=`/usr/bin/objformat`
20537 else
20538 case $host_os in
20539 freebsd[123]*) objformat=aout ;;
20540 *) objformat=elf ;;
20541 esac
20542 fi
John Criswell47fdd832003-07-14 16:52:07 +000020543 version_type=freebsd-$objformat
20544 case $version_type in
20545 freebsd-elf*)
20546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20547 need_version=no
20548 need_lib_prefix=no
20549 ;;
20550 freebsd-*)
20551 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20552 need_version=yes
20553 ;;
20554 esac
20555 shlibpath_var=LD_LIBRARY_PATH
20556 case $host_os in
20557 freebsd2*)
20558 shlibpath_overrides_runpath=yes
20559 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020560 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020561 shlibpath_overrides_runpath=yes
20562 hardcode_into_libs=yes
20563 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020564 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20565 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020566 shlibpath_overrides_runpath=no
20567 hardcode_into_libs=yes
20568 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020569 freebsd*) # from 4.6 on
20570 shlibpath_overrides_runpath=yes
20571 hardcode_into_libs=yes
20572 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020573 esac
20574 ;;
20575
20576gnu*)
20577 version_type=linux
20578 need_lib_prefix=no
20579 need_version=no
20580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20581 soname_spec='${libname}${release}${shared_ext}$major'
20582 shlibpath_var=LD_LIBRARY_PATH
20583 hardcode_into_libs=yes
20584 ;;
20585
20586hpux9* | hpux10* | hpux11*)
20587 # Give a soname corresponding to the major version so that dld.sl refuses to
20588 # link against other versions.
20589 version_type=sunos
20590 need_lib_prefix=no
20591 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020592 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020593 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020594 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020595 hardcode_into_libs=yes
20596 dynamic_linker="$host_os dld.so"
20597 shlibpath_var=LD_LIBRARY_PATH
20598 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20600 soname_spec='${libname}${release}${shared_ext}$major'
20601 if test "X$HPUX_IA64_MODE" = X32; then
20602 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20603 else
20604 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20605 fi
20606 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20607 ;;
20608 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020609 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020610 hardcode_into_libs=yes
20611 dynamic_linker="$host_os dld.sl"
20612 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20613 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20615 soname_spec='${libname}${release}${shared_ext}$major'
20616 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20617 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20618 ;;
20619 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020620 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020621 dynamic_linker="$host_os dld.sl"
20622 shlibpath_var=SHLIB_PATH
20623 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20625 soname_spec='${libname}${release}${shared_ext}$major'
20626 ;;
20627 esac
20628 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20629 postinstall_cmds='chmod 555 $lib'
20630 ;;
20631
Reid Spencera773bd52006-08-04 18:18:08 +000020632interix3*)
20633 version_type=linux
20634 need_lib_prefix=no
20635 need_version=no
20636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20637 soname_spec='${libname}${release}${shared_ext}$major'
20638 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20639 shlibpath_var=LD_LIBRARY_PATH
20640 shlibpath_overrides_runpath=no
20641 hardcode_into_libs=yes
20642 ;;
20643
John Criswell47fdd832003-07-14 16:52:07 +000020644irix5* | irix6* | nonstopux*)
20645 case $host_os in
20646 nonstopux*) version_type=nonstopux ;;
20647 *)
20648 if test "$lt_cv_prog_gnu_ld" = yes; then
20649 version_type=linux
20650 else
20651 version_type=irix
20652 fi ;;
20653 esac
20654 need_lib_prefix=no
20655 need_version=no
20656 soname_spec='${libname}${release}${shared_ext}$major'
20657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20658 case $host_os in
20659 irix5* | nonstopux*)
20660 libsuff= shlibsuff=
20661 ;;
20662 *)
20663 case $LD in # libtool.m4 will add one of these switches to LD
20664 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20665 libsuff= shlibsuff= libmagic=32-bit;;
20666 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20667 libsuff=32 shlibsuff=N32 libmagic=N32;;
20668 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20669 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20670 *) libsuff= shlibsuff= libmagic=never-match;;
20671 esac
20672 ;;
20673 esac
20674 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20675 shlibpath_overrides_runpath=no
20676 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20677 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20678 hardcode_into_libs=yes
20679 ;;
20680
20681# No shared lib support for Linux oldld, aout, or coff.
20682linux*oldld* | linux*aout* | linux*coff*)
20683 dynamic_linker=no
20684 ;;
20685
20686# This must be Linux ELF.
20687linux*)
20688 version_type=linux
20689 need_lib_prefix=no
20690 need_version=no
20691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20692 soname_spec='${libname}${release}${shared_ext}$major'
20693 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20694 shlibpath_var=LD_LIBRARY_PATH
20695 shlibpath_overrides_runpath=no
20696 # This implies no fast_install, which is unacceptable.
20697 # Some rework will be needed to allow for fast_install
20698 # before this can be enabled.
20699 hardcode_into_libs=yes
20700
Reid Spencer2706f8c2004-09-19 23:53:36 +000020701 # Append ld.so.conf contents to the search path
20702 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020703 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 +000020704 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20705 fi
20706
John Criswell47fdd832003-07-14 16:52:07 +000020707 # We used to test for /lib/ld.so.1 and disable shared libraries on
20708 # powerpc, because MkLinux only supported shared libraries with the
20709 # GNU dynamic linker. Since this was broken with cross compilers,
20710 # most powerpc-linux boxes support dynamic linking these days and
20711 # people can always --disable-shared, the test was removed, and we
20712 # assume the GNU/Linux dynamic linker is in use.
20713 dynamic_linker='GNU/Linux ld.so'
20714 ;;
20715
Reid Spencer2706f8c2004-09-19 23:53:36 +000020716knetbsd*-gnu)
20717 version_type=linux
20718 need_lib_prefix=no
20719 need_version=no
20720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20721 soname_spec='${libname}${release}${shared_ext}$major'
20722 shlibpath_var=LD_LIBRARY_PATH
20723 shlibpath_overrides_runpath=no
20724 hardcode_into_libs=yes
20725 dynamic_linker='GNU ld.so'
20726 ;;
20727
John Criswell47fdd832003-07-14 16:52:07 +000020728netbsd*)
20729 version_type=sunos
20730 need_lib_prefix=no
20731 need_version=no
20732 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20734 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20735 dynamic_linker='NetBSD (a.out) ld.so'
20736 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020738 soname_spec='${libname}${release}${shared_ext}$major'
20739 dynamic_linker='NetBSD ld.elf_so'
20740 fi
20741 shlibpath_var=LD_LIBRARY_PATH
20742 shlibpath_overrides_runpath=yes
20743 hardcode_into_libs=yes
20744 ;;
20745
20746newsos6)
20747 version_type=linux
20748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20749 shlibpath_var=LD_LIBRARY_PATH
20750 shlibpath_overrides_runpath=yes
20751 ;;
20752
Reid Spencer2706f8c2004-09-19 23:53:36 +000020753nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020754 version_type=linux
20755 need_lib_prefix=no
20756 need_version=no
20757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20758 soname_spec='${libname}${release}${shared_ext}$major'
20759 shlibpath_var=LD_LIBRARY_PATH
20760 shlibpath_overrides_runpath=yes
20761 ;;
20762
20763openbsd*)
20764 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020765 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020766 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020767 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20768 case $host_os in
20769 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20770 *) need_version=no ;;
20771 esac
John Criswell47fdd832003-07-14 16:52:07 +000020772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20773 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20774 shlibpath_var=LD_LIBRARY_PATH
20775 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20776 case $host_os in
20777 openbsd2.[89] | openbsd2.[89].*)
20778 shlibpath_overrides_runpath=no
20779 ;;
20780 *)
20781 shlibpath_overrides_runpath=yes
20782 ;;
20783 esac
20784 else
20785 shlibpath_overrides_runpath=yes
20786 fi
20787 ;;
20788
20789os2*)
20790 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020791 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020792 need_lib_prefix=no
20793 library_names_spec='$libname${shared_ext} $libname.a'
20794 dynamic_linker='OS/2 ld.exe'
20795 shlibpath_var=LIBPATH
20796 ;;
20797
20798osf3* | osf4* | osf5*)
20799 version_type=osf
20800 need_lib_prefix=no
20801 need_version=no
20802 soname_spec='${libname}${release}${shared_ext}$major'
20803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20804 shlibpath_var=LD_LIBRARY_PATH
20805 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20806 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20807 ;;
20808
John Criswell47fdd832003-07-14 16:52:07 +000020809solaris*)
20810 version_type=linux
20811 need_lib_prefix=no
20812 need_version=no
20813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20814 soname_spec='${libname}${release}${shared_ext}$major'
20815 shlibpath_var=LD_LIBRARY_PATH
20816 shlibpath_overrides_runpath=yes
20817 hardcode_into_libs=yes
20818 # ldd complains unless libraries are executable
20819 postinstall_cmds='chmod +x $lib'
20820 ;;
20821
20822sunos4*)
20823 version_type=sunos
20824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20825 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20826 shlibpath_var=LD_LIBRARY_PATH
20827 shlibpath_overrides_runpath=yes
20828 if test "$with_gnu_ld" = yes; then
20829 need_lib_prefix=no
20830 fi
20831 need_version=yes
20832 ;;
20833
Reid Spencera773bd52006-08-04 18:18:08 +000020834sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020835 version_type=linux
20836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20837 soname_spec='${libname}${release}${shared_ext}$major'
20838 shlibpath_var=LD_LIBRARY_PATH
20839 case $host_vendor in
20840 sni)
20841 shlibpath_overrides_runpath=no
20842 need_lib_prefix=no
20843 export_dynamic_flag_spec='${wl}-Blargedynsym'
20844 runpath_var=LD_RUN_PATH
20845 ;;
20846 siemens)
20847 need_lib_prefix=no
20848 ;;
20849 motorola)
20850 need_lib_prefix=no
20851 need_version=no
20852 shlibpath_overrides_runpath=no
20853 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20854 ;;
20855 esac
20856 ;;
20857
20858sysv4*MP*)
20859 if test -d /usr/nec ;then
20860 version_type=linux
20861 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20862 soname_spec='$libname${shared_ext}.$major'
20863 shlibpath_var=LD_LIBRARY_PATH
20864 fi
20865 ;;
20866
Reid Spencera773bd52006-08-04 18:18:08 +000020867sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20868 version_type=freebsd-elf
20869 need_lib_prefix=no
20870 need_version=no
20871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20872 soname_spec='${libname}${release}${shared_ext}$major'
20873 shlibpath_var=LD_LIBRARY_PATH
20874 hardcode_into_libs=yes
20875 if test "$with_gnu_ld" = yes; then
20876 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20877 shlibpath_overrides_runpath=no
20878 else
20879 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20880 shlibpath_overrides_runpath=yes
20881 case $host_os in
20882 sco3.2v5*)
20883 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20884 ;;
20885 esac
20886 fi
20887 sys_lib_dlsearch_path_spec='/usr/lib'
20888 ;;
20889
John Criswell47fdd832003-07-14 16:52:07 +000020890uts4*)
20891 version_type=linux
20892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20893 soname_spec='${libname}${release}${shared_ext}$major'
20894 shlibpath_var=LD_LIBRARY_PATH
20895 ;;
20896
20897*)
20898 dynamic_linker=no
20899 ;;
20900esac
Reid Spencera773bd52006-08-04 18:18:08 +000020901{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20902echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020903test "$dynamic_linker" = no && can_build_shared=no
20904
Reid Spencera773bd52006-08-04 18:18:08 +000020905variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20906if test "$GCC" = yes; then
20907 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20908fi
20909
20910{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20911echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020912hardcode_action_CXX=
20913if test -n "$hardcode_libdir_flag_spec_CXX" || \
20914 test -n "$runpath_var_CXX" || \
20915 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20916
20917 # We can hardcode non-existant directories.
20918 if test "$hardcode_direct_CXX" != no &&
20919 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20920 # have to relink, otherwise we might link with an installed library
20921 # when we should be linking with a yet-to-be-installed one
20922 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20923 test "$hardcode_minus_L_CXX" != no; then
20924 # Linking always hardcodes the temporary library directory.
20925 hardcode_action_CXX=relink
20926 else
20927 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20928 hardcode_action_CXX=immediate
20929 fi
20930else
20931 # We cannot hardcode anything, or else we can only hardcode existing
20932 # directories.
20933 hardcode_action_CXX=unsupported
20934fi
Reid Spencera773bd52006-08-04 18:18:08 +000020935{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20936echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020937
20938if test "$hardcode_action_CXX" = relink; then
20939 # Fast installation is not supported
20940 enable_fast_install=no
20941elif test "$shlibpath_overrides_runpath" = yes ||
20942 test "$enable_shared" = no; then
20943 # Fast installation is not necessary
20944 enable_fast_install=needless
20945fi
20946
John Criswell47fdd832003-07-14 16:52:07 +000020947
20948# The else clause should only fire when bootstrapping the
20949# libtool distribution, otherwise you forgot to ship ltmain.sh
20950# with your package, and you will get complaints that there are
20951# no rules to generate ltmain.sh.
20952if test -f "$ltmain"; then
20953 # See if we are running on zsh, and set the options which allow our commands through
20954 # without removal of \ escapes.
20955 if test -n "${ZSH_VERSION+set}" ; then
20956 setopt NO_GLOB_SUBST
20957 fi
20958 # Now quote all the things that may contain metacharacters while being
20959 # careful not to overquote the AC_SUBSTed values. We take copies of the
20960 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020961 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 +000020962 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020963 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20964 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20965 deplibs_check_method reload_flag reload_cmds need_locks \
20966 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20967 lt_cv_sys_global_symbol_to_c_name_address \
20968 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20969 old_postinstall_cmds old_postuninstall_cmds \
20970 compiler_CXX \
20971 CC_CXX \
20972 LD_CXX \
20973 lt_prog_compiler_wl_CXX \
20974 lt_prog_compiler_pic_CXX \
20975 lt_prog_compiler_static_CXX \
20976 lt_prog_compiler_no_builtin_flag_CXX \
20977 export_dynamic_flag_spec_CXX \
20978 thread_safe_flag_spec_CXX \
20979 whole_archive_flag_spec_CXX \
20980 enable_shared_with_static_runtimes_CXX \
20981 old_archive_cmds_CXX \
20982 old_archive_from_new_cmds_CXX \
20983 predep_objects_CXX \
20984 postdep_objects_CXX \
20985 predeps_CXX \
20986 postdeps_CXX \
20987 compiler_lib_search_path_CXX \
20988 archive_cmds_CXX \
20989 archive_expsym_cmds_CXX \
20990 postinstall_cmds_CXX \
20991 postuninstall_cmds_CXX \
20992 old_archive_from_expsyms_cmds_CXX \
20993 allow_undefined_flag_CXX \
20994 no_undefined_flag_CXX \
20995 export_symbols_cmds_CXX \
20996 hardcode_libdir_flag_spec_CXX \
20997 hardcode_libdir_flag_spec_ld_CXX \
20998 hardcode_libdir_separator_CXX \
20999 hardcode_automatic_CXX \
21000 module_cmds_CXX \
21001 module_expsym_cmds_CXX \
21002 lt_cv_prog_compiler_c_o_CXX \
21003 exclude_expsyms_CXX \
21004 include_expsyms_CXX; do
21005
21006 case $var in
21007 old_archive_cmds_CXX | \
21008 old_archive_from_new_cmds_CXX | \
21009 archive_cmds_CXX | \
21010 archive_expsym_cmds_CXX | \
21011 module_cmds_CXX | \
21012 module_expsym_cmds_CXX | \
21013 old_archive_from_expsyms_cmds_CXX | \
21014 export_symbols_cmds_CXX | \
21015 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21016 postinstall_cmds | postuninstall_cmds | \
21017 old_postinstall_cmds | old_postuninstall_cmds | \
21018 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21019 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021020 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 +000021021 ;;
21022 *)
21023 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21024 ;;
21025 esac
21026 done
21027
21028 case $lt_echo in
21029 *'\$0 --fallback-echo"')
21030 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21031 ;;
21032 esac
21033
21034cfgfile="$ofile"
21035
21036 cat <<__EOF__ >> "$cfgfile"
21037# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21038
21039# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21040
21041# Shell to use when invoking shell scripts.
21042SHELL=$lt_SHELL
21043
21044# Whether or not to build shared libraries.
21045build_libtool_libs=$enable_shared
21046
21047# Whether or not to build static libraries.
21048build_old_libs=$enable_static
21049
21050# Whether or not to add -lc for building shared libraries.
21051build_libtool_need_lc=$archive_cmds_need_lc_CXX
21052
21053# Whether or not to disallow shared libs when runtime libs are static
21054allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21055
21056# Whether or not to optimize for fast installation.
21057fast_install=$enable_fast_install
21058
21059# The host system.
21060host_alias=$host_alias
21061host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000021062host_os=$host_os
21063
21064# The build system.
21065build_alias=$build_alias
21066build=$build
21067build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000021068
21069# An echo program that does not interpret backslashes.
21070echo=$lt_echo
21071
21072# The archiver.
21073AR=$lt_AR
21074AR_FLAGS=$lt_AR_FLAGS
21075
21076# A C compiler.
21077LTCC=$lt_LTCC
21078
Reid Spencera773bd52006-08-04 18:18:08 +000021079# LTCC compiler flags.
21080LTCFLAGS=$lt_LTCFLAGS
21081
John Criswell47fdd832003-07-14 16:52:07 +000021082# A language-specific compiler.
21083CC=$lt_compiler_CXX
21084
21085# Is the compiler the GNU C compiler?
21086with_gcc=$GCC_CXX
21087
21088# An ERE matcher.
21089EGREP=$lt_EGREP
21090
21091# The linker used to build libraries.
21092LD=$lt_LD_CXX
21093
21094# Whether we need hard or soft links.
21095LN_S=$lt_LN_S
21096
21097# A BSD-compatible nm program.
21098NM=$lt_NM
21099
21100# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000021101STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000021102
21103# Used to examine libraries when file_magic_cmd begins "file"
21104MAGIC_CMD=$MAGIC_CMD
21105
21106# Used on cygwin: DLL creation program.
21107DLLTOOL="$DLLTOOL"
21108
21109# Used on cygwin: object dumper.
21110OBJDUMP="$OBJDUMP"
21111
21112# Used on cygwin: assembler.
21113AS="$AS"
21114
21115# The name of the directory that contains temporary libtool files.
21116objdir=$objdir
21117
21118# How to create reloadable object files.
21119reload_flag=$lt_reload_flag
21120reload_cmds=$lt_reload_cmds
21121
21122# How to pass a linker flag through the compiler.
21123wl=$lt_lt_prog_compiler_wl_CXX
21124
21125# Object file suffix (normally "o").
21126objext="$ac_objext"
21127
21128# Old archive suffix (normally "a").
21129libext="$libext"
21130
21131# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000021132shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000021133
21134# Executable file suffix (normally "").
21135exeext="$exeext"
21136
21137# Additional compiler flags for building library objects.
21138pic_flag=$lt_lt_prog_compiler_pic_CXX
21139pic_mode=$pic_mode
21140
21141# What is the maximum length of a command?
21142max_cmd_len=$lt_cv_sys_max_cmd_len
21143
21144# Does compiler simultaneously support -c and -o options?
21145compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21146
Reid Spencera773bd52006-08-04 18:18:08 +000021147# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000021148need_locks=$lt_need_locks
21149
21150# Do we need the lib prefix for modules?
21151need_lib_prefix=$need_lib_prefix
21152
21153# Do we need a version for libraries?
21154need_version=$need_version
21155
21156# Whether dlopen is supported.
21157dlopen_support=$enable_dlopen
21158
21159# Whether dlopen of programs is supported.
21160dlopen_self=$enable_dlopen_self
21161
21162# Whether dlopen of statically linked programs is supported.
21163dlopen_self_static=$enable_dlopen_self_static
21164
21165# Compiler flag to prevent dynamic linking.
21166link_static_flag=$lt_lt_prog_compiler_static_CXX
21167
21168# Compiler flag to turn off builtin functions.
21169no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21170
21171# Compiler flag to allow reflexive dlopens.
21172export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21173
21174# Compiler flag to generate shared objects directly from archives.
21175whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21176
21177# Compiler flag to generate thread-safe objects.
21178thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21179
21180# Library versioning type.
21181version_type=$version_type
21182
21183# Format of library name prefix.
21184libname_spec=$lt_libname_spec
21185
21186# List of archive names. First name is the real one, the rest are links.
21187# The last name is the one that the linker finds with -lNAME.
21188library_names_spec=$lt_library_names_spec
21189
21190# The coded name of the library, if different from the real name.
21191soname_spec=$lt_soname_spec
21192
21193# Commands used to build and install an old-style archive.
21194RANLIB=$lt_RANLIB
21195old_archive_cmds=$lt_old_archive_cmds_CXX
21196old_postinstall_cmds=$lt_old_postinstall_cmds
21197old_postuninstall_cmds=$lt_old_postuninstall_cmds
21198
21199# Create an old-style archive from a shared archive.
21200old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21201
21202# Create a temporary old-style archive to link instead of a shared archive.
21203old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21204
21205# Commands used to build and install a shared archive.
21206archive_cmds=$lt_archive_cmds_CXX
21207archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21208postinstall_cmds=$lt_postinstall_cmds
21209postuninstall_cmds=$lt_postuninstall_cmds
21210
21211# Commands used to build a loadable module (assumed same as above if empty)
21212module_cmds=$lt_module_cmds_CXX
21213module_expsym_cmds=$lt_module_expsym_cmds_CXX
21214
21215# Commands to strip libraries.
21216old_striplib=$lt_old_striplib
21217striplib=$lt_striplib
21218
21219# Dependencies to place before the objects being linked to create a
21220# shared library.
21221predep_objects=$lt_predep_objects_CXX
21222
21223# Dependencies to place after the objects being linked to create a
21224# shared library.
21225postdep_objects=$lt_postdep_objects_CXX
21226
21227# Dependencies to place before the objects being linked to create a
21228# shared library.
21229predeps=$lt_predeps_CXX
21230
21231# Dependencies to place after the objects being linked to create a
21232# shared library.
21233postdeps=$lt_postdeps_CXX
21234
21235# The library search path used internally by the compiler when linking
21236# a shared library.
21237compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21238
21239# Method to check whether dependent libraries are shared objects.
21240deplibs_check_method=$lt_deplibs_check_method
21241
21242# Command to use when deplibs_check_method == file_magic.
21243file_magic_cmd=$lt_file_magic_cmd
21244
21245# Flag that allows shared libraries with undefined symbols to be built.
21246allow_undefined_flag=$lt_allow_undefined_flag_CXX
21247
21248# Flag that forces no undefined symbols.
21249no_undefined_flag=$lt_no_undefined_flag_CXX
21250
21251# Commands used to finish a libtool library installation in a directory.
21252finish_cmds=$lt_finish_cmds
21253
21254# Same as above, but a single script fragment to be evaled but not shown.
21255finish_eval=$lt_finish_eval
21256
21257# Take the output of nm and produce a listing of raw symbols and C names.
21258global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21259
21260# Transform the output of nm in a proper C declaration
21261global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21262
21263# Transform the output of nm in a C name address pair
21264global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21265
21266# This is the shared library runtime path variable.
21267runpath_var=$runpath_var
21268
21269# This is the shared library path variable.
21270shlibpath_var=$shlibpath_var
21271
21272# Is shlibpath searched before the hard-coded library search path?
21273shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21274
21275# How to hardcode a shared library path into an executable.
21276hardcode_action=$hardcode_action_CXX
21277
21278# Whether we should hardcode library paths into libraries.
21279hardcode_into_libs=$hardcode_into_libs
21280
21281# Flag to hardcode \$libdir into a binary during linking.
21282# This must work even if \$libdir does not exist.
21283hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21284
21285# If ld is used when linking, flag to hardcode \$libdir into
21286# a binary during linking. This must work even if \$libdir does
21287# not exist.
21288hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21289
21290# Whether we need a single -rpath flag with a separated argument.
21291hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21292
21293# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21294# resulting binary.
21295hardcode_direct=$hardcode_direct_CXX
21296
21297# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21298# resulting binary.
21299hardcode_minus_L=$hardcode_minus_L_CXX
21300
21301# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21302# the resulting binary.
21303hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21304
21305# Set to yes if building a shared library automatically hardcodes DIR into the library
21306# and all subsequent libraries and executables linked against it.
21307hardcode_automatic=$hardcode_automatic_CXX
21308
21309# Variables whose values should be saved in libtool wrapper scripts and
21310# restored at relink time.
21311variables_saved_for_relink="$variables_saved_for_relink"
21312
21313# Whether libtool must link a program against all its dependency libraries.
21314link_all_deplibs=$link_all_deplibs_CXX
21315
21316# Compile-time system search path for libraries
21317sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21318
21319# Run-time system search path for libraries
21320sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21321
21322# Fix the shell variable \$srcfile for the compiler.
21323fix_srcfile_path="$fix_srcfile_path_CXX"
21324
21325# Set to yes if exported symbols are required.
21326always_export_symbols=$always_export_symbols_CXX
21327
21328# The commands to list exported symbols.
21329export_symbols_cmds=$lt_export_symbols_cmds_CXX
21330
21331# The commands to extract the exported symbol list from a shared archive.
21332extract_expsyms_cmds=$lt_extract_expsyms_cmds
21333
21334# Symbols that should not be listed in the preloaded symbols.
21335exclude_expsyms=$lt_exclude_expsyms_CXX
21336
21337# Symbols that must always be exported.
21338include_expsyms=$lt_include_expsyms_CXX
21339
21340# ### END LIBTOOL TAG CONFIG: $tagname
21341
21342__EOF__
21343
21344
21345else
21346 # If there is no Makefile yet, we rely on a make rule to execute
21347 # `config.status --recheck' to rerun these tests and create the
21348 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021349 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21350 if test -f "$ltmain_in"; then
21351 test -f Makefile && make "$ltmain"
21352 fi
John Criswell47fdd832003-07-14 16:52:07 +000021353fi
21354
21355
21356ac_ext=c
21357ac_cpp='$CPP $CPPFLAGS'
21358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21360ac_compiler_gnu=$ac_cv_c_compiler_gnu
21361
21362CC=$lt_save_CC
21363LDCXX=$LD
21364LD=$lt_save_LD
21365GCC=$lt_save_GCC
21366with_gnu_ldcxx=$with_gnu_ld
21367with_gnu_ld=$lt_save_with_gnu_ld
21368lt_cv_path_LDCXX=$lt_cv_path_LD
21369lt_cv_path_LD=$lt_save_path_LD
21370lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21371lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21372
21373 else
21374 tagname=""
21375 fi
21376 ;;
21377
21378 F77)
21379 if test -n "$F77" && test "X$F77" != "Xno"; then
21380
21381ac_ext=f
21382ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21383ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21384ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21385
21386
21387archive_cmds_need_lc_F77=no
21388allow_undefined_flag_F77=
21389always_export_symbols_F77=no
21390archive_expsym_cmds_F77=
21391export_dynamic_flag_spec_F77=
21392hardcode_direct_F77=no
21393hardcode_libdir_flag_spec_F77=
21394hardcode_libdir_flag_spec_ld_F77=
21395hardcode_libdir_separator_F77=
21396hardcode_minus_L_F77=no
21397hardcode_automatic_F77=no
21398module_cmds_F77=
21399module_expsym_cmds_F77=
21400link_all_deplibs_F77=unknown
21401old_archive_cmds_F77=$old_archive_cmds
21402no_undefined_flag_F77=
21403whole_archive_flag_spec_F77=
21404enable_shared_with_static_runtimes_F77=no
21405
21406# Source file extension for f77 test sources.
21407ac_ext=f
21408
21409# Object file extension for compiled f77 test sources.
21410objext=o
21411objext_F77=$objext
21412
21413# Code to be used in simple compile tests
21414lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21415
21416# Code to be used in simple link tests
21417lt_simple_link_test_code=" program t\n end\n"
21418
21419# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21420
21421# If no C compiler was specified, use CC.
21422LTCC=${LTCC-"$CC"}
21423
Reid Spencera773bd52006-08-04 18:18:08 +000021424# If no C compiler flags were specified, use CFLAGS.
21425LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21426
John Criswell47fdd832003-07-14 16:52:07 +000021427# Allow CC to be a program name with arguments.
21428compiler=$CC
21429
21430
Reid Spencera773bd52006-08-04 18:18:08 +000021431# save warnings/boilerplate of simple test code
21432ac_outfile=conftest.$ac_objext
21433printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21434eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21435_lt_compiler_boilerplate=`cat conftest.err`
21436$rm conftest*
21437
21438ac_outfile=conftest.$ac_objext
21439printf "$lt_simple_link_test_code" >conftest.$ac_ext
21440eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21441_lt_linker_boilerplate=`cat conftest.err`
21442$rm conftest*
21443
21444
John Criswell47fdd832003-07-14 16:52:07 +000021445# Allow CC to be a program name with arguments.
21446lt_save_CC="$CC"
21447CC=${F77-"f77"}
21448compiler=$CC
21449compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021450for cc_temp in $compiler""; do
21451 case $cc_temp in
21452 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21453 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21454 \-*) ;;
21455 *) break;;
21456 esac
21457done
21458cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021459
John Criswell47fdd832003-07-14 16:52:07 +000021460
Reid Spencera773bd52006-08-04 18:18:08 +000021461{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21462echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21463{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21464echo "${ECHO_T}$can_build_shared" >&6; }
21465
21466{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21467echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021468test "$can_build_shared" = "no" && enable_shared=no
21469
21470# On AIX, shared libraries and static libraries use the same namespace, and
21471# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021472case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021473aix3*)
21474 test "$enable_shared" = yes && enable_static=no
21475 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021476 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021477 postinstall_cmds='$RANLIB $lib'
21478 fi
21479 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021480aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021481 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21482 test "$enable_shared" = yes && enable_static=no
21483 fi
John Criswell47fdd832003-07-14 16:52:07 +000021484 ;;
21485esac
Reid Spencera773bd52006-08-04 18:18:08 +000021486{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21487echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021488
Reid Spencera773bd52006-08-04 18:18:08 +000021489{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21490echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021491# Make sure either enable_shared or enable_static is yes.
21492test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021493{ echo "$as_me:$LINENO: result: $enable_static" >&5
21494echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021495
21496GCC_F77="$G77"
21497LD_F77="$LD"
21498
21499lt_prog_compiler_wl_F77=
21500lt_prog_compiler_pic_F77=
21501lt_prog_compiler_static_F77=
21502
Reid Spencera773bd52006-08-04 18:18:08 +000021503{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21504echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021505
21506 if test "$GCC" = yes; then
21507 lt_prog_compiler_wl_F77='-Wl,'
21508 lt_prog_compiler_static_F77='-static'
21509
21510 case $host_os in
21511 aix*)
21512 # All AIX code is PIC.
21513 if test "$host_cpu" = ia64; then
21514 # AIX 5 now supports IA64 processor
21515 lt_prog_compiler_static_F77='-Bstatic'
21516 fi
21517 ;;
21518
21519 amigaos*)
21520 # FIXME: we need at least 68020 code to build shared libraries, but
21521 # adding the `-m68020' flag to GCC prevents building anything better,
21522 # like `-m68040'.
21523 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21524 ;;
21525
21526 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21527 # PIC is the default for these OSes.
21528 ;;
21529
21530 mingw* | pw32* | os2*)
21531 # This hack is so that the source file can tell whether it is being
21532 # built for inclusion in a dll (and should export symbols for example).
21533 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21534 ;;
21535
21536 darwin* | rhapsody*)
21537 # PIC is the default on this platform
21538 # Common symbols not allowed in MH_DYLIB files
21539 lt_prog_compiler_pic_F77='-fno-common'
21540 ;;
21541
Reid Spencera773bd52006-08-04 18:18:08 +000021542 interix3*)
21543 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21544 # Instead, we relocate shared libraries at runtime.
21545 ;;
21546
John Criswell47fdd832003-07-14 16:52:07 +000021547 msdosdjgpp*)
21548 # Just because we use GCC doesn't mean we suddenly get shared libraries
21549 # on systems that don't support them.
21550 lt_prog_compiler_can_build_shared_F77=no
21551 enable_shared=no
21552 ;;
21553
21554 sysv4*MP*)
21555 if test -d /usr/nec; then
21556 lt_prog_compiler_pic_F77=-Kconform_pic
21557 fi
21558 ;;
21559
21560 hpux*)
21561 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21562 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021563 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021564 hppa*64*|ia64*)
21565 # +Z the default
21566 ;;
21567 *)
21568 lt_prog_compiler_pic_F77='-fPIC'
21569 ;;
21570 esac
21571 ;;
21572
21573 *)
21574 lt_prog_compiler_pic_F77='-fPIC'
21575 ;;
21576 esac
21577 else
21578 # PORTME Check for flag to pass linker flags through the system compiler.
21579 case $host_os in
21580 aix*)
21581 lt_prog_compiler_wl_F77='-Wl,'
21582 if test "$host_cpu" = ia64; then
21583 # AIX 5 now supports IA64 processor
21584 lt_prog_compiler_static_F77='-Bstatic'
21585 else
21586 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21587 fi
21588 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021589 darwin*)
21590 # PIC is the default on this platform
21591 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021592 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021593 xlc*)
21594 lt_prog_compiler_pic_F77='-qnocommon'
21595 lt_prog_compiler_wl_F77='-Wl,'
21596 ;;
21597 esac
21598 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021599
21600 mingw* | pw32* | os2*)
21601 # This hack is so that the source file can tell whether it is being
21602 # built for inclusion in a dll (and should export symbols for example).
21603 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21604 ;;
21605
21606 hpux9* | hpux10* | hpux11*)
21607 lt_prog_compiler_wl_F77='-Wl,'
21608 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21609 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021610 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021611 hppa*64*|ia64*)
21612 # +Z the default
21613 ;;
21614 *)
21615 lt_prog_compiler_pic_F77='+Z'
21616 ;;
21617 esac
21618 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21619 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21620 ;;
21621
21622 irix5* | irix6* | nonstopux*)
21623 lt_prog_compiler_wl_F77='-Wl,'
21624 # PIC (with -KPIC) is the default.
21625 lt_prog_compiler_static_F77='-non_shared'
21626 ;;
21627
21628 newsos6)
21629 lt_prog_compiler_pic_F77='-KPIC'
21630 lt_prog_compiler_static_F77='-Bstatic'
21631 ;;
21632
21633 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021634 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021635 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021636 lt_prog_compiler_wl_F77='-Wl,'
21637 lt_prog_compiler_pic_F77='-KPIC'
21638 lt_prog_compiler_static_F77='-static'
21639 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021640 pgcc* | pgf77* | pgf90* | pgf95*)
21641 # Portland Group compilers (*not* the Pentium gcc compiler,
21642 # which looks to be a dead project)
21643 lt_prog_compiler_wl_F77='-Wl,'
21644 lt_prog_compiler_pic_F77='-fpic'
21645 lt_prog_compiler_static_F77='-Bstatic'
21646 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021647 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021648 lt_prog_compiler_wl_F77='-Wl,'
21649 # All Alpha code is PIC.
21650 lt_prog_compiler_static_F77='-non_shared'
21651 ;;
21652 esac
21653 ;;
21654
21655 osf3* | osf4* | osf5*)
21656 lt_prog_compiler_wl_F77='-Wl,'
21657 # All OSF/1 code is PIC.
21658 lt_prog_compiler_static_F77='-non_shared'
21659 ;;
21660
John Criswell47fdd832003-07-14 16:52:07 +000021661 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021662 lt_prog_compiler_pic_F77='-KPIC'
21663 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021664 case $cc_basename in
21665 f77* | f90* | f95*)
21666 lt_prog_compiler_wl_F77='-Qoption ld ';;
21667 *)
21668 lt_prog_compiler_wl_F77='-Wl,';;
21669 esac
John Criswell47fdd832003-07-14 16:52:07 +000021670 ;;
21671
21672 sunos4*)
21673 lt_prog_compiler_wl_F77='-Qoption ld '
21674 lt_prog_compiler_pic_F77='-PIC'
21675 lt_prog_compiler_static_F77='-Bstatic'
21676 ;;
21677
Reid Spencera773bd52006-08-04 18:18:08 +000021678 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021679 lt_prog_compiler_wl_F77='-Wl,'
21680 lt_prog_compiler_pic_F77='-KPIC'
21681 lt_prog_compiler_static_F77='-Bstatic'
21682 ;;
21683
21684 sysv4*MP*)
21685 if test -d /usr/nec ;then
21686 lt_prog_compiler_pic_F77='-Kconform_pic'
21687 lt_prog_compiler_static_F77='-Bstatic'
21688 fi
21689 ;;
21690
Reid Spencera773bd52006-08-04 18:18:08 +000021691 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21692 lt_prog_compiler_wl_F77='-Wl,'
21693 lt_prog_compiler_pic_F77='-KPIC'
21694 lt_prog_compiler_static_F77='-Bstatic'
21695 ;;
21696
21697 unicos*)
21698 lt_prog_compiler_wl_F77='-Wl,'
21699 lt_prog_compiler_can_build_shared_F77=no
21700 ;;
21701
John Criswell47fdd832003-07-14 16:52:07 +000021702 uts4*)
21703 lt_prog_compiler_pic_F77='-pic'
21704 lt_prog_compiler_static_F77='-Bstatic'
21705 ;;
21706
21707 *)
21708 lt_prog_compiler_can_build_shared_F77=no
21709 ;;
21710 esac
21711 fi
21712
Reid Spencera773bd52006-08-04 18:18:08 +000021713{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21714echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021715
21716#
21717# Check to make sure the PIC flag actually works.
21718#
21719if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021720
Reid Spencera773bd52006-08-04 18:18:08 +000021721{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21722echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021723if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21724 echo $ECHO_N "(cached) $ECHO_C" >&6
21725else
21726 lt_prog_compiler_pic_works_F77=no
21727 ac_outfile=conftest.$ac_objext
21728 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21729 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21730 # Insert the option either (1) after the last *FLAGS variable, or
21731 # (2) before a word containing "conftest.", or (3) at the end.
21732 # Note that $ac_compile itself does not contain backslashes and begins
21733 # with a dollar sign (not a hyphen), so the echo should work correctly.
21734 # The option is referenced via a variable to avoid confusing sed.
21735 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021736 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21738 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021739 (eval echo "\"\$as_me:21744: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021740 (eval "$lt_compile" 2>conftest.err)
21741 ac_status=$?
21742 cat conftest.err >&5
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021743 echo "$as_me:21748: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021744 if (exit $ac_status) && test -s "$ac_outfile"; then
21745 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021746 # So say no if there are warnings other than the usual output.
21747 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21748 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21749 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021750 lt_prog_compiler_pic_works_F77=yes
21751 fi
21752 fi
21753 $rm conftest*
21754
21755fi
Reid Spencera773bd52006-08-04 18:18:08 +000021756{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21757echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021758
21759if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21760 case $lt_prog_compiler_pic_F77 in
21761 "" | " "*) ;;
21762 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21763 esac
21764else
21765 lt_prog_compiler_pic_F77=
21766 lt_prog_compiler_can_build_shared_F77=no
21767fi
21768
21769fi
Reid Spencera773bd52006-08-04 18:18:08 +000021770case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021771 # For platforms which do not support PIC, -DPIC is meaningless:
21772 *djgpp*)
21773 lt_prog_compiler_pic_F77=
21774 ;;
21775 *)
21776 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21777 ;;
21778esac
21779
Reid Spencera773bd52006-08-04 18:18:08 +000021780#
21781# Check to make sure the static flag actually works.
21782#
21783wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21784{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21785echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21786if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21787 echo $ECHO_N "(cached) $ECHO_C" >&6
21788else
21789 lt_prog_compiler_static_works_F77=no
21790 save_LDFLAGS="$LDFLAGS"
21791 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21792 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21793 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21794 # The linker can only warn and ignore the option if not recognized
21795 # So say no if there are warnings
21796 if test -s conftest.err; then
21797 # Append any errors to the config.log.
21798 cat conftest.err 1>&5
21799 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21800 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21801 if diff conftest.exp conftest.er2 >/dev/null; then
21802 lt_prog_compiler_static_works_F77=yes
21803 fi
21804 else
21805 lt_prog_compiler_static_works_F77=yes
21806 fi
21807 fi
21808 $rm conftest*
21809 LDFLAGS="$save_LDFLAGS"
21810
21811fi
21812{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21813echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21814
21815if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21816 :
21817else
21818 lt_prog_compiler_static_F77=
21819fi
21820
21821
21822{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21823echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021824if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21825 echo $ECHO_N "(cached) $ECHO_C" >&6
21826else
21827 lt_cv_prog_compiler_c_o_F77=no
21828 $rm -r conftest 2>/dev/null
21829 mkdir conftest
21830 cd conftest
21831 mkdir out
21832 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21833
John Criswell47fdd832003-07-14 16:52:07 +000021834 lt_compiler_flag="-o out/conftest2.$ac_objext"
21835 # Insert the option either (1) after the last *FLAGS variable, or
21836 # (2) before a word containing "conftest.", or (3) at the end.
21837 # Note that $ac_compile itself does not contain backslashes and begins
21838 # with a dollar sign (not a hyphen), so the echo should work correctly.
21839 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021840 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021841 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21842 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021843 (eval echo "\"\$as_me:21848: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021844 (eval "$lt_compile" 2>out/conftest.err)
21845 ac_status=$?
21846 cat out/conftest.err >&5
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021847 echo "$as_me:21852: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021848 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21849 then
21850 # The compiler can only warn and ignore the option if not recognized
21851 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021852 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21853 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21854 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021855 lt_cv_prog_compiler_c_o_F77=yes
21856 fi
21857 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021858 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021859 $rm conftest*
21860 # SGI C++ compiler will create directory out/ii_files/ for
21861 # template instantiation
21862 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21863 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021864 cd ..
21865 rmdir conftest
21866 $rm conftest*
21867
21868fi
Reid Spencera773bd52006-08-04 18:18:08 +000021869{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21870echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021871
21872
21873hard_links="nottested"
21874if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21875 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021876 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21877echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021878 hard_links=yes
21879 $rm conftest*
21880 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21881 touch conftest.a
21882 ln conftest.a conftest.b 2>&5 || hard_links=no
21883 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021884 { echo "$as_me:$LINENO: result: $hard_links" >&5
21885echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021886 if test "$hard_links" = no; then
21887 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21888echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21889 need_locks=warn
21890 fi
21891else
21892 need_locks=no
21893fi
21894
Reid Spencera773bd52006-08-04 18:18:08 +000021895{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21896echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021897
21898 runpath_var=
21899 allow_undefined_flag_F77=
21900 enable_shared_with_static_runtimes_F77=no
21901 archive_cmds_F77=
21902 archive_expsym_cmds_F77=
21903 old_archive_From_new_cmds_F77=
21904 old_archive_from_expsyms_cmds_F77=
21905 export_dynamic_flag_spec_F77=
21906 whole_archive_flag_spec_F77=
21907 thread_safe_flag_spec_F77=
21908 hardcode_libdir_flag_spec_F77=
21909 hardcode_libdir_flag_spec_ld_F77=
21910 hardcode_libdir_separator_F77=
21911 hardcode_direct_F77=no
21912 hardcode_minus_L_F77=no
21913 hardcode_shlibpath_var_F77=unsupported
21914 link_all_deplibs_F77=unknown
21915 hardcode_automatic_F77=no
21916 module_cmds_F77=
21917 module_expsym_cmds_F77=
21918 always_export_symbols_F77=no
21919 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21920 # include_expsyms should be a list of space-separated symbols to be *always*
21921 # included in the symbol list
21922 include_expsyms_F77=
21923 # exclude_expsyms can be an extended regexp of symbols to exclude
21924 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21925 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21926 # as well as any symbol that contains `d'.
21927 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21928 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21929 # platforms (ab)use it in PIC code, but their linkers get confused if
21930 # the symbol is explicitly referenced. Since portable code cannot
21931 # rely on this symbol name, it's probably fine to never include it in
21932 # preloaded symbol tables.
21933 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021934 # Just being paranoid about ensuring that cc_basename is set.
21935 for cc_temp in $compiler""; do
21936 case $cc_temp in
21937 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21938 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21939 \-*) ;;
21940 *) break;;
21941 esac
21942done
21943cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021944
21945 case $host_os in
21946 cygwin* | mingw* | pw32*)
21947 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21948 # When not using gcc, we currently assume that we are using
21949 # Microsoft Visual C++.
21950 if test "$GCC" != yes; then
21951 with_gnu_ld=no
21952 fi
21953 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021954 interix*)
21955 # we just hope/assume this is gcc and not c89 (= MSVC++)
21956 with_gnu_ld=yes
21957 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021958 openbsd*)
21959 with_gnu_ld=no
21960 ;;
21961 esac
21962
21963 ld_shlibs_F77=yes
21964 if test "$with_gnu_ld" = yes; then
21965 # If archive_cmds runs LD, not CC, wlarc should be empty
21966 wlarc='${wl}'
21967
Reid Spencera773bd52006-08-04 18:18:08 +000021968 # Set some defaults for GNU ld with shared library support. These
21969 # are reset later if shared libraries are not supported. Putting them
21970 # here allows them to be overridden if necessary.
21971 runpath_var=LD_RUN_PATH
21972 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21973 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21974 # ancient GNU ld didn't support --whole-archive et. al.
21975 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21976 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21977 else
21978 whole_archive_flag_spec_F77=
21979 fi
21980 supports_anon_versioning=no
21981 case `$LD -v 2>/dev/null` in
21982 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21983 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21984 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21985 *\ 2.11.*) ;; # other 2.11 versions
21986 *) supports_anon_versioning=yes ;;
21987 esac
21988
John Criswell47fdd832003-07-14 16:52:07 +000021989 # See if GNU ld supports shared libraries.
21990 case $host_os in
21991 aix3* | aix4* | aix5*)
21992 # On AIX/PPC, the GNU linker is very broken
21993 if test "$host_cpu" != ia64; then
21994 ld_shlibs_F77=no
21995 cat <<EOF 1>&2
21996
21997*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21998*** to be unable to reliably create shared libraries on AIX.
21999*** Therefore, libtool is disabling shared libraries support. If you
22000*** really care for shared libraries, you may want to modify your PATH
22001*** so that a non-GNU linker is found, and then restart.
22002
22003EOF
22004 fi
22005 ;;
22006
22007 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022008 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 +000022009 hardcode_libdir_flag_spec_F77='-L$libdir'
22010 hardcode_minus_L_F77=yes
22011
22012 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22013 # that the semantics of dynamic libraries on AmigaOS, at least up
22014 # to version 4, is to share data among multiple programs linked
22015 # with the same dynamic library. Since this doesn't match the
22016 # behavior of shared libraries on other platforms, we can't use
22017 # them.
22018 ld_shlibs_F77=no
22019 ;;
22020
22021 beos*)
22022 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22023 allow_undefined_flag_F77=unsupported
22024 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22025 # support --undefined. This deserves some investigation. FIXME
22026 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22027 else
22028 ld_shlibs_F77=no
22029 fi
22030 ;;
22031
22032 cygwin* | mingw* | pw32*)
22033 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22034 # as there is no search path for DLLs.
22035 hardcode_libdir_flag_spec_F77='-L$libdir'
22036 allow_undefined_flag_F77=unsupported
22037 always_export_symbols_F77=no
22038 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022039 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 +000022040
22041 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000022042 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 +000022043 # If the export-symbols file already is a .def file (1st line
22044 # is EXPORTS), use it as is; otherwise, prepend...
22045 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22046 cp $export_symbols $output_objdir/$soname.def;
22047 else
22048 echo EXPORTS > $output_objdir/$soname.def;
22049 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000022050 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000022051 $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 +000022052 else
Reid Spencera773bd52006-08-04 18:18:08 +000022053 ld_shlibs_F77=no
22054 fi
22055 ;;
22056
22057 interix3*)
22058 hardcode_direct_F77=no
22059 hardcode_shlibpath_var_F77=no
22060 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22061 export_dynamic_flag_spec_F77='${wl}-E'
22062 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22063 # Instead, shared libraries are loaded at an image base (0x10000000 by
22064 # default) and relocated if they conflict, which is a slow very memory
22065 # consuming and fragmenting process. To avoid this, we pick a random,
22066 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22067 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22068 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'
22069 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'
22070 ;;
22071
22072 linux*)
22073 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22074 tmp_addflag=
22075 case $cc_basename,$host_cpu in
22076 pgcc*) # Portland Group C compiler
22077 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'
22078 tmp_addflag=' $pic_flag'
22079 ;;
22080 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22081 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'
22082 tmp_addflag=' $pic_flag -Mnomain' ;;
22083 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22084 tmp_addflag=' -i_dynamic' ;;
22085 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22086 tmp_addflag=' -i_dynamic -nofor_main' ;;
22087 ifc* | ifort*) # Intel Fortran compiler
22088 tmp_addflag=' -nofor_main' ;;
22089 esac
22090 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22091
22092 if test $supports_anon_versioning = yes; then
22093 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22094 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22095 $echo "local: *; };" >> $output_objdir/$libname.ver~
22096 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22097 fi
22098 else
22099 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022100 fi
22101 ;;
22102
22103 netbsd*)
22104 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22105 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22106 wlarc=
22107 else
22108 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22109 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22110 fi
22111 ;;
22112
Reid Spencera773bd52006-08-04 18:18:08 +000022113 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000022114 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22115 ld_shlibs_F77=no
22116 cat <<EOF 1>&2
22117
22118*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22119*** create shared libraries on Solaris systems. Therefore, libtool
22120*** is disabling shared libraries support. We urge you to upgrade GNU
22121*** binutils to release 2.9.1 or newer. Another option is to modify
22122*** your PATH or compiler configuration so that the native linker is
22123*** used, and then restart.
22124
22125EOF
22126 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22127 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22128 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22129 else
22130 ld_shlibs_F77=no
22131 fi
22132 ;;
22133
Reid Spencera773bd52006-08-04 18:18:08 +000022134 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22135 case `$LD -v 2>&1` in
22136 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22137 ld_shlibs_F77=no
22138 cat <<_LT_EOF 1>&2
22139
22140*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22141*** reliably create shared libraries on SCO systems. Therefore, libtool
22142*** is disabling shared libraries support. We urge you to upgrade GNU
22143*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22144*** your PATH or compiler configuration so that the native linker is
22145*** used, and then restart.
22146
22147_LT_EOF
22148 ;;
22149 *)
22150 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22151 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22152 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22153 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22154 else
22155 ld_shlibs_F77=no
22156 fi
22157 ;;
22158 esac
22159 ;;
22160
John Criswell47fdd832003-07-14 16:52:07 +000022161 sunos4*)
22162 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22163 wlarc=
22164 hardcode_direct_F77=yes
22165 hardcode_shlibpath_var_F77=no
22166 ;;
22167
22168 *)
22169 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22170 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22171 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22172 else
22173 ld_shlibs_F77=no
22174 fi
22175 ;;
22176 esac
22177
Reid Spencera773bd52006-08-04 18:18:08 +000022178 if test "$ld_shlibs_F77" = no; then
22179 runpath_var=
22180 hardcode_libdir_flag_spec_F77=
22181 export_dynamic_flag_spec_F77=
22182 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000022183 fi
22184 else
22185 # PORTME fill in a description of your system's linker (not GNU ld)
22186 case $host_os in
22187 aix3*)
22188 allow_undefined_flag_F77=unsupported
22189 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000022190 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 +000022191 # Note: this linker hardcodes the directories in LIBPATH if there
22192 # are no directories specified by -L.
22193 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022194 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000022195 # Neither direct hardcoding nor static linking is supported with a
22196 # broken collect2.
22197 hardcode_direct_F77=unsupported
22198 fi
22199 ;;
22200
22201 aix4* | aix5*)
22202 if test "$host_cpu" = ia64; then
22203 # On IA64, the linker does run time linking by default, so we don't
22204 # have to do anything special.
22205 aix_use_runtimelinking=no
22206 exp_sym_flag='-Bexport'
22207 no_entry_flag=""
22208 else
22209 # If we're using GNU nm, then we don't want the "-C" option.
22210 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22211 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22212 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'
22213 else
22214 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'
22215 fi
22216 aix_use_runtimelinking=no
22217
22218 # Test if we are trying to use run time linking or normal
22219 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22220 # need to do runtime linking.
22221 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22222 for ld_flag in $LDFLAGS; do
22223 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22224 aix_use_runtimelinking=yes
22225 break
22226 fi
22227 done
Reid Spencera773bd52006-08-04 18:18:08 +000022228 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022229 esac
22230
22231 exp_sym_flag='-bexport'
22232 no_entry_flag='-bnoentry'
22233 fi
22234
22235 # When large executables or shared objects are built, AIX ld can
22236 # have problems creating the table of contents. If linking a library
22237 # or program results in "error TOC overflow" add -mminimal-toc to
22238 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22239 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22240
22241 archive_cmds_F77=''
22242 hardcode_direct_F77=yes
22243 hardcode_libdir_separator_F77=':'
22244 link_all_deplibs_F77=yes
22245
22246 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022247 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000022248 # We only want to do this on AIX 4.2 and lower, the check
22249 # below for broken collect2 doesn't work under 4.3+
22250 collect2name=`${CC} -print-prog-name=collect2`
22251 if test -f "$collect2name" && \
22252 strings "$collect2name" | grep resolve_lib_name >/dev/null
22253 then
22254 # We have reworked collect2
22255 hardcode_direct_F77=yes
22256 else
22257 # We have old collect2
22258 hardcode_direct_F77=unsupported
22259 # It fails to find uninstalled libraries when the uninstalled
22260 # path is not listed in the libpath. Setting hardcode_minus_L
22261 # to unsupported forces relinking
22262 hardcode_minus_L_F77=yes
22263 hardcode_libdir_flag_spec_F77='-L$libdir'
22264 hardcode_libdir_separator_F77=
22265 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022266 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022267 esac
22268 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000022269 if test "$aix_use_runtimelinking" = yes; then
22270 shared_flag="$shared_flag "'${wl}-G'
22271 fi
John Criswell47fdd832003-07-14 16:52:07 +000022272 else
22273 # not using gcc
22274 if test "$host_cpu" = ia64; then
22275 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22276 # chokes on -Wl,-G. The following line is correct:
22277 shared_flag='-G'
22278 else
Reid Spencera773bd52006-08-04 18:18:08 +000022279 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000022280 shared_flag='${wl}-G'
22281 else
22282 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000022283 fi
John Criswell47fdd832003-07-14 16:52:07 +000022284 fi
22285 fi
22286
22287 # It seems that -bexpall does not export symbols beginning with
22288 # underscore (_), so it is better to generate a list of symbols to export.
22289 always_export_symbols_F77=yes
22290 if test "$aix_use_runtimelinking" = yes; then
22291 # Warning - without using the other runtime loading flags (-brtl),
22292 # -berok will link without error, but may produce a broken library.
22293 allow_undefined_flag_F77='-berok'
22294 # Determine the default libpath from the value encoded in an empty executable.
22295 cat >conftest.$ac_ext <<_ACEOF
22296 program main
22297
22298 end
22299_ACEOF
22300rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022301if { (ac_try="$ac_link"
22302case "(($ac_try" in
22303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22304 *) ac_try_echo=$ac_try;;
22305esac
22306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22307 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022308 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022309 grep -v '^ *+' conftest.er1 >conftest.err
22310 rm -f conftest.er1
22311 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022313 (exit $ac_status); } &&
22314 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22315 { (case "(($ac_try" in
22316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22317 *) ac_try_echo=$ac_try;;
22318esac
22319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22320 (eval "$ac_try") 2>&5
22321 ac_status=$?
22322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323 (exit $ac_status); }; } &&
22324 { ac_try='test -s conftest$ac_exeext'
22325 { (case "(($ac_try" in
22326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22327 *) ac_try_echo=$ac_try;;
22328esac
22329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22330 (eval "$ac_try") 2>&5
22331 ac_status=$?
22332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22333 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022334
22335aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22336}'`
22337# Check for a 64-bit object if we didn't find anything.
22338if 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; }
22339}'`; fi
22340else
22341 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022342sed 's/^/| /' conftest.$ac_ext >&5
22343
Reid Spencera773bd52006-08-04 18:18:08 +000022344
John Criswell47fdd832003-07-14 16:52:07 +000022345fi
Reid Spencera773bd52006-08-04 18:18:08 +000022346
Bill Wendlingebcceee2009-04-18 11:20:33 +000022347rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022348 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022349if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22350
22351 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022352 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 +000022353 else
22354 if test "$host_cpu" = ia64; then
22355 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22356 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022357 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 +000022358 else
22359 # Determine the default libpath from the value encoded in an empty executable.
22360 cat >conftest.$ac_ext <<_ACEOF
22361 program main
22362
22363 end
22364_ACEOF
22365rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022366if { (ac_try="$ac_link"
22367case "(($ac_try" in
22368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22369 *) ac_try_echo=$ac_try;;
22370esac
22371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22372 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022373 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022374 grep -v '^ *+' conftest.er1 >conftest.err
22375 rm -f conftest.er1
22376 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022378 (exit $ac_status); } &&
22379 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22380 { (case "(($ac_try" in
22381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22382 *) ac_try_echo=$ac_try;;
22383esac
22384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22385 (eval "$ac_try") 2>&5
22386 ac_status=$?
22387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388 (exit $ac_status); }; } &&
22389 { ac_try='test -s conftest$ac_exeext'
22390 { (case "(($ac_try" in
22391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22392 *) ac_try_echo=$ac_try;;
22393esac
22394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22395 (eval "$ac_try") 2>&5
22396 ac_status=$?
22397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022399
22400aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22401}'`
22402# Check for a 64-bit object if we didn't find anything.
22403if 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; }
22404}'`; fi
22405else
22406 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022407sed 's/^/| /' conftest.$ac_ext >&5
22408
Reid Spencera773bd52006-08-04 18:18:08 +000022409
John Criswell47fdd832003-07-14 16:52:07 +000022410fi
Reid Spencera773bd52006-08-04 18:18:08 +000022411
Bill Wendlingebcceee2009-04-18 11:20:33 +000022412rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022413 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022414if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22415
22416 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22417 # Warning - without using the other run time loading flags,
22418 # -berok will link without error, but may produce a broken library.
22419 no_undefined_flag_F77=' ${wl}-bernotok'
22420 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022421 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022422 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022423 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022424 # This is similar to how AIX traditionally builds its shared libraries.
22425 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 +000022426 fi
22427 fi
22428 ;;
22429
22430 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022431 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 +000022432 hardcode_libdir_flag_spec_F77='-L$libdir'
22433 hardcode_minus_L_F77=yes
22434 # see comment about different semantics on the GNU ld section
22435 ld_shlibs_F77=no
22436 ;;
22437
Reid Spencer2706f8c2004-09-19 23:53:36 +000022438 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022439 export_dynamic_flag_spec_F77=-rdynamic
22440 ;;
22441
22442 cygwin* | mingw* | pw32*)
22443 # When not using gcc, we currently assume that we are using
22444 # Microsoft Visual C++.
22445 # hardcode_libdir_flag_spec is actually meaningless, as there is
22446 # no search path for DLLs.
22447 hardcode_libdir_flag_spec_F77=' '
22448 allow_undefined_flag_F77=unsupported
22449 # Tell ltmain to make .lib files, not .a files.
22450 libext=lib
22451 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022452 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022453 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022454 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 +000022455 # The linker will automatically build a .lib file if we build a DLL.
22456 old_archive_From_new_cmds_F77='true'
22457 # FIXME: Should let the user specify the lib program.
22458 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022459 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022460 enable_shared_with_static_runtimes_F77=yes
22461 ;;
22462
22463 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022464 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022465 rhapsody* | darwin1.[012])
22466 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22467 ;;
22468 *) # Darwin 1.3 on
22469 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22470 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22471 else
22472 case ${MACOSX_DEPLOYMENT_TARGET} in
22473 10.[012])
22474 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22475 ;;
22476 10.*)
22477 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22478 ;;
22479 esac
22480 fi
22481 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022482 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022483 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022484 hardcode_direct_F77=no
22485 hardcode_automatic_F77=yes
22486 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022487 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022488 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022489 if test "$GCC" = yes ; then
22490 output_verbose_link_cmd='echo'
22491 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22492 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022493 # 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 +000022494 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}'
22495 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 +000022496 else
Reid Spencera773bd52006-08-04 18:18:08 +000022497 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022498 xlc*)
22499 output_verbose_link_cmd='echo'
22500 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22501 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022502 # 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 +000022503 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}'
22504 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 +000022505 ;;
22506 *)
22507 ld_shlibs_F77=no
22508 ;;
22509 esac
John Criswell47fdd832003-07-14 16:52:07 +000022510 fi
22511 ;;
22512
22513 dgux*)
22514 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22515 hardcode_libdir_flag_spec_F77='-L$libdir'
22516 hardcode_shlibpath_var_F77=no
22517 ;;
22518
22519 freebsd1*)
22520 ld_shlibs_F77=no
22521 ;;
22522
22523 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22524 # support. Future versions do this automatically, but an explicit c++rt0.o
22525 # does not break anything, and helps significantly (at the cost of a little
22526 # extra space).
22527 freebsd2.2*)
22528 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22529 hardcode_libdir_flag_spec_F77='-R$libdir'
22530 hardcode_direct_F77=yes
22531 hardcode_shlibpath_var_F77=no
22532 ;;
22533
22534 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22535 freebsd2*)
22536 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22537 hardcode_direct_F77=yes
22538 hardcode_minus_L_F77=yes
22539 hardcode_shlibpath_var_F77=no
22540 ;;
22541
22542 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022543 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022544 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22545 hardcode_libdir_flag_spec_F77='-R$libdir'
22546 hardcode_direct_F77=yes
22547 hardcode_shlibpath_var_F77=no
22548 ;;
22549
22550 hpux9*)
22551 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022552 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 +000022553 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022554 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 +000022555 fi
22556 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22557 hardcode_libdir_separator_F77=:
22558 hardcode_direct_F77=yes
22559
22560 # hardcode_minus_L: Not really in the search PATH,
22561 # but as the default location of the library.
22562 hardcode_minus_L_F77=yes
22563 export_dynamic_flag_spec_F77='${wl}-E'
22564 ;;
22565
Reid Spencera773bd52006-08-04 18:18:08 +000022566 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022567 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022568 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22569 else
22570 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22571 fi
22572 if test "$with_gnu_ld" = no; then
22573 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22574 hardcode_libdir_separator_F77=:
22575
22576 hardcode_direct_F77=yes
22577 export_dynamic_flag_spec_F77='${wl}-E'
22578
22579 # hardcode_minus_L: Not really in the search PATH,
22580 # but as the default location of the library.
22581 hardcode_minus_L_F77=yes
22582 fi
22583 ;;
22584
22585 hpux11*)
22586 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22587 case $host_cpu in
22588 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022589 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22590 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022591 ia64*)
22592 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22593 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022594 *)
22595 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22596 ;;
22597 esac
22598 else
Reid Spencera773bd52006-08-04 18:18:08 +000022599 case $host_cpu in
22600 hppa*64*)
22601 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22602 ;;
22603 ia64*)
22604 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022605 ;;
22606 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022607 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 +000022608 ;;
22609 esac
22610 fi
22611 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022612 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22613 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022614
Reid Spencera773bd52006-08-04 18:18:08 +000022615 case $host_cpu in
22616 hppa*64*|ia64*)
22617 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22618 hardcode_direct_F77=no
22619 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022620 ;;
22621 *)
John Criswell47fdd832003-07-14 16:52:07 +000022622 hardcode_direct_F77=yes
22623 export_dynamic_flag_spec_F77='${wl}-E'
22624
22625 # hardcode_minus_L: Not really in the search PATH,
22626 # but as the default location of the library.
22627 hardcode_minus_L_F77=yes
22628 ;;
22629 esac
22630 fi
22631 ;;
22632
22633 irix5* | irix6* | nonstopux*)
22634 if test "$GCC" = yes; then
22635 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'
22636 else
22637 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'
22638 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22639 fi
22640 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22641 hardcode_libdir_separator_F77=:
22642 link_all_deplibs_F77=yes
22643 ;;
22644
22645 netbsd*)
22646 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22647 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22648 else
22649 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22650 fi
22651 hardcode_libdir_flag_spec_F77='-R$libdir'
22652 hardcode_direct_F77=yes
22653 hardcode_shlibpath_var_F77=no
22654 ;;
22655
22656 newsos6)
22657 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22658 hardcode_direct_F77=yes
22659 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22660 hardcode_libdir_separator_F77=:
22661 hardcode_shlibpath_var_F77=no
22662 ;;
22663
22664 openbsd*)
22665 hardcode_direct_F77=yes
22666 hardcode_shlibpath_var_F77=no
22667 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22668 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022669 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 +000022670 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22671 export_dynamic_flag_spec_F77='${wl}-E'
22672 else
22673 case $host_os in
22674 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22675 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22676 hardcode_libdir_flag_spec_F77='-R$libdir'
22677 ;;
22678 *)
22679 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22680 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22681 ;;
22682 esac
22683 fi
22684 ;;
22685
22686 os2*)
22687 hardcode_libdir_flag_spec_F77='-L$libdir'
22688 hardcode_minus_L_F77=yes
22689 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022690 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 +000022691 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22692 ;;
22693
22694 osf3*)
22695 if test "$GCC" = yes; then
22696 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22697 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'
22698 else
22699 allow_undefined_flag_F77=' -expect_unresolved \*'
22700 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'
22701 fi
22702 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22703 hardcode_libdir_separator_F77=:
22704 ;;
22705
22706 osf4* | osf5*) # as osf3* with the addition of -msym flag
22707 if test "$GCC" = yes; then
22708 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22709 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'
22710 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22711 else
22712 allow_undefined_flag_F77=' -expect_unresolved \*'
22713 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 +000022714 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 +000022715 $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 +000022716
John Criswell47fdd832003-07-14 16:52:07 +000022717 # Both c and cxx compiler support -rpath directly
22718 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22719 fi
22720 hardcode_libdir_separator_F77=:
22721 ;;
22722
John Criswell47fdd832003-07-14 16:52:07 +000022723 solaris*)
22724 no_undefined_flag_F77=' -z text'
22725 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022726 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022727 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022728 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22729 $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 +000022730 else
Reid Spencera773bd52006-08-04 18:18:08 +000022731 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022732 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022733 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22734 $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 +000022735 fi
22736 hardcode_libdir_flag_spec_F77='-R$libdir'
22737 hardcode_shlibpath_var_F77=no
22738 case $host_os in
22739 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022740 *)
22741 # The compiler driver will combine linker options so we
22742 # cannot just pass the convience library names through
22743 # without $wl, iff we do not link with $LD.
22744 # Luckily, gcc supports the same syntax we need for Sun Studio.
22745 # Supported since Solaris 2.6 (maybe 2.5.1?)
22746 case $wlarc in
22747 '')
22748 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22749 *)
22750 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' ;;
22751 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022752 esac
22753 link_all_deplibs_F77=yes
22754 ;;
22755
22756 sunos4*)
22757 if test "x$host_vendor" = xsequent; then
22758 # Use $CC to link under sequent, because it throws in some extra .o
22759 # files that make .init and .fini sections work.
22760 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22761 else
22762 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22763 fi
22764 hardcode_libdir_flag_spec_F77='-L$libdir'
22765 hardcode_direct_F77=yes
22766 hardcode_minus_L_F77=yes
22767 hardcode_shlibpath_var_F77=no
22768 ;;
22769
22770 sysv4)
22771 case $host_vendor in
22772 sni)
22773 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22774 hardcode_direct_F77=yes # is this really true???
22775 ;;
22776 siemens)
22777 ## LD is ld it makes a PLAMLIB
22778 ## CC just makes a GrossModule.
22779 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22780 reload_cmds_F77='$CC -r -o $output$reload_objs'
22781 hardcode_direct_F77=no
22782 ;;
22783 motorola)
22784 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22785 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22786 ;;
22787 esac
22788 runpath_var='LD_RUN_PATH'
22789 hardcode_shlibpath_var_F77=no
22790 ;;
22791
22792 sysv4.3*)
22793 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22794 hardcode_shlibpath_var_F77=no
22795 export_dynamic_flag_spec_F77='-Bexport'
22796 ;;
22797
22798 sysv4*MP*)
22799 if test -d /usr/nec; then
22800 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22801 hardcode_shlibpath_var_F77=no
22802 runpath_var=LD_RUN_PATH
22803 hardcode_runpath_var=yes
22804 ld_shlibs_F77=yes
22805 fi
22806 ;;
22807
Reid Spencera773bd52006-08-04 18:18:08 +000022808 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22809 no_undefined_flag_F77='${wl}-z,text'
22810 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022811 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022812 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022813
John Criswell47fdd832003-07-14 16:52:07 +000022814 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022815 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22816 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 +000022817 else
Reid Spencera773bd52006-08-04 18:18:08 +000022818 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22819 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 +000022820 fi
John Criswell47fdd832003-07-14 16:52:07 +000022821 ;;
22822
Reid Spencera773bd52006-08-04 18:18:08 +000022823 sysv5* | sco3.2v5* | sco5v6*)
22824 # Note: We can NOT use -z defs as we might desire, because we do not
22825 # link with -lc, and that would cause any symbols used from libc to
22826 # always be unresolved, which means just about no library would
22827 # ever link correctly. If we're not using GNU ld we use -z text
22828 # though, which does catch some bad symbols but isn't as heavy-handed
22829 # as -z defs.
22830 no_undefined_flag_F77='${wl}-z,text'
22831 allow_undefined_flag_F77='${wl}-z,nodefs'
22832 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022833 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022834 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22835 hardcode_libdir_separator_F77=':'
22836 link_all_deplibs_F77=yes
22837 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022838 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022839
22840 if test "$GCC" = yes; then
22841 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22842 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22843 else
22844 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22845 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22846 fi
John Criswell47fdd832003-07-14 16:52:07 +000022847 ;;
22848
22849 uts4*)
22850 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22851 hardcode_libdir_flag_spec_F77='-L$libdir'
22852 hardcode_shlibpath_var_F77=no
22853 ;;
22854
22855 *)
22856 ld_shlibs_F77=no
22857 ;;
22858 esac
22859 fi
22860
Reid Spencera773bd52006-08-04 18:18:08 +000022861{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22862echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022863test "$ld_shlibs_F77" = no && can_build_shared=no
22864
John Criswell47fdd832003-07-14 16:52:07 +000022865#
22866# Do we need to explicitly link libc?
22867#
22868case "x$archive_cmds_need_lc_F77" in
22869x|xyes)
22870 # Assume -lc should be added
22871 archive_cmds_need_lc_F77=yes
22872
22873 if test "$enable_shared" = yes && test "$GCC" = yes; then
22874 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022875 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022876 # FIXME: we may have to deal with multi-command sequences.
22877 ;;
22878 '$CC '*)
22879 # Test whether the compiler implicitly links with -lc since on some
22880 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22881 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022882 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22883echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022884 $rm conftest*
22885 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22886
22887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22888 (eval $ac_compile) 2>&5
22889 ac_status=$?
22890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891 (exit $ac_status); } 2>conftest.err; then
22892 soname=conftest
22893 lib=conftest
22894 libobjs=conftest.$ac_objext
22895 deplibs=
22896 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022897 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022898 compiler_flags=-v
22899 linker_flags=-v
22900 verstring=
22901 output_objdir=.
22902 libname=conftest
22903 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22904 allow_undefined_flag_F77=
22905 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22906 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22907 ac_status=$?
22908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909 (exit $ac_status); }
22910 then
22911 archive_cmds_need_lc_F77=no
22912 else
22913 archive_cmds_need_lc_F77=yes
22914 fi
22915 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22916 else
22917 cat conftest.err 1>&5
22918 fi
22919 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022920 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22921echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022922 ;;
22923 esac
22924 fi
22925 ;;
22926esac
22927
Reid Spencera773bd52006-08-04 18:18:08 +000022928{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22929echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022930library_names_spec=
22931libname_spec='lib$name'
22932soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022933shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022934postinstall_cmds=
22935postuninstall_cmds=
22936finish_cmds=
22937finish_eval=
22938shlibpath_var=
22939shlibpath_overrides_runpath=unknown
22940version_type=none
22941dynamic_linker="$host_os ld.so"
22942sys_lib_dlsearch_path_spec="/lib /usr/lib"
22943if test "$GCC" = yes; then
22944 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22945 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22946 # if the path contains ";" then we assume it to be the separator
22947 # otherwise default to the standard path separator (i.e. ":") - it is
22948 # assumed that no part of a normal pathname contains ";" but that should
22949 # okay in the real world where ";" in dirpaths is itself problematic.
22950 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22951 else
22952 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22953 fi
22954else
22955 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22956fi
22957need_lib_prefix=unknown
22958hardcode_into_libs=no
22959
22960# when you set need_version to no, make sure it does not cause -set_version
22961# flags to be left without arguments
22962need_version=unknown
22963
22964case $host_os in
22965aix3*)
22966 version_type=linux
22967 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22968 shlibpath_var=LIBPATH
22969
22970 # AIX 3 has no versioning support, so we append a major version to the name.
22971 soname_spec='${libname}${release}${shared_ext}$major'
22972 ;;
22973
22974aix4* | aix5*)
22975 version_type=linux
22976 need_lib_prefix=no
22977 need_version=no
22978 hardcode_into_libs=yes
22979 if test "$host_cpu" = ia64; then
22980 # AIX 5 supports IA64
22981 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22982 shlibpath_var=LD_LIBRARY_PATH
22983 else
22984 # With GCC up to 2.95.x, collect2 would create an import file
22985 # for dependence libraries. The import file would start with
22986 # the line `#! .'. This would cause the generated library to
22987 # depend on `.', always an invalid library. This was fixed in
22988 # development snapshots of GCC prior to 3.0.
22989 case $host_os in
22990 aix4 | aix4.[01] | aix4.[01].*)
22991 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22992 echo ' yes '
22993 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22994 :
22995 else
22996 can_build_shared=no
22997 fi
22998 ;;
22999 esac
23000 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23001 # soname into executable. Probably we can add versioning support to
23002 # collect2, so additional links can be useful in future.
23003 if test "$aix_use_runtimelinking" = yes; then
23004 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23005 # instead of lib<name>.a to let people know that these are not
23006 # typical AIX shared libraries.
23007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23008 else
23009 # We preserve .a as extension for shared libraries through AIX4.2
23010 # and later when we are not doing run time linking.
23011 library_names_spec='${libname}${release}.a $libname.a'
23012 soname_spec='${libname}${release}${shared_ext}$major'
23013 fi
23014 shlibpath_var=LIBPATH
23015 fi
23016 ;;
23017
23018amigaos*)
23019 library_names_spec='$libname.ixlibrary $libname.a'
23020 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023021 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 +000023022 ;;
23023
23024beos*)
23025 library_names_spec='${libname}${shared_ext}'
23026 dynamic_linker="$host_os ld.so"
23027 shlibpath_var=LIBRARY_PATH
23028 ;;
23029
Reid Spencer2706f8c2004-09-19 23:53:36 +000023030bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000023031 version_type=linux
23032 need_version=no
23033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23034 soname_spec='${libname}${release}${shared_ext}$major'
23035 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23036 shlibpath_var=LD_LIBRARY_PATH
23037 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23038 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23039 # the default ld.so.conf also contains /usr/contrib/lib and
23040 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23041 # libtool to hard-code these into programs
23042 ;;
23043
23044cygwin* | mingw* | pw32*)
23045 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000023046 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023047 need_version=no
23048 need_lib_prefix=no
23049
23050 case $GCC,$host_os in
23051 yes,cygwin* | yes,mingw* | yes,pw32*)
23052 library_names_spec='$libname.dll.a'
23053 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000023054 postinstall_cmds='base_file=`basename \${file}`~
23055 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23056 dldir=$destdir/`dirname \$dlpath`~
23057 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000023058 $install_prog $dir/$dlname \$dldir/$dlname~
23059 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000023060 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23061 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000023062 $rm \$dlpath'
23063 shlibpath_overrides_runpath=yes
23064
23065 case $host_os in
23066 cygwin*)
23067 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23068 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 +000023069 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023070 ;;
23071 mingw*)
23072 # MinGW DLLs use traditional 'lib' prefix
23073 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23074 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23075 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23076 # It is most probably a Windows format PATH printed by
23077 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23078 # path with ; separators, and with drive letters. We can handle the
23079 # drive letters (cygwin fileutils understands them), so leave them,
23080 # especially as we might pass files found there to a mingw objdump,
23081 # which wouldn't understand a cygwinified path. Ahh.
23082 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23083 else
23084 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23085 fi
23086 ;;
23087 pw32*)
23088 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000023089 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 +000023090 ;;
23091 esac
23092 ;;
23093
23094 *)
23095 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23096 ;;
23097 esac
23098 dynamic_linker='Win32 ld.exe'
23099 # FIXME: first we should search . and the directory the executable is in
23100 shlibpath_var=PATH
23101 ;;
23102
23103darwin* | rhapsody*)
23104 dynamic_linker="$host_os dyld"
23105 version_type=darwin
23106 need_lib_prefix=no
23107 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000023108 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000023109 soname_spec='${libname}${release}${major}$shared_ext'
23110 shlibpath_overrides_runpath=yes
23111 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000023112 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000023113 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023114 if test "$GCC" = yes; then
23115 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"`
23116 else
23117 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000023118 fi
23119 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23120 ;;
23121
23122dgux*)
23123 version_type=linux
23124 need_lib_prefix=no
23125 need_version=no
23126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23127 soname_spec='${libname}${release}${shared_ext}$major'
23128 shlibpath_var=LD_LIBRARY_PATH
23129 ;;
23130
23131freebsd1*)
23132 dynamic_linker=no
23133 ;;
23134
Reid Spencer2706f8c2004-09-19 23:53:36 +000023135kfreebsd*-gnu)
23136 version_type=linux
23137 need_lib_prefix=no
23138 need_version=no
23139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23140 soname_spec='${libname}${release}${shared_ext}$major'
23141 shlibpath_var=LD_LIBRARY_PATH
23142 shlibpath_overrides_runpath=no
23143 hardcode_into_libs=yes
23144 dynamic_linker='GNU ld.so'
23145 ;;
23146
Reid Spencera773bd52006-08-04 18:18:08 +000023147freebsd* | dragonfly*)
23148 # DragonFly does not have aout. When/if they implement a new
23149 # versioning mechanism, adjust this.
23150 if test -x /usr/bin/objformat; then
23151 objformat=`/usr/bin/objformat`
23152 else
23153 case $host_os in
23154 freebsd[123]*) objformat=aout ;;
23155 *) objformat=elf ;;
23156 esac
23157 fi
John Criswell47fdd832003-07-14 16:52:07 +000023158 version_type=freebsd-$objformat
23159 case $version_type in
23160 freebsd-elf*)
23161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23162 need_version=no
23163 need_lib_prefix=no
23164 ;;
23165 freebsd-*)
23166 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23167 need_version=yes
23168 ;;
23169 esac
23170 shlibpath_var=LD_LIBRARY_PATH
23171 case $host_os in
23172 freebsd2*)
23173 shlibpath_overrides_runpath=yes
23174 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023175 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000023176 shlibpath_overrides_runpath=yes
23177 hardcode_into_libs=yes
23178 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023179 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23180 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000023181 shlibpath_overrides_runpath=no
23182 hardcode_into_libs=yes
23183 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023184 freebsd*) # from 4.6 on
23185 shlibpath_overrides_runpath=yes
23186 hardcode_into_libs=yes
23187 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023188 esac
23189 ;;
23190
23191gnu*)
23192 version_type=linux
23193 need_lib_prefix=no
23194 need_version=no
23195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23196 soname_spec='${libname}${release}${shared_ext}$major'
23197 shlibpath_var=LD_LIBRARY_PATH
23198 hardcode_into_libs=yes
23199 ;;
23200
23201hpux9* | hpux10* | hpux11*)
23202 # Give a soname corresponding to the major version so that dld.sl refuses to
23203 # link against other versions.
23204 version_type=sunos
23205 need_lib_prefix=no
23206 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000023207 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023208 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023209 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000023210 hardcode_into_libs=yes
23211 dynamic_linker="$host_os dld.so"
23212 shlibpath_var=LD_LIBRARY_PATH
23213 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23215 soname_spec='${libname}${release}${shared_ext}$major'
23216 if test "X$HPUX_IA64_MODE" = X32; then
23217 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23218 else
23219 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23220 fi
23221 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23222 ;;
23223 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023224 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023225 hardcode_into_libs=yes
23226 dynamic_linker="$host_os dld.sl"
23227 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23228 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23230 soname_spec='${libname}${release}${shared_ext}$major'
23231 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23232 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23233 ;;
23234 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023235 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023236 dynamic_linker="$host_os dld.sl"
23237 shlibpath_var=SHLIB_PATH
23238 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23240 soname_spec='${libname}${release}${shared_ext}$major'
23241 ;;
23242 esac
23243 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23244 postinstall_cmds='chmod 555 $lib'
23245 ;;
23246
Reid Spencera773bd52006-08-04 18:18:08 +000023247interix3*)
23248 version_type=linux
23249 need_lib_prefix=no
23250 need_version=no
23251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23252 soname_spec='${libname}${release}${shared_ext}$major'
23253 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23254 shlibpath_var=LD_LIBRARY_PATH
23255 shlibpath_overrides_runpath=no
23256 hardcode_into_libs=yes
23257 ;;
23258
John Criswell47fdd832003-07-14 16:52:07 +000023259irix5* | irix6* | nonstopux*)
23260 case $host_os in
23261 nonstopux*) version_type=nonstopux ;;
23262 *)
23263 if test "$lt_cv_prog_gnu_ld" = yes; then
23264 version_type=linux
23265 else
23266 version_type=irix
23267 fi ;;
23268 esac
23269 need_lib_prefix=no
23270 need_version=no
23271 soname_spec='${libname}${release}${shared_ext}$major'
23272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23273 case $host_os in
23274 irix5* | nonstopux*)
23275 libsuff= shlibsuff=
23276 ;;
23277 *)
23278 case $LD in # libtool.m4 will add one of these switches to LD
23279 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23280 libsuff= shlibsuff= libmagic=32-bit;;
23281 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23282 libsuff=32 shlibsuff=N32 libmagic=N32;;
23283 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23284 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23285 *) libsuff= shlibsuff= libmagic=never-match;;
23286 esac
23287 ;;
23288 esac
23289 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23290 shlibpath_overrides_runpath=no
23291 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23292 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23293 hardcode_into_libs=yes
23294 ;;
23295
23296# No shared lib support for Linux oldld, aout, or coff.
23297linux*oldld* | linux*aout* | linux*coff*)
23298 dynamic_linker=no
23299 ;;
23300
23301# This must be Linux ELF.
23302linux*)
23303 version_type=linux
23304 need_lib_prefix=no
23305 need_version=no
23306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23307 soname_spec='${libname}${release}${shared_ext}$major'
23308 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23309 shlibpath_var=LD_LIBRARY_PATH
23310 shlibpath_overrides_runpath=no
23311 # This implies no fast_install, which is unacceptable.
23312 # Some rework will be needed to allow for fast_install
23313 # before this can be enabled.
23314 hardcode_into_libs=yes
23315
Reid Spencer2706f8c2004-09-19 23:53:36 +000023316 # Append ld.so.conf contents to the search path
23317 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000023318 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 +000023319 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23320 fi
23321
John Criswell47fdd832003-07-14 16:52:07 +000023322 # We used to test for /lib/ld.so.1 and disable shared libraries on
23323 # powerpc, because MkLinux only supported shared libraries with the
23324 # GNU dynamic linker. Since this was broken with cross compilers,
23325 # most powerpc-linux boxes support dynamic linking these days and
23326 # people can always --disable-shared, the test was removed, and we
23327 # assume the GNU/Linux dynamic linker is in use.
23328 dynamic_linker='GNU/Linux ld.so'
23329 ;;
23330
Reid Spencer2706f8c2004-09-19 23:53:36 +000023331knetbsd*-gnu)
23332 version_type=linux
23333 need_lib_prefix=no
23334 need_version=no
23335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23336 soname_spec='${libname}${release}${shared_ext}$major'
23337 shlibpath_var=LD_LIBRARY_PATH
23338 shlibpath_overrides_runpath=no
23339 hardcode_into_libs=yes
23340 dynamic_linker='GNU ld.so'
23341 ;;
23342
John Criswell47fdd832003-07-14 16:52:07 +000023343netbsd*)
23344 version_type=sunos
23345 need_lib_prefix=no
23346 need_version=no
23347 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23349 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23350 dynamic_linker='NetBSD (a.out) ld.so'
23351 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023353 soname_spec='${libname}${release}${shared_ext}$major'
23354 dynamic_linker='NetBSD ld.elf_so'
23355 fi
23356 shlibpath_var=LD_LIBRARY_PATH
23357 shlibpath_overrides_runpath=yes
23358 hardcode_into_libs=yes
23359 ;;
23360
23361newsos6)
23362 version_type=linux
23363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23364 shlibpath_var=LD_LIBRARY_PATH
23365 shlibpath_overrides_runpath=yes
23366 ;;
23367
Reid Spencer2706f8c2004-09-19 23:53:36 +000023368nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023369 version_type=linux
23370 need_lib_prefix=no
23371 need_version=no
23372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23373 soname_spec='${libname}${release}${shared_ext}$major'
23374 shlibpath_var=LD_LIBRARY_PATH
23375 shlibpath_overrides_runpath=yes
23376 ;;
23377
23378openbsd*)
23379 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023380 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023381 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023382 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23383 case $host_os in
23384 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23385 *) need_version=no ;;
23386 esac
John Criswell47fdd832003-07-14 16:52:07 +000023387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23388 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23389 shlibpath_var=LD_LIBRARY_PATH
23390 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23391 case $host_os in
23392 openbsd2.[89] | openbsd2.[89].*)
23393 shlibpath_overrides_runpath=no
23394 ;;
23395 *)
23396 shlibpath_overrides_runpath=yes
23397 ;;
23398 esac
23399 else
23400 shlibpath_overrides_runpath=yes
23401 fi
23402 ;;
23403
23404os2*)
23405 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023406 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023407 need_lib_prefix=no
23408 library_names_spec='$libname${shared_ext} $libname.a'
23409 dynamic_linker='OS/2 ld.exe'
23410 shlibpath_var=LIBPATH
23411 ;;
23412
23413osf3* | osf4* | osf5*)
23414 version_type=osf
23415 need_lib_prefix=no
23416 need_version=no
23417 soname_spec='${libname}${release}${shared_ext}$major'
23418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23419 shlibpath_var=LD_LIBRARY_PATH
23420 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23421 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23422 ;;
23423
John Criswell47fdd832003-07-14 16:52:07 +000023424solaris*)
23425 version_type=linux
23426 need_lib_prefix=no
23427 need_version=no
23428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23429 soname_spec='${libname}${release}${shared_ext}$major'
23430 shlibpath_var=LD_LIBRARY_PATH
23431 shlibpath_overrides_runpath=yes
23432 hardcode_into_libs=yes
23433 # ldd complains unless libraries are executable
23434 postinstall_cmds='chmod +x $lib'
23435 ;;
23436
23437sunos4*)
23438 version_type=sunos
23439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23440 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23441 shlibpath_var=LD_LIBRARY_PATH
23442 shlibpath_overrides_runpath=yes
23443 if test "$with_gnu_ld" = yes; then
23444 need_lib_prefix=no
23445 fi
23446 need_version=yes
23447 ;;
23448
Reid Spencera773bd52006-08-04 18:18:08 +000023449sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023450 version_type=linux
23451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23452 soname_spec='${libname}${release}${shared_ext}$major'
23453 shlibpath_var=LD_LIBRARY_PATH
23454 case $host_vendor in
23455 sni)
23456 shlibpath_overrides_runpath=no
23457 need_lib_prefix=no
23458 export_dynamic_flag_spec='${wl}-Blargedynsym'
23459 runpath_var=LD_RUN_PATH
23460 ;;
23461 siemens)
23462 need_lib_prefix=no
23463 ;;
23464 motorola)
23465 need_lib_prefix=no
23466 need_version=no
23467 shlibpath_overrides_runpath=no
23468 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23469 ;;
23470 esac
23471 ;;
23472
23473sysv4*MP*)
23474 if test -d /usr/nec ;then
23475 version_type=linux
23476 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23477 soname_spec='$libname${shared_ext}.$major'
23478 shlibpath_var=LD_LIBRARY_PATH
23479 fi
23480 ;;
23481
Reid Spencera773bd52006-08-04 18:18:08 +000023482sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23483 version_type=freebsd-elf
23484 need_lib_prefix=no
23485 need_version=no
23486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23487 soname_spec='${libname}${release}${shared_ext}$major'
23488 shlibpath_var=LD_LIBRARY_PATH
23489 hardcode_into_libs=yes
23490 if test "$with_gnu_ld" = yes; then
23491 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23492 shlibpath_overrides_runpath=no
23493 else
23494 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23495 shlibpath_overrides_runpath=yes
23496 case $host_os in
23497 sco3.2v5*)
23498 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23499 ;;
23500 esac
23501 fi
23502 sys_lib_dlsearch_path_spec='/usr/lib'
23503 ;;
23504
John Criswell47fdd832003-07-14 16:52:07 +000023505uts4*)
23506 version_type=linux
23507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23508 soname_spec='${libname}${release}${shared_ext}$major'
23509 shlibpath_var=LD_LIBRARY_PATH
23510 ;;
23511
23512*)
23513 dynamic_linker=no
23514 ;;
23515esac
Reid Spencera773bd52006-08-04 18:18:08 +000023516{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23517echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023518test "$dynamic_linker" = no && can_build_shared=no
23519
Reid Spencera773bd52006-08-04 18:18:08 +000023520variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23521if test "$GCC" = yes; then
23522 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23523fi
23524
23525{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23526echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023527hardcode_action_F77=
23528if test -n "$hardcode_libdir_flag_spec_F77" || \
23529 test -n "$runpath_var_F77" || \
23530 test "X$hardcode_automatic_F77" = "Xyes" ; then
23531
23532 # We can hardcode non-existant directories.
23533 if test "$hardcode_direct_F77" != no &&
23534 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23535 # have to relink, otherwise we might link with an installed library
23536 # when we should be linking with a yet-to-be-installed one
23537 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23538 test "$hardcode_minus_L_F77" != no; then
23539 # Linking always hardcodes the temporary library directory.
23540 hardcode_action_F77=relink
23541 else
23542 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23543 hardcode_action_F77=immediate
23544 fi
23545else
23546 # We cannot hardcode anything, or else we can only hardcode existing
23547 # directories.
23548 hardcode_action_F77=unsupported
23549fi
Reid Spencera773bd52006-08-04 18:18:08 +000023550{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23551echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023552
23553if test "$hardcode_action_F77" = relink; then
23554 # Fast installation is not supported
23555 enable_fast_install=no
23556elif test "$shlibpath_overrides_runpath" = yes ||
23557 test "$enable_shared" = no; then
23558 # Fast installation is not necessary
23559 enable_fast_install=needless
23560fi
23561
John Criswell47fdd832003-07-14 16:52:07 +000023562
23563# The else clause should only fire when bootstrapping the
23564# libtool distribution, otherwise you forgot to ship ltmain.sh
23565# with your package, and you will get complaints that there are
23566# no rules to generate ltmain.sh.
23567if test -f "$ltmain"; then
23568 # See if we are running on zsh, and set the options which allow our commands through
23569 # without removal of \ escapes.
23570 if test -n "${ZSH_VERSION+set}" ; then
23571 setopt NO_GLOB_SUBST
23572 fi
23573 # Now quote all the things that may contain metacharacters while being
23574 # careful not to overquote the AC_SUBSTed values. We take copies of the
23575 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023576 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 +000023577 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023578 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23579 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23580 deplibs_check_method reload_flag reload_cmds need_locks \
23581 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23582 lt_cv_sys_global_symbol_to_c_name_address \
23583 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23584 old_postinstall_cmds old_postuninstall_cmds \
23585 compiler_F77 \
23586 CC_F77 \
23587 LD_F77 \
23588 lt_prog_compiler_wl_F77 \
23589 lt_prog_compiler_pic_F77 \
23590 lt_prog_compiler_static_F77 \
23591 lt_prog_compiler_no_builtin_flag_F77 \
23592 export_dynamic_flag_spec_F77 \
23593 thread_safe_flag_spec_F77 \
23594 whole_archive_flag_spec_F77 \
23595 enable_shared_with_static_runtimes_F77 \
23596 old_archive_cmds_F77 \
23597 old_archive_from_new_cmds_F77 \
23598 predep_objects_F77 \
23599 postdep_objects_F77 \
23600 predeps_F77 \
23601 postdeps_F77 \
23602 compiler_lib_search_path_F77 \
23603 archive_cmds_F77 \
23604 archive_expsym_cmds_F77 \
23605 postinstall_cmds_F77 \
23606 postuninstall_cmds_F77 \
23607 old_archive_from_expsyms_cmds_F77 \
23608 allow_undefined_flag_F77 \
23609 no_undefined_flag_F77 \
23610 export_symbols_cmds_F77 \
23611 hardcode_libdir_flag_spec_F77 \
23612 hardcode_libdir_flag_spec_ld_F77 \
23613 hardcode_libdir_separator_F77 \
23614 hardcode_automatic_F77 \
23615 module_cmds_F77 \
23616 module_expsym_cmds_F77 \
23617 lt_cv_prog_compiler_c_o_F77 \
23618 exclude_expsyms_F77 \
23619 include_expsyms_F77; do
23620
23621 case $var in
23622 old_archive_cmds_F77 | \
23623 old_archive_from_new_cmds_F77 | \
23624 archive_cmds_F77 | \
23625 archive_expsym_cmds_F77 | \
23626 module_cmds_F77 | \
23627 module_expsym_cmds_F77 | \
23628 old_archive_from_expsyms_cmds_F77 | \
23629 export_symbols_cmds_F77 | \
23630 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23631 postinstall_cmds | postuninstall_cmds | \
23632 old_postinstall_cmds | old_postuninstall_cmds | \
23633 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23634 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023635 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 +000023636 ;;
23637 *)
23638 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23639 ;;
23640 esac
23641 done
23642
23643 case $lt_echo in
23644 *'\$0 --fallback-echo"')
23645 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23646 ;;
23647 esac
23648
23649cfgfile="$ofile"
23650
23651 cat <<__EOF__ >> "$cfgfile"
23652# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23653
23654# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23655
23656# Shell to use when invoking shell scripts.
23657SHELL=$lt_SHELL
23658
23659# Whether or not to build shared libraries.
23660build_libtool_libs=$enable_shared
23661
23662# Whether or not to build static libraries.
23663build_old_libs=$enable_static
23664
23665# Whether or not to add -lc for building shared libraries.
23666build_libtool_need_lc=$archive_cmds_need_lc_F77
23667
23668# Whether or not to disallow shared libs when runtime libs are static
23669allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23670
23671# Whether or not to optimize for fast installation.
23672fast_install=$enable_fast_install
23673
23674# The host system.
23675host_alias=$host_alias
23676host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023677host_os=$host_os
23678
23679# The build system.
23680build_alias=$build_alias
23681build=$build
23682build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023683
23684# An echo program that does not interpret backslashes.
23685echo=$lt_echo
23686
23687# The archiver.
23688AR=$lt_AR
23689AR_FLAGS=$lt_AR_FLAGS
23690
23691# A C compiler.
23692LTCC=$lt_LTCC
23693
Reid Spencera773bd52006-08-04 18:18:08 +000023694# LTCC compiler flags.
23695LTCFLAGS=$lt_LTCFLAGS
23696
John Criswell47fdd832003-07-14 16:52:07 +000023697# A language-specific compiler.
23698CC=$lt_compiler_F77
23699
23700# Is the compiler the GNU C compiler?
23701with_gcc=$GCC_F77
23702
23703# An ERE matcher.
23704EGREP=$lt_EGREP
23705
23706# The linker used to build libraries.
23707LD=$lt_LD_F77
23708
23709# Whether we need hard or soft links.
23710LN_S=$lt_LN_S
23711
23712# A BSD-compatible nm program.
23713NM=$lt_NM
23714
23715# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023716STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023717
23718# Used to examine libraries when file_magic_cmd begins "file"
23719MAGIC_CMD=$MAGIC_CMD
23720
23721# Used on cygwin: DLL creation program.
23722DLLTOOL="$DLLTOOL"
23723
23724# Used on cygwin: object dumper.
23725OBJDUMP="$OBJDUMP"
23726
23727# Used on cygwin: assembler.
23728AS="$AS"
23729
23730# The name of the directory that contains temporary libtool files.
23731objdir=$objdir
23732
23733# How to create reloadable object files.
23734reload_flag=$lt_reload_flag
23735reload_cmds=$lt_reload_cmds
23736
23737# How to pass a linker flag through the compiler.
23738wl=$lt_lt_prog_compiler_wl_F77
23739
23740# Object file suffix (normally "o").
23741objext="$ac_objext"
23742
23743# Old archive suffix (normally "a").
23744libext="$libext"
23745
23746# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023747shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023748
23749# Executable file suffix (normally "").
23750exeext="$exeext"
23751
23752# Additional compiler flags for building library objects.
23753pic_flag=$lt_lt_prog_compiler_pic_F77
23754pic_mode=$pic_mode
23755
23756# What is the maximum length of a command?
23757max_cmd_len=$lt_cv_sys_max_cmd_len
23758
23759# Does compiler simultaneously support -c and -o options?
23760compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23761
Reid Spencera773bd52006-08-04 18:18:08 +000023762# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023763need_locks=$lt_need_locks
23764
23765# Do we need the lib prefix for modules?
23766need_lib_prefix=$need_lib_prefix
23767
23768# Do we need a version for libraries?
23769need_version=$need_version
23770
23771# Whether dlopen is supported.
23772dlopen_support=$enable_dlopen
23773
23774# Whether dlopen of programs is supported.
23775dlopen_self=$enable_dlopen_self
23776
23777# Whether dlopen of statically linked programs is supported.
23778dlopen_self_static=$enable_dlopen_self_static
23779
23780# Compiler flag to prevent dynamic linking.
23781link_static_flag=$lt_lt_prog_compiler_static_F77
23782
23783# Compiler flag to turn off builtin functions.
23784no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23785
23786# Compiler flag to allow reflexive dlopens.
23787export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23788
23789# Compiler flag to generate shared objects directly from archives.
23790whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23791
23792# Compiler flag to generate thread-safe objects.
23793thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23794
23795# Library versioning type.
23796version_type=$version_type
23797
23798# Format of library name prefix.
23799libname_spec=$lt_libname_spec
23800
23801# List of archive names. First name is the real one, the rest are links.
23802# The last name is the one that the linker finds with -lNAME.
23803library_names_spec=$lt_library_names_spec
23804
23805# The coded name of the library, if different from the real name.
23806soname_spec=$lt_soname_spec
23807
23808# Commands used to build and install an old-style archive.
23809RANLIB=$lt_RANLIB
23810old_archive_cmds=$lt_old_archive_cmds_F77
23811old_postinstall_cmds=$lt_old_postinstall_cmds
23812old_postuninstall_cmds=$lt_old_postuninstall_cmds
23813
23814# Create an old-style archive from a shared archive.
23815old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23816
23817# Create a temporary old-style archive to link instead of a shared archive.
23818old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23819
23820# Commands used to build and install a shared archive.
23821archive_cmds=$lt_archive_cmds_F77
23822archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23823postinstall_cmds=$lt_postinstall_cmds
23824postuninstall_cmds=$lt_postuninstall_cmds
23825
23826# Commands used to build a loadable module (assumed same as above if empty)
23827module_cmds=$lt_module_cmds_F77
23828module_expsym_cmds=$lt_module_expsym_cmds_F77
23829
23830# Commands to strip libraries.
23831old_striplib=$lt_old_striplib
23832striplib=$lt_striplib
23833
23834# Dependencies to place before the objects being linked to create a
23835# shared library.
23836predep_objects=$lt_predep_objects_F77
23837
23838# Dependencies to place after the objects being linked to create a
23839# shared library.
23840postdep_objects=$lt_postdep_objects_F77
23841
23842# Dependencies to place before the objects being linked to create a
23843# shared library.
23844predeps=$lt_predeps_F77
23845
23846# Dependencies to place after the objects being linked to create a
23847# shared library.
23848postdeps=$lt_postdeps_F77
23849
23850# The library search path used internally by the compiler when linking
23851# a shared library.
23852compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23853
23854# Method to check whether dependent libraries are shared objects.
23855deplibs_check_method=$lt_deplibs_check_method
23856
23857# Command to use when deplibs_check_method == file_magic.
23858file_magic_cmd=$lt_file_magic_cmd
23859
23860# Flag that allows shared libraries with undefined symbols to be built.
23861allow_undefined_flag=$lt_allow_undefined_flag_F77
23862
23863# Flag that forces no undefined symbols.
23864no_undefined_flag=$lt_no_undefined_flag_F77
23865
23866# Commands used to finish a libtool library installation in a directory.
23867finish_cmds=$lt_finish_cmds
23868
23869# Same as above, but a single script fragment to be evaled but not shown.
23870finish_eval=$lt_finish_eval
23871
23872# Take the output of nm and produce a listing of raw symbols and C names.
23873global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23874
23875# Transform the output of nm in a proper C declaration
23876global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23877
23878# Transform the output of nm in a C name address pair
23879global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23880
23881# This is the shared library runtime path variable.
23882runpath_var=$runpath_var
23883
23884# This is the shared library path variable.
23885shlibpath_var=$shlibpath_var
23886
23887# Is shlibpath searched before the hard-coded library search path?
23888shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23889
23890# How to hardcode a shared library path into an executable.
23891hardcode_action=$hardcode_action_F77
23892
23893# Whether we should hardcode library paths into libraries.
23894hardcode_into_libs=$hardcode_into_libs
23895
23896# Flag to hardcode \$libdir into a binary during linking.
23897# This must work even if \$libdir does not exist.
23898hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23899
23900# If ld is used when linking, flag to hardcode \$libdir into
23901# a binary during linking. This must work even if \$libdir does
23902# not exist.
23903hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23904
23905# Whether we need a single -rpath flag with a separated argument.
23906hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23907
23908# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23909# resulting binary.
23910hardcode_direct=$hardcode_direct_F77
23911
23912# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23913# resulting binary.
23914hardcode_minus_L=$hardcode_minus_L_F77
23915
23916# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23917# the resulting binary.
23918hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23919
23920# Set to yes if building a shared library automatically hardcodes DIR into the library
23921# and all subsequent libraries and executables linked against it.
23922hardcode_automatic=$hardcode_automatic_F77
23923
23924# Variables whose values should be saved in libtool wrapper scripts and
23925# restored at relink time.
23926variables_saved_for_relink="$variables_saved_for_relink"
23927
23928# Whether libtool must link a program against all its dependency libraries.
23929link_all_deplibs=$link_all_deplibs_F77
23930
23931# Compile-time system search path for libraries
23932sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23933
23934# Run-time system search path for libraries
23935sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23936
23937# Fix the shell variable \$srcfile for the compiler.
23938fix_srcfile_path="$fix_srcfile_path_F77"
23939
23940# Set to yes if exported symbols are required.
23941always_export_symbols=$always_export_symbols_F77
23942
23943# The commands to list exported symbols.
23944export_symbols_cmds=$lt_export_symbols_cmds_F77
23945
23946# The commands to extract the exported symbol list from a shared archive.
23947extract_expsyms_cmds=$lt_extract_expsyms_cmds
23948
23949# Symbols that should not be listed in the preloaded symbols.
23950exclude_expsyms=$lt_exclude_expsyms_F77
23951
23952# Symbols that must always be exported.
23953include_expsyms=$lt_include_expsyms_F77
23954
23955# ### END LIBTOOL TAG CONFIG: $tagname
23956
23957__EOF__
23958
23959
23960else
23961 # If there is no Makefile yet, we rely on a make rule to execute
23962 # `config.status --recheck' to rerun these tests and create the
23963 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023964 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23965 if test -f "$ltmain_in"; then
23966 test -f Makefile && make "$ltmain"
23967 fi
John Criswell47fdd832003-07-14 16:52:07 +000023968fi
23969
23970
23971ac_ext=c
23972ac_cpp='$CPP $CPPFLAGS'
23973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23975ac_compiler_gnu=$ac_cv_c_compiler_gnu
23976
23977CC="$lt_save_CC"
23978
23979 else
23980 tagname=""
23981 fi
23982 ;;
23983
23984 GCJ)
23985 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023986 ac_ext=c
23987ac_cpp='$CPP $CPPFLAGS'
23988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23990ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023991
23992
23993# Source file extension for Java test sources.
23994ac_ext=java
23995
23996# Object file extension for compiled Java test sources.
23997objext=o
23998objext_GCJ=$objext
23999
24000# Code to be used in simple compile tests
24001lt_simple_compile_test_code="class foo {}\n"
24002
24003# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000024004lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000024005
24006# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24007
24008# If no C compiler was specified, use CC.
24009LTCC=${LTCC-"$CC"}
24010
Reid Spencera773bd52006-08-04 18:18:08 +000024011# If no C compiler flags were specified, use CFLAGS.
24012LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24013
John Criswell47fdd832003-07-14 16:52:07 +000024014# Allow CC to be a program name with arguments.
24015compiler=$CC
24016
24017
Reid Spencera773bd52006-08-04 18:18:08 +000024018# save warnings/boilerplate of simple test code
24019ac_outfile=conftest.$ac_objext
24020printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24021eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24022_lt_compiler_boilerplate=`cat conftest.err`
24023$rm conftest*
24024
24025ac_outfile=conftest.$ac_objext
24026printf "$lt_simple_link_test_code" >conftest.$ac_ext
24027eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24028_lt_linker_boilerplate=`cat conftest.err`
24029$rm conftest*
24030
24031
John Criswell47fdd832003-07-14 16:52:07 +000024032# Allow CC to be a program name with arguments.
24033lt_save_CC="$CC"
24034CC=${GCJ-"gcj"}
24035compiler=$CC
24036compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000024037for cc_temp in $compiler""; do
24038 case $cc_temp in
24039 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24040 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24041 \-*) ;;
24042 *) break;;
24043 esac
24044done
24045cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24046
John Criswell47fdd832003-07-14 16:52:07 +000024047
24048# GCJ did not exist at the time GCC didn't implicitly link libc in.
24049archive_cmds_need_lc_GCJ=no
24050
Reid Spencera773bd52006-08-04 18:18:08 +000024051old_archive_cmds_GCJ=$old_archive_cmds
24052
John Criswell47fdd832003-07-14 16:52:07 +000024053
24054lt_prog_compiler_no_builtin_flag_GCJ=
24055
24056if test "$GCC" = yes; then
24057 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24058
Reid Spencer2706f8c2004-09-19 23:53:36 +000024059
Reid Spencera773bd52006-08-04 18:18:08 +000024060{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24061echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024062if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24063 echo $ECHO_N "(cached) $ECHO_C" >&6
24064else
24065 lt_cv_prog_compiler_rtti_exceptions=no
24066 ac_outfile=conftest.$ac_objext
24067 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24068 lt_compiler_flag="-fno-rtti -fno-exceptions"
24069 # Insert the option either (1) after the last *FLAGS variable, or
24070 # (2) before a word containing "conftest.", or (3) at the end.
24071 # Note that $ac_compile itself does not contain backslashes and begins
24072 # with a dollar sign (not a hyphen), so the echo should work correctly.
24073 # The option is referenced via a variable to avoid confusing sed.
24074 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024075 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024076 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24077 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000024078 (eval echo "\"\$as_me:24083: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024079 (eval "$lt_compile" 2>conftest.err)
24080 ac_status=$?
24081 cat conftest.err >&5
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000024082 echo "$as_me:24087: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024083 if (exit $ac_status) && test -s "$ac_outfile"; then
24084 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024085 # So say no if there are warnings other than the usual output.
24086 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24087 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24088 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024089 lt_cv_prog_compiler_rtti_exceptions=yes
24090 fi
24091 fi
24092 $rm conftest*
24093
24094fi
Reid Spencera773bd52006-08-04 18:18:08 +000024095{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24096echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024097
24098if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24099 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24100else
24101 :
24102fi
24103
24104fi
24105
24106lt_prog_compiler_wl_GCJ=
24107lt_prog_compiler_pic_GCJ=
24108lt_prog_compiler_static_GCJ=
24109
Reid Spencera773bd52006-08-04 18:18:08 +000024110{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24111echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024112
24113 if test "$GCC" = yes; then
24114 lt_prog_compiler_wl_GCJ='-Wl,'
24115 lt_prog_compiler_static_GCJ='-static'
24116
24117 case $host_os in
24118 aix*)
24119 # All AIX code is PIC.
24120 if test "$host_cpu" = ia64; then
24121 # AIX 5 now supports IA64 processor
24122 lt_prog_compiler_static_GCJ='-Bstatic'
24123 fi
24124 ;;
24125
24126 amigaos*)
24127 # FIXME: we need at least 68020 code to build shared libraries, but
24128 # adding the `-m68020' flag to GCC prevents building anything better,
24129 # like `-m68040'.
24130 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24131 ;;
24132
24133 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24134 # PIC is the default for these OSes.
24135 ;;
24136
24137 mingw* | pw32* | os2*)
24138 # This hack is so that the source file can tell whether it is being
24139 # built for inclusion in a dll (and should export symbols for example).
24140 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24141 ;;
24142
24143 darwin* | rhapsody*)
24144 # PIC is the default on this platform
24145 # Common symbols not allowed in MH_DYLIB files
24146 lt_prog_compiler_pic_GCJ='-fno-common'
24147 ;;
24148
Reid Spencera773bd52006-08-04 18:18:08 +000024149 interix3*)
24150 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24151 # Instead, we relocate shared libraries at runtime.
24152 ;;
24153
John Criswell47fdd832003-07-14 16:52:07 +000024154 msdosdjgpp*)
24155 # Just because we use GCC doesn't mean we suddenly get shared libraries
24156 # on systems that don't support them.
24157 lt_prog_compiler_can_build_shared_GCJ=no
24158 enable_shared=no
24159 ;;
24160
24161 sysv4*MP*)
24162 if test -d /usr/nec; then
24163 lt_prog_compiler_pic_GCJ=-Kconform_pic
24164 fi
24165 ;;
24166
24167 hpux*)
24168 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24169 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024170 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024171 hppa*64*|ia64*)
24172 # +Z the default
24173 ;;
24174 *)
24175 lt_prog_compiler_pic_GCJ='-fPIC'
24176 ;;
24177 esac
24178 ;;
24179
24180 *)
24181 lt_prog_compiler_pic_GCJ='-fPIC'
24182 ;;
24183 esac
24184 else
24185 # PORTME Check for flag to pass linker flags through the system compiler.
24186 case $host_os in
24187 aix*)
24188 lt_prog_compiler_wl_GCJ='-Wl,'
24189 if test "$host_cpu" = ia64; then
24190 # AIX 5 now supports IA64 processor
24191 lt_prog_compiler_static_GCJ='-Bstatic'
24192 else
24193 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24194 fi
24195 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024196 darwin*)
24197 # PIC is the default on this platform
24198 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000024199 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024200 xlc*)
24201 lt_prog_compiler_pic_GCJ='-qnocommon'
24202 lt_prog_compiler_wl_GCJ='-Wl,'
24203 ;;
24204 esac
24205 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024206
24207 mingw* | pw32* | os2*)
24208 # This hack is so that the source file can tell whether it is being
24209 # built for inclusion in a dll (and should export symbols for example).
24210 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24211 ;;
24212
24213 hpux9* | hpux10* | hpux11*)
24214 lt_prog_compiler_wl_GCJ='-Wl,'
24215 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24216 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024217 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024218 hppa*64*|ia64*)
24219 # +Z the default
24220 ;;
24221 *)
24222 lt_prog_compiler_pic_GCJ='+Z'
24223 ;;
24224 esac
24225 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24226 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24227 ;;
24228
24229 irix5* | irix6* | nonstopux*)
24230 lt_prog_compiler_wl_GCJ='-Wl,'
24231 # PIC (with -KPIC) is the default.
24232 lt_prog_compiler_static_GCJ='-non_shared'
24233 ;;
24234
24235 newsos6)
24236 lt_prog_compiler_pic_GCJ='-KPIC'
24237 lt_prog_compiler_static_GCJ='-Bstatic'
24238 ;;
24239
24240 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000024241 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024242 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000024243 lt_prog_compiler_wl_GCJ='-Wl,'
24244 lt_prog_compiler_pic_GCJ='-KPIC'
24245 lt_prog_compiler_static_GCJ='-static'
24246 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024247 pgcc* | pgf77* | pgf90* | pgf95*)
24248 # Portland Group compilers (*not* the Pentium gcc compiler,
24249 # which looks to be a dead project)
24250 lt_prog_compiler_wl_GCJ='-Wl,'
24251 lt_prog_compiler_pic_GCJ='-fpic'
24252 lt_prog_compiler_static_GCJ='-Bstatic'
24253 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024254 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000024255 lt_prog_compiler_wl_GCJ='-Wl,'
24256 # All Alpha code is PIC.
24257 lt_prog_compiler_static_GCJ='-non_shared'
24258 ;;
24259 esac
24260 ;;
24261
24262 osf3* | osf4* | osf5*)
24263 lt_prog_compiler_wl_GCJ='-Wl,'
24264 # All OSF/1 code is PIC.
24265 lt_prog_compiler_static_GCJ='-non_shared'
24266 ;;
24267
John Criswell47fdd832003-07-14 16:52:07 +000024268 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024269 lt_prog_compiler_pic_GCJ='-KPIC'
24270 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000024271 case $cc_basename in
24272 f77* | f90* | f95*)
24273 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24274 *)
24275 lt_prog_compiler_wl_GCJ='-Wl,';;
24276 esac
John Criswell47fdd832003-07-14 16:52:07 +000024277 ;;
24278
24279 sunos4*)
24280 lt_prog_compiler_wl_GCJ='-Qoption ld '
24281 lt_prog_compiler_pic_GCJ='-PIC'
24282 lt_prog_compiler_static_GCJ='-Bstatic'
24283 ;;
24284
Reid Spencera773bd52006-08-04 18:18:08 +000024285 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024286 lt_prog_compiler_wl_GCJ='-Wl,'
24287 lt_prog_compiler_pic_GCJ='-KPIC'
24288 lt_prog_compiler_static_GCJ='-Bstatic'
24289 ;;
24290
24291 sysv4*MP*)
24292 if test -d /usr/nec ;then
24293 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24294 lt_prog_compiler_static_GCJ='-Bstatic'
24295 fi
24296 ;;
24297
Reid Spencera773bd52006-08-04 18:18:08 +000024298 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24299 lt_prog_compiler_wl_GCJ='-Wl,'
24300 lt_prog_compiler_pic_GCJ='-KPIC'
24301 lt_prog_compiler_static_GCJ='-Bstatic'
24302 ;;
24303
24304 unicos*)
24305 lt_prog_compiler_wl_GCJ='-Wl,'
24306 lt_prog_compiler_can_build_shared_GCJ=no
24307 ;;
24308
John Criswell47fdd832003-07-14 16:52:07 +000024309 uts4*)
24310 lt_prog_compiler_pic_GCJ='-pic'
24311 lt_prog_compiler_static_GCJ='-Bstatic'
24312 ;;
24313
24314 *)
24315 lt_prog_compiler_can_build_shared_GCJ=no
24316 ;;
24317 esac
24318 fi
24319
Reid Spencera773bd52006-08-04 18:18:08 +000024320{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24321echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024322
24323#
24324# Check to make sure the PIC flag actually works.
24325#
24326if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024327
Reid Spencera773bd52006-08-04 18:18:08 +000024328{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24329echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024330if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24331 echo $ECHO_N "(cached) $ECHO_C" >&6
24332else
24333 lt_prog_compiler_pic_works_GCJ=no
24334 ac_outfile=conftest.$ac_objext
24335 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24336 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24337 # Insert the option either (1) after the last *FLAGS variable, or
24338 # (2) before a word containing "conftest.", or (3) at the end.
24339 # Note that $ac_compile itself does not contain backslashes and begins
24340 # with a dollar sign (not a hyphen), so the echo should work correctly.
24341 # The option is referenced via a variable to avoid confusing sed.
24342 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024343 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24345 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000024346 (eval echo "\"\$as_me:24351: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024347 (eval "$lt_compile" 2>conftest.err)
24348 ac_status=$?
24349 cat conftest.err >&5
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000024350 echo "$as_me:24355: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024351 if (exit $ac_status) && test -s "$ac_outfile"; then
24352 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024353 # So say no if there are warnings other than the usual output.
24354 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24355 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24356 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024357 lt_prog_compiler_pic_works_GCJ=yes
24358 fi
24359 fi
24360 $rm conftest*
24361
24362fi
Reid Spencera773bd52006-08-04 18:18:08 +000024363{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24364echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024365
24366if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24367 case $lt_prog_compiler_pic_GCJ in
24368 "" | " "*) ;;
24369 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24370 esac
24371else
24372 lt_prog_compiler_pic_GCJ=
24373 lt_prog_compiler_can_build_shared_GCJ=no
24374fi
24375
24376fi
Reid Spencera773bd52006-08-04 18:18:08 +000024377case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024378 # For platforms which do not support PIC, -DPIC is meaningless:
24379 *djgpp*)
24380 lt_prog_compiler_pic_GCJ=
24381 ;;
24382 *)
24383 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24384 ;;
24385esac
24386
Reid Spencera773bd52006-08-04 18:18:08 +000024387#
24388# Check to make sure the static flag actually works.
24389#
24390wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24391{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24392echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24393if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24394 echo $ECHO_N "(cached) $ECHO_C" >&6
24395else
24396 lt_prog_compiler_static_works_GCJ=no
24397 save_LDFLAGS="$LDFLAGS"
24398 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24399 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24400 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24401 # The linker can only warn and ignore the option if not recognized
24402 # So say no if there are warnings
24403 if test -s conftest.err; then
24404 # Append any errors to the config.log.
24405 cat conftest.err 1>&5
24406 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24407 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24408 if diff conftest.exp conftest.er2 >/dev/null; then
24409 lt_prog_compiler_static_works_GCJ=yes
24410 fi
24411 else
24412 lt_prog_compiler_static_works_GCJ=yes
24413 fi
24414 fi
24415 $rm conftest*
24416 LDFLAGS="$save_LDFLAGS"
24417
24418fi
24419{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24420echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24421
24422if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24423 :
24424else
24425 lt_prog_compiler_static_GCJ=
24426fi
24427
24428
24429{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24430echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024431if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24432 echo $ECHO_N "(cached) $ECHO_C" >&6
24433else
24434 lt_cv_prog_compiler_c_o_GCJ=no
24435 $rm -r conftest 2>/dev/null
24436 mkdir conftest
24437 cd conftest
24438 mkdir out
24439 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24440
John Criswell47fdd832003-07-14 16:52:07 +000024441 lt_compiler_flag="-o out/conftest2.$ac_objext"
24442 # Insert the option either (1) after the last *FLAGS variable, or
24443 # (2) before a word containing "conftest.", or (3) at the end.
24444 # Note that $ac_compile itself does not contain backslashes and begins
24445 # with a dollar sign (not a hyphen), so the echo should work correctly.
24446 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024447 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24449 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000024450 (eval echo "\"\$as_me:24455: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024451 (eval "$lt_compile" 2>out/conftest.err)
24452 ac_status=$?
24453 cat out/conftest.err >&5
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000024454 echo "$as_me:24459: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024455 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24456 then
24457 # The compiler can only warn and ignore the option if not recognized
24458 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024459 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24460 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24461 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024462 lt_cv_prog_compiler_c_o_GCJ=yes
24463 fi
24464 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024465 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024466 $rm conftest*
24467 # SGI C++ compiler will create directory out/ii_files/ for
24468 # template instantiation
24469 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24470 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024471 cd ..
24472 rmdir conftest
24473 $rm conftest*
24474
24475fi
Reid Spencera773bd52006-08-04 18:18:08 +000024476{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24477echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024478
24479
24480hard_links="nottested"
24481if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24482 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024483 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24484echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024485 hard_links=yes
24486 $rm conftest*
24487 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24488 touch conftest.a
24489 ln conftest.a conftest.b 2>&5 || hard_links=no
24490 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024491 { echo "$as_me:$LINENO: result: $hard_links" >&5
24492echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024493 if test "$hard_links" = no; then
24494 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24495echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24496 need_locks=warn
24497 fi
24498else
24499 need_locks=no
24500fi
24501
Reid Spencera773bd52006-08-04 18:18:08 +000024502{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24503echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024504
24505 runpath_var=
24506 allow_undefined_flag_GCJ=
24507 enable_shared_with_static_runtimes_GCJ=no
24508 archive_cmds_GCJ=
24509 archive_expsym_cmds_GCJ=
24510 old_archive_From_new_cmds_GCJ=
24511 old_archive_from_expsyms_cmds_GCJ=
24512 export_dynamic_flag_spec_GCJ=
24513 whole_archive_flag_spec_GCJ=
24514 thread_safe_flag_spec_GCJ=
24515 hardcode_libdir_flag_spec_GCJ=
24516 hardcode_libdir_flag_spec_ld_GCJ=
24517 hardcode_libdir_separator_GCJ=
24518 hardcode_direct_GCJ=no
24519 hardcode_minus_L_GCJ=no
24520 hardcode_shlibpath_var_GCJ=unsupported
24521 link_all_deplibs_GCJ=unknown
24522 hardcode_automatic_GCJ=no
24523 module_cmds_GCJ=
24524 module_expsym_cmds_GCJ=
24525 always_export_symbols_GCJ=no
24526 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24527 # include_expsyms should be a list of space-separated symbols to be *always*
24528 # included in the symbol list
24529 include_expsyms_GCJ=
24530 # exclude_expsyms can be an extended regexp of symbols to exclude
24531 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24532 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24533 # as well as any symbol that contains `d'.
24534 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24535 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24536 # platforms (ab)use it in PIC code, but their linkers get confused if
24537 # the symbol is explicitly referenced. Since portable code cannot
24538 # rely on this symbol name, it's probably fine to never include it in
24539 # preloaded symbol tables.
24540 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024541 # Just being paranoid about ensuring that cc_basename is set.
24542 for cc_temp in $compiler""; do
24543 case $cc_temp in
24544 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24545 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24546 \-*) ;;
24547 *) break;;
24548 esac
24549done
24550cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024551
24552 case $host_os in
24553 cygwin* | mingw* | pw32*)
24554 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24555 # When not using gcc, we currently assume that we are using
24556 # Microsoft Visual C++.
24557 if test "$GCC" != yes; then
24558 with_gnu_ld=no
24559 fi
24560 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024561 interix*)
24562 # we just hope/assume this is gcc and not c89 (= MSVC++)
24563 with_gnu_ld=yes
24564 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024565 openbsd*)
24566 with_gnu_ld=no
24567 ;;
24568 esac
24569
24570 ld_shlibs_GCJ=yes
24571 if test "$with_gnu_ld" = yes; then
24572 # If archive_cmds runs LD, not CC, wlarc should be empty
24573 wlarc='${wl}'
24574
Reid Spencera773bd52006-08-04 18:18:08 +000024575 # Set some defaults for GNU ld with shared library support. These
24576 # are reset later if shared libraries are not supported. Putting them
24577 # here allows them to be overridden if necessary.
24578 runpath_var=LD_RUN_PATH
24579 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24580 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24581 # ancient GNU ld didn't support --whole-archive et. al.
24582 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24583 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24584 else
24585 whole_archive_flag_spec_GCJ=
24586 fi
24587 supports_anon_versioning=no
24588 case `$LD -v 2>/dev/null` in
24589 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24590 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24591 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24592 *\ 2.11.*) ;; # other 2.11 versions
24593 *) supports_anon_versioning=yes ;;
24594 esac
24595
John Criswell47fdd832003-07-14 16:52:07 +000024596 # See if GNU ld supports shared libraries.
24597 case $host_os in
24598 aix3* | aix4* | aix5*)
24599 # On AIX/PPC, the GNU linker is very broken
24600 if test "$host_cpu" != ia64; then
24601 ld_shlibs_GCJ=no
24602 cat <<EOF 1>&2
24603
24604*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24605*** to be unable to reliably create shared libraries on AIX.
24606*** Therefore, libtool is disabling shared libraries support. If you
24607*** really care for shared libraries, you may want to modify your PATH
24608*** so that a non-GNU linker is found, and then restart.
24609
24610EOF
24611 fi
24612 ;;
24613
24614 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024615 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 +000024616 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24617 hardcode_minus_L_GCJ=yes
24618
24619 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24620 # that the semantics of dynamic libraries on AmigaOS, at least up
24621 # to version 4, is to share data among multiple programs linked
24622 # with the same dynamic library. Since this doesn't match the
24623 # behavior of shared libraries on other platforms, we can't use
24624 # them.
24625 ld_shlibs_GCJ=no
24626 ;;
24627
24628 beos*)
24629 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24630 allow_undefined_flag_GCJ=unsupported
24631 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24632 # support --undefined. This deserves some investigation. FIXME
24633 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24634 else
24635 ld_shlibs_GCJ=no
24636 fi
24637 ;;
24638
24639 cygwin* | mingw* | pw32*)
24640 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24641 # as there is no search path for DLLs.
24642 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24643 allow_undefined_flag_GCJ=unsupported
24644 always_export_symbols_GCJ=no
24645 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024646 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 +000024647
24648 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024649 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 +000024650 # If the export-symbols file already is a .def file (1st line
24651 # is EXPORTS), use it as is; otherwise, prepend...
24652 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24653 cp $export_symbols $output_objdir/$soname.def;
24654 else
24655 echo EXPORTS > $output_objdir/$soname.def;
24656 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024657 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024658 $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 +000024659 else
Reid Spencera773bd52006-08-04 18:18:08 +000024660 ld_shlibs_GCJ=no
24661 fi
24662 ;;
24663
24664 interix3*)
24665 hardcode_direct_GCJ=no
24666 hardcode_shlibpath_var_GCJ=no
24667 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24668 export_dynamic_flag_spec_GCJ='${wl}-E'
24669 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24670 # Instead, shared libraries are loaded at an image base (0x10000000 by
24671 # default) and relocated if they conflict, which is a slow very memory
24672 # consuming and fragmenting process. To avoid this, we pick a random,
24673 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24674 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24675 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'
24676 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'
24677 ;;
24678
24679 linux*)
24680 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24681 tmp_addflag=
24682 case $cc_basename,$host_cpu in
24683 pgcc*) # Portland Group C compiler
24684 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'
24685 tmp_addflag=' $pic_flag'
24686 ;;
24687 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24688 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'
24689 tmp_addflag=' $pic_flag -Mnomain' ;;
24690 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24691 tmp_addflag=' -i_dynamic' ;;
24692 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24693 tmp_addflag=' -i_dynamic -nofor_main' ;;
24694 ifc* | ifort*) # Intel Fortran compiler
24695 tmp_addflag=' -nofor_main' ;;
24696 esac
24697 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24698
24699 if test $supports_anon_versioning = yes; then
24700 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24701 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24702 $echo "local: *; };" >> $output_objdir/$libname.ver~
24703 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24704 fi
24705 else
24706 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024707 fi
24708 ;;
24709
24710 netbsd*)
24711 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24712 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24713 wlarc=
24714 else
24715 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24716 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24717 fi
24718 ;;
24719
Reid Spencera773bd52006-08-04 18:18:08 +000024720 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024721 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24722 ld_shlibs_GCJ=no
24723 cat <<EOF 1>&2
24724
24725*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24726*** create shared libraries on Solaris systems. Therefore, libtool
24727*** is disabling shared libraries support. We urge you to upgrade GNU
24728*** binutils to release 2.9.1 or newer. Another option is to modify
24729*** your PATH or compiler configuration so that the native linker is
24730*** used, and then restart.
24731
24732EOF
24733 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24734 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24735 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24736 else
24737 ld_shlibs_GCJ=no
24738 fi
24739 ;;
24740
Reid Spencera773bd52006-08-04 18:18:08 +000024741 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24742 case `$LD -v 2>&1` in
24743 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24744 ld_shlibs_GCJ=no
24745 cat <<_LT_EOF 1>&2
24746
24747*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24748*** reliably create shared libraries on SCO systems. Therefore, libtool
24749*** is disabling shared libraries support. We urge you to upgrade GNU
24750*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24751*** your PATH or compiler configuration so that the native linker is
24752*** used, and then restart.
24753
24754_LT_EOF
24755 ;;
24756 *)
24757 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24758 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24759 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24760 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24761 else
24762 ld_shlibs_GCJ=no
24763 fi
24764 ;;
24765 esac
24766 ;;
24767
John Criswell47fdd832003-07-14 16:52:07 +000024768 sunos4*)
24769 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24770 wlarc=
24771 hardcode_direct_GCJ=yes
24772 hardcode_shlibpath_var_GCJ=no
24773 ;;
24774
24775 *)
24776 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24777 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24778 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24779 else
24780 ld_shlibs_GCJ=no
24781 fi
24782 ;;
24783 esac
24784
Reid Spencera773bd52006-08-04 18:18:08 +000024785 if test "$ld_shlibs_GCJ" = no; then
24786 runpath_var=
24787 hardcode_libdir_flag_spec_GCJ=
24788 export_dynamic_flag_spec_GCJ=
24789 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024790 fi
24791 else
24792 # PORTME fill in a description of your system's linker (not GNU ld)
24793 case $host_os in
24794 aix3*)
24795 allow_undefined_flag_GCJ=unsupported
24796 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024797 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 +000024798 # Note: this linker hardcodes the directories in LIBPATH if there
24799 # are no directories specified by -L.
24800 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024801 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024802 # Neither direct hardcoding nor static linking is supported with a
24803 # broken collect2.
24804 hardcode_direct_GCJ=unsupported
24805 fi
24806 ;;
24807
24808 aix4* | aix5*)
24809 if test "$host_cpu" = ia64; then
24810 # On IA64, the linker does run time linking by default, so we don't
24811 # have to do anything special.
24812 aix_use_runtimelinking=no
24813 exp_sym_flag='-Bexport'
24814 no_entry_flag=""
24815 else
24816 # If we're using GNU nm, then we don't want the "-C" option.
24817 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24818 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24819 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'
24820 else
24821 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'
24822 fi
24823 aix_use_runtimelinking=no
24824
24825 # Test if we are trying to use run time linking or normal
24826 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24827 # need to do runtime linking.
24828 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24829 for ld_flag in $LDFLAGS; do
24830 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24831 aix_use_runtimelinking=yes
24832 break
24833 fi
24834 done
Reid Spencera773bd52006-08-04 18:18:08 +000024835 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024836 esac
24837
24838 exp_sym_flag='-bexport'
24839 no_entry_flag='-bnoentry'
24840 fi
24841
24842 # When large executables or shared objects are built, AIX ld can
24843 # have problems creating the table of contents. If linking a library
24844 # or program results in "error TOC overflow" add -mminimal-toc to
24845 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24846 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24847
24848 archive_cmds_GCJ=''
24849 hardcode_direct_GCJ=yes
24850 hardcode_libdir_separator_GCJ=':'
24851 link_all_deplibs_GCJ=yes
24852
24853 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024854 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024855 # We only want to do this on AIX 4.2 and lower, the check
24856 # below for broken collect2 doesn't work under 4.3+
24857 collect2name=`${CC} -print-prog-name=collect2`
24858 if test -f "$collect2name" && \
24859 strings "$collect2name" | grep resolve_lib_name >/dev/null
24860 then
24861 # We have reworked collect2
24862 hardcode_direct_GCJ=yes
24863 else
24864 # We have old collect2
24865 hardcode_direct_GCJ=unsupported
24866 # It fails to find uninstalled libraries when the uninstalled
24867 # path is not listed in the libpath. Setting hardcode_minus_L
24868 # to unsupported forces relinking
24869 hardcode_minus_L_GCJ=yes
24870 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24871 hardcode_libdir_separator_GCJ=
24872 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024873 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024874 esac
24875 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024876 if test "$aix_use_runtimelinking" = yes; then
24877 shared_flag="$shared_flag "'${wl}-G'
24878 fi
John Criswell47fdd832003-07-14 16:52:07 +000024879 else
24880 # not using gcc
24881 if test "$host_cpu" = ia64; then
24882 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24883 # chokes on -Wl,-G. The following line is correct:
24884 shared_flag='-G'
24885 else
Reid Spencera773bd52006-08-04 18:18:08 +000024886 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024887 shared_flag='${wl}-G'
24888 else
24889 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024890 fi
John Criswell47fdd832003-07-14 16:52:07 +000024891 fi
24892 fi
24893
24894 # It seems that -bexpall does not export symbols beginning with
24895 # underscore (_), so it is better to generate a list of symbols to export.
24896 always_export_symbols_GCJ=yes
24897 if test "$aix_use_runtimelinking" = yes; then
24898 # Warning - without using the other runtime loading flags (-brtl),
24899 # -berok will link without error, but may produce a broken library.
24900 allow_undefined_flag_GCJ='-berok'
24901 # Determine the default libpath from the value encoded in an empty executable.
24902 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024903/* confdefs.h. */
24904_ACEOF
24905cat confdefs.h >>conftest.$ac_ext
24906cat >>conftest.$ac_ext <<_ACEOF
24907/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024908
John Criswell47fdd832003-07-14 16:52:07 +000024909int
24910main ()
24911{
24912
24913 ;
24914 return 0;
24915}
24916_ACEOF
24917rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024918if { (ac_try="$ac_link"
24919case "(($ac_try" in
24920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24921 *) ac_try_echo=$ac_try;;
24922esac
24923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24924 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024925 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024926 grep -v '^ *+' conftest.er1 >conftest.err
24927 rm -f conftest.er1
24928 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000024930 (exit $ac_status); } &&
24931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24932 { (case "(($ac_try" in
24933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24934 *) ac_try_echo=$ac_try;;
24935esac
24936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24937 (eval "$ac_try") 2>&5
24938 ac_status=$?
24939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940 (exit $ac_status); }; } &&
24941 { ac_try='test -s conftest$ac_exeext'
24942 { (case "(($ac_try" in
24943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24944 *) ac_try_echo=$ac_try;;
24945esac
24946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24947 (eval "$ac_try") 2>&5
24948 ac_status=$?
24949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024951
24952aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24953}'`
24954# Check for a 64-bit object if we didn't find anything.
24955if 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; }
24956}'`; fi
24957else
24958 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024959sed 's/^/| /' conftest.$ac_ext >&5
24960
Reid Spencera773bd52006-08-04 18:18:08 +000024961
John Criswell47fdd832003-07-14 16:52:07 +000024962fi
Reid Spencera773bd52006-08-04 18:18:08 +000024963
Bill Wendlingebcceee2009-04-18 11:20:33 +000024964rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024965 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024966if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24967
24968 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024969 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 +000024970 else
24971 if test "$host_cpu" = ia64; then
24972 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24973 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024974 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 +000024975 else
24976 # Determine the default libpath from the value encoded in an empty executable.
24977 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024978/* confdefs.h. */
24979_ACEOF
24980cat confdefs.h >>conftest.$ac_ext
24981cat >>conftest.$ac_ext <<_ACEOF
24982/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024983
John Criswell47fdd832003-07-14 16:52:07 +000024984int
24985main ()
24986{
24987
24988 ;
24989 return 0;
24990}
24991_ACEOF
24992rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024993if { (ac_try="$ac_link"
24994case "(($ac_try" in
24995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24996 *) ac_try_echo=$ac_try;;
24997esac
24998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24999 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000025000 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025001 grep -v '^ *+' conftest.er1 >conftest.err
25002 rm -f conftest.er1
25003 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000025004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000025005 (exit $ac_status); } &&
25006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25007 { (case "(($ac_try" in
25008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25009 *) ac_try_echo=$ac_try;;
25010esac
25011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25012 (eval "$ac_try") 2>&5
25013 ac_status=$?
25014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25015 (exit $ac_status); }; } &&
25016 { ac_try='test -s conftest$ac_exeext'
25017 { (case "(($ac_try" in
25018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25019 *) ac_try_echo=$ac_try;;
25020esac
25021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25022 (eval "$ac_try") 2>&5
25023 ac_status=$?
25024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25025 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000025026
25027aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25028}'`
25029# Check for a 64-bit object if we didn't find anything.
25030if 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; }
25031}'`; fi
25032else
25033 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025034sed 's/^/| /' conftest.$ac_ext >&5
25035
Reid Spencera773bd52006-08-04 18:18:08 +000025036
John Criswell47fdd832003-07-14 16:52:07 +000025037fi
Reid Spencera773bd52006-08-04 18:18:08 +000025038
Bill Wendlingebcceee2009-04-18 11:20:33 +000025039rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025040 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000025041if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25042
25043 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25044 # Warning - without using the other run time loading flags,
25045 # -berok will link without error, but may produce a broken library.
25046 no_undefined_flag_GCJ=' ${wl}-bernotok'
25047 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000025048 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000025049 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000025050 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000025051 # This is similar to how AIX traditionally builds its shared libraries.
25052 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 +000025053 fi
25054 fi
25055 ;;
25056
25057 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000025058 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 +000025059 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25060 hardcode_minus_L_GCJ=yes
25061 # see comment about different semantics on the GNU ld section
25062 ld_shlibs_GCJ=no
25063 ;;
25064
Reid Spencer2706f8c2004-09-19 23:53:36 +000025065 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025066 export_dynamic_flag_spec_GCJ=-rdynamic
25067 ;;
25068
25069 cygwin* | mingw* | pw32*)
25070 # When not using gcc, we currently assume that we are using
25071 # Microsoft Visual C++.
25072 # hardcode_libdir_flag_spec is actually meaningless, as there is
25073 # no search path for DLLs.
25074 hardcode_libdir_flag_spec_GCJ=' '
25075 allow_undefined_flag_GCJ=unsupported
25076 # Tell ltmain to make .lib files, not .a files.
25077 libext=lib
25078 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025079 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025080 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000025081 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 +000025082 # The linker will automatically build a .lib file if we build a DLL.
25083 old_archive_From_new_cmds_GCJ='true'
25084 # FIXME: Should let the user specify the lib program.
25085 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000025086 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000025087 enable_shared_with_static_runtimes_GCJ=yes
25088 ;;
25089
25090 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000025091 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025092 rhapsody* | darwin1.[012])
25093 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25094 ;;
25095 *) # Darwin 1.3 on
25096 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25097 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25098 else
25099 case ${MACOSX_DEPLOYMENT_TARGET} in
25100 10.[012])
25101 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25102 ;;
25103 10.*)
25104 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25105 ;;
25106 esac
25107 fi
25108 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025109 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025110 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025111 hardcode_direct_GCJ=no
25112 hardcode_automatic_GCJ=yes
25113 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000025114 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000025115 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000025116 if test "$GCC" = yes ; then
25117 output_verbose_link_cmd='echo'
25118 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25119 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025120 # 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 +000025121 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}'
25122 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 +000025123 else
Reid Spencera773bd52006-08-04 18:18:08 +000025124 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025125 xlc*)
25126 output_verbose_link_cmd='echo'
25127 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25128 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025129 # 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 +000025130 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}'
25131 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 +000025132 ;;
25133 *)
25134 ld_shlibs_GCJ=no
25135 ;;
25136 esac
John Criswell47fdd832003-07-14 16:52:07 +000025137 fi
25138 ;;
25139
25140 dgux*)
25141 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25142 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25143 hardcode_shlibpath_var_GCJ=no
25144 ;;
25145
25146 freebsd1*)
25147 ld_shlibs_GCJ=no
25148 ;;
25149
25150 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25151 # support. Future versions do this automatically, but an explicit c++rt0.o
25152 # does not break anything, and helps significantly (at the cost of a little
25153 # extra space).
25154 freebsd2.2*)
25155 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25156 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25157 hardcode_direct_GCJ=yes
25158 hardcode_shlibpath_var_GCJ=no
25159 ;;
25160
25161 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25162 freebsd2*)
25163 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25164 hardcode_direct_GCJ=yes
25165 hardcode_minus_L_GCJ=yes
25166 hardcode_shlibpath_var_GCJ=no
25167 ;;
25168
25169 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000025170 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000025171 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25172 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25173 hardcode_direct_GCJ=yes
25174 hardcode_shlibpath_var_GCJ=no
25175 ;;
25176
25177 hpux9*)
25178 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000025179 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 +000025180 else
Reid Spencer177dbe22004-10-13 01:01:03 +000025181 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 +000025182 fi
25183 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25184 hardcode_libdir_separator_GCJ=:
25185 hardcode_direct_GCJ=yes
25186
25187 # hardcode_minus_L: Not really in the search PATH,
25188 # but as the default location of the library.
25189 hardcode_minus_L_GCJ=yes
25190 export_dynamic_flag_spec_GCJ='${wl}-E'
25191 ;;
25192
Reid Spencera773bd52006-08-04 18:18:08 +000025193 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000025194 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025195 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25196 else
25197 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25198 fi
25199 if test "$with_gnu_ld" = no; then
25200 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25201 hardcode_libdir_separator_GCJ=:
25202
25203 hardcode_direct_GCJ=yes
25204 export_dynamic_flag_spec_GCJ='${wl}-E'
25205
25206 # hardcode_minus_L: Not really in the search PATH,
25207 # but as the default location of the library.
25208 hardcode_minus_L_GCJ=yes
25209 fi
25210 ;;
25211
25212 hpux11*)
25213 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25214 case $host_cpu in
25215 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000025216 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25217 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025218 ia64*)
25219 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25220 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025221 *)
25222 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25223 ;;
25224 esac
25225 else
Reid Spencera773bd52006-08-04 18:18:08 +000025226 case $host_cpu in
25227 hppa*64*)
25228 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25229 ;;
25230 ia64*)
25231 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000025232 ;;
25233 *)
Reid Spencera773bd52006-08-04 18:18:08 +000025234 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 +000025235 ;;
25236 esac
25237 fi
25238 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025239 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25240 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000025241
Reid Spencera773bd52006-08-04 18:18:08 +000025242 case $host_cpu in
25243 hppa*64*|ia64*)
25244 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25245 hardcode_direct_GCJ=no
25246 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025247 ;;
25248 *)
John Criswell47fdd832003-07-14 16:52:07 +000025249 hardcode_direct_GCJ=yes
25250 export_dynamic_flag_spec_GCJ='${wl}-E'
25251
25252 # hardcode_minus_L: Not really in the search PATH,
25253 # but as the default location of the library.
25254 hardcode_minus_L_GCJ=yes
25255 ;;
25256 esac
25257 fi
25258 ;;
25259
25260 irix5* | irix6* | nonstopux*)
25261 if test "$GCC" = yes; then
25262 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'
25263 else
25264 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'
25265 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25266 fi
25267 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25268 hardcode_libdir_separator_GCJ=:
25269 link_all_deplibs_GCJ=yes
25270 ;;
25271
25272 netbsd*)
25273 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25274 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25275 else
25276 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25277 fi
25278 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25279 hardcode_direct_GCJ=yes
25280 hardcode_shlibpath_var_GCJ=no
25281 ;;
25282
25283 newsos6)
25284 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25285 hardcode_direct_GCJ=yes
25286 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25287 hardcode_libdir_separator_GCJ=:
25288 hardcode_shlibpath_var_GCJ=no
25289 ;;
25290
25291 openbsd*)
25292 hardcode_direct_GCJ=yes
25293 hardcode_shlibpath_var_GCJ=no
25294 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25295 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025296 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 +000025297 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25298 export_dynamic_flag_spec_GCJ='${wl}-E'
25299 else
25300 case $host_os in
25301 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25302 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25303 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25304 ;;
25305 *)
25306 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25307 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25308 ;;
25309 esac
25310 fi
25311 ;;
25312
25313 os2*)
25314 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25315 hardcode_minus_L_GCJ=yes
25316 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000025317 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 +000025318 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25319 ;;
25320
25321 osf3*)
25322 if test "$GCC" = yes; then
25323 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25324 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'
25325 else
25326 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25327 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'
25328 fi
25329 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25330 hardcode_libdir_separator_GCJ=:
25331 ;;
25332
25333 osf4* | osf5*) # as osf3* with the addition of -msym flag
25334 if test "$GCC" = yes; then
25335 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25336 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'
25337 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25338 else
25339 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25340 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 +000025341 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 +000025342 $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 +000025343
John Criswell47fdd832003-07-14 16:52:07 +000025344 # Both c and cxx compiler support -rpath directly
25345 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25346 fi
25347 hardcode_libdir_separator_GCJ=:
25348 ;;
25349
John Criswell47fdd832003-07-14 16:52:07 +000025350 solaris*)
25351 no_undefined_flag_GCJ=' -z text'
25352 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025353 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025354 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025355 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25356 $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 +000025357 else
Reid Spencera773bd52006-08-04 18:18:08 +000025358 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025359 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025360 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25361 $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 +000025362 fi
25363 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25364 hardcode_shlibpath_var_GCJ=no
25365 case $host_os in
25366 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025367 *)
25368 # The compiler driver will combine linker options so we
25369 # cannot just pass the convience library names through
25370 # without $wl, iff we do not link with $LD.
25371 # Luckily, gcc supports the same syntax we need for Sun Studio.
25372 # Supported since Solaris 2.6 (maybe 2.5.1?)
25373 case $wlarc in
25374 '')
25375 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25376 *)
25377 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' ;;
25378 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025379 esac
25380 link_all_deplibs_GCJ=yes
25381 ;;
25382
25383 sunos4*)
25384 if test "x$host_vendor" = xsequent; then
25385 # Use $CC to link under sequent, because it throws in some extra .o
25386 # files that make .init and .fini sections work.
25387 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25388 else
25389 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25390 fi
25391 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25392 hardcode_direct_GCJ=yes
25393 hardcode_minus_L_GCJ=yes
25394 hardcode_shlibpath_var_GCJ=no
25395 ;;
25396
25397 sysv4)
25398 case $host_vendor in
25399 sni)
25400 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25401 hardcode_direct_GCJ=yes # is this really true???
25402 ;;
25403 siemens)
25404 ## LD is ld it makes a PLAMLIB
25405 ## CC just makes a GrossModule.
25406 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25407 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25408 hardcode_direct_GCJ=no
25409 ;;
25410 motorola)
25411 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25412 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25413 ;;
25414 esac
25415 runpath_var='LD_RUN_PATH'
25416 hardcode_shlibpath_var_GCJ=no
25417 ;;
25418
25419 sysv4.3*)
25420 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25421 hardcode_shlibpath_var_GCJ=no
25422 export_dynamic_flag_spec_GCJ='-Bexport'
25423 ;;
25424
25425 sysv4*MP*)
25426 if test -d /usr/nec; then
25427 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25428 hardcode_shlibpath_var_GCJ=no
25429 runpath_var=LD_RUN_PATH
25430 hardcode_runpath_var=yes
25431 ld_shlibs_GCJ=yes
25432 fi
25433 ;;
25434
Reid Spencera773bd52006-08-04 18:18:08 +000025435 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25436 no_undefined_flag_GCJ='${wl}-z,text'
25437 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025438 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025439 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025440
John Criswell47fdd832003-07-14 16:52:07 +000025441 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025442 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25443 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 +000025444 else
Reid Spencera773bd52006-08-04 18:18:08 +000025445 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25446 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 +000025447 fi
John Criswell47fdd832003-07-14 16:52:07 +000025448 ;;
25449
Reid Spencera773bd52006-08-04 18:18:08 +000025450 sysv5* | sco3.2v5* | sco5v6*)
25451 # Note: We can NOT use -z defs as we might desire, because we do not
25452 # link with -lc, and that would cause any symbols used from libc to
25453 # always be unresolved, which means just about no library would
25454 # ever link correctly. If we're not using GNU ld we use -z text
25455 # though, which does catch some bad symbols but isn't as heavy-handed
25456 # as -z defs.
25457 no_undefined_flag_GCJ='${wl}-z,text'
25458 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25459 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025460 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025461 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25462 hardcode_libdir_separator_GCJ=':'
25463 link_all_deplibs_GCJ=yes
25464 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025465 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025466
25467 if test "$GCC" = yes; then
25468 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25469 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25470 else
25471 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25472 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25473 fi
John Criswell47fdd832003-07-14 16:52:07 +000025474 ;;
25475
25476 uts4*)
25477 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25478 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25479 hardcode_shlibpath_var_GCJ=no
25480 ;;
25481
25482 *)
25483 ld_shlibs_GCJ=no
25484 ;;
25485 esac
25486 fi
25487
Reid Spencera773bd52006-08-04 18:18:08 +000025488{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25489echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025490test "$ld_shlibs_GCJ" = no && can_build_shared=no
25491
John Criswell47fdd832003-07-14 16:52:07 +000025492#
25493# Do we need to explicitly link libc?
25494#
25495case "x$archive_cmds_need_lc_GCJ" in
25496x|xyes)
25497 # Assume -lc should be added
25498 archive_cmds_need_lc_GCJ=yes
25499
25500 if test "$enable_shared" = yes && test "$GCC" = yes; then
25501 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025502 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025503 # FIXME: we may have to deal with multi-command sequences.
25504 ;;
25505 '$CC '*)
25506 # Test whether the compiler implicitly links with -lc since on some
25507 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25508 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025509 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25510echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025511 $rm conftest*
25512 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25513
25514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25515 (eval $ac_compile) 2>&5
25516 ac_status=$?
25517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25518 (exit $ac_status); } 2>conftest.err; then
25519 soname=conftest
25520 lib=conftest
25521 libobjs=conftest.$ac_objext
25522 deplibs=
25523 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025524 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025525 compiler_flags=-v
25526 linker_flags=-v
25527 verstring=
25528 output_objdir=.
25529 libname=conftest
25530 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25531 allow_undefined_flag_GCJ=
25532 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25533 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25534 ac_status=$?
25535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25536 (exit $ac_status); }
25537 then
25538 archive_cmds_need_lc_GCJ=no
25539 else
25540 archive_cmds_need_lc_GCJ=yes
25541 fi
25542 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25543 else
25544 cat conftest.err 1>&5
25545 fi
25546 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025547 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25548echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025549 ;;
25550 esac
25551 fi
25552 ;;
25553esac
25554
Reid Spencera773bd52006-08-04 18:18:08 +000025555{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25556echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025557library_names_spec=
25558libname_spec='lib$name'
25559soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025560shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025561postinstall_cmds=
25562postuninstall_cmds=
25563finish_cmds=
25564finish_eval=
25565shlibpath_var=
25566shlibpath_overrides_runpath=unknown
25567version_type=none
25568dynamic_linker="$host_os ld.so"
25569sys_lib_dlsearch_path_spec="/lib /usr/lib"
25570if test "$GCC" = yes; then
25571 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25572 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25573 # if the path contains ";" then we assume it to be the separator
25574 # otherwise default to the standard path separator (i.e. ":") - it is
25575 # assumed that no part of a normal pathname contains ";" but that should
25576 # okay in the real world where ";" in dirpaths is itself problematic.
25577 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25578 else
25579 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25580 fi
25581else
25582 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25583fi
25584need_lib_prefix=unknown
25585hardcode_into_libs=no
25586
25587# when you set need_version to no, make sure it does not cause -set_version
25588# flags to be left without arguments
25589need_version=unknown
25590
25591case $host_os in
25592aix3*)
25593 version_type=linux
25594 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25595 shlibpath_var=LIBPATH
25596
25597 # AIX 3 has no versioning support, so we append a major version to the name.
25598 soname_spec='${libname}${release}${shared_ext}$major'
25599 ;;
25600
25601aix4* | aix5*)
25602 version_type=linux
25603 need_lib_prefix=no
25604 need_version=no
25605 hardcode_into_libs=yes
25606 if test "$host_cpu" = ia64; then
25607 # AIX 5 supports IA64
25608 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25609 shlibpath_var=LD_LIBRARY_PATH
25610 else
25611 # With GCC up to 2.95.x, collect2 would create an import file
25612 # for dependence libraries. The import file would start with
25613 # the line `#! .'. This would cause the generated library to
25614 # depend on `.', always an invalid library. This was fixed in
25615 # development snapshots of GCC prior to 3.0.
25616 case $host_os in
25617 aix4 | aix4.[01] | aix4.[01].*)
25618 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25619 echo ' yes '
25620 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25621 :
25622 else
25623 can_build_shared=no
25624 fi
25625 ;;
25626 esac
25627 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25628 # soname into executable. Probably we can add versioning support to
25629 # collect2, so additional links can be useful in future.
25630 if test "$aix_use_runtimelinking" = yes; then
25631 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25632 # instead of lib<name>.a to let people know that these are not
25633 # typical AIX shared libraries.
25634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25635 else
25636 # We preserve .a as extension for shared libraries through AIX4.2
25637 # and later when we are not doing run time linking.
25638 library_names_spec='${libname}${release}.a $libname.a'
25639 soname_spec='${libname}${release}${shared_ext}$major'
25640 fi
25641 shlibpath_var=LIBPATH
25642 fi
25643 ;;
25644
25645amigaos*)
25646 library_names_spec='$libname.ixlibrary $libname.a'
25647 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025648 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 +000025649 ;;
25650
25651beos*)
25652 library_names_spec='${libname}${shared_ext}'
25653 dynamic_linker="$host_os ld.so"
25654 shlibpath_var=LIBRARY_PATH
25655 ;;
25656
Reid Spencer2706f8c2004-09-19 23:53:36 +000025657bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025658 version_type=linux
25659 need_version=no
25660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25661 soname_spec='${libname}${release}${shared_ext}$major'
25662 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25663 shlibpath_var=LD_LIBRARY_PATH
25664 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25665 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25666 # the default ld.so.conf also contains /usr/contrib/lib and
25667 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25668 # libtool to hard-code these into programs
25669 ;;
25670
25671cygwin* | mingw* | pw32*)
25672 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025673 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025674 need_version=no
25675 need_lib_prefix=no
25676
25677 case $GCC,$host_os in
25678 yes,cygwin* | yes,mingw* | yes,pw32*)
25679 library_names_spec='$libname.dll.a'
25680 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025681 postinstall_cmds='base_file=`basename \${file}`~
25682 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25683 dldir=$destdir/`dirname \$dlpath`~
25684 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025685 $install_prog $dir/$dlname \$dldir/$dlname~
25686 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025687 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25688 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025689 $rm \$dlpath'
25690 shlibpath_overrides_runpath=yes
25691
25692 case $host_os in
25693 cygwin*)
25694 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25695 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 +000025696 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025697 ;;
25698 mingw*)
25699 # MinGW DLLs use traditional 'lib' prefix
25700 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25701 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25702 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25703 # It is most probably a Windows format PATH printed by
25704 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25705 # path with ; separators, and with drive letters. We can handle the
25706 # drive letters (cygwin fileutils understands them), so leave them,
25707 # especially as we might pass files found there to a mingw objdump,
25708 # which wouldn't understand a cygwinified path. Ahh.
25709 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25710 else
25711 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25712 fi
25713 ;;
25714 pw32*)
25715 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025716 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 +000025717 ;;
25718 esac
25719 ;;
25720
25721 *)
25722 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25723 ;;
25724 esac
25725 dynamic_linker='Win32 ld.exe'
25726 # FIXME: first we should search . and the directory the executable is in
25727 shlibpath_var=PATH
25728 ;;
25729
25730darwin* | rhapsody*)
25731 dynamic_linker="$host_os dyld"
25732 version_type=darwin
25733 need_lib_prefix=no
25734 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025735 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025736 soname_spec='${libname}${release}${major}$shared_ext'
25737 shlibpath_overrides_runpath=yes
25738 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025739 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025740 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025741 if test "$GCC" = yes; then
25742 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"`
25743 else
25744 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025745 fi
25746 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25747 ;;
25748
25749dgux*)
25750 version_type=linux
25751 need_lib_prefix=no
25752 need_version=no
25753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25754 soname_spec='${libname}${release}${shared_ext}$major'
25755 shlibpath_var=LD_LIBRARY_PATH
25756 ;;
25757
25758freebsd1*)
25759 dynamic_linker=no
25760 ;;
25761
Reid Spencer2706f8c2004-09-19 23:53:36 +000025762kfreebsd*-gnu)
25763 version_type=linux
25764 need_lib_prefix=no
25765 need_version=no
25766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25767 soname_spec='${libname}${release}${shared_ext}$major'
25768 shlibpath_var=LD_LIBRARY_PATH
25769 shlibpath_overrides_runpath=no
25770 hardcode_into_libs=yes
25771 dynamic_linker='GNU ld.so'
25772 ;;
25773
Reid Spencera773bd52006-08-04 18:18:08 +000025774freebsd* | dragonfly*)
25775 # DragonFly does not have aout. When/if they implement a new
25776 # versioning mechanism, adjust this.
25777 if test -x /usr/bin/objformat; then
25778 objformat=`/usr/bin/objformat`
25779 else
25780 case $host_os in
25781 freebsd[123]*) objformat=aout ;;
25782 *) objformat=elf ;;
25783 esac
25784 fi
John Criswell47fdd832003-07-14 16:52:07 +000025785 version_type=freebsd-$objformat
25786 case $version_type in
25787 freebsd-elf*)
25788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25789 need_version=no
25790 need_lib_prefix=no
25791 ;;
25792 freebsd-*)
25793 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25794 need_version=yes
25795 ;;
25796 esac
25797 shlibpath_var=LD_LIBRARY_PATH
25798 case $host_os in
25799 freebsd2*)
25800 shlibpath_overrides_runpath=yes
25801 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025802 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025803 shlibpath_overrides_runpath=yes
25804 hardcode_into_libs=yes
25805 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025806 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25807 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025808 shlibpath_overrides_runpath=no
25809 hardcode_into_libs=yes
25810 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025811 freebsd*) # from 4.6 on
25812 shlibpath_overrides_runpath=yes
25813 hardcode_into_libs=yes
25814 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025815 esac
25816 ;;
25817
25818gnu*)
25819 version_type=linux
25820 need_lib_prefix=no
25821 need_version=no
25822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25823 soname_spec='${libname}${release}${shared_ext}$major'
25824 shlibpath_var=LD_LIBRARY_PATH
25825 hardcode_into_libs=yes
25826 ;;
25827
25828hpux9* | hpux10* | hpux11*)
25829 # Give a soname corresponding to the major version so that dld.sl refuses to
25830 # link against other versions.
25831 version_type=sunos
25832 need_lib_prefix=no
25833 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025834 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025835 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025836 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025837 hardcode_into_libs=yes
25838 dynamic_linker="$host_os dld.so"
25839 shlibpath_var=LD_LIBRARY_PATH
25840 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25842 soname_spec='${libname}${release}${shared_ext}$major'
25843 if test "X$HPUX_IA64_MODE" = X32; then
25844 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25845 else
25846 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25847 fi
25848 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25849 ;;
25850 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025851 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025852 hardcode_into_libs=yes
25853 dynamic_linker="$host_os dld.sl"
25854 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25855 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25857 soname_spec='${libname}${release}${shared_ext}$major'
25858 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25859 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25860 ;;
25861 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025862 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025863 dynamic_linker="$host_os dld.sl"
25864 shlibpath_var=SHLIB_PATH
25865 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25867 soname_spec='${libname}${release}${shared_ext}$major'
25868 ;;
25869 esac
25870 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25871 postinstall_cmds='chmod 555 $lib'
25872 ;;
25873
Reid Spencera773bd52006-08-04 18:18:08 +000025874interix3*)
25875 version_type=linux
25876 need_lib_prefix=no
25877 need_version=no
25878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25879 soname_spec='${libname}${release}${shared_ext}$major'
25880 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25881 shlibpath_var=LD_LIBRARY_PATH
25882 shlibpath_overrides_runpath=no
25883 hardcode_into_libs=yes
25884 ;;
25885
John Criswell47fdd832003-07-14 16:52:07 +000025886irix5* | irix6* | nonstopux*)
25887 case $host_os in
25888 nonstopux*) version_type=nonstopux ;;
25889 *)
25890 if test "$lt_cv_prog_gnu_ld" = yes; then
25891 version_type=linux
25892 else
25893 version_type=irix
25894 fi ;;
25895 esac
25896 need_lib_prefix=no
25897 need_version=no
25898 soname_spec='${libname}${release}${shared_ext}$major'
25899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25900 case $host_os in
25901 irix5* | nonstopux*)
25902 libsuff= shlibsuff=
25903 ;;
25904 *)
25905 case $LD in # libtool.m4 will add one of these switches to LD
25906 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25907 libsuff= shlibsuff= libmagic=32-bit;;
25908 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25909 libsuff=32 shlibsuff=N32 libmagic=N32;;
25910 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25911 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25912 *) libsuff= shlibsuff= libmagic=never-match;;
25913 esac
25914 ;;
25915 esac
25916 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25917 shlibpath_overrides_runpath=no
25918 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25919 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25920 hardcode_into_libs=yes
25921 ;;
25922
25923# No shared lib support for Linux oldld, aout, or coff.
25924linux*oldld* | linux*aout* | linux*coff*)
25925 dynamic_linker=no
25926 ;;
25927
25928# This must be Linux ELF.
25929linux*)
25930 version_type=linux
25931 need_lib_prefix=no
25932 need_version=no
25933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25934 soname_spec='${libname}${release}${shared_ext}$major'
25935 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25936 shlibpath_var=LD_LIBRARY_PATH
25937 shlibpath_overrides_runpath=no
25938 # This implies no fast_install, which is unacceptable.
25939 # Some rework will be needed to allow for fast_install
25940 # before this can be enabled.
25941 hardcode_into_libs=yes
25942
Reid Spencer2706f8c2004-09-19 23:53:36 +000025943 # Append ld.so.conf contents to the search path
25944 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025945 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 +000025946 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25947 fi
25948
John Criswell47fdd832003-07-14 16:52:07 +000025949 # We used to test for /lib/ld.so.1 and disable shared libraries on
25950 # powerpc, because MkLinux only supported shared libraries with the
25951 # GNU dynamic linker. Since this was broken with cross compilers,
25952 # most powerpc-linux boxes support dynamic linking these days and
25953 # people can always --disable-shared, the test was removed, and we
25954 # assume the GNU/Linux dynamic linker is in use.
25955 dynamic_linker='GNU/Linux ld.so'
25956 ;;
25957
Reid Spencer2706f8c2004-09-19 23:53:36 +000025958knetbsd*-gnu)
25959 version_type=linux
25960 need_lib_prefix=no
25961 need_version=no
25962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25963 soname_spec='${libname}${release}${shared_ext}$major'
25964 shlibpath_var=LD_LIBRARY_PATH
25965 shlibpath_overrides_runpath=no
25966 hardcode_into_libs=yes
25967 dynamic_linker='GNU ld.so'
25968 ;;
25969
John Criswell47fdd832003-07-14 16:52:07 +000025970netbsd*)
25971 version_type=sunos
25972 need_lib_prefix=no
25973 need_version=no
25974 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25976 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25977 dynamic_linker='NetBSD (a.out) ld.so'
25978 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025980 soname_spec='${libname}${release}${shared_ext}$major'
25981 dynamic_linker='NetBSD ld.elf_so'
25982 fi
25983 shlibpath_var=LD_LIBRARY_PATH
25984 shlibpath_overrides_runpath=yes
25985 hardcode_into_libs=yes
25986 ;;
25987
25988newsos6)
25989 version_type=linux
25990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25991 shlibpath_var=LD_LIBRARY_PATH
25992 shlibpath_overrides_runpath=yes
25993 ;;
25994
Reid Spencer2706f8c2004-09-19 23:53:36 +000025995nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025996 version_type=linux
25997 need_lib_prefix=no
25998 need_version=no
25999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26000 soname_spec='${libname}${release}${shared_ext}$major'
26001 shlibpath_var=LD_LIBRARY_PATH
26002 shlibpath_overrides_runpath=yes
26003 ;;
26004
26005openbsd*)
26006 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000026007 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000026008 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000026009 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26010 case $host_os in
26011 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26012 *) need_version=no ;;
26013 esac
John Criswell47fdd832003-07-14 16:52:07 +000026014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26016 shlibpath_var=LD_LIBRARY_PATH
26017 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26018 case $host_os in
26019 openbsd2.[89] | openbsd2.[89].*)
26020 shlibpath_overrides_runpath=no
26021 ;;
26022 *)
26023 shlibpath_overrides_runpath=yes
26024 ;;
26025 esac
26026 else
26027 shlibpath_overrides_runpath=yes
26028 fi
26029 ;;
26030
26031os2*)
26032 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000026033 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000026034 need_lib_prefix=no
26035 library_names_spec='$libname${shared_ext} $libname.a'
26036 dynamic_linker='OS/2 ld.exe'
26037 shlibpath_var=LIBPATH
26038 ;;
26039
26040osf3* | osf4* | osf5*)
26041 version_type=osf
26042 need_lib_prefix=no
26043 need_version=no
26044 soname_spec='${libname}${release}${shared_ext}$major'
26045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26046 shlibpath_var=LD_LIBRARY_PATH
26047 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26048 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26049 ;;
26050
John Criswell47fdd832003-07-14 16:52:07 +000026051solaris*)
26052 version_type=linux
26053 need_lib_prefix=no
26054 need_version=no
26055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26056 soname_spec='${libname}${release}${shared_ext}$major'
26057 shlibpath_var=LD_LIBRARY_PATH
26058 shlibpath_overrides_runpath=yes
26059 hardcode_into_libs=yes
26060 # ldd complains unless libraries are executable
26061 postinstall_cmds='chmod +x $lib'
26062 ;;
26063
26064sunos4*)
26065 version_type=sunos
26066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26067 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26068 shlibpath_var=LD_LIBRARY_PATH
26069 shlibpath_overrides_runpath=yes
26070 if test "$with_gnu_ld" = yes; then
26071 need_lib_prefix=no
26072 fi
26073 need_version=yes
26074 ;;
26075
Reid Spencera773bd52006-08-04 18:18:08 +000026076sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000026077 version_type=linux
26078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26079 soname_spec='${libname}${release}${shared_ext}$major'
26080 shlibpath_var=LD_LIBRARY_PATH
26081 case $host_vendor in
26082 sni)
26083 shlibpath_overrides_runpath=no
26084 need_lib_prefix=no
26085 export_dynamic_flag_spec='${wl}-Blargedynsym'
26086 runpath_var=LD_RUN_PATH
26087 ;;
26088 siemens)
26089 need_lib_prefix=no
26090 ;;
26091 motorola)
26092 need_lib_prefix=no
26093 need_version=no
26094 shlibpath_overrides_runpath=no
26095 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26096 ;;
26097 esac
26098 ;;
26099
26100sysv4*MP*)
26101 if test -d /usr/nec ;then
26102 version_type=linux
26103 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26104 soname_spec='$libname${shared_ext}.$major'
26105 shlibpath_var=LD_LIBRARY_PATH
26106 fi
26107 ;;
26108
Reid Spencera773bd52006-08-04 18:18:08 +000026109sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26110 version_type=freebsd-elf
26111 need_lib_prefix=no
26112 need_version=no
26113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26114 soname_spec='${libname}${release}${shared_ext}$major'
26115 shlibpath_var=LD_LIBRARY_PATH
26116 hardcode_into_libs=yes
26117 if test "$with_gnu_ld" = yes; then
26118 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26119 shlibpath_overrides_runpath=no
26120 else
26121 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26122 shlibpath_overrides_runpath=yes
26123 case $host_os in
26124 sco3.2v5*)
26125 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26126 ;;
26127 esac
26128 fi
26129 sys_lib_dlsearch_path_spec='/usr/lib'
26130 ;;
26131
John Criswell47fdd832003-07-14 16:52:07 +000026132uts4*)
26133 version_type=linux
26134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26135 soname_spec='${libname}${release}${shared_ext}$major'
26136 shlibpath_var=LD_LIBRARY_PATH
26137 ;;
26138
26139*)
26140 dynamic_linker=no
26141 ;;
26142esac
Reid Spencera773bd52006-08-04 18:18:08 +000026143{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26144echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000026145test "$dynamic_linker" = no && can_build_shared=no
26146
Reid Spencera773bd52006-08-04 18:18:08 +000026147variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26148if test "$GCC" = yes; then
26149 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26150fi
26151
26152{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26153echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026154hardcode_action_GCJ=
26155if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26156 test -n "$runpath_var_GCJ" || \
26157 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26158
26159 # We can hardcode non-existant directories.
26160 if test "$hardcode_direct_GCJ" != no &&
26161 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26162 # have to relink, otherwise we might link with an installed library
26163 # when we should be linking with a yet-to-be-installed one
26164 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26165 test "$hardcode_minus_L_GCJ" != no; then
26166 # Linking always hardcodes the temporary library directory.
26167 hardcode_action_GCJ=relink
26168 else
26169 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26170 hardcode_action_GCJ=immediate
26171 fi
26172else
26173 # We cannot hardcode anything, or else we can only hardcode existing
26174 # directories.
26175 hardcode_action_GCJ=unsupported
26176fi
Reid Spencera773bd52006-08-04 18:18:08 +000026177{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26178echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026179
26180if test "$hardcode_action_GCJ" = relink; then
26181 # Fast installation is not supported
26182 enable_fast_install=no
26183elif test "$shlibpath_overrides_runpath" = yes ||
26184 test "$enable_shared" = no; then
26185 # Fast installation is not necessary
26186 enable_fast_install=needless
26187fi
26188
John Criswell47fdd832003-07-14 16:52:07 +000026189
26190# The else clause should only fire when bootstrapping the
26191# libtool distribution, otherwise you forgot to ship ltmain.sh
26192# with your package, and you will get complaints that there are
26193# no rules to generate ltmain.sh.
26194if test -f "$ltmain"; then
26195 # See if we are running on zsh, and set the options which allow our commands through
26196 # without removal of \ escapes.
26197 if test -n "${ZSH_VERSION+set}" ; then
26198 setopt NO_GLOB_SUBST
26199 fi
26200 # Now quote all the things that may contain metacharacters while being
26201 # careful not to overquote the AC_SUBSTed values. We take copies of the
26202 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026203 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 +000026204 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026205 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26206 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26207 deplibs_check_method reload_flag reload_cmds need_locks \
26208 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26209 lt_cv_sys_global_symbol_to_c_name_address \
26210 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26211 old_postinstall_cmds old_postuninstall_cmds \
26212 compiler_GCJ \
26213 CC_GCJ \
26214 LD_GCJ \
26215 lt_prog_compiler_wl_GCJ \
26216 lt_prog_compiler_pic_GCJ \
26217 lt_prog_compiler_static_GCJ \
26218 lt_prog_compiler_no_builtin_flag_GCJ \
26219 export_dynamic_flag_spec_GCJ \
26220 thread_safe_flag_spec_GCJ \
26221 whole_archive_flag_spec_GCJ \
26222 enable_shared_with_static_runtimes_GCJ \
26223 old_archive_cmds_GCJ \
26224 old_archive_from_new_cmds_GCJ \
26225 predep_objects_GCJ \
26226 postdep_objects_GCJ \
26227 predeps_GCJ \
26228 postdeps_GCJ \
26229 compiler_lib_search_path_GCJ \
26230 archive_cmds_GCJ \
26231 archive_expsym_cmds_GCJ \
26232 postinstall_cmds_GCJ \
26233 postuninstall_cmds_GCJ \
26234 old_archive_from_expsyms_cmds_GCJ \
26235 allow_undefined_flag_GCJ \
26236 no_undefined_flag_GCJ \
26237 export_symbols_cmds_GCJ \
26238 hardcode_libdir_flag_spec_GCJ \
26239 hardcode_libdir_flag_spec_ld_GCJ \
26240 hardcode_libdir_separator_GCJ \
26241 hardcode_automatic_GCJ \
26242 module_cmds_GCJ \
26243 module_expsym_cmds_GCJ \
26244 lt_cv_prog_compiler_c_o_GCJ \
26245 exclude_expsyms_GCJ \
26246 include_expsyms_GCJ; do
26247
26248 case $var in
26249 old_archive_cmds_GCJ | \
26250 old_archive_from_new_cmds_GCJ | \
26251 archive_cmds_GCJ | \
26252 archive_expsym_cmds_GCJ | \
26253 module_cmds_GCJ | \
26254 module_expsym_cmds_GCJ | \
26255 old_archive_from_expsyms_cmds_GCJ | \
26256 export_symbols_cmds_GCJ | \
26257 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26258 postinstall_cmds | postuninstall_cmds | \
26259 old_postinstall_cmds | old_postuninstall_cmds | \
26260 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26261 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026262 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 +000026263 ;;
26264 *)
26265 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26266 ;;
26267 esac
26268 done
26269
26270 case $lt_echo in
26271 *'\$0 --fallback-echo"')
26272 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26273 ;;
26274 esac
26275
26276cfgfile="$ofile"
26277
26278 cat <<__EOF__ >> "$cfgfile"
26279# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26280
26281# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26282
26283# Shell to use when invoking shell scripts.
26284SHELL=$lt_SHELL
26285
26286# Whether or not to build shared libraries.
26287build_libtool_libs=$enable_shared
26288
26289# Whether or not to build static libraries.
26290build_old_libs=$enable_static
26291
26292# Whether or not to add -lc for building shared libraries.
26293build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26294
26295# Whether or not to disallow shared libs when runtime libs are static
26296allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26297
26298# Whether or not to optimize for fast installation.
26299fast_install=$enable_fast_install
26300
26301# The host system.
26302host_alias=$host_alias
26303host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026304host_os=$host_os
26305
26306# The build system.
26307build_alias=$build_alias
26308build=$build
26309build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026310
26311# An echo program that does not interpret backslashes.
26312echo=$lt_echo
26313
26314# The archiver.
26315AR=$lt_AR
26316AR_FLAGS=$lt_AR_FLAGS
26317
26318# A C compiler.
26319LTCC=$lt_LTCC
26320
Reid Spencera773bd52006-08-04 18:18:08 +000026321# LTCC compiler flags.
26322LTCFLAGS=$lt_LTCFLAGS
26323
John Criswell47fdd832003-07-14 16:52:07 +000026324# A language-specific compiler.
26325CC=$lt_compiler_GCJ
26326
26327# Is the compiler the GNU C compiler?
26328with_gcc=$GCC_GCJ
26329
26330# An ERE matcher.
26331EGREP=$lt_EGREP
26332
26333# The linker used to build libraries.
26334LD=$lt_LD_GCJ
26335
26336# Whether we need hard or soft links.
26337LN_S=$lt_LN_S
26338
26339# A BSD-compatible nm program.
26340NM=$lt_NM
26341
26342# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026343STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026344
26345# Used to examine libraries when file_magic_cmd begins "file"
26346MAGIC_CMD=$MAGIC_CMD
26347
26348# Used on cygwin: DLL creation program.
26349DLLTOOL="$DLLTOOL"
26350
26351# Used on cygwin: object dumper.
26352OBJDUMP="$OBJDUMP"
26353
26354# Used on cygwin: assembler.
26355AS="$AS"
26356
26357# The name of the directory that contains temporary libtool files.
26358objdir=$objdir
26359
26360# How to create reloadable object files.
26361reload_flag=$lt_reload_flag
26362reload_cmds=$lt_reload_cmds
26363
26364# How to pass a linker flag through the compiler.
26365wl=$lt_lt_prog_compiler_wl_GCJ
26366
26367# Object file suffix (normally "o").
26368objext="$ac_objext"
26369
26370# Old archive suffix (normally "a").
26371libext="$libext"
26372
26373# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026374shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026375
26376# Executable file suffix (normally "").
26377exeext="$exeext"
26378
26379# Additional compiler flags for building library objects.
26380pic_flag=$lt_lt_prog_compiler_pic_GCJ
26381pic_mode=$pic_mode
26382
26383# What is the maximum length of a command?
26384max_cmd_len=$lt_cv_sys_max_cmd_len
26385
26386# Does compiler simultaneously support -c and -o options?
26387compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26388
Reid Spencera773bd52006-08-04 18:18:08 +000026389# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026390need_locks=$lt_need_locks
26391
26392# Do we need the lib prefix for modules?
26393need_lib_prefix=$need_lib_prefix
26394
26395# Do we need a version for libraries?
26396need_version=$need_version
26397
26398# Whether dlopen is supported.
26399dlopen_support=$enable_dlopen
26400
26401# Whether dlopen of programs is supported.
26402dlopen_self=$enable_dlopen_self
26403
26404# Whether dlopen of statically linked programs is supported.
26405dlopen_self_static=$enable_dlopen_self_static
26406
26407# Compiler flag to prevent dynamic linking.
26408link_static_flag=$lt_lt_prog_compiler_static_GCJ
26409
26410# Compiler flag to turn off builtin functions.
26411no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26412
26413# Compiler flag to allow reflexive dlopens.
26414export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26415
26416# Compiler flag to generate shared objects directly from archives.
26417whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26418
26419# Compiler flag to generate thread-safe objects.
26420thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26421
26422# Library versioning type.
26423version_type=$version_type
26424
26425# Format of library name prefix.
26426libname_spec=$lt_libname_spec
26427
26428# List of archive names. First name is the real one, the rest are links.
26429# The last name is the one that the linker finds with -lNAME.
26430library_names_spec=$lt_library_names_spec
26431
26432# The coded name of the library, if different from the real name.
26433soname_spec=$lt_soname_spec
26434
26435# Commands used to build and install an old-style archive.
26436RANLIB=$lt_RANLIB
26437old_archive_cmds=$lt_old_archive_cmds_GCJ
26438old_postinstall_cmds=$lt_old_postinstall_cmds
26439old_postuninstall_cmds=$lt_old_postuninstall_cmds
26440
26441# Create an old-style archive from a shared archive.
26442old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26443
26444# Create a temporary old-style archive to link instead of a shared archive.
26445old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26446
26447# Commands used to build and install a shared archive.
26448archive_cmds=$lt_archive_cmds_GCJ
26449archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26450postinstall_cmds=$lt_postinstall_cmds
26451postuninstall_cmds=$lt_postuninstall_cmds
26452
26453# Commands used to build a loadable module (assumed same as above if empty)
26454module_cmds=$lt_module_cmds_GCJ
26455module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26456
26457# Commands to strip libraries.
26458old_striplib=$lt_old_striplib
26459striplib=$lt_striplib
26460
26461# Dependencies to place before the objects being linked to create a
26462# shared library.
26463predep_objects=$lt_predep_objects_GCJ
26464
26465# Dependencies to place after the objects being linked to create a
26466# shared library.
26467postdep_objects=$lt_postdep_objects_GCJ
26468
26469# Dependencies to place before the objects being linked to create a
26470# shared library.
26471predeps=$lt_predeps_GCJ
26472
26473# Dependencies to place after the objects being linked to create a
26474# shared library.
26475postdeps=$lt_postdeps_GCJ
26476
26477# The library search path used internally by the compiler when linking
26478# a shared library.
26479compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26480
26481# Method to check whether dependent libraries are shared objects.
26482deplibs_check_method=$lt_deplibs_check_method
26483
26484# Command to use when deplibs_check_method == file_magic.
26485file_magic_cmd=$lt_file_magic_cmd
26486
26487# Flag that allows shared libraries with undefined symbols to be built.
26488allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26489
26490# Flag that forces no undefined symbols.
26491no_undefined_flag=$lt_no_undefined_flag_GCJ
26492
26493# Commands used to finish a libtool library installation in a directory.
26494finish_cmds=$lt_finish_cmds
26495
26496# Same as above, but a single script fragment to be evaled but not shown.
26497finish_eval=$lt_finish_eval
26498
26499# Take the output of nm and produce a listing of raw symbols and C names.
26500global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26501
26502# Transform the output of nm in a proper C declaration
26503global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26504
26505# Transform the output of nm in a C name address pair
26506global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26507
26508# This is the shared library runtime path variable.
26509runpath_var=$runpath_var
26510
26511# This is the shared library path variable.
26512shlibpath_var=$shlibpath_var
26513
26514# Is shlibpath searched before the hard-coded library search path?
26515shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26516
26517# How to hardcode a shared library path into an executable.
26518hardcode_action=$hardcode_action_GCJ
26519
26520# Whether we should hardcode library paths into libraries.
26521hardcode_into_libs=$hardcode_into_libs
26522
26523# Flag to hardcode \$libdir into a binary during linking.
26524# This must work even if \$libdir does not exist.
26525hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26526
26527# If ld is used when linking, flag to hardcode \$libdir into
26528# a binary during linking. This must work even if \$libdir does
26529# not exist.
26530hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26531
26532# Whether we need a single -rpath flag with a separated argument.
26533hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26534
26535# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26536# resulting binary.
26537hardcode_direct=$hardcode_direct_GCJ
26538
26539# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26540# resulting binary.
26541hardcode_minus_L=$hardcode_minus_L_GCJ
26542
26543# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26544# the resulting binary.
26545hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26546
26547# Set to yes if building a shared library automatically hardcodes DIR into the library
26548# and all subsequent libraries and executables linked against it.
26549hardcode_automatic=$hardcode_automatic_GCJ
26550
26551# Variables whose values should be saved in libtool wrapper scripts and
26552# restored at relink time.
26553variables_saved_for_relink="$variables_saved_for_relink"
26554
26555# Whether libtool must link a program against all its dependency libraries.
26556link_all_deplibs=$link_all_deplibs_GCJ
26557
26558# Compile-time system search path for libraries
26559sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26560
26561# Run-time system search path for libraries
26562sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26563
26564# Fix the shell variable \$srcfile for the compiler.
26565fix_srcfile_path="$fix_srcfile_path_GCJ"
26566
26567# Set to yes if exported symbols are required.
26568always_export_symbols=$always_export_symbols_GCJ
26569
26570# The commands to list exported symbols.
26571export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26572
26573# The commands to extract the exported symbol list from a shared archive.
26574extract_expsyms_cmds=$lt_extract_expsyms_cmds
26575
26576# Symbols that should not be listed in the preloaded symbols.
26577exclude_expsyms=$lt_exclude_expsyms_GCJ
26578
26579# Symbols that must always be exported.
26580include_expsyms=$lt_include_expsyms_GCJ
26581
26582# ### END LIBTOOL TAG CONFIG: $tagname
26583
26584__EOF__
26585
26586
26587else
26588 # If there is no Makefile yet, we rely on a make rule to execute
26589 # `config.status --recheck' to rerun these tests and create the
26590 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026591 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26592 if test -f "$ltmain_in"; then
26593 test -f Makefile && make "$ltmain"
26594 fi
John Criswell47fdd832003-07-14 16:52:07 +000026595fi
26596
26597
26598ac_ext=c
26599ac_cpp='$CPP $CPPFLAGS'
26600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26602ac_compiler_gnu=$ac_cv_c_compiler_gnu
26603
26604CC="$lt_save_CC"
26605
26606 else
26607 tagname=""
26608 fi
26609 ;;
26610
26611 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026612 ac_ext=c
26613ac_cpp='$CPP $CPPFLAGS'
26614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26616ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026617
26618
26619# Source file extension for RC test sources.
26620ac_ext=rc
26621
26622# Object file extension for compiled RC test sources.
26623objext=o
26624objext_RC=$objext
26625
26626# Code to be used in simple compile tests
26627lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26628
26629# Code to be used in simple link tests
26630lt_simple_link_test_code="$lt_simple_compile_test_code"
26631
26632# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26633
26634# If no C compiler was specified, use CC.
26635LTCC=${LTCC-"$CC"}
26636
Reid Spencera773bd52006-08-04 18:18:08 +000026637# If no C compiler flags were specified, use CFLAGS.
26638LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26639
John Criswell47fdd832003-07-14 16:52:07 +000026640# Allow CC to be a program name with arguments.
26641compiler=$CC
26642
26643
Reid Spencera773bd52006-08-04 18:18:08 +000026644# save warnings/boilerplate of simple test code
26645ac_outfile=conftest.$ac_objext
26646printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26647eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26648_lt_compiler_boilerplate=`cat conftest.err`
26649$rm conftest*
26650
26651ac_outfile=conftest.$ac_objext
26652printf "$lt_simple_link_test_code" >conftest.$ac_ext
26653eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26654_lt_linker_boilerplate=`cat conftest.err`
26655$rm conftest*
26656
26657
John Criswell47fdd832003-07-14 16:52:07 +000026658# Allow CC to be a program name with arguments.
26659lt_save_CC="$CC"
26660CC=${RC-"windres"}
26661compiler=$CC
26662compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026663for cc_temp in $compiler""; do
26664 case $cc_temp in
26665 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26666 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26667 \-*) ;;
26668 *) break;;
26669 esac
26670done
26671cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26672
John Criswell47fdd832003-07-14 16:52:07 +000026673lt_cv_prog_compiler_c_o_RC=yes
26674
26675# The else clause should only fire when bootstrapping the
26676# libtool distribution, otherwise you forgot to ship ltmain.sh
26677# with your package, and you will get complaints that there are
26678# no rules to generate ltmain.sh.
26679if test -f "$ltmain"; then
26680 # See if we are running on zsh, and set the options which allow our commands through
26681 # without removal of \ escapes.
26682 if test -n "${ZSH_VERSION+set}" ; then
26683 setopt NO_GLOB_SUBST
26684 fi
26685 # Now quote all the things that may contain metacharacters while being
26686 # careful not to overquote the AC_SUBSTed values. We take copies of the
26687 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026688 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 +000026689 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026690 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26691 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26692 deplibs_check_method reload_flag reload_cmds need_locks \
26693 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26694 lt_cv_sys_global_symbol_to_c_name_address \
26695 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26696 old_postinstall_cmds old_postuninstall_cmds \
26697 compiler_RC \
26698 CC_RC \
26699 LD_RC \
26700 lt_prog_compiler_wl_RC \
26701 lt_prog_compiler_pic_RC \
26702 lt_prog_compiler_static_RC \
26703 lt_prog_compiler_no_builtin_flag_RC \
26704 export_dynamic_flag_spec_RC \
26705 thread_safe_flag_spec_RC \
26706 whole_archive_flag_spec_RC \
26707 enable_shared_with_static_runtimes_RC \
26708 old_archive_cmds_RC \
26709 old_archive_from_new_cmds_RC \
26710 predep_objects_RC \
26711 postdep_objects_RC \
26712 predeps_RC \
26713 postdeps_RC \
26714 compiler_lib_search_path_RC \
26715 archive_cmds_RC \
26716 archive_expsym_cmds_RC \
26717 postinstall_cmds_RC \
26718 postuninstall_cmds_RC \
26719 old_archive_from_expsyms_cmds_RC \
26720 allow_undefined_flag_RC \
26721 no_undefined_flag_RC \
26722 export_symbols_cmds_RC \
26723 hardcode_libdir_flag_spec_RC \
26724 hardcode_libdir_flag_spec_ld_RC \
26725 hardcode_libdir_separator_RC \
26726 hardcode_automatic_RC \
26727 module_cmds_RC \
26728 module_expsym_cmds_RC \
26729 lt_cv_prog_compiler_c_o_RC \
26730 exclude_expsyms_RC \
26731 include_expsyms_RC; do
26732
26733 case $var in
26734 old_archive_cmds_RC | \
26735 old_archive_from_new_cmds_RC | \
26736 archive_cmds_RC | \
26737 archive_expsym_cmds_RC | \
26738 module_cmds_RC | \
26739 module_expsym_cmds_RC | \
26740 old_archive_from_expsyms_cmds_RC | \
26741 export_symbols_cmds_RC | \
26742 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26743 postinstall_cmds | postuninstall_cmds | \
26744 old_postinstall_cmds | old_postuninstall_cmds | \
26745 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26746 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026747 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 +000026748 ;;
26749 *)
26750 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26751 ;;
26752 esac
26753 done
26754
26755 case $lt_echo in
26756 *'\$0 --fallback-echo"')
26757 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26758 ;;
26759 esac
26760
26761cfgfile="$ofile"
26762
26763 cat <<__EOF__ >> "$cfgfile"
26764# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26765
26766# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26767
26768# Shell to use when invoking shell scripts.
26769SHELL=$lt_SHELL
26770
26771# Whether or not to build shared libraries.
26772build_libtool_libs=$enable_shared
26773
26774# Whether or not to build static libraries.
26775build_old_libs=$enable_static
26776
26777# Whether or not to add -lc for building shared libraries.
26778build_libtool_need_lc=$archive_cmds_need_lc_RC
26779
26780# Whether or not to disallow shared libs when runtime libs are static
26781allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26782
26783# Whether or not to optimize for fast installation.
26784fast_install=$enable_fast_install
26785
26786# The host system.
26787host_alias=$host_alias
26788host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026789host_os=$host_os
26790
26791# The build system.
26792build_alias=$build_alias
26793build=$build
26794build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026795
26796# An echo program that does not interpret backslashes.
26797echo=$lt_echo
26798
26799# The archiver.
26800AR=$lt_AR
26801AR_FLAGS=$lt_AR_FLAGS
26802
26803# A C compiler.
26804LTCC=$lt_LTCC
26805
Reid Spencera773bd52006-08-04 18:18:08 +000026806# LTCC compiler flags.
26807LTCFLAGS=$lt_LTCFLAGS
26808
John Criswell47fdd832003-07-14 16:52:07 +000026809# A language-specific compiler.
26810CC=$lt_compiler_RC
26811
26812# Is the compiler the GNU C compiler?
26813with_gcc=$GCC_RC
26814
26815# An ERE matcher.
26816EGREP=$lt_EGREP
26817
26818# The linker used to build libraries.
26819LD=$lt_LD_RC
26820
26821# Whether we need hard or soft links.
26822LN_S=$lt_LN_S
26823
26824# A BSD-compatible nm program.
26825NM=$lt_NM
26826
26827# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026828STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026829
26830# Used to examine libraries when file_magic_cmd begins "file"
26831MAGIC_CMD=$MAGIC_CMD
26832
26833# Used on cygwin: DLL creation program.
26834DLLTOOL="$DLLTOOL"
26835
26836# Used on cygwin: object dumper.
26837OBJDUMP="$OBJDUMP"
26838
26839# Used on cygwin: assembler.
26840AS="$AS"
26841
26842# The name of the directory that contains temporary libtool files.
26843objdir=$objdir
26844
26845# How to create reloadable object files.
26846reload_flag=$lt_reload_flag
26847reload_cmds=$lt_reload_cmds
26848
26849# How to pass a linker flag through the compiler.
26850wl=$lt_lt_prog_compiler_wl_RC
26851
26852# Object file suffix (normally "o").
26853objext="$ac_objext"
26854
26855# Old archive suffix (normally "a").
26856libext="$libext"
26857
26858# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026859shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026860
26861# Executable file suffix (normally "").
26862exeext="$exeext"
26863
26864# Additional compiler flags for building library objects.
26865pic_flag=$lt_lt_prog_compiler_pic_RC
26866pic_mode=$pic_mode
26867
26868# What is the maximum length of a command?
26869max_cmd_len=$lt_cv_sys_max_cmd_len
26870
26871# Does compiler simultaneously support -c and -o options?
26872compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26873
Reid Spencera773bd52006-08-04 18:18:08 +000026874# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026875need_locks=$lt_need_locks
26876
26877# Do we need the lib prefix for modules?
26878need_lib_prefix=$need_lib_prefix
26879
26880# Do we need a version for libraries?
26881need_version=$need_version
26882
26883# Whether dlopen is supported.
26884dlopen_support=$enable_dlopen
26885
26886# Whether dlopen of programs is supported.
26887dlopen_self=$enable_dlopen_self
26888
26889# Whether dlopen of statically linked programs is supported.
26890dlopen_self_static=$enable_dlopen_self_static
26891
26892# Compiler flag to prevent dynamic linking.
26893link_static_flag=$lt_lt_prog_compiler_static_RC
26894
26895# Compiler flag to turn off builtin functions.
26896no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26897
26898# Compiler flag to allow reflexive dlopens.
26899export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26900
26901# Compiler flag to generate shared objects directly from archives.
26902whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26903
26904# Compiler flag to generate thread-safe objects.
26905thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26906
26907# Library versioning type.
26908version_type=$version_type
26909
26910# Format of library name prefix.
26911libname_spec=$lt_libname_spec
26912
26913# List of archive names. First name is the real one, the rest are links.
26914# The last name is the one that the linker finds with -lNAME.
26915library_names_spec=$lt_library_names_spec
26916
26917# The coded name of the library, if different from the real name.
26918soname_spec=$lt_soname_spec
26919
26920# Commands used to build and install an old-style archive.
26921RANLIB=$lt_RANLIB
26922old_archive_cmds=$lt_old_archive_cmds_RC
26923old_postinstall_cmds=$lt_old_postinstall_cmds
26924old_postuninstall_cmds=$lt_old_postuninstall_cmds
26925
26926# Create an old-style archive from a shared archive.
26927old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26928
26929# Create a temporary old-style archive to link instead of a shared archive.
26930old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26931
26932# Commands used to build and install a shared archive.
26933archive_cmds=$lt_archive_cmds_RC
26934archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26935postinstall_cmds=$lt_postinstall_cmds
26936postuninstall_cmds=$lt_postuninstall_cmds
26937
26938# Commands used to build a loadable module (assumed same as above if empty)
26939module_cmds=$lt_module_cmds_RC
26940module_expsym_cmds=$lt_module_expsym_cmds_RC
26941
26942# Commands to strip libraries.
26943old_striplib=$lt_old_striplib
26944striplib=$lt_striplib
26945
26946# Dependencies to place before the objects being linked to create a
26947# shared library.
26948predep_objects=$lt_predep_objects_RC
26949
26950# Dependencies to place after the objects being linked to create a
26951# shared library.
26952postdep_objects=$lt_postdep_objects_RC
26953
26954# Dependencies to place before the objects being linked to create a
26955# shared library.
26956predeps=$lt_predeps_RC
26957
26958# Dependencies to place after the objects being linked to create a
26959# shared library.
26960postdeps=$lt_postdeps_RC
26961
26962# The library search path used internally by the compiler when linking
26963# a shared library.
26964compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26965
26966# Method to check whether dependent libraries are shared objects.
26967deplibs_check_method=$lt_deplibs_check_method
26968
26969# Command to use when deplibs_check_method == file_magic.
26970file_magic_cmd=$lt_file_magic_cmd
26971
26972# Flag that allows shared libraries with undefined symbols to be built.
26973allow_undefined_flag=$lt_allow_undefined_flag_RC
26974
26975# Flag that forces no undefined symbols.
26976no_undefined_flag=$lt_no_undefined_flag_RC
26977
26978# Commands used to finish a libtool library installation in a directory.
26979finish_cmds=$lt_finish_cmds
26980
26981# Same as above, but a single script fragment to be evaled but not shown.
26982finish_eval=$lt_finish_eval
26983
26984# Take the output of nm and produce a listing of raw symbols and C names.
26985global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26986
26987# Transform the output of nm in a proper C declaration
26988global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26989
26990# Transform the output of nm in a C name address pair
26991global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26992
26993# This is the shared library runtime path variable.
26994runpath_var=$runpath_var
26995
26996# This is the shared library path variable.
26997shlibpath_var=$shlibpath_var
26998
26999# Is shlibpath searched before the hard-coded library search path?
27000shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27001
27002# How to hardcode a shared library path into an executable.
27003hardcode_action=$hardcode_action_RC
27004
27005# Whether we should hardcode library paths into libraries.
27006hardcode_into_libs=$hardcode_into_libs
27007
27008# Flag to hardcode \$libdir into a binary during linking.
27009# This must work even if \$libdir does not exist.
27010hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27011
27012# If ld is used when linking, flag to hardcode \$libdir into
27013# a binary during linking. This must work even if \$libdir does
27014# not exist.
27015hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27016
27017# Whether we need a single -rpath flag with a separated argument.
27018hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27019
27020# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27021# resulting binary.
27022hardcode_direct=$hardcode_direct_RC
27023
27024# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27025# resulting binary.
27026hardcode_minus_L=$hardcode_minus_L_RC
27027
27028# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27029# the resulting binary.
27030hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27031
27032# Set to yes if building a shared library automatically hardcodes DIR into the library
27033# and all subsequent libraries and executables linked against it.
27034hardcode_automatic=$hardcode_automatic_RC
27035
27036# Variables whose values should be saved in libtool wrapper scripts and
27037# restored at relink time.
27038variables_saved_for_relink="$variables_saved_for_relink"
27039
27040# Whether libtool must link a program against all its dependency libraries.
27041link_all_deplibs=$link_all_deplibs_RC
27042
27043# Compile-time system search path for libraries
27044sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27045
27046# Run-time system search path for libraries
27047sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27048
27049# Fix the shell variable \$srcfile for the compiler.
27050fix_srcfile_path="$fix_srcfile_path_RC"
27051
27052# Set to yes if exported symbols are required.
27053always_export_symbols=$always_export_symbols_RC
27054
27055# The commands to list exported symbols.
27056export_symbols_cmds=$lt_export_symbols_cmds_RC
27057
27058# The commands to extract the exported symbol list from a shared archive.
27059extract_expsyms_cmds=$lt_extract_expsyms_cmds
27060
27061# Symbols that should not be listed in the preloaded symbols.
27062exclude_expsyms=$lt_exclude_expsyms_RC
27063
27064# Symbols that must always be exported.
27065include_expsyms=$lt_include_expsyms_RC
27066
27067# ### END LIBTOOL TAG CONFIG: $tagname
27068
27069__EOF__
27070
27071
27072else
27073 # If there is no Makefile yet, we rely on a make rule to execute
27074 # `config.status --recheck' to rerun these tests and create the
27075 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027076 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27077 if test -f "$ltmain_in"; then
27078 test -f Makefile && make "$ltmain"
27079 fi
John Criswell47fdd832003-07-14 16:52:07 +000027080fi
27081
27082
27083ac_ext=c
27084ac_cpp='$CPP $CPPFLAGS'
27085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27087ac_compiler_gnu=$ac_cv_c_compiler_gnu
27088
27089CC="$lt_save_CC"
27090
27091 ;;
27092
27093 *)
27094 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27095echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27096 { (exit 1); exit 1; }; }
27097 ;;
27098 esac
27099
27100 # Append the new tag name to the list of available tags.
27101 if test -n "$tagname" ; then
27102 available_tags="$available_tags $tagname"
27103 fi
27104 fi
27105 done
27106 IFS="$lt_save_ifs"
27107
27108 # Now substitute the updated list of available tags.
27109 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27110 mv "${ofile}T" "$ofile"
27111 chmod +x "$ofile"
27112 else
27113 rm -f "${ofile}T"
27114 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27115echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27116 { (exit 1); exit 1; }; }
27117 fi
27118fi
John Criswell7a73b802003-06-30 21:59:07 +000027119
27120
27121
27122# This can be used to rebuild libtool when needed
27123LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27124
27125# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027126LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000027127
27128# Prevent multiple expansion
27129
27130
27131
John Criswell47fdd832003-07-14 16:52:07 +000027132
27133
27134
27135
27136
27137
27138
27139
27140
27141
27142
27143
27144
27145
27146
27147
27148
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027149
Reid Spencer582a23c2004-12-29 07:07:57 +000027150if test "$lt_cv_dlopen_self" = "yes" ; then
27151
27152cat >>confdefs.h <<\_ACEOF
27153#define CAN_DLOPEN_SELF 1
27154_ACEOF
27155
27156fi
27157
Douglas Gregor01746742009-05-11 18:05:52 +000027158
Reid Spencer7931a782004-12-27 06:15:02 +000027159if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000027160 LLVMGCC="llvm-gcc${EXEEXT}"
27161 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027162 LLVMGCCCOMMAND="$LLVMGCC"
27163 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027164 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27165
27166 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27167
Reid Spencerc84492c2005-06-02 22:34:49 +000027168 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27169set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027170{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027172if test "${ac_cv_path_LLVMGCC+set}" = set; then
27173 echo $ECHO_N "(cached) $ECHO_C" >&6
27174else
27175 case $LLVMGCC in
27176 [\\/]* | ?:[\\/]*)
27177 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27178 ;;
27179 *)
27180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27181for as_dir in $PATH
27182do
27183 IFS=$as_save_IFS
27184 test -z "$as_dir" && as_dir=.
27185 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000027186 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 +000027187 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27189 break 2
27190 fi
27191done
27192done
Reid Spencera773bd52006-08-04 18:18:08 +000027193IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027194
Reid Spencer59473af2004-12-25 07:31:29 +000027195 ;;
27196esac
27197fi
27198LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000027199if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027200 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27201echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027202else
Reid Spencera773bd52006-08-04 18:18:08 +000027203 { echo "$as_me:$LINENO: result: no" >&5
27204echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027205fi
27206
Reid Spencera773bd52006-08-04 18:18:08 +000027207
Reid Spencerc84492c2005-06-02 22:34:49 +000027208 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27209set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027210{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027212if test "${ac_cv_path_LLVMGXX+set}" = set; then
27213 echo $ECHO_N "(cached) $ECHO_C" >&6
27214else
27215 case $LLVMGXX in
27216 [\\/]* | ?:[\\/]*)
27217 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27218 ;;
27219 *)
27220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27221for as_dir in $PATH
27222do
27223 IFS=$as_save_IFS
27224 test -z "$as_dir" && as_dir=.
27225 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000027226 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 +000027227 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27229 break 2
27230 fi
27231done
27232done
Reid Spencera773bd52006-08-04 18:18:08 +000027233IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027234
Reid Spencer59473af2004-12-25 07:31:29 +000027235 ;;
27236esac
27237fi
27238LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000027239if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027240 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27241echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027242else
Reid Spencera773bd52006-08-04 18:18:08 +000027243 { echo "$as_me:$LINENO: result: no" >&5
27244echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027245fi
27246
Reid Spencera773bd52006-08-04 18:18:08 +000027247
Reid Spencer59473af2004-12-25 07:31:29 +000027248else
Devang Patel5d28b882007-12-04 22:54:47 +000027249 if test -z "$LLVMGCC"; then
27250 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027251 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000027252 fi
27253 if test -z "$LLVMGXX"; then
27254 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027255 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000027256 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027257
Reid Spencer59473af2004-12-25 07:31:29 +000027258 LLVMGCC=$LLVMGCC
27259
27260 LLVMGXX=$LLVMGXX
27261
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027262 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27263
27264 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27265
Reid Spencer59473af2004-12-25 07:31:29 +000027266fi
27267
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027268
Reid Spencera773bd52006-08-04 18:18:08 +000027269{ echo "$as_me:$LINENO: checking tool compatibility" >&5
27270echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027271
Reid Spencer86901802004-12-08 23:07:27 +000027272ICC=no
27273IXX=no
27274case $CC in
27275 icc*|icpc*)
27276 ICC=yes
27277 IXX=yes
27278 ;;
27279 *)
27280 ;;
27281esac
27282
Duraid Madina937c60a2006-02-15 07:57:42 +000027283if test "$GCC" != "yes" && test "$ICC" != "yes"
27284then
27285 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27286echo "$as_me: error: gcc|icc required but not found" >&2;}
27287 { (exit 1); exit 1; }; }
27288fi
27289
27290if test "$GXX" != "yes" && test "$IXX" != "yes"
27291then
27292 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27293echo "$as_me: error: g++|icc required but not found" >&2;}
27294 { (exit 1); exit 1; }; }
27295fi
27296
Reid Spencer86901802004-12-08 23:07:27 +000027297if test "$GCC" = "yes"
27298then
Chris Lattner399c7c72008-02-05 19:43:53 +000027299 cat >conftest.$ac_ext <<_ACEOF
27300#if !defined(__GNUC__) || __GNUC__ < 3
27301#error Unsupported GCC version
27302#endif
27303
27304_ACEOF
27305rm -f conftest.$ac_objext
27306if { (ac_try="$ac_compile"
27307case "(($ac_try" in
27308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27309 *) ac_try_echo=$ac_try;;
27310esac
27311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27312 (eval "$ac_compile") 2>conftest.er1
27313 ac_status=$?
27314 grep -v '^ *+' conftest.er1 >conftest.err
27315 rm -f conftest.er1
27316 cat conftest.err >&5
27317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027318 (exit $ac_status); } &&
27319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27320 { (case "(($ac_try" in
27321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27322 *) ac_try_echo=$ac_try;;
27323esac
27324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27325 (eval "$ac_try") 2>&5
27326 ac_status=$?
27327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27328 (exit $ac_status); }; } &&
27329 { ac_try='test -s conftest.$ac_objext'
27330 { (case "(($ac_try" in
27331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27332 *) ac_try_echo=$ac_try;;
27333esac
27334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27335 (eval "$ac_try") 2>&5
27336 ac_status=$?
27337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338 (exit $ac_status); }; }; then
Chris Lattner399c7c72008-02-05 19:43:53 +000027339 :
27340else
27341 echo "$as_me: failed program was:" >&5
27342sed 's/^/| /' conftest.$ac_ext >&5
27343
27344 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027345echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27346 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027347fi
27348
27349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027350fi
27351
27352if test -z "$llvm_cv_gnu_make_command"
27353then
27354 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27355echo "$as_me: error: GNU Make required but not found" >&2;}
27356 { (exit 1); exit 1; }; }
27357fi
27358
Reid Spencera773bd52006-08-04 18:18:08 +000027359{ echo "$as_me:$LINENO: result: ok" >&5
27360echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027361
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000027362
27363
Reid Spencera773bd52006-08-04 18:18:08 +000027364{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27365echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027366if test "${ac_cv_lib_m_sin+set}" = set; then
27367 echo $ECHO_N "(cached) $ECHO_C" >&6
27368else
27369 ac_check_lib_save_LIBS=$LIBS
27370LIBS="-lm $LIBS"
27371cat >conftest.$ac_ext <<_ACEOF
27372/* confdefs.h. */
27373_ACEOF
27374cat confdefs.h >>conftest.$ac_ext
27375cat >>conftest.$ac_ext <<_ACEOF
27376/* end confdefs.h. */
27377
Reid Spencera773bd52006-08-04 18:18:08 +000027378/* Override any GCC internal prototype to avoid an error.
27379 Use char because int might match the return type of a GCC
27380 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027381#ifdef __cplusplus
27382extern "C"
27383#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027384char sin ();
27385int
27386main ()
27387{
Reid Spencera773bd52006-08-04 18:18:08 +000027388return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027389 ;
27390 return 0;
27391}
27392_ACEOF
27393rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027394if { (ac_try="$ac_link"
27395case "(($ac_try" in
27396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27397 *) ac_try_echo=$ac_try;;
27398esac
27399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27400 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027401 ac_status=$?
27402 grep -v '^ *+' conftest.er1 >conftest.err
27403 rm -f conftest.er1
27404 cat conftest.err >&5
27405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027406 (exit $ac_status); } &&
27407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27408 { (case "(($ac_try" in
27409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27410 *) ac_try_echo=$ac_try;;
27411esac
27412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27413 (eval "$ac_try") 2>&5
27414 ac_status=$?
27415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27416 (exit $ac_status); }; } &&
27417 { ac_try='test -s conftest$ac_exeext'
27418 { (case "(($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_try") 2>&5
27424 ac_status=$?
27425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27426 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027427 ac_cv_lib_m_sin=yes
27428else
27429 echo "$as_me: failed program was:" >&5
27430sed 's/^/| /' conftest.$ac_ext >&5
27431
Reid Spencera773bd52006-08-04 18:18:08 +000027432 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027433fi
Reid Spencera773bd52006-08-04 18:18:08 +000027434
Bill Wendlingebcceee2009-04-18 11:20:33 +000027435rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027436 conftest$ac_exeext conftest.$ac_ext
27437LIBS=$ac_check_lib_save_LIBS
27438fi
Reid Spencera773bd52006-08-04 18:18:08 +000027439{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27440echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027441if test $ac_cv_lib_m_sin = yes; then
27442 cat >>confdefs.h <<_ACEOF
27443#define HAVE_LIBM 1
27444_ACEOF
27445
27446 LIBS="-lm $LIBS"
27447
27448fi
27449
Jeff Cohen28783c32007-01-12 18:22:38 +000027450if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027451
Reid Spencera773bd52006-08-04 18:18:08 +000027452{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27453echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027454if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027455 echo $ECHO_N "(cached) $ECHO_C" >&6
27456else
27457 ac_check_lib_save_LIBS=$LIBS
27458LIBS="-limagehlp $LIBS"
27459cat >conftest.$ac_ext <<_ACEOF
27460/* confdefs.h. */
27461_ACEOF
27462cat confdefs.h >>conftest.$ac_ext
27463cat >>conftest.$ac_ext <<_ACEOF
27464/* end confdefs.h. */
27465
Reid Spencer48fdf912006-06-01 19:03:21 +000027466
Reid Spencer484fc8e2006-06-01 16:55:59 +000027467int
27468main ()
27469{
Reid Spencera773bd52006-08-04 18:18:08 +000027470return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027471 ;
27472 return 0;
27473}
27474_ACEOF
27475rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027476if { (ac_try="$ac_link"
27477case "(($ac_try" in
27478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27479 *) ac_try_echo=$ac_try;;
27480esac
27481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27482 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027483 ac_status=$?
27484 grep -v '^ *+' conftest.er1 >conftest.err
27485 rm -f conftest.er1
27486 cat conftest.err >&5
27487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027488 (exit $ac_status); } &&
27489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27490 { (case "(($ac_try" in
27491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27492 *) ac_try_echo=$ac_try;;
27493esac
27494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27495 (eval "$ac_try") 2>&5
27496 ac_status=$?
27497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498 (exit $ac_status); }; } &&
27499 { ac_try='test -s conftest$ac_exeext'
27500 { (case "(($ac_try" in
27501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27502 *) ac_try_echo=$ac_try;;
27503esac
27504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27505 (eval "$ac_try") 2>&5
27506 ac_status=$?
27507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27508 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027509 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027510else
27511 echo "$as_me: failed program was:" >&5
27512sed 's/^/| /' conftest.$ac_ext >&5
27513
Reid Spencera773bd52006-08-04 18:18:08 +000027514 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027515fi
Reid Spencera773bd52006-08-04 18:18:08 +000027516
Bill Wendlingebcceee2009-04-18 11:20:33 +000027517rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027518 conftest$ac_exeext conftest.$ac_ext
27519LIBS=$ac_check_lib_save_LIBS
27520fi
Reid Spencera773bd52006-08-04 18:18:08 +000027521{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27522echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027523if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027524 cat >>confdefs.h <<_ACEOF
27525#define HAVE_LIBIMAGEHLP 1
27526_ACEOF
27527
27528 LIBS="-limagehlp $LIBS"
27529
27530fi
27531
27532
Reid Spencera773bd52006-08-04 18:18:08 +000027533{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27534echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027535if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027536 echo $ECHO_N "(cached) $ECHO_C" >&6
27537else
27538 ac_check_lib_save_LIBS=$LIBS
27539LIBS="-lpsapi $LIBS"
27540cat >conftest.$ac_ext <<_ACEOF
27541/* confdefs.h. */
27542_ACEOF
27543cat confdefs.h >>conftest.$ac_ext
27544cat >>conftest.$ac_ext <<_ACEOF
27545/* end confdefs.h. */
27546
Reid Spencer48fdf912006-06-01 19:03:21 +000027547
Reid Spencer484fc8e2006-06-01 16:55:59 +000027548int
27549main ()
27550{
Reid Spencera773bd52006-08-04 18:18:08 +000027551return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027552 ;
27553 return 0;
27554}
27555_ACEOF
27556rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027557if { (ac_try="$ac_link"
27558case "(($ac_try" in
27559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27560 *) ac_try_echo=$ac_try;;
27561esac
27562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27563 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027564 ac_status=$?
27565 grep -v '^ *+' conftest.er1 >conftest.err
27566 rm -f conftest.er1
27567 cat conftest.err >&5
27568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027569 (exit $ac_status); } &&
27570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27571 { (case "(($ac_try" in
27572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27573 *) ac_try_echo=$ac_try;;
27574esac
27575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27576 (eval "$ac_try") 2>&5
27577 ac_status=$?
27578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579 (exit $ac_status); }; } &&
27580 { ac_try='test -s conftest$ac_exeext'
27581 { (case "(($ac_try" in
27582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27583 *) ac_try_echo=$ac_try;;
27584esac
27585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27586 (eval "$ac_try") 2>&5
27587 ac_status=$?
27588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27589 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027590 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027591else
27592 echo "$as_me: failed program was:" >&5
27593sed 's/^/| /' conftest.$ac_ext >&5
27594
Reid Spencera773bd52006-08-04 18:18:08 +000027595 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027596fi
Reid Spencera773bd52006-08-04 18:18:08 +000027597
Bill Wendlingebcceee2009-04-18 11:20:33 +000027598rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027599 conftest$ac_exeext conftest.$ac_ext
27600LIBS=$ac_check_lib_save_LIBS
27601fi
Reid Spencera773bd52006-08-04 18:18:08 +000027602{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27603echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027604if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027605 cat >>confdefs.h <<_ACEOF
27606#define HAVE_LIBPSAPI 1
27607_ACEOF
27608
27609 LIBS="-lpsapi $LIBS"
27610
27611fi
27612
27613fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027614
Reid Spencera773bd52006-08-04 18:18:08 +000027615{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27616echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027617if test "${ac_cv_search_dlopen+set}" = set; then
27618 echo $ECHO_N "(cached) $ECHO_C" >&6
27619else
27620 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027621cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027622/* confdefs.h. */
27623_ACEOF
27624cat confdefs.h >>conftest.$ac_ext
27625cat >>conftest.$ac_ext <<_ACEOF
27626/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027627
Reid Spencera773bd52006-08-04 18:18:08 +000027628/* Override any GCC internal prototype to avoid an error.
27629 Use char because int might match the return type of a GCC
27630 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027631#ifdef __cplusplus
27632extern "C"
27633#endif
John Criswell7a73b802003-06-30 21:59:07 +000027634char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027635int
27636main ()
27637{
Reid Spencera773bd52006-08-04 18:18:08 +000027638return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027639 ;
27640 return 0;
27641}
27642_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027643for ac_lib in '' dl; do
27644 if test -z "$ac_lib"; then
27645 ac_res="none required"
27646 else
27647 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027648 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027649 fi
27650 rm -f conftest.$ac_objext conftest$ac_exeext
27651if { (ac_try="$ac_link"
27652case "(($ac_try" in
27653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27654 *) ac_try_echo=$ac_try;;
27655esac
27656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27657 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027658 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027659 grep -v '^ *+' conftest.er1 >conftest.err
27660 rm -f conftest.er1
27661 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027663 (exit $ac_status); } &&
27664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27665 { (case "(($ac_try" in
27666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27667 *) ac_try_echo=$ac_try;;
27668esac
27669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27670 (eval "$ac_try") 2>&5
27671 ac_status=$?
27672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27673 (exit $ac_status); }; } &&
27674 { ac_try='test -s conftest$ac_exeext'
27675 { (case "(($ac_try" in
27676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27677 *) ac_try_echo=$ac_try;;
27678esac
27679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27680 (eval "$ac_try") 2>&5
27681 ac_status=$?
27682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27683 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027684 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027685else
27686 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027687sed 's/^/| /' conftest.$ac_ext >&5
27688
Reid Spencera773bd52006-08-04 18:18:08 +000027689
John Criswell7a73b802003-06-30 21:59:07 +000027690fi
Reid Spencera773bd52006-08-04 18:18:08 +000027691
Bill Wendlingebcceee2009-04-18 11:20:33 +000027692rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027693 conftest$ac_exeext
27694 if test "${ac_cv_search_dlopen+set}" = set; then
27695 break
John Criswell7a73b802003-06-30 21:59:07 +000027696fi
Reid Spencera773bd52006-08-04 18:18:08 +000027697done
27698if test "${ac_cv_search_dlopen+set}" = set; then
27699 :
27700else
27701 ac_cv_search_dlopen=no
27702fi
27703rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027704LIBS=$ac_func_search_save_LIBS
27705fi
Reid Spencera773bd52006-08-04 18:18:08 +000027706{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27707echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27708ac_res=$ac_cv_search_dlopen
27709if test "$ac_res" != no; then
27710 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027711
27712cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027713#define HAVE_DLOPEN 1
27714_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027715
27716else
Brian Gaekec45be042003-10-07 06:01:34 +000027717 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27718echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027719fi
27720
27721
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027722if test "$llvm_cv_enable_libffi" = "yes" ; then
27723 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
Nick Lewycky267fddb2009-04-13 04:26:27 +000027724echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27725if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027726 echo $ECHO_N "(cached) $ECHO_C" >&6
27727else
Nick Lewycky267fddb2009-04-13 04:26:27 +000027728 ac_func_search_save_LIBS=$LIBS
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027729cat >conftest.$ac_ext <<_ACEOF
27730/* confdefs.h. */
27731_ACEOF
27732cat confdefs.h >>conftest.$ac_ext
27733cat >>conftest.$ac_ext <<_ACEOF
27734/* end confdefs.h. */
27735
27736/* Override any GCC internal prototype to avoid an error.
27737 Use char because int might match the return type of a GCC
27738 builtin and then its argument prototype would still apply. */
27739#ifdef __cplusplus
27740extern "C"
27741#endif
27742char ffi_call ();
27743int
27744main ()
27745{
27746return ffi_call ();
27747 ;
27748 return 0;
27749}
27750_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000027751for ac_lib in '' ffi; do
27752 if test -z "$ac_lib"; then
27753 ac_res="none required"
27754 else
27755 ac_res=-l$ac_lib
27756 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27757 fi
27758 rm -f conftest.$ac_objext conftest$ac_exeext
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027759if { (ac_try="$ac_link"
27760case "(($ac_try" in
27761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27762 *) ac_try_echo=$ac_try;;
27763esac
27764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27765 (eval "$ac_link") 2>conftest.er1
27766 ac_status=$?
27767 grep -v '^ *+' conftest.er1 >conftest.err
27768 rm -f conftest.er1
27769 cat conftest.err >&5
27770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027771 (exit $ac_status); } &&
27772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27773 { (case "(($ac_try" in
27774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27775 *) ac_try_echo=$ac_try;;
27776esac
27777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27778 (eval "$ac_try") 2>&5
27779 ac_status=$?
27780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781 (exit $ac_status); }; } &&
27782 { ac_try='test -s conftest$ac_exeext'
27783 { (case "(($ac_try" in
27784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27785 *) ac_try_echo=$ac_try;;
27786esac
27787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27788 (eval "$ac_try") 2>&5
27789 ac_status=$?
27790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000027792 ac_cv_search_ffi_call=$ac_res
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027793else
27794 echo "$as_me: failed program was:" >&5
27795sed 's/^/| /' conftest.$ac_ext >&5
27796
Nick Lewycky267fddb2009-04-13 04:26:27 +000027797
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027798fi
27799
Bill Wendlingebcceee2009-04-18 11:20:33 +000027800rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky267fddb2009-04-13 04:26:27 +000027801 conftest$ac_exeext
27802 if test "${ac_cv_search_ffi_call+set}" = set; then
27803 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027804fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000027805done
27806if test "${ac_cv_search_ffi_call+set}" = set; then
27807 :
27808else
27809 ac_cv_search_ffi_call=no
27810fi
27811rm conftest.$ac_ext
27812LIBS=$ac_func_search_save_LIBS
27813fi
27814{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27815echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27816ac_res=$ac_cv_search_ffi_call
27817if test "$ac_res" != no; then
27818 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27819
27820cat >>confdefs.h <<\_ACEOF
27821#define HAVE_FFI_CALL 1
27822_ACEOF
27823
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027824else
27825 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27826echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27827fi
27828
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027829fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027830
Reid Spencera773bd52006-08-04 18:18:08 +000027831{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27832echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027833if test "${ac_cv_search_mallinfo+set}" = set; then
27834 echo $ECHO_N "(cached) $ECHO_C" >&6
27835else
27836 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027837cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027838/* confdefs.h. */
27839_ACEOF
27840cat confdefs.h >>conftest.$ac_ext
27841cat >>conftest.$ac_ext <<_ACEOF
27842/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027843
Reid Spencera773bd52006-08-04 18:18:08 +000027844/* Override any GCC internal prototype to avoid an error.
27845 Use char because int might match the return type of a GCC
27846 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027847#ifdef __cplusplus
27848extern "C"
27849#endif
John Criswell7a73b802003-06-30 21:59:07 +000027850char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027851int
27852main ()
27853{
Reid Spencera773bd52006-08-04 18:18:08 +000027854return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027855 ;
27856 return 0;
27857}
27858_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027859for ac_lib in '' malloc; do
27860 if test -z "$ac_lib"; then
27861 ac_res="none required"
27862 else
27863 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027864 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027865 fi
27866 rm -f conftest.$ac_objext conftest$ac_exeext
27867if { (ac_try="$ac_link"
27868case "(($ac_try" in
27869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27870 *) ac_try_echo=$ac_try;;
27871esac
27872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27873 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027874 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027875 grep -v '^ *+' conftest.er1 >conftest.err
27876 rm -f conftest.er1
27877 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027879 (exit $ac_status); } &&
27880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27881 { (case "(($ac_try" in
27882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27883 *) ac_try_echo=$ac_try;;
27884esac
27885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27886 (eval "$ac_try") 2>&5
27887 ac_status=$?
27888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27889 (exit $ac_status); }; } &&
27890 { ac_try='test -s conftest$ac_exeext'
27891 { (case "(($ac_try" in
27892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27893 *) ac_try_echo=$ac_try;;
27894esac
27895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27896 (eval "$ac_try") 2>&5
27897 ac_status=$?
27898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27899 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027900 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027901else
27902 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027903sed 's/^/| /' conftest.$ac_ext >&5
27904
Reid Spencera773bd52006-08-04 18:18:08 +000027905
John Criswell7a73b802003-06-30 21:59:07 +000027906fi
Reid Spencera773bd52006-08-04 18:18:08 +000027907
Bill Wendlingebcceee2009-04-18 11:20:33 +000027908rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027909 conftest$ac_exeext
27910 if test "${ac_cv_search_mallinfo+set}" = set; then
27911 break
John Criswell7a73b802003-06-30 21:59:07 +000027912fi
Reid Spencera773bd52006-08-04 18:18:08 +000027913done
27914if test "${ac_cv_search_mallinfo+set}" = set; then
27915 :
27916else
27917 ac_cv_search_mallinfo=no
27918fi
27919rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027920LIBS=$ac_func_search_save_LIBS
27921fi
Reid Spencera773bd52006-08-04 18:18:08 +000027922{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27923echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27924ac_res=$ac_cv_search_mallinfo
27925if test "$ac_res" != no; then
27926 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027927
27928cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027929#define HAVE_MALLINFO 1
27930_ACEOF
27931
27932fi
27933
27934
Reid Spencer0a262ba2005-08-24 10:07:20 +000027935if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027936
Reid Spencera773bd52006-08-04 18:18:08 +000027937{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27938echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027939if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27940 echo $ECHO_N "(cached) $ECHO_C" >&6
27941else
27942 ac_check_lib_save_LIBS=$LIBS
27943LIBS="-lpthread $LIBS"
27944cat >conftest.$ac_ext <<_ACEOF
27945/* confdefs.h. */
27946_ACEOF
27947cat confdefs.h >>conftest.$ac_ext
27948cat >>conftest.$ac_ext <<_ACEOF
27949/* end confdefs.h. */
27950
Reid Spencera773bd52006-08-04 18:18:08 +000027951/* Override any GCC internal prototype to avoid an error.
27952 Use char because int might match the return type of a GCC
27953 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027954#ifdef __cplusplus
27955extern "C"
27956#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027957char pthread_mutex_init ();
27958int
27959main ()
27960{
Reid Spencera773bd52006-08-04 18:18:08 +000027961return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027962 ;
27963 return 0;
27964}
27965_ACEOF
27966rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027967if { (ac_try="$ac_link"
27968case "(($ac_try" in
27969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27970 *) ac_try_echo=$ac_try;;
27971esac
27972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27973 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027974 ac_status=$?
27975 grep -v '^ *+' conftest.er1 >conftest.err
27976 rm -f conftest.er1
27977 cat conftest.err >&5
27978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027979 (exit $ac_status); } &&
27980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27981 { (case "(($ac_try" in
27982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27983 *) ac_try_echo=$ac_try;;
27984esac
27985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27986 (eval "$ac_try") 2>&5
27987 ac_status=$?
27988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27989 (exit $ac_status); }; } &&
27990 { ac_try='test -s conftest$ac_exeext'
27991 { (case "(($ac_try" in
27992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27993 *) ac_try_echo=$ac_try;;
27994esac
27995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27996 (eval "$ac_try") 2>&5
27997 ac_status=$?
27998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999 (exit $ac_status); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000028000 ac_cv_lib_pthread_pthread_mutex_init=yes
28001else
28002 echo "$as_me: failed program was:" >&5
28003sed 's/^/| /' conftest.$ac_ext >&5
28004
Reid Spencera773bd52006-08-04 18:18:08 +000028005 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000028006fi
Reid Spencera773bd52006-08-04 18:18:08 +000028007
Bill Wendlingebcceee2009-04-18 11:20:33 +000028008rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000028009 conftest$ac_exeext conftest.$ac_ext
28010LIBS=$ac_check_lib_save_LIBS
28011fi
Reid Spencera773bd52006-08-04 18:18:08 +000028012{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28013echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000028014if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28015 cat >>confdefs.h <<_ACEOF
28016#define HAVE_LIBPTHREAD 1
28017_ACEOF
28018
28019 LIBS="-lpthread $LIBS"
28020
28021fi
28022
Reid Spencera773bd52006-08-04 18:18:08 +000028023 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28024echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000028025if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28026 echo $ECHO_N "(cached) $ECHO_C" >&6
28027else
28028 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000028029cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000028030/* confdefs.h. */
28031_ACEOF
28032cat confdefs.h >>conftest.$ac_ext
28033cat >>conftest.$ac_ext <<_ACEOF
28034/* end confdefs.h. */
28035
Reid Spencera773bd52006-08-04 18:18:08 +000028036/* Override any GCC internal prototype to avoid an error.
28037 Use char because int might match the return type of a GCC
28038 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000028039#ifdef __cplusplus
28040extern "C"
28041#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000028042char pthread_mutex_lock ();
28043int
28044main ()
28045{
Reid Spencera773bd52006-08-04 18:18:08 +000028046return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000028047 ;
28048 return 0;
28049}
28050_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028051for ac_lib in '' pthread; do
28052 if test -z "$ac_lib"; then
28053 ac_res="none required"
28054 else
28055 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000028056 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028057 fi
28058 rm -f conftest.$ac_objext conftest$ac_exeext
28059if { (ac_try="$ac_link"
28060case "(($ac_try" in
28061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28062 *) ac_try_echo=$ac_try;;
28063esac
28064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28065 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000028066 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028067 grep -v '^ *+' conftest.er1 >conftest.err
28068 rm -f conftest.er1
28069 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000028070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028071 (exit $ac_status); } &&
28072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28073 { (case "(($ac_try" in
28074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28075 *) ac_try_echo=$ac_try;;
28076esac
28077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28078 (eval "$ac_try") 2>&5
28079 ac_status=$?
28080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28081 (exit $ac_status); }; } &&
28082 { ac_try='test -s conftest$ac_exeext'
28083 { (case "(($ac_try" in
28084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28085 *) ac_try_echo=$ac_try;;
28086esac
28087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28088 (eval "$ac_try") 2>&5
28089 ac_status=$?
28090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028092 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000028093else
28094 echo "$as_me: failed program was:" >&5
28095sed 's/^/| /' conftest.$ac_ext >&5
28096
Reid Spencera773bd52006-08-04 18:18:08 +000028097
Brian Gaeke5f268f72003-12-05 19:29:01 +000028098fi
Reid Spencera773bd52006-08-04 18:18:08 +000028099
Bill Wendlingebcceee2009-04-18 11:20:33 +000028100rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028101 conftest$ac_exeext
28102 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28103 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000028104fi
Reid Spencera773bd52006-08-04 18:18:08 +000028105done
28106if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28107 :
28108else
28109 ac_cv_search_pthread_mutex_lock=no
28110fi
28111rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000028112LIBS=$ac_func_search_save_LIBS
28113fi
Reid Spencera773bd52006-08-04 18:18:08 +000028114{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28115echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28116ac_res=$ac_cv_search_pthread_mutex_lock
28117if test "$ac_res" != no; then
28118 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000028119
John Criswell40468462004-09-24 21:19:06 +000028120cat >>confdefs.h <<\_ACEOF
28121#define HAVE_PTHREAD_MUTEX_LOCK 1
28122_ACEOF
28123
28124fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000028125
Owen Andersonde8aed22009-06-16 18:20:20 +000028126 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28127echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28128if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28129 echo $ECHO_N "(cached) $ECHO_C" >&6
28130else
28131 ac_func_search_save_LIBS=$LIBS
28132cat >conftest.$ac_ext <<_ACEOF
28133/* confdefs.h. */
28134_ACEOF
28135cat confdefs.h >>conftest.$ac_ext
28136cat >>conftest.$ac_ext <<_ACEOF
28137/* end confdefs.h. */
28138
28139/* Override any GCC internal prototype to avoid an error.
28140 Use char because int might match the return type of a GCC
28141 builtin and then its argument prototype would still apply. */
28142#ifdef __cplusplus
28143extern "C"
28144#endif
28145char pthread_rwlock_init ();
28146int
28147main ()
28148{
28149return pthread_rwlock_init ();
28150 ;
28151 return 0;
28152}
28153_ACEOF
28154for ac_lib in '' pthread; do
28155 if test -z "$ac_lib"; then
28156 ac_res="none required"
28157 else
28158 ac_res=-l$ac_lib
28159 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28160 fi
28161 rm -f conftest.$ac_objext conftest$ac_exeext
28162if { (ac_try="$ac_link"
28163case "(($ac_try" in
28164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28165 *) ac_try_echo=$ac_try;;
28166esac
28167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28168 (eval "$ac_link") 2>conftest.er1
28169 ac_status=$?
28170 grep -v '^ *+' conftest.er1 >conftest.err
28171 rm -f conftest.er1
28172 cat conftest.err >&5
28173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174 (exit $ac_status); } &&
28175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28176 { (case "(($ac_try" in
28177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28178 *) ac_try_echo=$ac_try;;
28179esac
28180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28181 (eval "$ac_try") 2>&5
28182 ac_status=$?
28183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28184 (exit $ac_status); }; } &&
28185 { ac_try='test -s conftest$ac_exeext'
28186 { (case "(($ac_try" in
28187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28188 *) ac_try_echo=$ac_try;;
28189esac
28190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28191 (eval "$ac_try") 2>&5
28192 ac_status=$?
28193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28194 (exit $ac_status); }; }; then
28195 ac_cv_search_pthread_rwlock_init=$ac_res
28196else
28197 echo "$as_me: failed program was:" >&5
28198sed 's/^/| /' conftest.$ac_ext >&5
28199
28200
28201fi
28202
28203rm -f core conftest.err conftest.$ac_objext \
28204 conftest$ac_exeext
28205 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28206 break
28207fi
28208done
28209if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28210 :
28211else
28212 ac_cv_search_pthread_rwlock_init=no
28213fi
28214rm conftest.$ac_ext
28215LIBS=$ac_func_search_save_LIBS
28216fi
28217{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28218echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28219ac_res=$ac_cv_search_pthread_rwlock_init
28220if test "$ac_res" != no; then
28221 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28222
28223cat >>confdefs.h <<\_ACEOF
28224#define HAVE_PTHREAD_RWLOCK_INIT 1
28225_ACEOF
28226
28227fi
28228
Owen Anderson27fcfe12009-06-25 23:10:26 +000028229 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28230echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28231if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28232 echo $ECHO_N "(cached) $ECHO_C" >&6
28233else
28234 ac_func_search_save_LIBS=$LIBS
28235cat >conftest.$ac_ext <<_ACEOF
28236/* confdefs.h. */
28237_ACEOF
28238cat confdefs.h >>conftest.$ac_ext
28239cat >>conftest.$ac_ext <<_ACEOF
28240/* end confdefs.h. */
28241
28242/* Override any GCC internal prototype to avoid an error.
28243 Use char because int might match the return type of a GCC
28244 builtin and then its argument prototype would still apply. */
28245#ifdef __cplusplus
28246extern "C"
28247#endif
28248char pthread_getspecific ();
28249int
28250main ()
28251{
28252return pthread_getspecific ();
28253 ;
28254 return 0;
28255}
28256_ACEOF
28257for ac_lib in '' pthread; do
28258 if test -z "$ac_lib"; then
28259 ac_res="none required"
28260 else
28261 ac_res=-l$ac_lib
28262 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28263 fi
28264 rm -f conftest.$ac_objext conftest$ac_exeext
28265if { (ac_try="$ac_link"
28266case "(($ac_try" in
28267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28268 *) ac_try_echo=$ac_try;;
28269esac
28270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28271 (eval "$ac_link") 2>conftest.er1
28272 ac_status=$?
28273 grep -v '^ *+' conftest.er1 >conftest.err
28274 rm -f conftest.er1
28275 cat conftest.err >&5
28276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28277 (exit $ac_status); } &&
28278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28279 { (case "(($ac_try" in
28280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28281 *) ac_try_echo=$ac_try;;
28282esac
28283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28284 (eval "$ac_try") 2>&5
28285 ac_status=$?
28286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28287 (exit $ac_status); }; } &&
28288 { ac_try='test -s conftest$ac_exeext'
28289 { (case "(($ac_try" in
28290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28291 *) ac_try_echo=$ac_try;;
28292esac
28293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28294 (eval "$ac_try") 2>&5
28295 ac_status=$?
28296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28297 (exit $ac_status); }; }; then
28298 ac_cv_search_pthread_getspecific=$ac_res
28299else
28300 echo "$as_me: failed program was:" >&5
28301sed 's/^/| /' conftest.$ac_ext >&5
28302
28303
28304fi
28305
28306rm -f core conftest.err conftest.$ac_objext \
28307 conftest$ac_exeext
28308 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28309 break
28310fi
28311done
28312if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28313 :
28314else
28315 ac_cv_search_pthread_getspecific=no
28316fi
28317rm conftest.$ac_ext
28318LIBS=$ac_func_search_save_LIBS
28319fi
28320{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28321echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28322ac_res=$ac_cv_search_pthread_getspecific
28323if test "$ac_res" != no; then
28324 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28325
28326cat >>confdefs.h <<\_ACEOF
28327#define HAVE_PTHREAD_GETSPECIFIC 1
28328_ACEOF
28329
28330fi
28331
Reid Spencer0a262ba2005-08-24 10:07:20 +000028332fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000028333
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028334
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028335# Check whether --with-udis86 was given.
28336if test "${with_udis86+set}" = set; then
28337 withval=$with_udis86;
28338 USE_UDIS86=1
28339
28340 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000028341 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028342 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28343 esac
28344
28345{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28346echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28347if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28348 echo $ECHO_N "(cached) $ECHO_C" >&6
28349else
28350 ac_check_lib_save_LIBS=$LIBS
28351LIBS="-ludis86 $LIBS"
28352cat >conftest.$ac_ext <<_ACEOF
28353/* confdefs.h. */
28354_ACEOF
28355cat confdefs.h >>conftest.$ac_ext
28356cat >>conftest.$ac_ext <<_ACEOF
28357/* end confdefs.h. */
28358
28359/* Override any GCC internal prototype to avoid an error.
28360 Use char because int might match the return type of a GCC
28361 builtin and then its argument prototype would still apply. */
28362#ifdef __cplusplus
28363extern "C"
28364#endif
28365char ud_init ();
28366int
28367main ()
28368{
28369return ud_init ();
28370 ;
28371 return 0;
28372}
28373_ACEOF
28374rm -f conftest.$ac_objext conftest$ac_exeext
28375if { (ac_try="$ac_link"
28376case "(($ac_try" in
28377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28378 *) ac_try_echo=$ac_try;;
28379esac
28380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28381 (eval "$ac_link") 2>conftest.er1
28382 ac_status=$?
28383 grep -v '^ *+' conftest.er1 >conftest.err
28384 rm -f conftest.er1
28385 cat conftest.err >&5
28386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028387 (exit $ac_status); } &&
28388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28389 { (case "(($ac_try" in
28390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28391 *) ac_try_echo=$ac_try;;
28392esac
28393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28394 (eval "$ac_try") 2>&5
28395 ac_status=$?
28396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28397 (exit $ac_status); }; } &&
28398 { ac_try='test -s conftest$ac_exeext'
28399 { (case "(($ac_try" in
28400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28401 *) ac_try_echo=$ac_try;;
28402esac
28403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28404 (eval "$ac_try") 2>&5
28405 ac_status=$?
28406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28407 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028408 ac_cv_lib_udis86_ud_init=yes
28409else
28410 echo "$as_me: failed program was:" >&5
28411sed 's/^/| /' conftest.$ac_ext >&5
28412
28413 ac_cv_lib_udis86_ud_init=no
28414fi
28415
Bill Wendlingebcceee2009-04-18 11:20:33 +000028416rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028417 conftest$ac_exeext conftest.$ac_ext
28418LIBS=$ac_check_lib_save_LIBS
28419fi
28420{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28421echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28422if test $ac_cv_lib_udis86_ud_init = yes; then
28423 cat >>confdefs.h <<_ACEOF
28424#define HAVE_LIBUDIS86 1
28425_ACEOF
28426
28427 LIBS="-ludis86 $LIBS"
28428
28429else
28430
28431 echo "Error! You need to have libudis86 around."
28432 exit -1
28433
28434fi
28435
28436
28437else
28438 USE_UDIS86=0
28439
28440fi
28441
28442
28443cat >>confdefs.h <<_ACEOF
28444#define USE_UDIS86 $USE_UDIS86
28445_ACEOF
28446
28447
28448
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028449# Check whether --with-oprofile was given.
28450if test "${with_oprofile+set}" = set; then
28451 withval=$with_oprofile;
28452 USE_OPROFILE=1
28453
28454 case "$withval" in
28455 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28456 *) llvm_cv_oppath="${withval}/lib/oprofile"
28457 CPPFLAGS="-I${withval}/include";;
28458 esac
28459 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28460 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28461echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28462if test "${ac_cv_search_op_open_agent+set}" = set; then
28463 echo $ECHO_N "(cached) $ECHO_C" >&6
28464else
28465 ac_func_search_save_LIBS=$LIBS
28466cat >conftest.$ac_ext <<_ACEOF
28467/* confdefs.h. */
28468_ACEOF
28469cat confdefs.h >>conftest.$ac_ext
28470cat >>conftest.$ac_ext <<_ACEOF
28471/* end confdefs.h. */
28472
28473/* Override any GCC internal prototype to avoid an error.
28474 Use char because int might match the return type of a GCC
28475 builtin and then its argument prototype would still apply. */
28476#ifdef __cplusplus
28477extern "C"
28478#endif
28479char op_open_agent ();
28480int
28481main ()
28482{
28483return op_open_agent ();
28484 ;
28485 return 0;
28486}
28487_ACEOF
28488for ac_lib in '' opagent; do
28489 if test -z "$ac_lib"; then
28490 ac_res="none required"
28491 else
28492 ac_res=-l$ac_lib
28493 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28494 fi
28495 rm -f conftest.$ac_objext conftest$ac_exeext
28496if { (ac_try="$ac_link"
28497case "(($ac_try" in
28498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28499 *) ac_try_echo=$ac_try;;
28500esac
28501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28502 (eval "$ac_link") 2>conftest.er1
28503 ac_status=$?
28504 grep -v '^ *+' conftest.er1 >conftest.err
28505 rm -f conftest.er1
28506 cat conftest.err >&5
28507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508 (exit $ac_status); } &&
28509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28510 { (case "(($ac_try" in
28511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28512 *) ac_try_echo=$ac_try;;
28513esac
28514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28515 (eval "$ac_try") 2>&5
28516 ac_status=$?
28517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28518 (exit $ac_status); }; } &&
28519 { ac_try='test -s conftest$ac_exeext'
28520 { (case "(($ac_try" in
28521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28522 *) ac_try_echo=$ac_try;;
28523esac
28524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28525 (eval "$ac_try") 2>&5
28526 ac_status=$?
28527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28528 (exit $ac_status); }; }; then
28529 ac_cv_search_op_open_agent=$ac_res
28530else
28531 echo "$as_me: failed program was:" >&5
28532sed 's/^/| /' conftest.$ac_ext >&5
28533
28534
28535fi
28536
28537rm -f core conftest.err conftest.$ac_objext \
28538 conftest$ac_exeext
28539 if test "${ac_cv_search_op_open_agent+set}" = set; then
28540 break
28541fi
28542done
28543if test "${ac_cv_search_op_open_agent+set}" = set; then
28544 :
28545else
28546 ac_cv_search_op_open_agent=no
28547fi
28548rm conftest.$ac_ext
28549LIBS=$ac_func_search_save_LIBS
28550fi
28551{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28552echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28553ac_res=$ac_cv_search_op_open_agent
28554if test "$ac_res" != no; then
28555 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28556
28557else
28558
28559 echo "Error! You need to have libopagent around."
28560 exit -1
28561
28562fi
28563
28564 if test "${ac_cv_header_opagent_h+set}" = set; then
28565 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28566echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28567if test "${ac_cv_header_opagent_h+set}" = set; then
28568 echo $ECHO_N "(cached) $ECHO_C" >&6
28569fi
28570{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28571echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28572else
28573 # Is the header compilable?
28574{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
28575echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28576cat >conftest.$ac_ext <<_ACEOF
28577/* confdefs.h. */
28578_ACEOF
28579cat confdefs.h >>conftest.$ac_ext
28580cat >>conftest.$ac_ext <<_ACEOF
28581/* end confdefs.h. */
28582$ac_includes_default
28583#include <opagent.h>
28584_ACEOF
28585rm -f conftest.$ac_objext
28586if { (ac_try="$ac_compile"
28587case "(($ac_try" in
28588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28589 *) ac_try_echo=$ac_try;;
28590esac
28591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28592 (eval "$ac_compile") 2>conftest.er1
28593 ac_status=$?
28594 grep -v '^ *+' conftest.er1 >conftest.err
28595 rm -f conftest.er1
28596 cat conftest.err >&5
28597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28598 (exit $ac_status); } &&
28599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28600 { (case "(($ac_try" in
28601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28602 *) ac_try_echo=$ac_try;;
28603esac
28604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28605 (eval "$ac_try") 2>&5
28606 ac_status=$?
28607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608 (exit $ac_status); }; } &&
28609 { ac_try='test -s conftest.$ac_objext'
28610 { (case "(($ac_try" in
28611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28612 *) ac_try_echo=$ac_try;;
28613esac
28614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28615 (eval "$ac_try") 2>&5
28616 ac_status=$?
28617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618 (exit $ac_status); }; }; then
28619 ac_header_compiler=yes
28620else
28621 echo "$as_me: failed program was:" >&5
28622sed 's/^/| /' conftest.$ac_ext >&5
28623
28624 ac_header_compiler=no
28625fi
28626
28627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28628{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28629echo "${ECHO_T}$ac_header_compiler" >&6; }
28630
28631# Is the header present?
28632{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
28633echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28634cat >conftest.$ac_ext <<_ACEOF
28635/* confdefs.h. */
28636_ACEOF
28637cat confdefs.h >>conftest.$ac_ext
28638cat >>conftest.$ac_ext <<_ACEOF
28639/* end confdefs.h. */
28640#include <opagent.h>
28641_ACEOF
28642if { (ac_try="$ac_cpp conftest.$ac_ext"
28643case "(($ac_try" in
28644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28645 *) ac_try_echo=$ac_try;;
28646esac
28647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28649 ac_status=$?
28650 grep -v '^ *+' conftest.er1 >conftest.err
28651 rm -f conftest.er1
28652 cat conftest.err >&5
28653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28654 (exit $ac_status); } >/dev/null; then
28655 if test -s conftest.err; then
28656 ac_cpp_err=$ac_c_preproc_warn_flag
28657 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28658 else
28659 ac_cpp_err=
28660 fi
28661else
28662 ac_cpp_err=yes
28663fi
28664if test -z "$ac_cpp_err"; then
28665 ac_header_preproc=yes
28666else
28667 echo "$as_me: failed program was:" >&5
28668sed 's/^/| /' conftest.$ac_ext >&5
28669
28670 ac_header_preproc=no
28671fi
28672
28673rm -f conftest.err conftest.$ac_ext
28674{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28675echo "${ECHO_T}$ac_header_preproc" >&6; }
28676
28677# So? What about this header?
28678case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28679 yes:no: )
28680 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28681echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28682 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28683echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28684 ac_header_preproc=yes
28685 ;;
28686 no:yes:* )
28687 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28688echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28689 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28690echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28691 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28692echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28693 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28694echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28695 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28696echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28697 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28698echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28699 ( cat <<\_ASBOX
28700## ----------------------------------- ##
28701## Report this to llvmbugs@cs.uiuc.edu ##
28702## ----------------------------------- ##
28703_ASBOX
28704 ) | sed "s/^/$as_me: WARNING: /" >&2
28705 ;;
28706esac
28707{ echo "$as_me:$LINENO: checking for opagent.h" >&5
28708echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28709if test "${ac_cv_header_opagent_h+set}" = set; then
28710 echo $ECHO_N "(cached) $ECHO_C" >&6
28711else
28712 ac_cv_header_opagent_h=$ac_header_preproc
28713fi
28714{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28715echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28716
28717fi
28718if test $ac_cv_header_opagent_h = yes; then
28719 :
28720else
28721
28722 echo "Error! You need to have opagent.h around."
28723 exit -1
28724
28725fi
28726
28727
28728
28729else
28730
28731 llvm_cv_old_LIBS="$LIBS"
28732 LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile"
28733 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28734echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28735if test "${ac_cv_search_op_open_agent+set}" = set; then
28736 echo $ECHO_N "(cached) $ECHO_C" >&6
28737else
28738 ac_func_search_save_LIBS=$LIBS
28739cat >conftest.$ac_ext <<_ACEOF
28740/* confdefs.h. */
28741_ACEOF
28742cat confdefs.h >>conftest.$ac_ext
28743cat >>conftest.$ac_ext <<_ACEOF
28744/* end confdefs.h. */
28745
28746/* Override any GCC internal prototype to avoid an error.
28747 Use char because int might match the return type of a GCC
28748 builtin and then its argument prototype would still apply. */
28749#ifdef __cplusplus
28750extern "C"
28751#endif
28752char op_open_agent ();
28753int
28754main ()
28755{
28756return op_open_agent ();
28757 ;
28758 return 0;
28759}
28760_ACEOF
28761for ac_lib in '' opagent; do
28762 if test -z "$ac_lib"; then
28763 ac_res="none required"
28764 else
28765 ac_res=-l$ac_lib
28766 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28767 fi
28768 rm -f conftest.$ac_objext conftest$ac_exeext
28769if { (ac_try="$ac_link"
28770case "(($ac_try" in
28771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28772 *) ac_try_echo=$ac_try;;
28773esac
28774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28775 (eval "$ac_link") 2>conftest.er1
28776 ac_status=$?
28777 grep -v '^ *+' conftest.er1 >conftest.err
28778 rm -f conftest.er1
28779 cat conftest.err >&5
28780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781 (exit $ac_status); } &&
28782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28783 { (case "(($ac_try" in
28784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28785 *) ac_try_echo=$ac_try;;
28786esac
28787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28788 (eval "$ac_try") 2>&5
28789 ac_status=$?
28790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28791 (exit $ac_status); }; } &&
28792 { ac_try='test -s conftest$ac_exeext'
28793 { (case "(($ac_try" in
28794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28795 *) ac_try_echo=$ac_try;;
28796esac
28797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28798 (eval "$ac_try") 2>&5
28799 ac_status=$?
28800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28801 (exit $ac_status); }; }; then
28802 ac_cv_search_op_open_agent=$ac_res
28803else
28804 echo "$as_me: failed program was:" >&5
28805sed 's/^/| /' conftest.$ac_ext >&5
28806
28807
28808fi
28809
28810rm -f core conftest.err conftest.$ac_objext \
28811 conftest$ac_exeext
28812 if test "${ac_cv_search_op_open_agent+set}" = set; then
28813 break
28814fi
28815done
28816if test "${ac_cv_search_op_open_agent+set}" = set; then
28817 :
28818else
28819 ac_cv_search_op_open_agent=no
28820fi
28821rm conftest.$ac_ext
28822LIBS=$ac_func_search_save_LIBS
28823fi
28824{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28825echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28826ac_res=$ac_cv_search_op_open_agent
28827if test "$ac_res" != no; then
28828 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28829 USE_OPROFILE=1
28830
28831else
28832 LIBS="$llvm_cv_old_LIBS"
28833 USE_OPROFILE=0
28834
28835fi
28836
28837 if test "${ac_cv_header_opagent_h+set}" = set; then
28838 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28839echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28840if test "${ac_cv_header_opagent_h+set}" = set; then
28841 echo $ECHO_N "(cached) $ECHO_C" >&6
28842fi
28843{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28844echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28845else
28846 # Is the header compilable?
28847{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
28848echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28849cat >conftest.$ac_ext <<_ACEOF
28850/* confdefs.h. */
28851_ACEOF
28852cat confdefs.h >>conftest.$ac_ext
28853cat >>conftest.$ac_ext <<_ACEOF
28854/* end confdefs.h. */
28855$ac_includes_default
28856#include <opagent.h>
28857_ACEOF
28858rm -f conftest.$ac_objext
28859if { (ac_try="$ac_compile"
28860case "(($ac_try" in
28861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28862 *) ac_try_echo=$ac_try;;
28863esac
28864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28865 (eval "$ac_compile") 2>conftest.er1
28866 ac_status=$?
28867 grep -v '^ *+' conftest.er1 >conftest.err
28868 rm -f conftest.er1
28869 cat conftest.err >&5
28870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28871 (exit $ac_status); } &&
28872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28873 { (case "(($ac_try" in
28874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28875 *) ac_try_echo=$ac_try;;
28876esac
28877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28878 (eval "$ac_try") 2>&5
28879 ac_status=$?
28880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28881 (exit $ac_status); }; } &&
28882 { ac_try='test -s conftest.$ac_objext'
28883 { (case "(($ac_try" in
28884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28885 *) ac_try_echo=$ac_try;;
28886esac
28887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28888 (eval "$ac_try") 2>&5
28889 ac_status=$?
28890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28891 (exit $ac_status); }; }; then
28892 ac_header_compiler=yes
28893else
28894 echo "$as_me: failed program was:" >&5
28895sed 's/^/| /' conftest.$ac_ext >&5
28896
28897 ac_header_compiler=no
28898fi
28899
28900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28901{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28902echo "${ECHO_T}$ac_header_compiler" >&6; }
28903
28904# Is the header present?
28905{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
28906echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28907cat >conftest.$ac_ext <<_ACEOF
28908/* confdefs.h. */
28909_ACEOF
28910cat confdefs.h >>conftest.$ac_ext
28911cat >>conftest.$ac_ext <<_ACEOF
28912/* end confdefs.h. */
28913#include <opagent.h>
28914_ACEOF
28915if { (ac_try="$ac_cpp conftest.$ac_ext"
28916case "(($ac_try" in
28917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28918 *) ac_try_echo=$ac_try;;
28919esac
28920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28922 ac_status=$?
28923 grep -v '^ *+' conftest.er1 >conftest.err
28924 rm -f conftest.er1
28925 cat conftest.err >&5
28926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28927 (exit $ac_status); } >/dev/null; then
28928 if test -s conftest.err; then
28929 ac_cpp_err=$ac_c_preproc_warn_flag
28930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28931 else
28932 ac_cpp_err=
28933 fi
28934else
28935 ac_cpp_err=yes
28936fi
28937if test -z "$ac_cpp_err"; then
28938 ac_header_preproc=yes
28939else
28940 echo "$as_me: failed program was:" >&5
28941sed 's/^/| /' conftest.$ac_ext >&5
28942
28943 ac_header_preproc=no
28944fi
28945
28946rm -f conftest.err conftest.$ac_ext
28947{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28948echo "${ECHO_T}$ac_header_preproc" >&6; }
28949
28950# So? What about this header?
28951case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28952 yes:no: )
28953 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28954echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28955 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28956echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28957 ac_header_preproc=yes
28958 ;;
28959 no:yes:* )
28960 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28961echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28962 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28963echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28964 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28965echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28966 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28967echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28968 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28969echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28970 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28971echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28972 ( cat <<\_ASBOX
28973## ----------------------------------- ##
28974## Report this to llvmbugs@cs.uiuc.edu ##
28975## ----------------------------------- ##
28976_ASBOX
28977 ) | sed "s/^/$as_me: WARNING: /" >&2
28978 ;;
28979esac
28980{ echo "$as_me:$LINENO: checking for opagent.h" >&5
28981echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28982if test "${ac_cv_header_opagent_h+set}" = set; then
28983 echo $ECHO_N "(cached) $ECHO_C" >&6
28984else
28985 ac_cv_header_opagent_h=$ac_header_preproc
28986fi
28987{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28988echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28989
28990fi
28991if test $ac_cv_header_opagent_h = yes; then
28992 :
28993else
28994
28995 LIBS="$llvm_cv_old_LIBS"
28996 USE_OPROFILE=0
28997
28998
28999fi
29000
29001
29002
29003fi
29004
29005
29006cat >>confdefs.h <<_ACEOF
29007#define USE_OPROFILE $USE_OPROFILE
29008_ACEOF
29009
29010
29011
Reid Spencer59473af2004-12-25 07:31:29 +000029012
29013
29014
29015
29016
29017ac_header_dirent=no
29018for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29019 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029020{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29021echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29022if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029023 echo $ECHO_N "(cached) $ECHO_C" >&6
29024else
29025 cat >conftest.$ac_ext <<_ACEOF
29026/* confdefs.h. */
29027_ACEOF
29028cat confdefs.h >>conftest.$ac_ext
29029cat >>conftest.$ac_ext <<_ACEOF
29030/* end confdefs.h. */
29031#include <sys/types.h>
29032#include <$ac_hdr>
29033
29034int
29035main ()
29036{
29037if ((DIR *) 0)
29038return 0;
29039 ;
29040 return 0;
29041}
29042_ACEOF
29043rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029044if { (ac_try="$ac_compile"
29045case "(($ac_try" in
29046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29047 *) ac_try_echo=$ac_try;;
29048esac
29049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29050 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029051 ac_status=$?
29052 grep -v '^ *+' conftest.er1 >conftest.err
29053 rm -f conftest.er1
29054 cat conftest.err >&5
29055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029056 (exit $ac_status); } &&
29057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29058 { (case "(($ac_try" in
29059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29060 *) ac_try_echo=$ac_try;;
29061esac
29062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29063 (eval "$ac_try") 2>&5
29064 ac_status=$?
29065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29066 (exit $ac_status); }; } &&
29067 { ac_try='test -s conftest.$ac_objext'
29068 { (case "(($ac_try" in
29069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29070 *) ac_try_echo=$ac_try;;
29071esac
29072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29073 (eval "$ac_try") 2>&5
29074 ac_status=$?
29075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29076 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029077 eval "$as_ac_Header=yes"
29078else
29079 echo "$as_me: failed program was:" >&5
29080sed 's/^/| /' conftest.$ac_ext >&5
29081
Reid Spencera773bd52006-08-04 18:18:08 +000029082 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000029083fi
Reid Spencera773bd52006-08-04 18:18:08 +000029084
29085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029086fi
Reid Spencera773bd52006-08-04 18:18:08 +000029087ac_res=`eval echo '${'$as_ac_Header'}'`
29088 { echo "$as_me:$LINENO: result: $ac_res" >&5
29089echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029090if test `eval echo '${'$as_ac_Header'}'` = yes; then
29091 cat >>confdefs.h <<_ACEOF
29092#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29093_ACEOF
29094
29095ac_header_dirent=$ac_hdr; break
29096fi
29097
29098done
29099# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29100if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000029101 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29102echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029103if test "${ac_cv_search_opendir+set}" = set; then
29104 echo $ECHO_N "(cached) $ECHO_C" >&6
29105else
29106 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000029107cat >conftest.$ac_ext <<_ACEOF
29108/* confdefs.h. */
29109_ACEOF
29110cat confdefs.h >>conftest.$ac_ext
29111cat >>conftest.$ac_ext <<_ACEOF
29112/* end confdefs.h. */
29113
Reid Spencera773bd52006-08-04 18:18:08 +000029114/* Override any GCC internal prototype to avoid an error.
29115 Use char because int might match the return type of a GCC
29116 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000029117#ifdef __cplusplus
29118extern "C"
29119#endif
Reid Spencer59473af2004-12-25 07:31:29 +000029120char opendir ();
29121int
29122main ()
29123{
Reid Spencera773bd52006-08-04 18:18:08 +000029124return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000029125 ;
29126 return 0;
29127}
29128_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029129for ac_lib in '' dir; do
29130 if test -z "$ac_lib"; then
29131 ac_res="none required"
29132 else
29133 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000029134 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000029135 fi
29136 rm -f conftest.$ac_objext conftest$ac_exeext
29137if { (ac_try="$ac_link"
29138case "(($ac_try" in
29139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29140 *) ac_try_echo=$ac_try;;
29141esac
29142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29143 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029144 ac_status=$?
29145 grep -v '^ *+' conftest.er1 >conftest.err
29146 rm -f conftest.er1
29147 cat conftest.err >&5
29148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029149 (exit $ac_status); } &&
29150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29151 { (case "(($ac_try" in
29152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29153 *) ac_try_echo=$ac_try;;
29154esac
29155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29156 (eval "$ac_try") 2>&5
29157 ac_status=$?
29158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29159 (exit $ac_status); }; } &&
29160 { ac_try='test -s conftest$ac_exeext'
29161 { (case "(($ac_try" in
29162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29163 *) ac_try_echo=$ac_try;;
29164esac
29165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29166 (eval "$ac_try") 2>&5
29167 ac_status=$?
29168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29169 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029170 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000029171else
29172 echo "$as_me: failed program was:" >&5
29173sed 's/^/| /' conftest.$ac_ext >&5
29174
Reid Spencera773bd52006-08-04 18:18:08 +000029175
Reid Spencer59473af2004-12-25 07:31:29 +000029176fi
Reid Spencera773bd52006-08-04 18:18:08 +000029177
Bill Wendlingebcceee2009-04-18 11:20:33 +000029178rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000029179 conftest$ac_exeext
29180 if test "${ac_cv_search_opendir+set}" = set; then
29181 break
Reid Spencer59473af2004-12-25 07:31:29 +000029182fi
Reid Spencera773bd52006-08-04 18:18:08 +000029183done
29184if test "${ac_cv_search_opendir+set}" = set; then
29185 :
29186else
29187 ac_cv_search_opendir=no
29188fi
29189rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029190LIBS=$ac_func_search_save_LIBS
29191fi
Reid Spencera773bd52006-08-04 18:18:08 +000029192{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29193echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29194ac_res=$ac_cv_search_opendir
29195if test "$ac_res" != no; then
29196 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000029197
29198fi
29199
29200else
Reid Spencera773bd52006-08-04 18:18:08 +000029201 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29202echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029203if test "${ac_cv_search_opendir+set}" = set; then
29204 echo $ECHO_N "(cached) $ECHO_C" >&6
29205else
29206 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000029207cat >conftest.$ac_ext <<_ACEOF
29208/* confdefs.h. */
29209_ACEOF
29210cat confdefs.h >>conftest.$ac_ext
29211cat >>conftest.$ac_ext <<_ACEOF
29212/* end confdefs.h. */
29213
Reid Spencera773bd52006-08-04 18:18:08 +000029214/* Override any GCC internal prototype to avoid an error.
29215 Use char because int might match the return type of a GCC
29216 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000029217#ifdef __cplusplus
29218extern "C"
29219#endif
Reid Spencer59473af2004-12-25 07:31:29 +000029220char opendir ();
29221int
29222main ()
29223{
Reid Spencera773bd52006-08-04 18:18:08 +000029224return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000029225 ;
29226 return 0;
29227}
29228_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029229for ac_lib in '' x; do
29230 if test -z "$ac_lib"; then
29231 ac_res="none required"
29232 else
29233 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000029234 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000029235 fi
29236 rm -f conftest.$ac_objext conftest$ac_exeext
29237if { (ac_try="$ac_link"
29238case "(($ac_try" in
29239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29240 *) ac_try_echo=$ac_try;;
29241esac
29242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29243 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029244 ac_status=$?
29245 grep -v '^ *+' conftest.er1 >conftest.err
29246 rm -f conftest.er1
29247 cat conftest.err >&5
29248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029249 (exit $ac_status); } &&
29250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29251 { (case "(($ac_try" in
29252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29253 *) ac_try_echo=$ac_try;;
29254esac
29255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29256 (eval "$ac_try") 2>&5
29257 ac_status=$?
29258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29259 (exit $ac_status); }; } &&
29260 { ac_try='test -s conftest$ac_exeext'
29261 { (case "(($ac_try" in
29262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29263 *) ac_try_echo=$ac_try;;
29264esac
29265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29266 (eval "$ac_try") 2>&5
29267 ac_status=$?
29268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029270 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000029271else
29272 echo "$as_me: failed program was:" >&5
29273sed 's/^/| /' conftest.$ac_ext >&5
29274
Reid Spencera773bd52006-08-04 18:18:08 +000029275
Reid Spencer59473af2004-12-25 07:31:29 +000029276fi
Reid Spencera773bd52006-08-04 18:18:08 +000029277
Bill Wendlingebcceee2009-04-18 11:20:33 +000029278rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000029279 conftest$ac_exeext
29280 if test "${ac_cv_search_opendir+set}" = set; then
29281 break
Reid Spencer59473af2004-12-25 07:31:29 +000029282fi
Reid Spencera773bd52006-08-04 18:18:08 +000029283done
29284if test "${ac_cv_search_opendir+set}" = set; then
29285 :
29286else
29287 ac_cv_search_opendir=no
29288fi
29289rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029290LIBS=$ac_func_search_save_LIBS
29291fi
Reid Spencera773bd52006-08-04 18:18:08 +000029292{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29293echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29294ac_res=$ac_cv_search_opendir
29295if test "$ac_res" != no; then
29296 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000029297
29298fi
29299
29300fi
29301
Reid Spencera773bd52006-08-04 18:18:08 +000029302{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29303echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029304if test "${ac_cv_header_mmap_anon+set}" = set; then
29305 echo $ECHO_N "(cached) $ECHO_C" >&6
29306else
29307 ac_ext=c
29308ac_cpp='$CPP $CPPFLAGS'
29309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29311ac_compiler_gnu=$ac_cv_c_compiler_gnu
29312
29313 cat >conftest.$ac_ext <<_ACEOF
29314/* confdefs.h. */
29315_ACEOF
29316cat confdefs.h >>conftest.$ac_ext
29317cat >>conftest.$ac_ext <<_ACEOF
29318/* end confdefs.h. */
29319#include <sys/mman.h>
29320#include <unistd.h>
29321#include <fcntl.h>
29322int
29323main ()
29324{
29325mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29326 ;
29327 return 0;
29328}
29329_ACEOF
29330rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029331if { (ac_try="$ac_compile"
29332case "(($ac_try" in
29333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29334 *) ac_try_echo=$ac_try;;
29335esac
29336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29337 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029338 ac_status=$?
29339 grep -v '^ *+' conftest.er1 >conftest.err
29340 rm -f conftest.er1
29341 cat conftest.err >&5
29342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029343 (exit $ac_status); } &&
29344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29345 { (case "(($ac_try" in
29346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29347 *) ac_try_echo=$ac_try;;
29348esac
29349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29350 (eval "$ac_try") 2>&5
29351 ac_status=$?
29352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29353 (exit $ac_status); }; } &&
29354 { ac_try='test -s conftest.$ac_objext'
29355 { (case "(($ac_try" in
29356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29357 *) ac_try_echo=$ac_try;;
29358esac
29359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29360 (eval "$ac_try") 2>&5
29361 ac_status=$?
29362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29363 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029364 ac_cv_header_mmap_anon=yes
29365else
29366 echo "$as_me: failed program was:" >&5
29367sed 's/^/| /' conftest.$ac_ext >&5
29368
Reid Spencera773bd52006-08-04 18:18:08 +000029369 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000029370fi
Reid Spencera773bd52006-08-04 18:18:08 +000029371
29372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029373 ac_ext=c
29374ac_cpp='$CPP $CPPFLAGS'
29375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29377ac_compiler_gnu=$ac_cv_c_compiler_gnu
29378
29379
29380fi
Reid Spencera773bd52006-08-04 18:18:08 +000029381{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29382echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029383if test "$ac_cv_header_mmap_anon" = yes; then
29384
29385cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000029386#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000029387_ACEOF
29388
29389fi
29390
Reid Spencera773bd52006-08-04 18:18:08 +000029391{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29392echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029393if test "${ac_cv_header_stat_broken+set}" = set; then
29394 echo $ECHO_N "(cached) $ECHO_C" >&6
29395else
29396 cat >conftest.$ac_ext <<_ACEOF
29397/* confdefs.h. */
29398_ACEOF
29399cat confdefs.h >>conftest.$ac_ext
29400cat >>conftest.$ac_ext <<_ACEOF
29401/* end confdefs.h. */
29402#include <sys/types.h>
29403#include <sys/stat.h>
29404
Reid Spencera773bd52006-08-04 18:18:08 +000029405#if defined S_ISBLK && defined S_IFDIR
Bill Wendlingebcceee2009-04-18 11:20:33 +000029406# if S_ISBLK (S_IFDIR)
29407You lose.
29408# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029409#endif
29410
Reid Spencera773bd52006-08-04 18:18:08 +000029411#if defined S_ISBLK && defined S_IFCHR
Bill Wendlingebcceee2009-04-18 11:20:33 +000029412# if S_ISBLK (S_IFCHR)
29413You lose.
29414# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029415#endif
29416
Reid Spencera773bd52006-08-04 18:18:08 +000029417#if defined S_ISLNK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000029418# if S_ISLNK (S_IFREG)
29419You lose.
29420# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029421#endif
29422
Reid Spencera773bd52006-08-04 18:18:08 +000029423#if defined S_ISSOCK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000029424# if S_ISSOCK (S_IFREG)
29425You lose.
29426# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029427#endif
29428
29429_ACEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +000029430if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29431 $EGREP "You lose" >/dev/null 2>&1; then
29432 ac_cv_header_stat_broken=yes
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029433else
Bill Wendlingebcceee2009-04-18 11:20:33 +000029434 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029435fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000029436rm -f conftest*
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029437
Reid Spencer59473af2004-12-25 07:31:29 +000029438fi
Reid Spencera773bd52006-08-04 18:18:08 +000029439{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29440echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029441if test $ac_cv_header_stat_broken = yes; then
29442
29443cat >>confdefs.h <<\_ACEOF
29444#define STAT_MACROS_BROKEN 1
29445_ACEOF
29446
29447fi
29448
Reid Spencera773bd52006-08-04 18:18:08 +000029449{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29450echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029451if test "${ac_cv_header_stdc+set}" = set; then
29452 echo $ECHO_N "(cached) $ECHO_C" >&6
29453else
29454 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029455/* confdefs.h. */
29456_ACEOF
29457cat confdefs.h >>conftest.$ac_ext
29458cat >>conftest.$ac_ext <<_ACEOF
29459/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029460#include <stdlib.h>
29461#include <stdarg.h>
29462#include <string.h>
29463#include <float.h>
29464
John Criswell0c38eaf2003-09-10 15:17:25 +000029465int
29466main ()
29467{
29468
29469 ;
29470 return 0;
29471}
John Criswell7a73b802003-06-30 21:59:07 +000029472_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029473rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029474if { (ac_try="$ac_compile"
29475case "(($ac_try" in
29476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29477 *) ac_try_echo=$ac_try;;
29478esac
29479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29480 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029481 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029482 grep -v '^ *+' conftest.er1 >conftest.err
29483 rm -f conftest.er1
29484 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029486 (exit $ac_status); } &&
29487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29488 { (case "(($ac_try" in
29489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29490 *) ac_try_echo=$ac_try;;
29491esac
29492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29493 (eval "$ac_try") 2>&5
29494 ac_status=$?
29495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29496 (exit $ac_status); }; } &&
29497 { ac_try='test -s conftest.$ac_objext'
29498 { (case "(($ac_try" in
29499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29500 *) ac_try_echo=$ac_try;;
29501esac
29502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29503 (eval "$ac_try") 2>&5
29504 ac_status=$?
29505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029507 ac_cv_header_stdc=yes
29508else
29509 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029510sed 's/^/| /' conftest.$ac_ext >&5
29511
Reid Spencera773bd52006-08-04 18:18:08 +000029512 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000029513fi
Reid Spencera773bd52006-08-04 18:18:08 +000029514
29515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029516
29517if test $ac_cv_header_stdc = yes; then
29518 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29519 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029520/* confdefs.h. */
29521_ACEOF
29522cat confdefs.h >>conftest.$ac_ext
29523cat >>conftest.$ac_ext <<_ACEOF
29524/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029525#include <string.h>
29526
29527_ACEOF
29528if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000029529 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029530 :
29531else
29532 ac_cv_header_stdc=no
29533fi
29534rm -f conftest*
29535
29536fi
29537
29538if test $ac_cv_header_stdc = yes; then
29539 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29540 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029541/* confdefs.h. */
29542_ACEOF
29543cat confdefs.h >>conftest.$ac_ext
29544cat >>conftest.$ac_ext <<_ACEOF
29545/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029546#include <stdlib.h>
29547
29548_ACEOF
29549if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000029550 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029551 :
29552else
29553 ac_cv_header_stdc=no
29554fi
29555rm -f conftest*
29556
29557fi
29558
29559if test $ac_cv_header_stdc = yes; then
29560 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29561 if test "$cross_compiling" = yes; then
29562 :
29563else
29564 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029565/* confdefs.h. */
29566_ACEOF
29567cat confdefs.h >>conftest.$ac_ext
29568cat >>conftest.$ac_ext <<_ACEOF
29569/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029570#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000029571#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000029572#if ((' ' & 0x0FF) == 0x020)
29573# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29574# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29575#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029576# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000029577 (('a' <= (c) && (c) <= 'i') \
29578 || ('j' <= (c) && (c) <= 'r') \
29579 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000029580# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29581#endif
29582
29583#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29584int
29585main ()
29586{
29587 int i;
29588 for (i = 0; i < 256; i++)
29589 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000029590 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000029591 return 2;
29592 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029593}
29594_ACEOF
29595rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029596if { (ac_try="$ac_link"
29597case "(($ac_try" in
29598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29599 *) ac_try_echo=$ac_try;;
29600esac
29601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29602 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029603 ac_status=$?
29604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029606 { (case "(($ac_try" in
29607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29608 *) ac_try_echo=$ac_try;;
29609esac
29610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29611 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029612 ac_status=$?
29613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29614 (exit $ac_status); }; }; then
29615 :
29616else
29617 echo "$as_me: program exited with status $ac_status" >&5
29618echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029619sed 's/^/| /' conftest.$ac_ext >&5
29620
John Criswell7a73b802003-06-30 21:59:07 +000029621( exit $ac_status )
29622ac_cv_header_stdc=no
29623fi
Reid Spencera773bd52006-08-04 18:18:08 +000029624rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29625fi
29626
29627
John Criswell7a73b802003-06-30 21:59:07 +000029628fi
29629fi
Reid Spencera773bd52006-08-04 18:18:08 +000029630{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29631echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029632if test $ac_cv_header_stdc = yes; then
29633
29634cat >>confdefs.h <<\_ACEOF
29635#define STDC_HEADERS 1
29636_ACEOF
29637
29638fi
29639
Reid Spencera773bd52006-08-04 18:18:08 +000029640{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29641echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029642if test "${ac_cv_header_sys_wait_h+set}" = set; then
29643 echo $ECHO_N "(cached) $ECHO_C" >&6
29644else
29645 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029646/* confdefs.h. */
29647_ACEOF
29648cat confdefs.h >>conftest.$ac_ext
29649cat >>conftest.$ac_ext <<_ACEOF
29650/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029651#include <sys/types.h>
29652#include <sys/wait.h>
29653#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000029654# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000029655#endif
29656#ifndef WIFEXITED
29657# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29658#endif
29659
John Criswell7a73b802003-06-30 21:59:07 +000029660int
29661main ()
29662{
29663 int s;
29664 wait (&s);
29665 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29666 ;
29667 return 0;
29668}
29669_ACEOF
29670rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029671if { (ac_try="$ac_compile"
29672case "(($ac_try" in
29673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29674 *) ac_try_echo=$ac_try;;
29675esac
29676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29677 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029678 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029679 grep -v '^ *+' conftest.er1 >conftest.err
29680 rm -f conftest.er1
29681 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029683 (exit $ac_status); } &&
29684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29685 { (case "(($ac_try" in
29686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29687 *) ac_try_echo=$ac_try;;
29688esac
29689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29690 (eval "$ac_try") 2>&5
29691 ac_status=$?
29692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29693 (exit $ac_status); }; } &&
29694 { ac_try='test -s conftest.$ac_objext'
29695 { (case "(($ac_try" in
29696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29697 *) ac_try_echo=$ac_try;;
29698esac
29699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29700 (eval "$ac_try") 2>&5
29701 ac_status=$?
29702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29703 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029704 ac_cv_header_sys_wait_h=yes
29705else
29706 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029707sed 's/^/| /' conftest.$ac_ext >&5
29708
Reid Spencera773bd52006-08-04 18:18:08 +000029709 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000029710fi
Reid Spencera773bd52006-08-04 18:18:08 +000029711
29712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029713fi
Reid Spencera773bd52006-08-04 18:18:08 +000029714{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29715echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029716if test $ac_cv_header_sys_wait_h = yes; then
29717
29718cat >>confdefs.h <<\_ACEOF
29719#define HAVE_SYS_WAIT_H 1
29720_ACEOF
29721
29722fi
29723
Reid Spencera773bd52006-08-04 18:18:08 +000029724{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29725echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029726if test "${ac_cv_header_time+set}" = set; then
29727 echo $ECHO_N "(cached) $ECHO_C" >&6
29728else
29729 cat >conftest.$ac_ext <<_ACEOF
29730/* confdefs.h. */
29731_ACEOF
29732cat confdefs.h >>conftest.$ac_ext
29733cat >>conftest.$ac_ext <<_ACEOF
29734/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029735#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029736#include <sys/time.h>
29737#include <time.h>
29738
29739int
29740main ()
29741{
29742if ((struct tm *) 0)
29743return 0;
29744 ;
29745 return 0;
29746}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029747_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029748rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029749if { (ac_try="$ac_compile"
29750case "(($ac_try" in
29751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29752 *) ac_try_echo=$ac_try;;
29753esac
29754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29755 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029756 ac_status=$?
29757 grep -v '^ *+' conftest.er1 >conftest.err
29758 rm -f conftest.er1
29759 cat conftest.err >&5
29760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029761 (exit $ac_status); } &&
29762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29763 { (case "(($ac_try" in
29764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29765 *) ac_try_echo=$ac_try;;
29766esac
29767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29768 (eval "$ac_try") 2>&5
29769 ac_status=$?
29770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29771 (exit $ac_status); }; } &&
29772 { ac_try='test -s conftest.$ac_objext'
29773 { (case "(($ac_try" in
29774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29775 *) ac_try_echo=$ac_try;;
29776esac
29777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29778 (eval "$ac_try") 2>&5
29779 ac_status=$?
29780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29781 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029782 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029783else
29784 echo "$as_me: failed program was:" >&5
29785sed 's/^/| /' conftest.$ac_ext >&5
29786
Reid Spencera773bd52006-08-04 18:18:08 +000029787 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029788fi
Reid Spencera773bd52006-08-04 18:18:08 +000029789
29790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029791fi
Reid Spencera773bd52006-08-04 18:18:08 +000029792{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29793echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029794if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029795
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029796cat >>confdefs.h <<\_ACEOF
29797#define TIME_WITH_SYS_TIME 1
29798_ACEOF
29799
29800fi
29801
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029802
Reid Spencer59473af2004-12-25 07:31:29 +000029803
29804
29805
29806
29807
29808
29809for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29810do
29811as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029812if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29813 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29814echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29815if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029816 echo $ECHO_N "(cached) $ECHO_C" >&6
29817fi
Reid Spencera773bd52006-08-04 18:18:08 +000029818ac_res=`eval echo '${'$as_ac_Header'}'`
29819 { echo "$as_me:$LINENO: result: $ac_res" >&5
29820echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029821else
29822 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029823{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29824echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029825cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029826/* confdefs.h. */
29827_ACEOF
29828cat confdefs.h >>conftest.$ac_ext
29829cat >>conftest.$ac_ext <<_ACEOF
29830/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000029831$ac_includes_default
29832#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029833_ACEOF
29834rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029835if { (ac_try="$ac_compile"
29836case "(($ac_try" in
29837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29838 *) ac_try_echo=$ac_try;;
29839esac
29840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29841 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029842 ac_status=$?
29843 grep -v '^ *+' conftest.er1 >conftest.err
29844 rm -f conftest.er1
29845 cat conftest.err >&5
29846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029847 (exit $ac_status); } &&
29848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29849 { (case "(($ac_try" in
29850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29851 *) ac_try_echo=$ac_try;;
29852esac
29853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29854 (eval "$ac_try") 2>&5
29855 ac_status=$?
29856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29857 (exit $ac_status); }; } &&
29858 { ac_try='test -s conftest.$ac_objext'
29859 { (case "(($ac_try" in
29860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29861 *) ac_try_echo=$ac_try;;
29862esac
29863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29864 (eval "$ac_try") 2>&5
29865 ac_status=$?
29866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29867 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029868 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029869else
29870 echo "$as_me: failed program was:" >&5
29871sed 's/^/| /' conftest.$ac_ext >&5
29872
Reid Spencera773bd52006-08-04 18:18:08 +000029873 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029874fi
Reid Spencera773bd52006-08-04 18:18:08 +000029875
29876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29877{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29878echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029879
Reid Spencer59473af2004-12-25 07:31:29 +000029880# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029881{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29882echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029883cat >conftest.$ac_ext <<_ACEOF
29884/* confdefs.h. */
29885_ACEOF
29886cat confdefs.h >>conftest.$ac_ext
29887cat >>conftest.$ac_ext <<_ACEOF
29888/* end confdefs.h. */
29889#include <$ac_header>
29890_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029891if { (ac_try="$ac_cpp conftest.$ac_ext"
29892case "(($ac_try" in
29893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29894 *) ac_try_echo=$ac_try;;
29895esac
29896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029898 ac_status=$?
29899 grep -v '^ *+' conftest.er1 >conftest.err
29900 rm -f conftest.er1
29901 cat conftest.err >&5
29902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029903 (exit $ac_status); } >/dev/null; then
29904 if test -s conftest.err; then
29905 ac_cpp_err=$ac_c_preproc_warn_flag
29906 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29907 else
29908 ac_cpp_err=
29909 fi
29910else
29911 ac_cpp_err=yes
29912fi
29913if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029914 ac_header_preproc=yes
29915else
29916 echo "$as_me: failed program was:" >&5
29917sed 's/^/| /' conftest.$ac_ext >&5
29918
29919 ac_header_preproc=no
29920fi
Reid Spencera773bd52006-08-04 18:18:08 +000029921
Reid Spencer59473af2004-12-25 07:31:29 +000029922rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029923{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29924echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029925
29926# So? What about this header?
29927case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29928 yes:no: )
29929 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29930echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29932echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29933 ac_header_preproc=yes
29934 ;;
29935 no:yes:* )
29936 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29937echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29938 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29939echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29940 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29941echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29942 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29943echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29945echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29946 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29947echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029948 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029949## ----------------------------------- ##
29950## Report this to llvmbugs@cs.uiuc.edu ##
29951## ----------------------------------- ##
29952_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029953 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029954 ;;
29955esac
Reid Spencera773bd52006-08-04 18:18:08 +000029956{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29957echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29958if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029959 echo $ECHO_N "(cached) $ECHO_C" >&6
29960else
29961 eval "$as_ac_Header=\$ac_header_preproc"
29962fi
Reid Spencera773bd52006-08-04 18:18:08 +000029963ac_res=`eval echo '${'$as_ac_Header'}'`
29964 { echo "$as_me:$LINENO: result: $ac_res" >&5
29965echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029966
29967fi
Reid Spencer59473af2004-12-25 07:31:29 +000029968if test `eval echo '${'$as_ac_Header'}'` = yes; then
29969 cat >>confdefs.h <<_ACEOF
29970#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029971_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029972
29973fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029974
Reid Spencer59473af2004-12-25 07:31:29 +000029975done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029976
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029977
29978
Reid Spencer59473af2004-12-25 07:31:29 +000029979
29980
29981
29982
Douglas Gregor071d73d2009-05-18 17:21:34 +000029983for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Reid Spencer59473af2004-12-25 07:31:29 +000029984do
29985as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029986if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29988echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029990 echo $ECHO_N "(cached) $ECHO_C" >&6
29991fi
Reid Spencera773bd52006-08-04 18:18:08 +000029992ac_res=`eval echo '${'$as_ac_Header'}'`
29993 { echo "$as_me:$LINENO: result: $ac_res" >&5
29994echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029995else
29996 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029997{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29998echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029999cat >conftest.$ac_ext <<_ACEOF
30000/* confdefs.h. */
30001_ACEOF
30002cat confdefs.h >>conftest.$ac_ext
30003cat >>conftest.$ac_ext <<_ACEOF
30004/* end confdefs.h. */
30005$ac_includes_default
30006#include <$ac_header>
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
Reid Spencer59473af2004-12-25 07:31:29 +000030016 ac_status=$?
30017 grep -v '^ *+' conftest.er1 >conftest.err
30018 rm -f conftest.er1
30019 cat conftest.err >&5
30020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Reid Spencer59473af2004-12-25 07:31:29 +000030042 ac_header_compiler=yes
30043else
30044 echo "$as_me: failed program was:" >&5
30045sed 's/^/| /' conftest.$ac_ext >&5
30046
Reid Spencera773bd52006-08-04 18:18:08 +000030047 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000030048fi
Reid Spencera773bd52006-08-04 18:18:08 +000030049
30050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30051{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30052echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030053
30054# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030055{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30056echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030057cat >conftest.$ac_ext <<_ACEOF
30058/* confdefs.h. */
30059_ACEOF
30060cat confdefs.h >>conftest.$ac_ext
30061cat >>conftest.$ac_ext <<_ACEOF
30062/* end confdefs.h. */
30063#include <$ac_header>
30064_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030065if { (ac_try="$ac_cpp conftest.$ac_ext"
30066case "(($ac_try" in
30067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30068 *) ac_try_echo=$ac_try;;
30069esac
30070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000030072 ac_status=$?
30073 grep -v '^ *+' conftest.er1 >conftest.err
30074 rm -f conftest.er1
30075 cat conftest.err >&5
30076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030077 (exit $ac_status); } >/dev/null; then
30078 if test -s conftest.err; then
30079 ac_cpp_err=$ac_c_preproc_warn_flag
30080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30081 else
30082 ac_cpp_err=
30083 fi
30084else
30085 ac_cpp_err=yes
30086fi
30087if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000030088 ac_header_preproc=yes
30089else
30090 echo "$as_me: failed program was:" >&5
30091sed 's/^/| /' conftest.$ac_ext >&5
30092
30093 ac_header_preproc=no
30094fi
Reid Spencera773bd52006-08-04 18:18:08 +000030095
Reid Spencer59473af2004-12-25 07:31:29 +000030096rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030097{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30098echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030099
30100# So? What about this header?
30101case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30102 yes:no: )
30103 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30104echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30106echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30107 ac_header_preproc=yes
30108 ;;
30109 no:yes:* )
30110 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30111echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30112 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30113echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30114 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30115echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30116 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30117echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30119echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30120 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30121echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030122 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000030123## ----------------------------------- ##
30124## Report this to llvmbugs@cs.uiuc.edu ##
30125## ----------------------------------- ##
30126_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030127 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000030128 ;;
30129esac
Reid Spencera773bd52006-08-04 18:18:08 +000030130{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30131echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30132if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030133 echo $ECHO_N "(cached) $ECHO_C" >&6
30134else
30135 eval "$as_ac_Header=\$ac_header_preproc"
30136fi
Reid Spencera773bd52006-08-04 18:18:08 +000030137ac_res=`eval echo '${'$as_ac_Header'}'`
30138 { echo "$as_me:$LINENO: result: $ac_res" >&5
30139echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030140
30141fi
30142if test `eval echo '${'$as_ac_Header'}'` = yes; then
30143 cat >>confdefs.h <<_ACEOF
30144#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30145_ACEOF
30146
30147fi
30148
30149done
30150
30151
Douglas Gregor071d73d2009-05-18 17:21:34 +000030152
30153for ac_header in utime.h windows.h
Reid Spencerbe3e4192007-08-17 05:45:26 +000030154do
30155as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30156if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30157 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30158echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30159if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30160 echo $ECHO_N "(cached) $ECHO_C" >&6
30161fi
30162ac_res=`eval echo '${'$as_ac_Header'}'`
30163 { echo "$as_me:$LINENO: result: $ac_res" >&5
30164echo "${ECHO_T}$ac_res" >&6; }
30165else
30166 # Is the header compilable?
30167{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30168echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30169cat >conftest.$ac_ext <<_ACEOF
30170/* confdefs.h. */
30171_ACEOF
30172cat confdefs.h >>conftest.$ac_ext
30173cat >>conftest.$ac_ext <<_ACEOF
30174/* end confdefs.h. */
30175$ac_includes_default
30176#include <$ac_header>
30177_ACEOF
30178rm -f conftest.$ac_objext
30179if { (ac_try="$ac_compile"
30180case "(($ac_try" in
30181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30182 *) ac_try_echo=$ac_try;;
30183esac
30184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30185 (eval "$ac_compile") 2>conftest.er1
30186 ac_status=$?
30187 grep -v '^ *+' conftest.er1 >conftest.err
30188 rm -f conftest.er1
30189 cat conftest.err >&5
30190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030191 (exit $ac_status); } &&
30192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30193 { (case "(($ac_try" in
30194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30195 *) ac_try_echo=$ac_try;;
30196esac
30197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30198 (eval "$ac_try") 2>&5
30199 ac_status=$?
30200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30201 (exit $ac_status); }; } &&
30202 { ac_try='test -s conftest.$ac_objext'
30203 { (case "(($ac_try" in
30204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30205 *) ac_try_echo=$ac_try;;
30206esac
30207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30208 (eval "$ac_try") 2>&5
30209 ac_status=$?
30210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30211 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030212 ac_header_compiler=yes
30213else
30214 echo "$as_me: failed program was:" >&5
30215sed 's/^/| /' conftest.$ac_ext >&5
30216
30217 ac_header_compiler=no
30218fi
30219
30220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30221{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30222echo "${ECHO_T}$ac_header_compiler" >&6; }
30223
30224# Is the header present?
30225{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30226echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30227cat >conftest.$ac_ext <<_ACEOF
30228/* confdefs.h. */
30229_ACEOF
30230cat confdefs.h >>conftest.$ac_ext
30231cat >>conftest.$ac_ext <<_ACEOF
30232/* end confdefs.h. */
30233#include <$ac_header>
30234_ACEOF
30235if { (ac_try="$ac_cpp conftest.$ac_ext"
30236case "(($ac_try" in
30237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30238 *) ac_try_echo=$ac_try;;
30239esac
30240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30242 ac_status=$?
30243 grep -v '^ *+' conftest.er1 >conftest.err
30244 rm -f conftest.er1
30245 cat conftest.err >&5
30246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030247 (exit $ac_status); } >/dev/null; then
30248 if test -s conftest.err; then
30249 ac_cpp_err=$ac_c_preproc_warn_flag
30250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30251 else
30252 ac_cpp_err=
30253 fi
30254else
30255 ac_cpp_err=yes
30256fi
30257if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030258 ac_header_preproc=yes
30259else
30260 echo "$as_me: failed program was:" >&5
30261sed 's/^/| /' conftest.$ac_ext >&5
30262
30263 ac_header_preproc=no
30264fi
30265
30266rm -f conftest.err conftest.$ac_ext
30267{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30268echo "${ECHO_T}$ac_header_preproc" >&6; }
30269
30270# So? What about this header?
30271case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30272 yes:no: )
30273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30274echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30276echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30277 ac_header_preproc=yes
30278 ;;
30279 no:yes:* )
30280 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30281echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30282 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30283echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30284 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30285echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30286 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30287echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30289echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30290 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30291echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30292 ( cat <<\_ASBOX
30293## ----------------------------------- ##
30294## Report this to llvmbugs@cs.uiuc.edu ##
30295## ----------------------------------- ##
30296_ASBOX
30297 ) | sed "s/^/$as_me: WARNING: /" >&2
30298 ;;
30299esac
30300{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30301echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30302if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30303 echo $ECHO_N "(cached) $ECHO_C" >&6
30304else
30305 eval "$as_ac_Header=\$ac_header_preproc"
30306fi
30307ac_res=`eval echo '${'$as_ac_Header'}'`
30308 { echo "$as_me:$LINENO: result: $ac_res" >&5
30309echo "${ECHO_T}$ac_res" >&6; }
30310
30311fi
30312if test `eval echo '${'$as_ac_Header'}'` = yes; then
30313 cat >>confdefs.h <<_ACEOF
30314#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30315_ACEOF
30316
30317fi
30318
30319done
Reid Spencer59473af2004-12-25 07:31:29 +000030320
30321
30322
30323
Reid Spencerbe3e4192007-08-17 05:45:26 +000030324
30325for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030326do
30327as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030328if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30331if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030332 echo $ECHO_N "(cached) $ECHO_C" >&6
30333fi
Reid Spencera773bd52006-08-04 18:18:08 +000030334ac_res=`eval echo '${'$as_ac_Header'}'`
30335 { echo "$as_me:$LINENO: result: $ac_res" >&5
30336echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030337else
30338 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030339{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30340echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030341cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030342/* confdefs.h. */
30343_ACEOF
30344cat confdefs.h >>conftest.$ac_ext
30345cat >>conftest.$ac_ext <<_ACEOF
30346/* end confdefs.h. */
30347$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030348#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030349_ACEOF
30350rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030351if { (ac_try="$ac_compile"
30352case "(($ac_try" in
30353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30354 *) ac_try_echo=$ac_try;;
30355esac
30356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30357 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030358 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030359 grep -v '^ *+' conftest.er1 >conftest.err
30360 rm -f conftest.er1
30361 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030363 (exit $ac_status); } &&
30364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30365 { (case "(($ac_try" in
30366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30367 *) ac_try_echo=$ac_try;;
30368esac
30369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30370 (eval "$ac_try") 2>&5
30371 ac_status=$?
30372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30373 (exit $ac_status); }; } &&
30374 { ac_try='test -s conftest.$ac_objext'
30375 { (case "(($ac_try" in
30376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30377 *) ac_try_echo=$ac_try;;
30378esac
30379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30380 (eval "$ac_try") 2>&5
30381 ac_status=$?
30382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30383 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030384 ac_header_compiler=yes
30385else
30386 echo "$as_me: failed program was:" >&5
30387sed 's/^/| /' conftest.$ac_ext >&5
30388
Reid Spencera773bd52006-08-04 18:18:08 +000030389 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030390fi
Reid Spencera773bd52006-08-04 18:18:08 +000030391
30392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30393{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30394echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030395
30396# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030397{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30398echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030399cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030400/* confdefs.h. */
30401_ACEOF
30402cat confdefs.h >>conftest.$ac_ext
30403cat >>conftest.$ac_ext <<_ACEOF
30404/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030405#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030406_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030407if { (ac_try="$ac_cpp conftest.$ac_ext"
30408case "(($ac_try" in
30409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30410 *) ac_try_echo=$ac_try;;
30411esac
30412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030414 ac_status=$?
30415 grep -v '^ *+' conftest.er1 >conftest.err
30416 rm -f conftest.er1
30417 cat conftest.err >&5
30418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030419 (exit $ac_status); } >/dev/null; then
30420 if test -s conftest.err; then
30421 ac_cpp_err=$ac_c_preproc_warn_flag
30422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30423 else
30424 ac_cpp_err=
30425 fi
30426else
30427 ac_cpp_err=yes
30428fi
30429if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030430 ac_header_preproc=yes
30431else
30432 echo "$as_me: failed program was:" >&5
30433sed 's/^/| /' conftest.$ac_ext >&5
30434
30435 ac_header_preproc=no
30436fi
Reid Spencera773bd52006-08-04 18:18:08 +000030437
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030438rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030439{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30440echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030441
30442# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030443case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30444 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30446echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30448echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030449 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000030450 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030451 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30453echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30455echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30456 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30457echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30458 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30459echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30461echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30462 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30463echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030464 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000030465## ----------------------------------- ##
30466## Report this to llvmbugs@cs.uiuc.edu ##
30467## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030468_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030469 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030470 ;;
30471esac
Reid Spencera773bd52006-08-04 18:18:08 +000030472{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30473echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30474if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030475 echo $ECHO_N "(cached) $ECHO_C" >&6
30476else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030477 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030478fi
Reid Spencera773bd52006-08-04 18:18:08 +000030479ac_res=`eval echo '${'$as_ac_Header'}'`
30480 { echo "$as_me:$LINENO: result: $ac_res" >&5
30481echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030482
30483fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030484if test `eval echo '${'$as_ac_Header'}'` = yes; then
30485 cat >>confdefs.h <<_ACEOF
30486#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000030487_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000030488
30489fi
John Criswell7ed43ad2004-07-19 16:12:29 +000030490
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030491done
30492
John Criswell7ed43ad2004-07-19 16:12:29 +000030493
Reid Spencercdb08a32006-06-05 16:11:07 +000030494
Reid Spencera6d990a2006-09-14 06:17:21 +000030495
Douglas Gregor01746742009-05-11 18:05:52 +000030496
30497for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000030498do
30499as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030500if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30501 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30502echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30503if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030504 echo $ECHO_N "(cached) $ECHO_C" >&6
30505fi
Reid Spencera773bd52006-08-04 18:18:08 +000030506ac_res=`eval echo '${'$as_ac_Header'}'`
30507 { echo "$as_me:$LINENO: result: $ac_res" >&5
30508echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030509else
30510 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030511{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30512echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030513cat >conftest.$ac_ext <<_ACEOF
30514/* confdefs.h. */
30515_ACEOF
30516cat confdefs.h >>conftest.$ac_ext
30517cat >>conftest.$ac_ext <<_ACEOF
30518/* end confdefs.h. */
30519$ac_includes_default
30520#include <$ac_header>
30521_ACEOF
30522rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030523if { (ac_try="$ac_compile"
30524case "(($ac_try" in
30525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30526 *) ac_try_echo=$ac_try;;
30527esac
30528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30529 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000030530 ac_status=$?
30531 grep -v '^ *+' conftest.er1 >conftest.err
30532 rm -f conftest.er1
30533 cat conftest.err >&5
30534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030535 (exit $ac_status); } &&
30536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30537 { (case "(($ac_try" in
30538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30539 *) ac_try_echo=$ac_try;;
30540esac
30541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30542 (eval "$ac_try") 2>&5
30543 ac_status=$?
30544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30545 (exit $ac_status); }; } &&
30546 { ac_try='test -s conftest.$ac_objext'
30547 { (case "(($ac_try" in
30548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30549 *) ac_try_echo=$ac_try;;
30550esac
30551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30552 (eval "$ac_try") 2>&5
30553 ac_status=$?
30554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30555 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030556 ac_header_compiler=yes
30557else
30558 echo "$as_me: failed program was:" >&5
30559sed 's/^/| /' conftest.$ac_ext >&5
30560
Reid Spencera773bd52006-08-04 18:18:08 +000030561 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000030562fi
Reid Spencera773bd52006-08-04 18:18:08 +000030563
30564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30565{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30566echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030567
30568# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030569{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30570echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030571cat >conftest.$ac_ext <<_ACEOF
30572/* confdefs.h. */
30573_ACEOF
30574cat confdefs.h >>conftest.$ac_ext
30575cat >>conftest.$ac_ext <<_ACEOF
30576/* end confdefs.h. */
30577#include <$ac_header>
30578_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030579if { (ac_try="$ac_cpp conftest.$ac_ext"
30580case "(($ac_try" in
30581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30582 *) ac_try_echo=$ac_try;;
30583esac
30584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000030586 ac_status=$?
30587 grep -v '^ *+' conftest.er1 >conftest.err
30588 rm -f conftest.er1
30589 cat conftest.err >&5
30590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030591 (exit $ac_status); } >/dev/null; then
30592 if test -s conftest.err; then
30593 ac_cpp_err=$ac_c_preproc_warn_flag
30594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30595 else
30596 ac_cpp_err=
30597 fi
30598else
30599 ac_cpp_err=yes
30600fi
30601if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000030602 ac_header_preproc=yes
30603else
30604 echo "$as_me: failed program was:" >&5
30605sed 's/^/| /' conftest.$ac_ext >&5
30606
30607 ac_header_preproc=no
30608fi
Reid Spencera773bd52006-08-04 18:18:08 +000030609
Chris Lattner0b142592005-11-14 06:57:34 +000030610rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030611{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30612echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030613
30614# So? What about this header?
30615case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30616 yes:no: )
30617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30618echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30620echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30621 ac_header_preproc=yes
30622 ;;
30623 no:yes:* )
30624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30625echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30627echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30628 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30629echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30630 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30631echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30633echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30634 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30635echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030636 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000030637## ----------------------------------- ##
30638## Report this to llvmbugs@cs.uiuc.edu ##
30639## ----------------------------------- ##
30640_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030641 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000030642 ;;
30643esac
Reid Spencera773bd52006-08-04 18:18:08 +000030644{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30645echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30646if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030647 echo $ECHO_N "(cached) $ECHO_C" >&6
30648else
30649 eval "$as_ac_Header=\$ac_header_preproc"
30650fi
Reid Spencera773bd52006-08-04 18:18:08 +000030651ac_res=`eval echo '${'$as_ac_Header'}'`
30652 { echo "$as_me:$LINENO: result: $ac_res" >&5
30653echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030654
30655fi
30656if test `eval echo '${'$as_ac_Header'}'` = yes; then
30657 cat >>confdefs.h <<_ACEOF
30658#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30659_ACEOF
30660
30661fi
30662
30663done
30664
Reid Spencer0a262ba2005-08-24 10:07:20 +000030665if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030666
30667for ac_header in pthread.h
30668do
30669as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30672echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30673if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030674 echo $ECHO_N "(cached) $ECHO_C" >&6
30675fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030676ac_res=`eval echo '${'$as_ac_Header'}'`
30677 { echo "$as_me:$LINENO: result: $ac_res" >&5
30678echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030679else
30680 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000030681{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30682echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030683cat >conftest.$ac_ext <<_ACEOF
30684/* confdefs.h. */
30685_ACEOF
30686cat confdefs.h >>conftest.$ac_ext
30687cat >>conftest.$ac_ext <<_ACEOF
30688/* end confdefs.h. */
30689$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000030690#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000030691_ACEOF
30692rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030693if { (ac_try="$ac_compile"
30694case "(($ac_try" in
30695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30696 *) ac_try_echo=$ac_try;;
30697esac
30698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30699 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030700 ac_status=$?
30701 grep -v '^ *+' conftest.er1 >conftest.err
30702 rm -f conftest.er1
30703 cat conftest.err >&5
30704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030705 (exit $ac_status); } &&
30706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30707 { (case "(($ac_try" in
30708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30709 *) ac_try_echo=$ac_try;;
30710esac
30711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30712 (eval "$ac_try") 2>&5
30713 ac_status=$?
30714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30715 (exit $ac_status); }; } &&
30716 { ac_try='test -s conftest.$ac_objext'
30717 { (case "(($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_try") 2>&5
30723 ac_status=$?
30724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30725 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030726 ac_header_compiler=yes
30727else
30728 echo "$as_me: failed program was:" >&5
30729sed 's/^/| /' conftest.$ac_ext >&5
30730
Reid Spencera773bd52006-08-04 18:18:08 +000030731 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000030732fi
Reid Spencera773bd52006-08-04 18:18:08 +000030733
30734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30735{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30736echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030737
30738# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000030739{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30740echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030741cat >conftest.$ac_ext <<_ACEOF
30742/* confdefs.h. */
30743_ACEOF
30744cat confdefs.h >>conftest.$ac_ext
30745cat >>conftest.$ac_ext <<_ACEOF
30746/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000030747#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000030748_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030749if { (ac_try="$ac_cpp conftest.$ac_ext"
30750case "(($ac_try" in
30751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30752 *) ac_try_echo=$ac_try;;
30753esac
30754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030756 ac_status=$?
30757 grep -v '^ *+' conftest.er1 >conftest.err
30758 rm -f conftest.er1
30759 cat conftest.err >&5
30760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030761 (exit $ac_status); } >/dev/null; then
30762 if test -s conftest.err; then
30763 ac_cpp_err=$ac_c_preproc_warn_flag
30764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30765 else
30766 ac_cpp_err=
30767 fi
30768else
30769 ac_cpp_err=yes
30770fi
30771if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030772 ac_header_preproc=yes
30773else
30774 echo "$as_me: failed program was:" >&5
30775sed 's/^/| /' conftest.$ac_ext >&5
30776
30777 ac_header_preproc=no
30778fi
Reid Spencera773bd52006-08-04 18:18:08 +000030779
Reid Spencer0a262ba2005-08-24 10:07:20 +000030780rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030781{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30782echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030783
30784# So? What about this header?
30785case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30786 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30788echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30790echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000030791 ac_header_preproc=yes
30792 ;;
30793 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30795echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30797echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30799echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30801echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30803echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30805echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030806 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000030807## ----------------------------------- ##
30808## Report this to llvmbugs@cs.uiuc.edu ##
30809## ----------------------------------- ##
30810_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030811 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000030812 ;;
30813esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000030814{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30815echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30816if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030817 echo $ECHO_N "(cached) $ECHO_C" >&6
30818else
Reid Spencerbe3e4192007-08-17 05:45:26 +000030819 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000030820fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030821ac_res=`eval echo '${'$as_ac_Header'}'`
30822 { echo "$as_me:$LINENO: result: $ac_res" >&5
30823echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030824
30825fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030826if test `eval echo '${'$as_ac_Header'}'` = yes; then
30827 cat >>confdefs.h <<_ACEOF
30828#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30829_ACEOF
30830 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000030831
30832else
30833 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030834
30835fi
30836
Reid Spencerbe3e4192007-08-17 05:45:26 +000030837done
Reid Spencer1000b732006-12-01 00:37:14 +000030838
30839else
30840 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030841
30842fi
Reid Spencer8085cff2005-01-16 02:58:39 +000030843
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000030844if test "$llvm_cv_enable_libffi" = "yes" ; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030845
30846
30847for ac_header in ffi.h ffi/ffi.h
30848do
30849as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30850if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30851 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30852echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30853if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30854 echo $ECHO_N "(cached) $ECHO_C" >&6
30855fi
30856ac_res=`eval echo '${'$as_ac_Header'}'`
30857 { echo "$as_me:$LINENO: result: $ac_res" >&5
30858echo "${ECHO_T}$ac_res" >&6; }
30859else
30860 # Is the header compilable?
30861{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30862echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30863cat >conftest.$ac_ext <<_ACEOF
30864/* confdefs.h. */
30865_ACEOF
30866cat confdefs.h >>conftest.$ac_ext
30867cat >>conftest.$ac_ext <<_ACEOF
30868/* end confdefs.h. */
30869$ac_includes_default
30870#include <$ac_header>
30871_ACEOF
30872rm -f conftest.$ac_objext
30873if { (ac_try="$ac_compile"
30874case "(($ac_try" in
30875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30876 *) ac_try_echo=$ac_try;;
30877esac
30878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30879 (eval "$ac_compile") 2>conftest.er1
30880 ac_status=$?
30881 grep -v '^ *+' conftest.er1 >conftest.err
30882 rm -f conftest.er1
30883 cat conftest.err >&5
30884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030885 (exit $ac_status); } &&
30886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30887 { (case "(($ac_try" in
30888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30889 *) ac_try_echo=$ac_try;;
30890esac
30891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30892 (eval "$ac_try") 2>&5
30893 ac_status=$?
30894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30895 (exit $ac_status); }; } &&
30896 { ac_try='test -s conftest.$ac_objext'
30897 { (case "(($ac_try" in
30898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30899 *) ac_try_echo=$ac_try;;
30900esac
30901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30902 (eval "$ac_try") 2>&5
30903 ac_status=$?
30904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30905 (exit $ac_status); }; }; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030906 ac_header_compiler=yes
30907else
30908 echo "$as_me: failed program was:" >&5
30909sed 's/^/| /' conftest.$ac_ext >&5
30910
30911 ac_header_compiler=no
30912fi
30913
30914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30915{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30916echo "${ECHO_T}$ac_header_compiler" >&6; }
30917
30918# Is the header present?
30919{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30920echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30921cat >conftest.$ac_ext <<_ACEOF
30922/* confdefs.h. */
30923_ACEOF
30924cat confdefs.h >>conftest.$ac_ext
30925cat >>conftest.$ac_ext <<_ACEOF
30926/* end confdefs.h. */
30927#include <$ac_header>
30928_ACEOF
30929if { (ac_try="$ac_cpp conftest.$ac_ext"
30930case "(($ac_try" in
30931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30932 *) ac_try_echo=$ac_try;;
30933esac
30934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30936 ac_status=$?
30937 grep -v '^ *+' conftest.er1 >conftest.err
30938 rm -f conftest.er1
30939 cat conftest.err >&5
30940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030941 (exit $ac_status); } >/dev/null; then
30942 if test -s conftest.err; then
30943 ac_cpp_err=$ac_c_preproc_warn_flag
30944 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30945 else
30946 ac_cpp_err=
30947 fi
30948else
30949 ac_cpp_err=yes
30950fi
30951if test -z "$ac_cpp_err"; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030952 ac_header_preproc=yes
30953else
30954 echo "$as_me: failed program was:" >&5
30955sed 's/^/| /' conftest.$ac_ext >&5
30956
30957 ac_header_preproc=no
30958fi
30959
30960rm -f conftest.err conftest.$ac_ext
30961{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30962echo "${ECHO_T}$ac_header_preproc" >&6; }
30963
30964# So? What about this header?
30965case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30966 yes:no: )
30967 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30968echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30970echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30971 ac_header_preproc=yes
30972 ;;
30973 no:yes:* )
30974 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30975echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30976 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30977echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30978 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30979echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30980 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30981echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30983echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30984 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30985echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30986 ( cat <<\_ASBOX
30987## ----------------------------------- ##
30988## Report this to llvmbugs@cs.uiuc.edu ##
30989## ----------------------------------- ##
30990_ASBOX
30991 ) | sed "s/^/$as_me: WARNING: /" >&2
30992 ;;
30993esac
30994{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30996if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30997 echo $ECHO_N "(cached) $ECHO_C" >&6
30998else
30999 eval "$as_ac_Header=\$ac_header_preproc"
31000fi
31001ac_res=`eval echo '${'$as_ac_Header'}'`
31002 { echo "$as_me:$LINENO: result: $ac_res" >&5
31003echo "${ECHO_T}$ac_res" >&6; }
31004
31005fi
31006if test `eval echo '${'$as_ac_Header'}'` = yes; then
31007 cat >>confdefs.h <<_ACEOF
31008#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31009_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000031010
31011fi
31012
31013done
31014
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000031015fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000031016
Nick Lewycky2ab1d862009-01-20 00:52:24 +000031017
Reid Spencer8085cff2005-01-16 02:58:39 +000031018
Reid Spencerb2ed05262006-11-03 18:04:08 +000031019 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31020echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31021if test "${ac_cv_huge_val_sanity+set}" = set; then
31022 echo $ECHO_N "(cached) $ECHO_C" >&6
31023else
31024
Reid Spencer6a7c0b72006-11-03 19:49:16 +000031025 ac_ext=cpp
31026ac_cpp='$CXXCPP $CPPFLAGS'
31027ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31028ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31029ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000031030
Reid Spencer6a7c0b72006-11-03 19:49:16 +000031031 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000031032 if test "$cross_compiling" = yes; then
31033 ac_cv_huge_val_sanity=yes
31034else
31035 cat >conftest.$ac_ext <<_ACEOF
31036/* confdefs.h. */
31037_ACEOF
31038cat confdefs.h >>conftest.$ac_ext
31039cat >>conftest.$ac_ext <<_ACEOF
31040/* end confdefs.h. */
31041#include <math.h>
31042int
31043main ()
31044{
31045double x = HUGE_VAL; return x != x;
31046 ;
31047 return 0;
31048}
31049_ACEOF
31050rm -f conftest$ac_exeext
31051if { (ac_try="$ac_link"
31052case "(($ac_try" in
31053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31054 *) ac_try_echo=$ac_try;;
31055esac
31056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31057 (eval "$ac_link") 2>&5
31058 ac_status=$?
31059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31061 { (case "(($ac_try" in
31062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31063 *) ac_try_echo=$ac_try;;
31064esac
31065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31066 (eval "$ac_try") 2>&5
31067 ac_status=$?
31068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31069 (exit $ac_status); }; }; then
31070 ac_cv_huge_val_sanity=yes
31071else
31072 echo "$as_me: program exited with status $ac_status" >&5
31073echo "$as_me: failed program was:" >&5
31074sed 's/^/| /' conftest.$ac_ext >&5
31075
31076( exit $ac_status )
31077ac_cv_huge_val_sanity=no
31078fi
31079rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31080fi
31081
31082
31083 ac_ext=c
31084ac_cpp='$CPP $CPPFLAGS'
31085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31087ac_compiler_gnu=$ac_cv_c_compiler_gnu
31088
31089
31090fi
31091{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31092echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31093 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31094
31095
Reid Spencera773bd52006-08-04 18:18:08 +000031096{ echo "$as_me:$LINENO: checking for pid_t" >&5
31097echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031098if test "${ac_cv_type_pid_t+set}" = set; then
31099 echo $ECHO_N "(cached) $ECHO_C" >&6
31100else
31101 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031102/* confdefs.h. */
31103_ACEOF
31104cat confdefs.h >>conftest.$ac_ext
31105cat >>conftest.$ac_ext <<_ACEOF
31106/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031107$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031108typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031109int
31110main ()
31111{
Reid Spencera773bd52006-08-04 18:18:08 +000031112if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031113 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031114if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031115 return 0;
31116 ;
31117 return 0;
31118}
31119_ACEOF
31120rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031121if { (ac_try="$ac_compile"
31122case "(($ac_try" in
31123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31124 *) ac_try_echo=$ac_try;;
31125esac
31126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31127 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031128 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031129 grep -v '^ *+' conftest.er1 >conftest.err
31130 rm -f conftest.er1
31131 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031133 (exit $ac_status); } &&
31134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31135 { (case "(($ac_try" in
31136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31137 *) ac_try_echo=$ac_try;;
31138esac
31139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31140 (eval "$ac_try") 2>&5
31141 ac_status=$?
31142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31143 (exit $ac_status); }; } &&
31144 { ac_try='test -s conftest.$ac_objext'
31145 { (case "(($ac_try" in
31146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31147 *) ac_try_echo=$ac_try;;
31148esac
31149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31150 (eval "$ac_try") 2>&5
31151 ac_status=$?
31152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31153 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031154 ac_cv_type_pid_t=yes
31155else
31156 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031157sed 's/^/| /' conftest.$ac_ext >&5
31158
Reid Spencera773bd52006-08-04 18:18:08 +000031159 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031160fi
Reid Spencera773bd52006-08-04 18:18:08 +000031161
31162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031163fi
Reid Spencera773bd52006-08-04 18:18:08 +000031164{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31165echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031166if test $ac_cv_type_pid_t = yes; then
31167 :
31168else
31169
31170cat >>confdefs.h <<_ACEOF
31171#define pid_t int
31172_ACEOF
31173
31174fi
31175
Reid Spencera773bd52006-08-04 18:18:08 +000031176{ echo "$as_me:$LINENO: checking for size_t" >&5
31177echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031178if test "${ac_cv_type_size_t+set}" = set; then
31179 echo $ECHO_N "(cached) $ECHO_C" >&6
31180else
31181 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031182/* confdefs.h. */
31183_ACEOF
31184cat confdefs.h >>conftest.$ac_ext
31185cat >>conftest.$ac_ext <<_ACEOF
31186/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031187$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031188typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031189int
31190main ()
31191{
Reid Spencera773bd52006-08-04 18:18:08 +000031192if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031193 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031194if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031195 return 0;
31196 ;
31197 return 0;
31198}
31199_ACEOF
31200rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031201if { (ac_try="$ac_compile"
31202case "(($ac_try" in
31203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31204 *) ac_try_echo=$ac_try;;
31205esac
31206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31207 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031208 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031209 grep -v '^ *+' conftest.er1 >conftest.err
31210 rm -f conftest.er1
31211 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031213 (exit $ac_status); } &&
31214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31215 { (case "(($ac_try" in
31216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31217 *) ac_try_echo=$ac_try;;
31218esac
31219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31220 (eval "$ac_try") 2>&5
31221 ac_status=$?
31222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31223 (exit $ac_status); }; } &&
31224 { ac_try='test -s conftest.$ac_objext'
31225 { (case "(($ac_try" in
31226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31227 *) ac_try_echo=$ac_try;;
31228esac
31229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31230 (eval "$ac_try") 2>&5
31231 ac_status=$?
31232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31233 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031234 ac_cv_type_size_t=yes
31235else
31236 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031237sed 's/^/| /' conftest.$ac_ext >&5
31238
Reid Spencera773bd52006-08-04 18:18:08 +000031239 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031240fi
Reid Spencera773bd52006-08-04 18:18:08 +000031241
31242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031243fi
Reid Spencera773bd52006-08-04 18:18:08 +000031244{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31245echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031246if test $ac_cv_type_size_t = yes; then
31247 :
31248else
31249
31250cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000031251#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000031252_ACEOF
31253
31254fi
31255
Reid Spencera773bd52006-08-04 18:18:08 +000031256{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31257echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031258if test "${ac_cv_type_signal+set}" = set; then
31259 echo $ECHO_N "(cached) $ECHO_C" >&6
31260else
31261 cat >conftest.$ac_ext <<_ACEOF
31262/* confdefs.h. */
31263_ACEOF
31264cat confdefs.h >>conftest.$ac_ext
31265cat >>conftest.$ac_ext <<_ACEOF
31266/* end confdefs.h. */
31267#include <sys/types.h>
31268#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031269
31270int
31271main ()
31272{
Reid Spencera773bd52006-08-04 18:18:08 +000031273return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031274 ;
31275 return 0;
31276}
31277_ACEOF
31278rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031279if { (ac_try="$ac_compile"
31280case "(($ac_try" in
31281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31282 *) ac_try_echo=$ac_try;;
31283esac
31284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31285 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031286 ac_status=$?
31287 grep -v '^ *+' conftest.er1 >conftest.err
31288 rm -f conftest.er1
31289 cat conftest.err >&5
31290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031291 (exit $ac_status); } &&
31292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31293 { (case "(($ac_try" in
31294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31295 *) ac_try_echo=$ac_try;;
31296esac
31297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31298 (eval "$ac_try") 2>&5
31299 ac_status=$?
31300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31301 (exit $ac_status); }; } &&
31302 { ac_try='test -s conftest.$ac_objext'
31303 { (case "(($ac_try" in
31304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31305 *) ac_try_echo=$ac_try;;
31306esac
31307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31308 (eval "$ac_try") 2>&5
31309 ac_status=$?
31310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31311 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000031312 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031313else
31314 echo "$as_me: failed program was:" >&5
31315sed 's/^/| /' conftest.$ac_ext >&5
31316
Reid Spencera773bd52006-08-04 18:18:08 +000031317 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031318fi
Reid Spencera773bd52006-08-04 18:18:08 +000031319
31320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031321fi
Reid Spencera773bd52006-08-04 18:18:08 +000031322{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31323echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031324
31325cat >>confdefs.h <<_ACEOF
31326#define RETSIGTYPE $ac_cv_type_signal
31327_ACEOF
31328
31329
Reid Spencera773bd52006-08-04 18:18:08 +000031330{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31331echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031332if test "${ac_cv_struct_tm+set}" = set; then
31333 echo $ECHO_N "(cached) $ECHO_C" >&6
31334else
31335 cat >conftest.$ac_ext <<_ACEOF
31336/* confdefs.h. */
31337_ACEOF
31338cat confdefs.h >>conftest.$ac_ext
31339cat >>conftest.$ac_ext <<_ACEOF
31340/* end confdefs.h. */
31341#include <sys/types.h>
31342#include <time.h>
31343
31344int
31345main ()
31346{
Bill Wendlingebcceee2009-04-18 11:20:33 +000031347struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031348 ;
31349 return 0;
31350}
31351_ACEOF
31352rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031353if { (ac_try="$ac_compile"
31354case "(($ac_try" in
31355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31356 *) ac_try_echo=$ac_try;;
31357esac
31358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31359 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031360 ac_status=$?
31361 grep -v '^ *+' conftest.er1 >conftest.err
31362 rm -f conftest.er1
31363 cat conftest.err >&5
31364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031365 (exit $ac_status); } &&
31366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31367 { (case "(($ac_try" in
31368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31369 *) ac_try_echo=$ac_try;;
31370esac
31371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31372 (eval "$ac_try") 2>&5
31373 ac_status=$?
31374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31375 (exit $ac_status); }; } &&
31376 { ac_try='test -s conftest.$ac_objext'
31377 { (case "(($ac_try" in
31378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31379 *) ac_try_echo=$ac_try;;
31380esac
31381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31382 (eval "$ac_try") 2>&5
31383 ac_status=$?
31384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31385 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031386 ac_cv_struct_tm=time.h
31387else
31388 echo "$as_me: failed program was:" >&5
31389sed 's/^/| /' conftest.$ac_ext >&5
31390
Reid Spencera773bd52006-08-04 18:18:08 +000031391 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031392fi
Reid Spencera773bd52006-08-04 18:18:08 +000031393
31394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031395fi
Reid Spencera773bd52006-08-04 18:18:08 +000031396{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31397echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031398if test $ac_cv_struct_tm = sys/time.h; then
31399
31400cat >>confdefs.h <<\_ACEOF
31401#define TM_IN_SYS_TIME 1
31402_ACEOF
31403
31404fi
31405
Reid Spencera773bd52006-08-04 18:18:08 +000031406{ echo "$as_me:$LINENO: checking for int64_t" >&5
31407echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031408if test "${ac_cv_type_int64_t+set}" = set; then
31409 echo $ECHO_N "(cached) $ECHO_C" >&6
31410else
31411 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031412/* confdefs.h. */
31413_ACEOF
31414cat confdefs.h >>conftest.$ac_ext
31415cat >>conftest.$ac_ext <<_ACEOF
31416/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031417$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031418typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031419int
31420main ()
31421{
Reid Spencera773bd52006-08-04 18:18:08 +000031422if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031423 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031424if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031425 return 0;
31426 ;
31427 return 0;
31428}
31429_ACEOF
31430rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031431if { (ac_try="$ac_compile"
31432case "(($ac_try" in
31433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31434 *) ac_try_echo=$ac_try;;
31435esac
31436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31437 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031438 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031439 grep -v '^ *+' conftest.er1 >conftest.err
31440 rm -f conftest.er1
31441 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031443 (exit $ac_status); } &&
31444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31445 { (case "(($ac_try" in
31446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31447 *) ac_try_echo=$ac_try;;
31448esac
31449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31450 (eval "$ac_try") 2>&5
31451 ac_status=$?
31452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31453 (exit $ac_status); }; } &&
31454 { ac_try='test -s conftest.$ac_objext'
31455 { (case "(($ac_try" in
31456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31457 *) ac_try_echo=$ac_try;;
31458esac
31459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31460 (eval "$ac_try") 2>&5
31461 ac_status=$?
31462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31463 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031464 ac_cv_type_int64_t=yes
31465else
31466 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031467sed 's/^/| /' conftest.$ac_ext >&5
31468
Reid Spencera773bd52006-08-04 18:18:08 +000031469 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031470fi
Reid Spencera773bd52006-08-04 18:18:08 +000031471
31472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031473fi
Reid Spencera773bd52006-08-04 18:18:08 +000031474{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31475echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031476if test $ac_cv_type_int64_t = yes; then
31477
31478cat >>confdefs.h <<_ACEOF
31479#define HAVE_INT64_T 1
31480_ACEOF
31481
31482
31483else
31484 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31485echo "$as_me: error: Type int64_t required but not found" >&2;}
31486 { (exit 1); exit 1; }; }
31487fi
31488
Reid Spencera773bd52006-08-04 18:18:08 +000031489{ echo "$as_me:$LINENO: checking for uint64_t" >&5
31490echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031491if test "${ac_cv_type_uint64_t+set}" = set; then
31492 echo $ECHO_N "(cached) $ECHO_C" >&6
31493else
31494 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031495/* confdefs.h. */
31496_ACEOF
31497cat confdefs.h >>conftest.$ac_ext
31498cat >>conftest.$ac_ext <<_ACEOF
31499/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031500$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031501typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031502int
31503main ()
31504{
Reid Spencera773bd52006-08-04 18:18:08 +000031505if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031506 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031507if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031508 return 0;
31509 ;
31510 return 0;
31511}
31512_ACEOF
31513rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031514if { (ac_try="$ac_compile"
31515case "(($ac_try" in
31516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31517 *) ac_try_echo=$ac_try;;
31518esac
31519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31520 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031521 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031522 grep -v '^ *+' conftest.er1 >conftest.err
31523 rm -f conftest.er1
31524 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031526 (exit $ac_status); } &&
31527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31528 { (case "(($ac_try" in
31529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31530 *) ac_try_echo=$ac_try;;
31531esac
31532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31533 (eval "$ac_try") 2>&5
31534 ac_status=$?
31535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31536 (exit $ac_status); }; } &&
31537 { ac_try='test -s conftest.$ac_objext'
31538 { (case "(($ac_try" in
31539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31540 *) ac_try_echo=$ac_try;;
31541esac
31542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31543 (eval "$ac_try") 2>&5
31544 ac_status=$?
31545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31546 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031547 ac_cv_type_uint64_t=yes
31548else
31549 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031550sed 's/^/| /' conftest.$ac_ext >&5
31551
Reid Spencera773bd52006-08-04 18:18:08 +000031552 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031553fi
Reid Spencera773bd52006-08-04 18:18:08 +000031554
31555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031556fi
Reid Spencera773bd52006-08-04 18:18:08 +000031557{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31558echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031559if test $ac_cv_type_uint64_t = yes; then
31560
31561cat >>confdefs.h <<_ACEOF
31562#define HAVE_UINT64_T 1
31563_ACEOF
31564
31565
31566else
Reid Spencera773bd52006-08-04 18:18:08 +000031567 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31568echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000031569if test "${ac_cv_type_u_int64_t+set}" = set; then
31570 echo $ECHO_N "(cached) $ECHO_C" >&6
31571else
31572 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000031573/* confdefs.h. */
31574_ACEOF
31575cat confdefs.h >>conftest.$ac_ext
31576cat >>conftest.$ac_ext <<_ACEOF
31577/* end confdefs.h. */
31578$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031579typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000031580int
31581main ()
31582{
Reid Spencera773bd52006-08-04 18:18:08 +000031583if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000031584 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031585if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000031586 return 0;
31587 ;
31588 return 0;
31589}
31590_ACEOF
31591rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031592if { (ac_try="$ac_compile"
31593case "(($ac_try" in
31594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31595 *) ac_try_echo=$ac_try;;
31596esac
31597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31598 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000031599 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031600 grep -v '^ *+' conftest.er1 >conftest.err
31601 rm -f conftest.er1
31602 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000031603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031604 (exit $ac_status); } &&
31605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31606 { (case "(($ac_try" in
31607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31608 *) ac_try_echo=$ac_try;;
31609esac
31610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31611 (eval "$ac_try") 2>&5
31612 ac_status=$?
31613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31614 (exit $ac_status); }; } &&
31615 { ac_try='test -s conftest.$ac_objext'
31616 { (case "(($ac_try" in
31617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31618 *) ac_try_echo=$ac_try;;
31619esac
31620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31621 (eval "$ac_try") 2>&5
31622 ac_status=$?
31623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31624 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000031625 ac_cv_type_u_int64_t=yes
31626else
31627 echo "$as_me: failed program was:" >&5
31628sed 's/^/| /' conftest.$ac_ext >&5
31629
Reid Spencera773bd52006-08-04 18:18:08 +000031630 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000031631fi
Reid Spencera773bd52006-08-04 18:18:08 +000031632
31633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000031634fi
Reid Spencera773bd52006-08-04 18:18:08 +000031635{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31636echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000031637if test $ac_cv_type_u_int64_t = yes; then
31638
31639cat >>confdefs.h <<_ACEOF
31640#define HAVE_U_INT64_T 1
31641_ACEOF
31642
31643
Misha Brukmanceca9042004-09-02 23:02:30 +000031644else
31645 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31646echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31647 { (exit 1); exit 1; }; }
31648fi
31649
John Criswell679ff312004-09-02 18:44:44 +000031650fi
31651
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031652
31653
31654
31655
31656
31657
31658
Reid Spencerf4bb9b12006-01-19 08:22:40 +000031659
31660
Reid Spencerdf3be822006-01-23 08:15:53 +000031661for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031662do
31663as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031664{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31665echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31666if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031667 echo $ECHO_N "(cached) $ECHO_C" >&6
31668else
31669 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031670/* confdefs.h. */
31671_ACEOF
31672cat confdefs.h >>conftest.$ac_ext
31673cat >>conftest.$ac_ext <<_ACEOF
31674/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031675/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31677#define $ac_func innocuous_$ac_func
31678
31679/* System header to define __stub macros and hopefully few prototypes,
31680 which can conflict with char $ac_func (); below.
31681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31682 <limits.h> exists even on freestanding compilers. */
31683
31684#ifdef __STDC__
31685# include <limits.h>
31686#else
31687# include <assert.h>
31688#endif
31689
31690#undef $ac_func
31691
Reid Spencera773bd52006-08-04 18:18:08 +000031692/* Override any GCC internal prototype to avoid an error.
31693 Use char because int might match the return type of a GCC
31694 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031695#ifdef __cplusplus
31696extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031697#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031698char $ac_func ();
31699/* The GNU C library defines this for functions which it implements
31700 to always fail with ENOSYS. Some functions are actually named
31701 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031702#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031703choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031704#endif
John Criswell7a73b802003-06-30 21:59:07 +000031705
John Criswell7a73b802003-06-30 21:59:07 +000031706int
31707main ()
31708{
Reid Spencera773bd52006-08-04 18:18:08 +000031709return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031710 ;
31711 return 0;
31712}
31713_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031714rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031715if { (ac_try="$ac_link"
31716case "(($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_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031722 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031723 grep -v '^ *+' conftest.er1 >conftest.err
31724 rm -f conftest.er1
31725 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031727 (exit $ac_status); } &&
31728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31729 { (case "(($ac_try" in
31730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31731 *) ac_try_echo=$ac_try;;
31732esac
31733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31734 (eval "$ac_try") 2>&5
31735 ac_status=$?
31736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31737 (exit $ac_status); }; } &&
31738 { ac_try='test -s conftest$ac_exeext'
31739 { (case "(($ac_try" in
31740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31741 *) ac_try_echo=$ac_try;;
31742esac
31743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31744 (eval "$ac_try") 2>&5
31745 ac_status=$?
31746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31747 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031748 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031749else
31750 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031751sed 's/^/| /' conftest.$ac_ext >&5
31752
Reid Spencera773bd52006-08-04 18:18:08 +000031753 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031754fi
Reid Spencera773bd52006-08-04 18:18:08 +000031755
Bill Wendlingebcceee2009-04-18 11:20:33 +000031756rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031757 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031758fi
Reid Spencera773bd52006-08-04 18:18:08 +000031759ac_res=`eval echo '${'$as_ac_var'}'`
31760 { echo "$as_me:$LINENO: result: $ac_res" >&5
31761echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031762if test `eval echo '${'$as_ac_var'}'` = yes; then
31763 cat >>confdefs.h <<_ACEOF
31764#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031765_ACEOF
31766
31767fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031768done
John Criswell7a73b802003-06-30 21:59:07 +000031769
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031770
31771
31772
Reid Spencer6af3d262004-12-15 04:01:48 +000031773
Reid Spencer96cf5872007-07-13 10:05:30 +000031774for ac_func in powf fmodf strtof round
31775do
31776as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31777{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31778echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31779if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31780 echo $ECHO_N "(cached) $ECHO_C" >&6
31781else
31782 cat >conftest.$ac_ext <<_ACEOF
31783/* confdefs.h. */
31784_ACEOF
31785cat confdefs.h >>conftest.$ac_ext
31786cat >>conftest.$ac_ext <<_ACEOF
31787/* end confdefs.h. */
31788/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31790#define $ac_func innocuous_$ac_func
31791
31792/* System header to define __stub macros and hopefully few prototypes,
31793 which can conflict with char $ac_func (); below.
31794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31795 <limits.h> exists even on freestanding compilers. */
31796
31797#ifdef __STDC__
31798# include <limits.h>
31799#else
31800# include <assert.h>
31801#endif
31802
31803#undef $ac_func
31804
31805/* Override any GCC internal prototype to avoid an error.
31806 Use char because int might match the return type of a GCC
31807 builtin and then its argument prototype would still apply. */
31808#ifdef __cplusplus
31809extern "C"
31810#endif
31811char $ac_func ();
31812/* The GNU C library defines this for functions which it implements
31813 to always fail with ENOSYS. Some functions are actually named
31814 something starting with __ and the normal name is an alias. */
31815#if defined __stub_$ac_func || defined __stub___$ac_func
31816choke me
31817#endif
31818
31819int
31820main ()
31821{
31822return $ac_func ();
31823 ;
31824 return 0;
31825}
31826_ACEOF
31827rm -f conftest.$ac_objext conftest$ac_exeext
31828if { (ac_try="$ac_link"
31829case "(($ac_try" in
31830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31831 *) ac_try_echo=$ac_try;;
31832esac
31833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31834 (eval "$ac_link") 2>conftest.er1
31835 ac_status=$?
31836 grep -v '^ *+' conftest.er1 >conftest.err
31837 rm -f conftest.er1
31838 cat conftest.err >&5
31839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031840 (exit $ac_status); } &&
31841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31842 { (case "(($ac_try" in
31843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31844 *) ac_try_echo=$ac_try;;
31845esac
31846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31847 (eval "$ac_try") 2>&5
31848 ac_status=$?
31849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850 (exit $ac_status); }; } &&
31851 { ac_try='test -s conftest$ac_exeext'
31852 { (case "(($ac_try" in
31853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31854 *) ac_try_echo=$ac_try;;
31855esac
31856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31857 (eval "$ac_try") 2>&5
31858 ac_status=$?
31859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31860 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000031861 eval "$as_ac_var=yes"
31862else
31863 echo "$as_me: failed program was:" >&5
31864sed 's/^/| /' conftest.$ac_ext >&5
31865
31866 eval "$as_ac_var=no"
31867fi
31868
Bill Wendlingebcceee2009-04-18 11:20:33 +000031869rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000031870 conftest$ac_exeext conftest.$ac_ext
31871fi
31872ac_res=`eval echo '${'$as_ac_var'}'`
31873 { echo "$as_me:$LINENO: result: $ac_res" >&5
31874echo "${ECHO_T}$ac_res" >&6; }
31875if test `eval echo '${'$as_ac_var'}'` = yes; then
31876 cat >>confdefs.h <<_ACEOF
31877#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31878_ACEOF
31879
31880fi
31881done
31882
31883
31884
31885
31886
Reid Spencer6af3d262004-12-15 04:01:48 +000031887
Reid Spencerb90645c2007-02-16 19:17:20 +000031888for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31889do
31890as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31891{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31892echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31893if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31894 echo $ECHO_N "(cached) $ECHO_C" >&6
31895else
31896 cat >conftest.$ac_ext <<_ACEOF
31897/* confdefs.h. */
31898_ACEOF
31899cat confdefs.h >>conftest.$ac_ext
31900cat >>conftest.$ac_ext <<_ACEOF
31901/* end confdefs.h. */
31902/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31904#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000031905
Reid Spencerb90645c2007-02-16 19:17:20 +000031906/* System header to define __stub macros and hopefully few prototypes,
31907 which can conflict with char $ac_func (); below.
31908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31909 <limits.h> exists even on freestanding compilers. */
31910
31911#ifdef __STDC__
31912# include <limits.h>
31913#else
31914# include <assert.h>
31915#endif
31916
31917#undef $ac_func
31918
31919/* Override any GCC internal prototype to avoid an error.
31920 Use char because int might match the return type of a GCC
31921 builtin and then its argument prototype would still apply. */
31922#ifdef __cplusplus
31923extern "C"
31924#endif
31925char $ac_func ();
31926/* The GNU C library defines this for functions which it implements
31927 to always fail with ENOSYS. Some functions are actually named
31928 something starting with __ and the normal name is an alias. */
31929#if defined __stub_$ac_func || defined __stub___$ac_func
31930choke me
31931#endif
31932
31933int
31934main ()
31935{
31936return $ac_func ();
31937 ;
31938 return 0;
31939}
31940_ACEOF
31941rm -f conftest.$ac_objext conftest$ac_exeext
31942if { (ac_try="$ac_link"
31943case "(($ac_try" in
31944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31945 *) ac_try_echo=$ac_try;;
31946esac
31947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31948 (eval "$ac_link") 2>conftest.er1
31949 ac_status=$?
31950 grep -v '^ *+' conftest.er1 >conftest.err
31951 rm -f conftest.er1
31952 cat conftest.err >&5
31953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031954 (exit $ac_status); } &&
31955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31956 { (case "(($ac_try" in
31957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31958 *) ac_try_echo=$ac_try;;
31959esac
31960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31961 (eval "$ac_try") 2>&5
31962 ac_status=$?
31963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31964 (exit $ac_status); }; } &&
31965 { ac_try='test -s conftest$ac_exeext'
31966 { (case "(($ac_try" in
31967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31968 *) ac_try_echo=$ac_try;;
31969esac
31970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31971 (eval "$ac_try") 2>&5
31972 ac_status=$?
31973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31974 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000031975 eval "$as_ac_var=yes"
31976else
31977 echo "$as_me: failed program was:" >&5
31978sed 's/^/| /' conftest.$ac_ext >&5
31979
31980 eval "$as_ac_var=no"
31981fi
31982
Bill Wendlingebcceee2009-04-18 11:20:33 +000031983rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000031984 conftest$ac_exeext conftest.$ac_ext
31985fi
31986ac_res=`eval echo '${'$as_ac_var'}'`
31987 { echo "$as_me:$LINENO: result: $ac_res" >&5
31988echo "${ECHO_T}$ac_res" >&6; }
31989if test `eval echo '${'$as_ac_var'}'` = yes; then
31990 cat >>confdefs.h <<_ACEOF
31991#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31992_ACEOF
31993
31994fi
31995done
31996
31997
31998
31999
32000for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000032001do
32002as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032003{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32004echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32005if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000032006 echo $ECHO_N "(cached) $ECHO_C" >&6
32007else
32008 cat >conftest.$ac_ext <<_ACEOF
32009/* confdefs.h. */
32010_ACEOF
32011cat confdefs.h >>conftest.$ac_ext
32012cat >>conftest.$ac_ext <<_ACEOF
32013/* end confdefs.h. */
32014/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32016#define $ac_func innocuous_$ac_func
32017
32018/* System header to define __stub macros and hopefully few prototypes,
32019 which can conflict with char $ac_func (); below.
32020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32021 <limits.h> exists even on freestanding compilers. */
32022
32023#ifdef __STDC__
32024# include <limits.h>
32025#else
32026# include <assert.h>
32027#endif
32028
32029#undef $ac_func
32030
Reid Spencera773bd52006-08-04 18:18:08 +000032031/* Override any GCC internal prototype to avoid an error.
32032 Use char because int might match the return type of a GCC
32033 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000032034#ifdef __cplusplus
32035extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000032036#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000032037char $ac_func ();
32038/* The GNU C library defines this for functions which it implements
32039 to always fail with ENOSYS. Some functions are actually named
32040 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032041#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000032042choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000032043#endif
32044
32045int
32046main ()
32047{
Reid Spencera773bd52006-08-04 18:18:08 +000032048return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000032049 ;
32050 return 0;
32051}
32052_ACEOF
32053rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032054if { (ac_try="$ac_link"
32055case "(($ac_try" in
32056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32057 *) ac_try_echo=$ac_try;;
32058esac
32059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32060 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000032061 ac_status=$?
32062 grep -v '^ *+' conftest.er1 >conftest.err
32063 rm -f conftest.er1
32064 cat conftest.err >&5
32065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032066 (exit $ac_status); } &&
32067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32068 { (case "(($ac_try" in
32069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32070 *) ac_try_echo=$ac_try;;
32071esac
32072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32073 (eval "$ac_try") 2>&5
32074 ac_status=$?
32075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32076 (exit $ac_status); }; } &&
32077 { ac_try='test -s conftest$ac_exeext'
32078 { (case "(($ac_try" in
32079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32080 *) ac_try_echo=$ac_try;;
32081esac
32082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32083 (eval "$ac_try") 2>&5
32084 ac_status=$?
32085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32086 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000032087 eval "$as_ac_var=yes"
32088else
32089 echo "$as_me: failed program was:" >&5
32090sed 's/^/| /' conftest.$ac_ext >&5
32091
Reid Spencera773bd52006-08-04 18:18:08 +000032092 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000032093fi
Reid Spencera773bd52006-08-04 18:18:08 +000032094
Bill Wendlingebcceee2009-04-18 11:20:33 +000032095rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000032096 conftest$ac_exeext conftest.$ac_ext
32097fi
Reid Spencera773bd52006-08-04 18:18:08 +000032098ac_res=`eval echo '${'$as_ac_var'}'`
32099 { echo "$as_me:$LINENO: result: $ac_res" >&5
32100echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000032101if test `eval echo '${'$as_ac_var'}'` = yes; then
32102 cat >>confdefs.h <<_ACEOF
32103#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32104_ACEOF
32105
32106fi
32107done
32108
32109
32110
32111
32112
32113
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000032114for ac_func in mktemp realpath sbrk setrlimit strdup
32115do
32116as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32117{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32118echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32119if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32120 echo $ECHO_N "(cached) $ECHO_C" >&6
32121else
32122 cat >conftest.$ac_ext <<_ACEOF
32123/* confdefs.h. */
32124_ACEOF
32125cat confdefs.h >>conftest.$ac_ext
32126cat >>conftest.$ac_ext <<_ACEOF
32127/* end confdefs.h. */
32128/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32130#define $ac_func innocuous_$ac_func
32131
32132/* System header to define __stub macros and hopefully few prototypes,
32133 which can conflict with char $ac_func (); below.
32134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32135 <limits.h> exists even on freestanding compilers. */
32136
32137#ifdef __STDC__
32138# include <limits.h>
32139#else
32140# include <assert.h>
32141#endif
32142
32143#undef $ac_func
32144
32145/* Override any GCC internal prototype to avoid an error.
32146 Use char because int might match the return type of a GCC
32147 builtin and then its argument prototype would still apply. */
32148#ifdef __cplusplus
32149extern "C"
32150#endif
32151char $ac_func ();
32152/* The GNU C library defines this for functions which it implements
32153 to always fail with ENOSYS. Some functions are actually named
32154 something starting with __ and the normal name is an alias. */
32155#if defined __stub_$ac_func || defined __stub___$ac_func
32156choke me
32157#endif
32158
32159int
32160main ()
32161{
32162return $ac_func ();
32163 ;
32164 return 0;
32165}
32166_ACEOF
32167rm -f conftest.$ac_objext conftest$ac_exeext
32168if { (ac_try="$ac_link"
32169case "(($ac_try" in
32170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32171 *) ac_try_echo=$ac_try;;
32172esac
32173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32174 (eval "$ac_link") 2>conftest.er1
32175 ac_status=$?
32176 grep -v '^ *+' conftest.er1 >conftest.err
32177 rm -f conftest.er1
32178 cat conftest.err >&5
32179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32180 (exit $ac_status); } &&
32181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32182 { (case "(($ac_try" in
32183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32184 *) ac_try_echo=$ac_try;;
32185esac
32186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32187 (eval "$ac_try") 2>&5
32188 ac_status=$?
32189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32190 (exit $ac_status); }; } &&
32191 { ac_try='test -s conftest$ac_exeext'
32192 { (case "(($ac_try" in
32193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32194 *) ac_try_echo=$ac_try;;
32195esac
32196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32197 (eval "$ac_try") 2>&5
32198 ac_status=$?
32199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32200 (exit $ac_status); }; }; then
32201 eval "$as_ac_var=yes"
32202else
32203 echo "$as_me: failed program was:" >&5
32204sed 's/^/| /' conftest.$ac_ext >&5
32205
32206 eval "$as_ac_var=no"
32207fi
32208
32209rm -f core conftest.err conftest.$ac_objext \
32210 conftest$ac_exeext conftest.$ac_ext
32211fi
32212ac_res=`eval echo '${'$as_ac_var'}'`
32213 { echo "$as_me:$LINENO: result: $ac_res" >&5
32214echo "${ECHO_T}$ac_res" >&6; }
32215if test `eval echo '${'$as_ac_var'}'` = yes; then
32216 cat >>confdefs.h <<_ACEOF
32217#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32218_ACEOF
32219
32220fi
32221done
Reid Spencerdf3be822006-01-23 08:15:53 +000032222
32223
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000032224
32225
32226for ac_func in strerror strerror_r strerror_s
Reid Spencer7931a782004-12-27 06:15:02 +000032227do
32228as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032229{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32230echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32231if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000032232 echo $ECHO_N "(cached) $ECHO_C" >&6
32233else
32234 cat >conftest.$ac_ext <<_ACEOF
32235/* confdefs.h. */
32236_ACEOF
32237cat confdefs.h >>conftest.$ac_ext
32238cat >>conftest.$ac_ext <<_ACEOF
32239/* end confdefs.h. */
32240/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32242#define $ac_func innocuous_$ac_func
32243
32244/* System header to define __stub macros and hopefully few prototypes,
32245 which can conflict with char $ac_func (); below.
32246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32247 <limits.h> exists even on freestanding compilers. */
32248
32249#ifdef __STDC__
32250# include <limits.h>
32251#else
32252# include <assert.h>
32253#endif
32254
32255#undef $ac_func
32256
Reid Spencera773bd52006-08-04 18:18:08 +000032257/* Override any GCC internal prototype to avoid an error.
32258 Use char because int might match the return type of a GCC
32259 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000032260#ifdef __cplusplus
32261extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000032262#endif
Reid Spencer7931a782004-12-27 06:15:02 +000032263char $ac_func ();
32264/* The GNU C library defines this for functions which it implements
32265 to always fail with ENOSYS. Some functions are actually named
32266 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032267#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000032268choke me
Reid Spencer7931a782004-12-27 06:15:02 +000032269#endif
32270
32271int
32272main ()
32273{
Reid Spencera773bd52006-08-04 18:18:08 +000032274return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000032275 ;
32276 return 0;
32277}
32278_ACEOF
32279rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032280if { (ac_try="$ac_link"
32281case "(($ac_try" in
32282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32283 *) ac_try_echo=$ac_try;;
32284esac
32285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32286 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000032287 ac_status=$?
32288 grep -v '^ *+' conftest.er1 >conftest.err
32289 rm -f conftest.er1
32290 cat conftest.err >&5
32291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032292 (exit $ac_status); } &&
32293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32294 { (case "(($ac_try" in
32295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32296 *) ac_try_echo=$ac_try;;
32297esac
32298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32299 (eval "$ac_try") 2>&5
32300 ac_status=$?
32301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32302 (exit $ac_status); }; } &&
32303 { ac_try='test -s conftest$ac_exeext'
32304 { (case "(($ac_try" in
32305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32306 *) ac_try_echo=$ac_try;;
32307esac
32308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32309 (eval "$ac_try") 2>&5
32310 ac_status=$?
32311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000032313 eval "$as_ac_var=yes"
32314else
32315 echo "$as_me: failed program was:" >&5
32316sed 's/^/| /' conftest.$ac_ext >&5
32317
Reid Spencera773bd52006-08-04 18:18:08 +000032318 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000032319fi
Reid Spencera773bd52006-08-04 18:18:08 +000032320
Bill Wendlingebcceee2009-04-18 11:20:33 +000032321rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000032322 conftest$ac_exeext conftest.$ac_ext
32323fi
Reid Spencera773bd52006-08-04 18:18:08 +000032324ac_res=`eval echo '${'$as_ac_var'}'`
32325 { echo "$as_me:$LINENO: result: $ac_res" >&5
32326echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000032327if test `eval echo '${'$as_ac_var'}'` = yes; then
32328 cat >>confdefs.h <<_ACEOF
32329#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32330_ACEOF
32331
32332fi
32333done
32334
32335
Reid Spencerba46ca32004-12-31 05:49:15 +000032336
32337
Chris Lattner0b142592005-11-14 06:57:34 +000032338
Chris Lattner511f11d2005-11-14 07:25:50 +000032339for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032340do
32341as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032342{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32343echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32344if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032345 echo $ECHO_N "(cached) $ECHO_C" >&6
32346else
32347 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032348/* confdefs.h. */
32349_ACEOF
32350cat confdefs.h >>conftest.$ac_ext
32351cat >>conftest.$ac_ext <<_ACEOF
32352/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032353/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32355#define $ac_func innocuous_$ac_func
32356
32357/* System header to define __stub macros and hopefully few prototypes,
32358 which can conflict with char $ac_func (); below.
32359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32360 <limits.h> exists even on freestanding compilers. */
32361
32362#ifdef __STDC__
32363# include <limits.h>
32364#else
32365# include <assert.h>
32366#endif
32367
32368#undef $ac_func
32369
Reid Spencera773bd52006-08-04 18:18:08 +000032370/* Override any GCC internal prototype to avoid an error.
32371 Use char because int might match the return type of a GCC
32372 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032373#ifdef __cplusplus
32374extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032375#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032376char $ac_func ();
32377/* The GNU C library defines this for functions which it implements
32378 to always fail with ENOSYS. Some functions are actually named
32379 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032380#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032381choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032382#endif
John Criswell7a73b802003-06-30 21:59:07 +000032383
John Criswell7a73b802003-06-30 21:59:07 +000032384int
32385main ()
32386{
Reid Spencera773bd52006-08-04 18:18:08 +000032387return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032388 ;
32389 return 0;
32390}
32391_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032392rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032393if { (ac_try="$ac_link"
32394case "(($ac_try" in
32395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32396 *) ac_try_echo=$ac_try;;
32397esac
32398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32399 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032400 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032401 grep -v '^ *+' conftest.er1 >conftest.err
32402 rm -f conftest.er1
32403 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032405 (exit $ac_status); } &&
32406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32407 { (case "(($ac_try" in
32408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32409 *) ac_try_echo=$ac_try;;
32410esac
32411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32412 (eval "$ac_try") 2>&5
32413 ac_status=$?
32414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32415 (exit $ac_status); }; } &&
32416 { ac_try='test -s conftest$ac_exeext'
32417 { (case "(($ac_try" in
32418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32419 *) ac_try_echo=$ac_try;;
32420esac
32421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32422 (eval "$ac_try") 2>&5
32423 ac_status=$?
32424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32425 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032426 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000032427else
32428 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032429sed 's/^/| /' conftest.$ac_ext >&5
32430
Reid Spencera773bd52006-08-04 18:18:08 +000032431 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000032432fi
Reid Spencera773bd52006-08-04 18:18:08 +000032433
Bill Wendlingebcceee2009-04-18 11:20:33 +000032434rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032435 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032436fi
Reid Spencera773bd52006-08-04 18:18:08 +000032437ac_res=`eval echo '${'$as_ac_var'}'`
32438 { echo "$as_me:$LINENO: result: $ac_res" >&5
32439echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032440if test `eval echo '${'$as_ac_var'}'` = yes; then
32441 cat >>confdefs.h <<_ACEOF
32442#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000032443_ACEOF
32444
32445fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032446done
John Criswell7a73b802003-06-30 21:59:07 +000032447
Reid Spencercdb08a32006-06-05 16:11:07 +000032448
32449
32450
32451
Reid Spencerafa22e22006-12-10 23:29:19 +000032452for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000032453do
32454as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032455{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32456echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32457if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000032458 echo $ECHO_N "(cached) $ECHO_C" >&6
32459else
32460 cat >conftest.$ac_ext <<_ACEOF
32461/* confdefs.h. */
32462_ACEOF
32463cat confdefs.h >>conftest.$ac_ext
32464cat >>conftest.$ac_ext <<_ACEOF
32465/* end confdefs.h. */
32466/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32468#define $ac_func innocuous_$ac_func
32469
32470/* System header to define __stub macros and hopefully few prototypes,
32471 which can conflict with char $ac_func (); below.
32472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32473 <limits.h> exists even on freestanding compilers. */
32474
32475#ifdef __STDC__
32476# include <limits.h>
32477#else
32478# include <assert.h>
32479#endif
32480
32481#undef $ac_func
32482
Reid Spencera773bd52006-08-04 18:18:08 +000032483/* Override any GCC internal prototype to avoid an error.
32484 Use char because int might match the return type of a GCC
32485 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000032486#ifdef __cplusplus
32487extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000032488#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000032489char $ac_func ();
32490/* The GNU C library defines this for functions which it implements
32491 to always fail with ENOSYS. Some functions are actually named
32492 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032493#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000032494choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000032495#endif
32496
32497int
32498main ()
32499{
Reid Spencera773bd52006-08-04 18:18:08 +000032500return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000032501 ;
32502 return 0;
32503}
32504_ACEOF
32505rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032506if { (ac_try="$ac_link"
32507case "(($ac_try" in
32508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32509 *) ac_try_echo=$ac_try;;
32510esac
32511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32512 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000032513 ac_status=$?
32514 grep -v '^ *+' conftest.er1 >conftest.err
32515 rm -f conftest.er1
32516 cat conftest.err >&5
32517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032518 (exit $ac_status); } &&
32519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32520 { (case "(($ac_try" in
32521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32522 *) ac_try_echo=$ac_try;;
32523esac
32524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32525 (eval "$ac_try") 2>&5
32526 ac_status=$?
32527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32528 (exit $ac_status); }; } &&
32529 { ac_try='test -s conftest$ac_exeext'
32530 { (case "(($ac_try" in
32531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32532 *) ac_try_echo=$ac_try;;
32533esac
32534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32535 (eval "$ac_try") 2>&5
32536 ac_status=$?
32537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32538 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000032539 eval "$as_ac_var=yes"
32540else
32541 echo "$as_me: failed program was:" >&5
32542sed 's/^/| /' conftest.$ac_ext >&5
32543
Reid Spencera773bd52006-08-04 18:18:08 +000032544 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000032545fi
Reid Spencera773bd52006-08-04 18:18:08 +000032546
Bill Wendlingebcceee2009-04-18 11:20:33 +000032547rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000032548 conftest$ac_exeext conftest.$ac_ext
32549fi
Reid Spencera773bd52006-08-04 18:18:08 +000032550ac_res=`eval echo '${'$as_ac_var'}'`
32551 { echo "$as_me:$LINENO: result: $ac_res" >&5
32552echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000032553if test `eval echo '${'$as_ac_var'}'` = yes; then
32554 cat >>confdefs.h <<_ACEOF
32555#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32556_ACEOF
32557
32558fi
32559done
32560
Reid Spencera773bd52006-08-04 18:18:08 +000032561{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32562echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000032563if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032564 echo $ECHO_N "(cached) $ECHO_C" >&6
32565else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032566 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000032567ac_cpp='$CPP $CPPFLAGS'
32568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32570ac_compiler_gnu=$ac_cv_c_compiler_gnu
32571
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032572 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000032573 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000032574else
32575 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000032576
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032577 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000032578_ACEOF
32579cat confdefs.h >>conftest.$ac_ext
32580cat >>conftest.$ac_ext <<_ACEOF
32581/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032582
John Criswella0137d32003-10-13 16:22:01 +000032583#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000032584#include <stdlib.h>
32585
John Criswella0137d32003-10-13 16:22:01 +000032586int
32587main ()
32588{
32589
Reid Spencer2706f8c2004-09-19 23:53:36 +000032590volatile double A, B;
32591char Buffer[100];
32592A = 1;
32593A /= 10.0;
32594sprintf(Buffer, "%a", A);
32595B = atof(Buffer);
32596if (A != B)
32597 return (1);
32598if (A != 0x1.999999999999ap-4)
32599 return (1);
32600return (0);
John Criswella0137d32003-10-13 16:22:01 +000032601 ;
32602 return 0;
32603}
32604_ACEOF
32605rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032606if { (ac_try="$ac_link"
32607case "(($ac_try" in
32608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32609 *) ac_try_echo=$ac_try;;
32610esac
32611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32612 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000032613 ac_status=$?
32614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032616 { (case "(($ac_try" in
32617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32618 *) ac_try_echo=$ac_try;;
32619esac
32620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32621 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000032622 ac_status=$?
32623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32624 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000032625 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000032626else
32627 echo "$as_me: program exited with status $ac_status" >&5
32628echo "$as_me: failed program was:" >&5
32629sed 's/^/| /' conftest.$ac_ext >&5
32630
32631( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000032632llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000032633fi
Reid Spencera773bd52006-08-04 18:18:08 +000032634rm -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 +000032635fi
Reid Spencera773bd52006-08-04 18:18:08 +000032636
32637
Reid Spencer2706f8c2004-09-19 23:53:36 +000032638 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000032639ac_cpp='$CPP $CPPFLAGS'
32640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32642ac_compiler_gnu=$ac_cv_c_compiler_gnu
32643
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032644fi
Reid Spencera773bd52006-08-04 18:18:08 +000032645{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32646echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000032647 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000032648
32649cat >>confdefs.h <<\_ACEOF
32650#define HAVE_PRINTF_A 1
32651_ACEOF
32652
Reid Spencer2706f8c2004-09-19 23:53:36 +000032653 fi
John Criswella0137d32003-10-13 16:22:01 +000032654
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032655# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32656# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000032657{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
32658echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032659if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000032660 echo $ECHO_N "(cached) $ECHO_C" >&6
32661else
John Criswell0021c312004-02-13 21:57:29 +000032662 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000032663/* confdefs.h. */
32664_ACEOF
32665cat confdefs.h >>conftest.$ac_ext
32666cat >>conftest.$ac_ext <<_ACEOF
32667/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032668#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000032669int
32670main ()
32671{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032672char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000032673 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000032674 ;
32675 return 0;
32676}
32677_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032678rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032679if { (ac_try="$ac_link"
32680case "(($ac_try" in
32681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32682 *) ac_try_echo=$ac_try;;
32683esac
32684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32685 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000032686 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032687 grep -v '^ *+' conftest.er1 >conftest.err
32688 rm -f conftest.er1
32689 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000032690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032691 (exit $ac_status); } &&
32692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32693 { (case "(($ac_try" in
32694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32695 *) ac_try_echo=$ac_try;;
32696esac
32697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32698 (eval "$ac_try") 2>&5
32699 ac_status=$?
32700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32701 (exit $ac_status); }; } &&
32702 { ac_try='test -s conftest$ac_exeext'
32703 { (case "(($ac_try" in
32704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32705 *) ac_try_echo=$ac_try;;
32706esac
32707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32708 (eval "$ac_try") 2>&5
32709 ac_status=$?
32710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32711 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032712 ac_cv_working_alloca_h=yes
32713else
32714 echo "$as_me: failed program was:" >&5
32715sed 's/^/| /' conftest.$ac_ext >&5
32716
Reid Spencera773bd52006-08-04 18:18:08 +000032717 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000032718fi
Reid Spencera773bd52006-08-04 18:18:08 +000032719
Bill Wendlingebcceee2009-04-18 11:20:33 +000032720rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032721 conftest$ac_exeext conftest.$ac_ext
32722fi
Reid Spencera773bd52006-08-04 18:18:08 +000032723{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32724echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032725if test $ac_cv_working_alloca_h = yes; then
32726
32727cat >>confdefs.h <<\_ACEOF
32728#define HAVE_ALLOCA_H 1
32729_ACEOF
32730
32731fi
32732
Reid Spencera773bd52006-08-04 18:18:08 +000032733{ echo "$as_me:$LINENO: checking for alloca" >&5
32734echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032735if test "${ac_cv_func_alloca_works+set}" = set; then
32736 echo $ECHO_N "(cached) $ECHO_C" >&6
32737else
32738 cat >conftest.$ac_ext <<_ACEOF
32739/* confdefs.h. */
32740_ACEOF
32741cat confdefs.h >>conftest.$ac_ext
32742cat >>conftest.$ac_ext <<_ACEOF
32743/* end confdefs.h. */
32744#ifdef __GNUC__
32745# define alloca __builtin_alloca
32746#else
32747# ifdef _MSC_VER
32748# include <malloc.h>
32749# define alloca _alloca
32750# else
Bill Wendlingebcceee2009-04-18 11:20:33 +000032751# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032752# include <alloca.h>
32753# else
32754# ifdef _AIX
32755 #pragma alloca
32756# else
32757# ifndef alloca /* predefined by HP cc +Olibcalls */
32758char *alloca ();
32759# endif
32760# endif
32761# endif
32762# endif
32763#endif
32764
32765int
32766main ()
32767{
32768char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000032769 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032770 ;
32771 return 0;
32772}
32773_ACEOF
32774rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032775if { (ac_try="$ac_link"
32776case "(($ac_try" in
32777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32778 *) ac_try_echo=$ac_try;;
32779esac
32780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32781 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032782 ac_status=$?
32783 grep -v '^ *+' conftest.er1 >conftest.err
32784 rm -f conftest.er1
32785 cat conftest.err >&5
32786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032787 (exit $ac_status); } &&
32788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32789 { (case "(($ac_try" in
32790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32791 *) ac_try_echo=$ac_try;;
32792esac
32793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32794 (eval "$ac_try") 2>&5
32795 ac_status=$?
32796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32797 (exit $ac_status); }; } &&
32798 { ac_try='test -s conftest$ac_exeext'
32799 { (case "(($ac_try" in
32800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32801 *) ac_try_echo=$ac_try;;
32802esac
32803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32804 (eval "$ac_try") 2>&5
32805 ac_status=$?
32806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32807 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032808 ac_cv_func_alloca_works=yes
32809else
32810 echo "$as_me: failed program was:" >&5
32811sed 's/^/| /' conftest.$ac_ext >&5
32812
Reid Spencera773bd52006-08-04 18:18:08 +000032813 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032814fi
Reid Spencera773bd52006-08-04 18:18:08 +000032815
Bill Wendlingebcceee2009-04-18 11:20:33 +000032816rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032817 conftest$ac_exeext conftest.$ac_ext
32818fi
Reid Spencera773bd52006-08-04 18:18:08 +000032819{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32820echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032821
32822if test $ac_cv_func_alloca_works = yes; then
32823
32824cat >>confdefs.h <<\_ACEOF
32825#define HAVE_ALLOCA 1
32826_ACEOF
32827
32828else
32829 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32830# that cause trouble. Some versions do not even contain alloca or
32831# contain a buggy version. If you still want to use their alloca,
32832# use ar to extract alloca.o from them instead of compiling alloca.c.
32833
Reid Spencera773bd52006-08-04 18:18:08 +000032834ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032835
32836cat >>confdefs.h <<\_ACEOF
32837#define C_ALLOCA 1
32838_ACEOF
32839
32840
Reid Spencera773bd52006-08-04 18:18:08 +000032841{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32842echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032843if test "${ac_cv_os_cray+set}" = set; then
32844 echo $ECHO_N "(cached) $ECHO_C" >&6
32845else
32846 cat >conftest.$ac_ext <<_ACEOF
32847/* confdefs.h. */
32848_ACEOF
32849cat confdefs.h >>conftest.$ac_ext
32850cat >>conftest.$ac_ext <<_ACEOF
32851/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000032852#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032853webecray
32854#else
32855wenotbecray
32856#endif
32857
32858_ACEOF
32859if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32860 $EGREP "webecray" >/dev/null 2>&1; then
32861 ac_cv_os_cray=yes
32862else
32863 ac_cv_os_cray=no
32864fi
32865rm -f conftest*
32866
32867fi
Reid Spencera773bd52006-08-04 18:18:08 +000032868{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32869echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032870if test $ac_cv_os_cray = yes; then
32871 for ac_func in _getb67 GETB67 getb67; do
32872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032873{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32874echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32875if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032876 echo $ECHO_N "(cached) $ECHO_C" >&6
32877else
32878 cat >conftest.$ac_ext <<_ACEOF
32879/* confdefs.h. */
32880_ACEOF
32881cat confdefs.h >>conftest.$ac_ext
32882cat >>conftest.$ac_ext <<_ACEOF
32883/* end confdefs.h. */
32884/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32886#define $ac_func innocuous_$ac_func
32887
32888/* System header to define __stub macros and hopefully few prototypes,
32889 which can conflict with char $ac_func (); below.
32890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32891 <limits.h> exists even on freestanding compilers. */
32892
32893#ifdef __STDC__
32894# include <limits.h>
32895#else
32896# include <assert.h>
32897#endif
32898
32899#undef $ac_func
32900
Reid Spencera773bd52006-08-04 18:18:08 +000032901/* Override any GCC internal prototype to avoid an error.
32902 Use char because int might match the return type of a GCC
32903 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032904#ifdef __cplusplus
32905extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032906#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032907char $ac_func ();
32908/* The GNU C library defines this for functions which it implements
32909 to always fail with ENOSYS. Some functions are actually named
32910 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032911#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032912choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032913#endif
32914
32915int
32916main ()
32917{
Reid Spencera773bd52006-08-04 18:18:08 +000032918return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032919 ;
32920 return 0;
32921}
32922_ACEOF
32923rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032924if { (ac_try="$ac_link"
32925case "(($ac_try" in
32926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32927 *) ac_try_echo=$ac_try;;
32928esac
32929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32930 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032931 ac_status=$?
32932 grep -v '^ *+' conftest.er1 >conftest.err
32933 rm -f conftest.er1
32934 cat conftest.err >&5
32935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032936 (exit $ac_status); } &&
32937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
32947 { ac_try='test -s conftest$ac_exeext'
32948 { (case "(($ac_try" in
32949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32950 *) ac_try_echo=$ac_try;;
32951esac
32952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32953 (eval "$ac_try") 2>&5
32954 ac_status=$?
32955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32956 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032957 eval "$as_ac_var=yes"
32958else
32959 echo "$as_me: failed program was:" >&5
32960sed 's/^/| /' conftest.$ac_ext >&5
32961
Reid Spencera773bd52006-08-04 18:18:08 +000032962 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032963fi
Reid Spencera773bd52006-08-04 18:18:08 +000032964
Bill Wendlingebcceee2009-04-18 11:20:33 +000032965rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032966 conftest$ac_exeext conftest.$ac_ext
32967fi
Reid Spencera773bd52006-08-04 18:18:08 +000032968ac_res=`eval echo '${'$as_ac_var'}'`
32969 { echo "$as_me:$LINENO: result: $ac_res" >&5
32970echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032971if test `eval echo '${'$as_ac_var'}'` = yes; then
32972
32973cat >>confdefs.h <<_ACEOF
32974#define CRAY_STACKSEG_END $ac_func
32975_ACEOF
32976
32977 break
32978fi
32979
32980 done
32981fi
32982
Reid Spencera773bd52006-08-04 18:18:08 +000032983{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32984echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032985if test "${ac_cv_c_stack_direction+set}" = set; then
32986 echo $ECHO_N "(cached) $ECHO_C" >&6
32987else
32988 if test "$cross_compiling" = yes; then
32989 ac_cv_c_stack_direction=0
32990else
32991 cat >conftest.$ac_ext <<_ACEOF
32992/* confdefs.h. */
32993_ACEOF
32994cat confdefs.h >>conftest.$ac_ext
32995cat >>conftest.$ac_ext <<_ACEOF
32996/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000032997$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032998int
32999find_stack_direction ()
33000{
33001 static char *addr = 0;
33002 auto char dummy;
33003 if (addr == 0)
33004 {
33005 addr = &dummy;
33006 return find_stack_direction ();
33007 }
John Criswell0021c312004-02-13 21:57:29 +000033008 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033009 return (&dummy > addr) ? 1 : -1;
33010}
John Criswell0021c312004-02-13 21:57:29 +000033011
John Criswell0021c312004-02-13 21:57:29 +000033012int
33013main ()
33014{
Reid Spencera773bd52006-08-04 18:18:08 +000033015 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000033016}
33017_ACEOF
33018rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033019if { (ac_try="$ac_link"
33020case "(($ac_try" in
33021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33022 *) ac_try_echo=$ac_try;;
33023esac
33024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33025 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000033026 ac_status=$?
33027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33028 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033029 { (case "(($ac_try" in
33030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33031 *) ac_try_echo=$ac_try;;
33032esac
33033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33034 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000033035 ac_status=$?
33036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33037 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033038 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000033039else
33040 echo "$as_me: program exited with status $ac_status" >&5
33041echo "$as_me: failed program was:" >&5
33042sed 's/^/| /' conftest.$ac_ext >&5
33043
33044( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033045ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000033046fi
Reid Spencera773bd52006-08-04 18:18:08 +000033047rm -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 +000033048fi
Reid Spencera773bd52006-08-04 18:18:08 +000033049
33050
John Criswell0021c312004-02-13 21:57:29 +000033051fi
Reid Spencera773bd52006-08-04 18:18:08 +000033052{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33053echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033054
33055cat >>confdefs.h <<_ACEOF
33056#define STACK_DIRECTION $ac_cv_c_stack_direction
33057_ACEOF
33058
33059
John Criswell0021c312004-02-13 21:57:29 +000033060fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033061
33062
Reid Spencera773bd52006-08-04 18:18:08 +000033063{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33064echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033065if test "${ac_cv_func_rand48+set}" = set; then
33066 echo $ECHO_N "(cached) $ECHO_C" >&6
33067else
Reid Spencera773bd52006-08-04 18:18:08 +000033068 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033069ac_cpp='$CXXCPP $CPPFLAGS'
33070ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33071ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33072ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33073
33074 cat >conftest.$ac_ext <<_ACEOF
33075/* confdefs.h. */
33076_ACEOF
33077cat confdefs.h >>conftest.$ac_ext
33078cat >>conftest.$ac_ext <<_ACEOF
33079/* end confdefs.h. */
33080#include <stdlib.h>
33081int
33082main ()
33083{
33084srand48(0);lrand48();drand48();
33085 ;
33086 return 0;
33087}
33088_ACEOF
33089rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033090if { (ac_try="$ac_compile"
33091case "(($ac_try" in
33092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33093 *) ac_try_echo=$ac_try;;
33094esac
33095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33096 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033097 ac_status=$?
33098 grep -v '^ *+' conftest.er1 >conftest.err
33099 rm -f conftest.er1
33100 cat conftest.err >&5
33101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033102 (exit $ac_status); } &&
33103 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33104 { (case "(($ac_try" in
33105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33106 *) ac_try_echo=$ac_try;;
33107esac
33108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33109 (eval "$ac_try") 2>&5
33110 ac_status=$?
33111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33112 (exit $ac_status); }; } &&
33113 { ac_try='test -s conftest.$ac_objext'
33114 { (case "(($ac_try" in
33115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33116 *) ac_try_echo=$ac_try;;
33117esac
33118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33119 (eval "$ac_try") 2>&5
33120 ac_status=$?
33121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33122 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033123 ac_cv_func_rand48=yes
33124else
33125 echo "$as_me: failed program was:" >&5
33126sed 's/^/| /' conftest.$ac_ext >&5
33127
Reid Spencera773bd52006-08-04 18:18:08 +000033128 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033129fi
Reid Spencera773bd52006-08-04 18:18:08 +000033130
33131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033132 ac_ext=c
33133ac_cpp='$CPP $CPPFLAGS'
33134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33136ac_compiler_gnu=$ac_cv_c_compiler_gnu
33137
33138fi
Reid Spencera773bd52006-08-04 18:18:08 +000033139{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33140echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033141
33142if test "$ac_cv_func_rand48" = "yes" ; then
33143
33144cat >>confdefs.h <<\_ACEOF
33145#define HAVE_RAND48 1
33146_ACEOF
33147
33148fi
John Criswell0021c312004-02-13 21:57:29 +000033149
33150
Reid Spencera773bd52006-08-04 18:18:08 +000033151{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33152echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033153if test "${ac_cv_cxx_namespaces+set}" = set; then
33154 echo $ECHO_N "(cached) $ECHO_C" >&6
33155else
Reid Spencera773bd52006-08-04 18:18:08 +000033156 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033157ac_cpp='$CXXCPP $CPPFLAGS'
33158ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33159ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33160ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33161
33162 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033163/* confdefs.h. */
33164_ACEOF
33165cat confdefs.h >>conftest.$ac_ext
33166cat >>conftest.$ac_ext <<_ACEOF
33167/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033168namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000033169int
33170main ()
33171{
33172using namespace Outer::Inner; return i;
33173 ;
33174 return 0;
33175}
33176_ACEOF
33177rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033178if { (ac_try="$ac_compile"
33179case "(($ac_try" in
33180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33181 *) ac_try_echo=$ac_try;;
33182esac
33183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33184 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033185 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033186 grep -v '^ *+' conftest.er1 >conftest.err
33187 rm -f conftest.er1
33188 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033190 (exit $ac_status); } &&
33191 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33192 { (case "(($ac_try" in
33193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33194 *) ac_try_echo=$ac_try;;
33195esac
33196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33197 (eval "$ac_try") 2>&5
33198 ac_status=$?
33199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33200 (exit $ac_status); }; } &&
33201 { ac_try='test -s conftest.$ac_objext'
33202 { (case "(($ac_try" in
33203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33204 *) ac_try_echo=$ac_try;;
33205esac
33206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33207 (eval "$ac_try") 2>&5
33208 ac_status=$?
33209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33210 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033211 ac_cv_cxx_namespaces=yes
33212else
33213 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033214sed 's/^/| /' conftest.$ac_ext >&5
33215
Reid Spencera773bd52006-08-04 18:18:08 +000033216 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000033217fi
Reid Spencera773bd52006-08-04 18:18:08 +000033218
33219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033220 ac_ext=c
33221ac_cpp='$CPP $CPPFLAGS'
33222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33224ac_compiler_gnu=$ac_cv_c_compiler_gnu
33225
33226
33227fi
Reid Spencera773bd52006-08-04 18:18:08 +000033228{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33229echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033230if test "$ac_cv_cxx_namespaces" = yes; then
33231
33232cat >>confdefs.h <<\_ACEOF
33233#define HAVE_NAMESPACES
33234_ACEOF
33235
33236fi
33237
Reid Spencera773bd52006-08-04 18:18:08 +000033238{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33239echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033240if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33241 echo $ECHO_N "(cached) $ECHO_C" >&6
33242else
33243
Reid Spencera773bd52006-08-04 18:18:08 +000033244 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033245ac_cpp='$CXXCPP $CPPFLAGS'
33246ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33247ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33248ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33249
33250 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033251/* confdefs.h. */
33252_ACEOF
33253cat confdefs.h >>conftest.$ac_ext
33254cat >>conftest.$ac_ext <<_ACEOF
33255/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033256#include <iterator>
33257#ifdef HAVE_NAMESPACES
33258using namespace std;
33259#endif
John Criswell7a73b802003-06-30 21:59:07 +000033260int
33261main ()
33262{
33263iterator<int,int,int> t; return 0;
33264 ;
33265 return 0;
33266}
33267_ACEOF
33268rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033269if { (ac_try="$ac_compile"
33270case "(($ac_try" in
33271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33272 *) ac_try_echo=$ac_try;;
33273esac
33274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33275 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033276 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033277 grep -v '^ *+' conftest.er1 >conftest.err
33278 rm -f conftest.er1
33279 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033281 (exit $ac_status); } &&
33282 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33283 { (case "(($ac_try" in
33284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33285 *) ac_try_echo=$ac_try;;
33286esac
33287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33288 (eval "$ac_try") 2>&5
33289 ac_status=$?
33290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33291 (exit $ac_status); }; } &&
33292 { ac_try='test -s conftest.$ac_objext'
33293 { (case "(($ac_try" in
33294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33295 *) ac_try_echo=$ac_try;;
33296esac
33297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33298 (eval "$ac_try") 2>&5
33299 ac_status=$?
33300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33301 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033302 ac_cv_cxx_have_std_iterator=yes
33303else
33304 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033305sed 's/^/| /' conftest.$ac_ext >&5
33306
Reid Spencera773bd52006-08-04 18:18:08 +000033307 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033308fi
Reid Spencera773bd52006-08-04 18:18:08 +000033309
33310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033311 ac_ext=c
33312ac_cpp='$CPP $CPPFLAGS'
33313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33315ac_compiler_gnu=$ac_cv_c_compiler_gnu
33316
33317
33318fi
Reid Spencera773bd52006-08-04 18:18:08 +000033319{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33320echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033321if test "$ac_cv_cxx_have_std_iterator" = yes
33322then
John Criswell40468462004-09-24 21:19:06 +000033323
33324cat >>confdefs.h <<\_ACEOF
33325#define HAVE_STD_ITERATOR 1
33326_ACEOF
33327
33328else
33329
33330cat >>confdefs.h <<\_ACEOF
33331#define HAVE_STD_ITERATOR 0
33332_ACEOF
33333
John Criswell7a73b802003-06-30 21:59:07 +000033334fi
33335
Reid Spencera773bd52006-08-04 18:18:08 +000033336{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33337echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033338if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33339 echo $ECHO_N "(cached) $ECHO_C" >&6
33340else
33341
Reid Spencera773bd52006-08-04 18:18:08 +000033342 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033343ac_cpp='$CXXCPP $CPPFLAGS'
33344ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33345ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33346ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33347
33348 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033349/* confdefs.h. */
33350_ACEOF
33351cat confdefs.h >>conftest.$ac_ext
33352cat >>conftest.$ac_ext <<_ACEOF
33353/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033354#include <iterator>
33355#ifdef HAVE_NAMESPACES
33356using namespace std;
33357#endif
John Criswell7a73b802003-06-30 21:59:07 +000033358int
33359main ()
33360{
John Criswellc78022e2003-07-29 19:11:58 +000033361bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033362 ;
33363 return 0;
33364}
33365_ACEOF
33366rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033367if { (ac_try="$ac_compile"
33368case "(($ac_try" in
33369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33370 *) ac_try_echo=$ac_try;;
33371esac
33372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33373 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033374 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033375 grep -v '^ *+' conftest.er1 >conftest.err
33376 rm -f conftest.er1
33377 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033379 (exit $ac_status); } &&
33380 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33381 { (case "(($ac_try" in
33382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33383 *) ac_try_echo=$ac_try;;
33384esac
33385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33386 (eval "$ac_try") 2>&5
33387 ac_status=$?
33388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33389 (exit $ac_status); }; } &&
33390 { ac_try='test -s conftest.$ac_objext'
33391 { (case "(($ac_try" in
33392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33393 *) ac_try_echo=$ac_try;;
33394esac
33395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33396 (eval "$ac_try") 2>&5
33397 ac_status=$?
33398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33399 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033400 ac_cv_cxx_have_bi_iterator=yes
33401else
33402 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033403sed 's/^/| /' conftest.$ac_ext >&5
33404
Reid Spencera773bd52006-08-04 18:18:08 +000033405 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033406fi
Reid Spencera773bd52006-08-04 18:18:08 +000033407
33408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033409 ac_ext=c
33410ac_cpp='$CPP $CPPFLAGS'
33411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33413ac_compiler_gnu=$ac_cv_c_compiler_gnu
33414
33415
33416fi
Reid Spencera773bd52006-08-04 18:18:08 +000033417{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33418echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033419if test "$ac_cv_cxx_have_bi_iterator" = yes
33420then
John Criswell40468462004-09-24 21:19:06 +000033421
33422cat >>confdefs.h <<\_ACEOF
33423#define HAVE_BI_ITERATOR 1
33424_ACEOF
33425
33426else
33427
33428cat >>confdefs.h <<\_ACEOF
33429#define HAVE_BI_ITERATOR 0
33430_ACEOF
33431
John Criswell7a73b802003-06-30 21:59:07 +000033432fi
33433
Reid Spencera773bd52006-08-04 18:18:08 +000033434{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33435echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033436if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33437 echo $ECHO_N "(cached) $ECHO_C" >&6
33438else
33439
Reid Spencera773bd52006-08-04 18:18:08 +000033440 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033441ac_cpp='$CXXCPP $CPPFLAGS'
33442ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33443ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33444ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33445
33446 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033447/* confdefs.h. */
33448_ACEOF
33449cat confdefs.h >>conftest.$ac_ext
33450cat >>conftest.$ac_ext <<_ACEOF
33451/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033452#include <iterator>
33453#ifdef HAVE_NAMESPACES
33454using namespace std;
33455#endif
John Criswell7a73b802003-06-30 21:59:07 +000033456int
33457main ()
33458{
John Criswellc78022e2003-07-29 19:11:58 +000033459forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033460 ;
33461 return 0;
33462}
33463_ACEOF
33464rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033465if { (ac_try="$ac_compile"
33466case "(($ac_try" in
33467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33468 *) ac_try_echo=$ac_try;;
33469esac
33470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33471 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033472 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033473 grep -v '^ *+' conftest.er1 >conftest.err
33474 rm -f conftest.er1
33475 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033477 (exit $ac_status); } &&
33478 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33479 { (case "(($ac_try" in
33480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33481 *) ac_try_echo=$ac_try;;
33482esac
33483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33484 (eval "$ac_try") 2>&5
33485 ac_status=$?
33486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33487 (exit $ac_status); }; } &&
33488 { ac_try='test -s conftest.$ac_objext'
33489 { (case "(($ac_try" in
33490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33491 *) ac_try_echo=$ac_try;;
33492esac
33493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33494 (eval "$ac_try") 2>&5
33495 ac_status=$?
33496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33497 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033498 ac_cv_cxx_have_fwd_iterator=yes
33499else
33500 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033501sed 's/^/| /' conftest.$ac_ext >&5
33502
Reid Spencera773bd52006-08-04 18:18:08 +000033503 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033504fi
Reid Spencera773bd52006-08-04 18:18:08 +000033505
33506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033507 ac_ext=c
33508ac_cpp='$CPP $CPPFLAGS'
33509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33511ac_compiler_gnu=$ac_cv_c_compiler_gnu
33512
33513
33514fi
Reid Spencera773bd52006-08-04 18:18:08 +000033515{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33516echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033517if test "$ac_cv_cxx_have_fwd_iterator" = yes
33518then
John Criswell40468462004-09-24 21:19:06 +000033519
33520cat >>confdefs.h <<\_ACEOF
33521#define HAVE_FWD_ITERATOR 1
33522_ACEOF
33523
33524else
33525
33526cat >>confdefs.h <<\_ACEOF
33527#define HAVE_FWD_ITERATOR 0
33528_ACEOF
33529
John Criswell7a73b802003-06-30 21:59:07 +000033530fi
33531
33532
Reid Spencera773bd52006-08-04 18:18:08 +000033533{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33534echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033535if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33536 echo $ECHO_N "(cached) $ECHO_C" >&6
33537else
Reid Spencera773bd52006-08-04 18:18:08 +000033538 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033539ac_cpp='$CXXCPP $CPPFLAGS'
33540ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33541ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33542ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33543
Reid Spencerabec8f92004-10-27 23:03:44 +000033544 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033545/* confdefs.h. */
33546_ACEOF
33547cat confdefs.h >>conftest.$ac_ext
33548cat >>conftest.$ac_ext <<_ACEOF
33549/* end confdefs.h. */
33550#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033551int
33552main ()
33553{
33554float f; isnan(f);
33555 ;
33556 return 0;
33557}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033558_ACEOF
33559rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033560if { (ac_try="$ac_compile"
33561case "(($ac_try" in
33562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33563 *) ac_try_echo=$ac_try;;
33564esac
33565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33566 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033567 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033568 grep -v '^ *+' conftest.er1 >conftest.err
33569 rm -f conftest.er1
33570 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033572 (exit $ac_status); } &&
33573 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33574 { (case "(($ac_try" in
33575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33576 *) ac_try_echo=$ac_try;;
33577esac
33578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33579 (eval "$ac_try") 2>&5
33580 ac_status=$?
33581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33582 (exit $ac_status); }; } &&
33583 { ac_try='test -s conftest.$ac_objext'
33584 { (case "(($ac_try" in
33585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33586 *) ac_try_echo=$ac_try;;
33587esac
33588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33589 (eval "$ac_try") 2>&5
33590 ac_status=$?
33591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33592 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033593 ac_cv_func_isnan_in_math_h=yes
33594else
33595 echo "$as_me: failed program was:" >&5
33596sed 's/^/| /' conftest.$ac_ext >&5
33597
Reid Spencera773bd52006-08-04 18:18:08 +000033598 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033599fi
Reid Spencera773bd52006-08-04 18:18:08 +000033600
33601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033602 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033603ac_cpp='$CPP $CPPFLAGS'
33604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33606ac_compiler_gnu=$ac_cv_c_compiler_gnu
33607
33608fi
Reid Spencera773bd52006-08-04 18:18:08 +000033609{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33610echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033611
33612
33613if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033614
33615cat >>confdefs.h <<\_ACEOF
33616#define HAVE_ISNAN_IN_MATH_H 1
33617_ACEOF
33618
Reid Spencerabec8f92004-10-27 23:03:44 +000033619fi
33620
Reid Spencera773bd52006-08-04 18:18:08 +000033621{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33622echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033623if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33624 echo $ECHO_N "(cached) $ECHO_C" >&6
33625else
Reid Spencera773bd52006-08-04 18:18:08 +000033626 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033627ac_cpp='$CXXCPP $CPPFLAGS'
33628ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33629ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33630ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33631
Reid Spencerabec8f92004-10-27 23:03:44 +000033632 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033633/* confdefs.h. */
33634_ACEOF
33635cat confdefs.h >>conftest.$ac_ext
33636cat >>conftest.$ac_ext <<_ACEOF
33637/* end confdefs.h. */
33638#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033639int
33640main ()
33641{
33642float f; isnan(f);
33643 ;
33644 return 0;
33645}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033646_ACEOF
33647rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033648if { (ac_try="$ac_compile"
33649case "(($ac_try" in
33650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33651 *) ac_try_echo=$ac_try;;
33652esac
33653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33654 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033655 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033656 grep -v '^ *+' conftest.er1 >conftest.err
33657 rm -f conftest.er1
33658 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033660 (exit $ac_status); } &&
33661 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33662 { (case "(($ac_try" in
33663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33664 *) ac_try_echo=$ac_try;;
33665esac
33666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33667 (eval "$ac_try") 2>&5
33668 ac_status=$?
33669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33670 (exit $ac_status); }; } &&
33671 { ac_try='test -s conftest.$ac_objext'
33672 { (case "(($ac_try" in
33673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33674 *) ac_try_echo=$ac_try;;
33675esac
33676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33677 (eval "$ac_try") 2>&5
33678 ac_status=$?
33679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33680 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033681 ac_cv_func_isnan_in_cmath=yes
33682else
33683 echo "$as_me: failed program was:" >&5
33684sed 's/^/| /' conftest.$ac_ext >&5
33685
Reid Spencera773bd52006-08-04 18:18:08 +000033686 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033687fi
Reid Spencera773bd52006-08-04 18:18:08 +000033688
33689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033690 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033691ac_cpp='$CPP $CPPFLAGS'
33692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33694ac_compiler_gnu=$ac_cv_c_compiler_gnu
33695
33696fi
Reid Spencera773bd52006-08-04 18:18:08 +000033697{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33698echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033699
33700if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033701
33702cat >>confdefs.h <<\_ACEOF
33703#define HAVE_ISNAN_IN_CMATH 1
33704_ACEOF
33705
Reid Spencerabec8f92004-10-27 23:03:44 +000033706fi
33707
Reid Spencera773bd52006-08-04 18:18:08 +000033708{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33709echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033710if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33711 echo $ECHO_N "(cached) $ECHO_C" >&6
33712else
Reid Spencera773bd52006-08-04 18:18:08 +000033713 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033714ac_cpp='$CXXCPP $CPPFLAGS'
33715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33718
Reid Spencerabec8f92004-10-27 23:03:44 +000033719 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033720/* confdefs.h. */
33721_ACEOF
33722cat confdefs.h >>conftest.$ac_ext
33723cat >>conftest.$ac_ext <<_ACEOF
33724/* end confdefs.h. */
33725#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033726int
33727main ()
33728{
33729float f; std::isnan(f);
33730 ;
33731 return 0;
33732}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033733_ACEOF
33734rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033735if { (ac_try="$ac_compile"
33736case "(($ac_try" in
33737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33738 *) ac_try_echo=$ac_try;;
33739esac
33740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33741 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033742 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033743 grep -v '^ *+' conftest.er1 >conftest.err
33744 rm -f conftest.er1
33745 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033747 (exit $ac_status); } &&
33748 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33749 { (case "(($ac_try" in
33750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33751 *) ac_try_echo=$ac_try;;
33752esac
33753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33754 (eval "$ac_try") 2>&5
33755 ac_status=$?
33756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33757 (exit $ac_status); }; } &&
33758 { ac_try='test -s conftest.$ac_objext'
33759 { (case "(($ac_try" in
33760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33761 *) ac_try_echo=$ac_try;;
33762esac
33763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33764 (eval "$ac_try") 2>&5
33765 ac_status=$?
33766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33767 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033768 ac_cv_func_std_isnan_in_cmath=yes
33769else
33770 echo "$as_me: failed program was:" >&5
33771sed 's/^/| /' conftest.$ac_ext >&5
33772
Reid Spencera773bd52006-08-04 18:18:08 +000033773 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033774fi
Reid Spencera773bd52006-08-04 18:18:08 +000033775
33776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033777 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033778ac_cpp='$CPP $CPPFLAGS'
33779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33781ac_compiler_gnu=$ac_cv_c_compiler_gnu
33782
33783fi
Reid Spencera773bd52006-08-04 18:18:08 +000033784{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33785echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033786
33787if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033788
33789cat >>confdefs.h <<\_ACEOF
33790#define HAVE_STD_ISNAN_IN_CMATH 1
33791_ACEOF
33792
Reid Spencerabec8f92004-10-27 23:03:44 +000033793fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033794
33795
Reid Spencera773bd52006-08-04 18:18:08 +000033796{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33797echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033798if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33799 echo $ECHO_N "(cached) $ECHO_C" >&6
33800else
Reid Spencera773bd52006-08-04 18:18:08 +000033801 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033802ac_cpp='$CXXCPP $CPPFLAGS'
33803ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33804ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33805ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33806
Reid Spencerabec8f92004-10-27 23:03:44 +000033807 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033808/* confdefs.h. */
33809_ACEOF
33810cat confdefs.h >>conftest.$ac_ext
33811cat >>conftest.$ac_ext <<_ACEOF
33812/* end confdefs.h. */
33813#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033814int
33815main ()
33816{
33817float f; isinf(f);
33818 ;
33819 return 0;
33820}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033821_ACEOF
33822rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033823if { (ac_try="$ac_compile"
33824case "(($ac_try" in
33825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33826 *) ac_try_echo=$ac_try;;
33827esac
33828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33829 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033830 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033831 grep -v '^ *+' conftest.er1 >conftest.err
33832 rm -f conftest.er1
33833 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033835 (exit $ac_status); } &&
33836 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33837 { (case "(($ac_try" in
33838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33839 *) ac_try_echo=$ac_try;;
33840esac
33841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33842 (eval "$ac_try") 2>&5
33843 ac_status=$?
33844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33845 (exit $ac_status); }; } &&
33846 { ac_try='test -s conftest.$ac_objext'
33847 { (case "(($ac_try" in
33848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33849 *) ac_try_echo=$ac_try;;
33850esac
33851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33852 (eval "$ac_try") 2>&5
33853 ac_status=$?
33854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33855 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033856 ac_cv_func_isinf_in_math_h=yes
33857else
33858 echo "$as_me: failed program was:" >&5
33859sed 's/^/| /' conftest.$ac_ext >&5
33860
Reid Spencera773bd52006-08-04 18:18:08 +000033861 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033862fi
Reid Spencera773bd52006-08-04 18:18:08 +000033863
33864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033865 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033866ac_cpp='$CPP $CPPFLAGS'
33867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33869ac_compiler_gnu=$ac_cv_c_compiler_gnu
33870
33871fi
Reid Spencera773bd52006-08-04 18:18:08 +000033872{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33873echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033874
33875if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033876
33877cat >>confdefs.h <<\_ACEOF
33878#define HAVE_ISINF_IN_MATH_H 1
33879_ACEOF
33880
Reid Spencerabec8f92004-10-27 23:03:44 +000033881fi
33882
Reid Spencera773bd52006-08-04 18:18:08 +000033883{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33884echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033885if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33886 echo $ECHO_N "(cached) $ECHO_C" >&6
33887else
Reid Spencera773bd52006-08-04 18:18:08 +000033888 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033889ac_cpp='$CXXCPP $CPPFLAGS'
33890ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33891ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33892ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33893
Reid Spencerabec8f92004-10-27 23:03:44 +000033894 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033895/* confdefs.h. */
33896_ACEOF
33897cat confdefs.h >>conftest.$ac_ext
33898cat >>conftest.$ac_ext <<_ACEOF
33899/* end confdefs.h. */
33900#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033901int
33902main ()
33903{
33904float f; isinf(f);
33905 ;
33906 return 0;
33907}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033908_ACEOF
33909rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033910if { (ac_try="$ac_compile"
33911case "(($ac_try" in
33912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33913 *) ac_try_echo=$ac_try;;
33914esac
33915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33916 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033917 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033918 grep -v '^ *+' conftest.er1 >conftest.err
33919 rm -f conftest.er1
33920 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033922 (exit $ac_status); } &&
33923 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33924 { (case "(($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_try") 2>&5
33930 ac_status=$?
33931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33932 (exit $ac_status); }; } &&
33933 { ac_try='test -s conftest.$ac_objext'
33934 { (case "(($ac_try" in
33935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33936 *) ac_try_echo=$ac_try;;
33937esac
33938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33939 (eval "$ac_try") 2>&5
33940 ac_status=$?
33941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33942 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033943 ac_cv_func_isinf_in_cmath=yes
33944else
33945 echo "$as_me: failed program was:" >&5
33946sed 's/^/| /' conftest.$ac_ext >&5
33947
Reid Spencera773bd52006-08-04 18:18:08 +000033948 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033949fi
Reid Spencera773bd52006-08-04 18:18:08 +000033950
33951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033952 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033953ac_cpp='$CPP $CPPFLAGS'
33954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33956ac_compiler_gnu=$ac_cv_c_compiler_gnu
33957
33958fi
Reid Spencera773bd52006-08-04 18:18:08 +000033959{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33960echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033961
33962if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033963
33964cat >>confdefs.h <<\_ACEOF
33965#define HAVE_ISINF_IN_CMATH 1
33966_ACEOF
33967
Reid Spencerabec8f92004-10-27 23:03:44 +000033968fi
33969
Reid Spencera773bd52006-08-04 18:18:08 +000033970{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33971echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033972if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33973 echo $ECHO_N "(cached) $ECHO_C" >&6
33974else
Reid Spencera773bd52006-08-04 18:18:08 +000033975 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033976ac_cpp='$CXXCPP $CPPFLAGS'
33977ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33978ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33979ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33980
Reid Spencerabec8f92004-10-27 23:03:44 +000033981 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033982/* confdefs.h. */
33983_ACEOF
33984cat confdefs.h >>conftest.$ac_ext
33985cat >>conftest.$ac_ext <<_ACEOF
33986/* end confdefs.h. */
33987#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033988int
33989main ()
33990{
33991float f; std::isinf(f)}
33992 ;
33993 return 0;
33994}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033995_ACEOF
33996rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033997if { (ac_try="$ac_compile"
33998case "(($ac_try" in
33999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34000 *) ac_try_echo=$ac_try;;
34001esac
34002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34003 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000034004 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034005 grep -v '^ *+' conftest.er1 >conftest.err
34006 rm -f conftest.er1
34007 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000034008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034009 (exit $ac_status); } &&
34010 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34011 { (case "(($ac_try" in
34012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34013 *) ac_try_echo=$ac_try;;
34014esac
34015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34016 (eval "$ac_try") 2>&5
34017 ac_status=$?
34018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34019 (exit $ac_status); }; } &&
34020 { ac_try='test -s conftest.$ac_objext'
34021 { (case "(($ac_try" in
34022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34023 *) ac_try_echo=$ac_try;;
34024esac
34025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34026 (eval "$ac_try") 2>&5
34027 ac_status=$?
34028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34029 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034030 ac_cv_func_std_isinf_in_cmath=yes
34031else
34032 echo "$as_me: failed program was:" >&5
34033sed 's/^/| /' conftest.$ac_ext >&5
34034
Reid Spencera773bd52006-08-04 18:18:08 +000034035 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000034036fi
Reid Spencera773bd52006-08-04 18:18:08 +000034037
34038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000034039 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000034040ac_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
34045fi
Reid Spencera773bd52006-08-04 18:18:08 +000034046{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34047echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000034048
34049if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034050
34051cat >>confdefs.h <<\_ACEOF
34052#define HAVE_STD_ISINF_IN_CMATH 1
34053_ACEOF
34054
Reid Spencerabec8f92004-10-27 23:03:44 +000034055fi
34056
Reid Spencera773bd52006-08-04 18:18:08 +000034057{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34058echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000034059if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34060 echo $ECHO_N "(cached) $ECHO_C" >&6
34061else
Reid Spencera773bd52006-08-04 18:18:08 +000034062 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000034063ac_cpp='$CXXCPP $CPPFLAGS'
34064ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34065ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34066ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34067
Reid Spencerabec8f92004-10-27 23:03:44 +000034068 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000034069/* confdefs.h. */
34070_ACEOF
34071cat confdefs.h >>conftest.$ac_ext
34072cat >>conftest.$ac_ext <<_ACEOF
34073/* end confdefs.h. */
34074#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000034075int
34076main ()
34077{
34078float f; finite(f);
34079 ;
34080 return 0;
34081}
Brian Gaeked59a6472004-07-21 03:33:58 +000034082_ACEOF
34083rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034084if { (ac_try="$ac_compile"
34085case "(($ac_try" in
34086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34087 *) ac_try_echo=$ac_try;;
34088esac
34089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34090 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000034091 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034092 grep -v '^ *+' conftest.er1 >conftest.err
34093 rm -f conftest.er1
34094 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000034095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034096 (exit $ac_status); } &&
34097 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34098 { (case "(($ac_try" in
34099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34100 *) ac_try_echo=$ac_try;;
34101esac
34102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34103 (eval "$ac_try") 2>&5
34104 ac_status=$?
34105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34106 (exit $ac_status); }; } &&
34107 { ac_try='test -s conftest.$ac_objext'
34108 { (case "(($ac_try" in
34109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34110 *) ac_try_echo=$ac_try;;
34111esac
34112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34113 (eval "$ac_try") 2>&5
34114 ac_status=$?
34115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34116 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000034117 ac_cv_func_finite_in_ieeefp_h=yes
34118else
34119 echo "$as_me: failed program was:" >&5
34120sed 's/^/| /' conftest.$ac_ext >&5
34121
Reid Spencera773bd52006-08-04 18:18:08 +000034122 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000034123fi
Reid Spencera773bd52006-08-04 18:18:08 +000034124
34125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000034126 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000034127ac_cpp='$CPP $CPPFLAGS'
34128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34130ac_compiler_gnu=$ac_cv_c_compiler_gnu
34131
34132fi
Reid Spencera773bd52006-08-04 18:18:08 +000034133{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34134echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000034135
Brian Gaeke6802b552004-10-28 05:06:45 +000034136if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000034137
34138cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000034139#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000034140_ACEOF
34141
Reid Spencerabec8f92004-10-27 23:03:44 +000034142fi
34143
34144
34145
Reid Spencer30fe5262007-01-20 07:48:49 +000034146if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000034147
34148
34149for ac_header in stdlib.h unistd.h
34150do
34151as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000034152if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34154echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34155if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034156 echo $ECHO_N "(cached) $ECHO_C" >&6
34157fi
Reid Spencera773bd52006-08-04 18:18:08 +000034158ac_res=`eval echo '${'$as_ac_Header'}'`
34159 { echo "$as_me:$LINENO: result: $ac_res" >&5
34160echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034161else
34162 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000034163{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
34164echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034165cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034166/* confdefs.h. */
34167_ACEOF
34168cat confdefs.h >>conftest.$ac_ext
34169cat >>conftest.$ac_ext <<_ACEOF
34170/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034171$ac_includes_default
34172#include <$ac_header>
34173_ACEOF
34174rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034175if { (ac_try="$ac_compile"
34176case "(($ac_try" in
34177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34178 *) ac_try_echo=$ac_try;;
34179esac
34180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34181 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034182 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034183 grep -v '^ *+' conftest.er1 >conftest.err
34184 rm -f conftest.er1
34185 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000034186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034187 (exit $ac_status); } &&
34188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34189 { (case "(($ac_try" in
34190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34191 *) ac_try_echo=$ac_try;;
34192esac
34193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34194 (eval "$ac_try") 2>&5
34195 ac_status=$?
34196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34197 (exit $ac_status); }; } &&
34198 { ac_try='test -s conftest.$ac_objext'
34199 { (case "(($ac_try" in
34200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34201 *) ac_try_echo=$ac_try;;
34202esac
34203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34204 (eval "$ac_try") 2>&5
34205 ac_status=$?
34206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34207 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034208 ac_header_compiler=yes
34209else
34210 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034211sed 's/^/| /' conftest.$ac_ext >&5
34212
Reid Spencera773bd52006-08-04 18:18:08 +000034213 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000034214fi
Reid Spencera773bd52006-08-04 18:18:08 +000034215
34216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34217{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34218echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034219
34220# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000034221{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
34222echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034223cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034224/* confdefs.h. */
34225_ACEOF
34226cat confdefs.h >>conftest.$ac_ext
34227cat >>conftest.$ac_ext <<_ACEOF
34228/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034229#include <$ac_header>
34230_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034231if { (ac_try="$ac_cpp conftest.$ac_ext"
34232case "(($ac_try" in
34233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34234 *) ac_try_echo=$ac_try;;
34235esac
34236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034238 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000034239 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000034240 rm -f conftest.er1
34241 cat conftest.err >&5
34242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034243 (exit $ac_status); } >/dev/null; then
34244 if test -s conftest.err; then
34245 ac_cpp_err=$ac_c_preproc_warn_flag
34246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34247 else
34248 ac_cpp_err=
34249 fi
34250else
34251 ac_cpp_err=yes
34252fi
34253if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000034254 ac_header_preproc=yes
34255else
34256 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034257sed 's/^/| /' conftest.$ac_ext >&5
34258
John Criswell7a73b802003-06-30 21:59:07 +000034259 ac_header_preproc=no
34260fi
Reid Spencera773bd52006-08-04 18:18:08 +000034261
John Criswell7a73b802003-06-30 21:59:07 +000034262rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000034263{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34264echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034265
34266# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034267case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34268 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000034269 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34270echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34272echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34273 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000034274 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000034275 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000034276 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34277echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034278 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34279echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34280 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34281echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34282 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34283echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000034284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34285echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034286 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34287echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000034288 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000034289## ----------------------------------- ##
34290## Report this to llvmbugs@cs.uiuc.edu ##
34291## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000034292_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000034293 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000034294 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034295esac
Reid Spencera773bd52006-08-04 18:18:08 +000034296{ echo "$as_me:$LINENO: checking for $ac_header" >&5
34297echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34298if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034299 echo $ECHO_N "(cached) $ECHO_C" >&6
34300else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034301 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000034302fi
Reid Spencera773bd52006-08-04 18:18:08 +000034303ac_res=`eval echo '${'$as_ac_Header'}'`
34304 { echo "$as_me:$LINENO: result: $ac_res" >&5
34305echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034306
34307fi
34308if test `eval echo '${'$as_ac_Header'}'` = yes; then
34309 cat >>confdefs.h <<_ACEOF
34310#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34311_ACEOF
34312
34313fi
34314
34315done
34316
34317
34318for ac_func in getpagesize
34319do
34320as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000034321{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34322echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34323if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034324 echo $ECHO_N "(cached) $ECHO_C" >&6
34325else
34326 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034327/* confdefs.h. */
34328_ACEOF
34329cat confdefs.h >>conftest.$ac_ext
34330cat >>conftest.$ac_ext <<_ACEOF
34331/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000034332/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34334#define $ac_func innocuous_$ac_func
34335
John Criswell7a73b802003-06-30 21:59:07 +000034336/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000034337 which can conflict with char $ac_func (); below.
34338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34339 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000034340
John Criswell0c38eaf2003-09-10 15:17:25 +000034341#ifdef __STDC__
34342# include <limits.h>
34343#else
34344# include <assert.h>
34345#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000034346
34347#undef $ac_func
34348
Reid Spencera773bd52006-08-04 18:18:08 +000034349/* Override any GCC internal prototype to avoid an error.
34350 Use char because int might match the return type of a GCC
34351 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000034352#ifdef __cplusplus
34353extern "C"
34354#endif
John Criswell7a73b802003-06-30 21:59:07 +000034355char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000034356/* The GNU C library defines this for functions which it implements
34357 to always fail with ENOSYS. Some functions are actually named
34358 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000034359#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000034360choke me
John Criswell7a73b802003-06-30 21:59:07 +000034361#endif
34362
John Criswell0c38eaf2003-09-10 15:17:25 +000034363int
34364main ()
34365{
Reid Spencera773bd52006-08-04 18:18:08 +000034366return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000034367 ;
34368 return 0;
34369}
34370_ACEOF
34371rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034372if { (ac_try="$ac_link"
34373case "(($ac_try" in
34374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34375 *) ac_try_echo=$ac_try;;
34376esac
34377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34378 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034379 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034380 grep -v '^ *+' conftest.er1 >conftest.err
34381 rm -f conftest.er1
34382 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000034383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034384 (exit $ac_status); } &&
34385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34386 { (case "(($ac_try" in
34387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34388 *) ac_try_echo=$ac_try;;
34389esac
34390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34391 (eval "$ac_try") 2>&5
34392 ac_status=$?
34393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34394 (exit $ac_status); }; } &&
34395 { ac_try='test -s conftest$ac_exeext'
34396 { (case "(($ac_try" in
34397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34398 *) ac_try_echo=$ac_try;;
34399esac
34400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34401 (eval "$ac_try") 2>&5
34402 ac_status=$?
34403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34404 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034405 eval "$as_ac_var=yes"
34406else
34407 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034408sed 's/^/| /' conftest.$ac_ext >&5
34409
Reid Spencera773bd52006-08-04 18:18:08 +000034410 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000034411fi
Reid Spencera773bd52006-08-04 18:18:08 +000034412
Bill Wendlingebcceee2009-04-18 11:20:33 +000034413rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034414 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000034415fi
Reid Spencera773bd52006-08-04 18:18:08 +000034416ac_res=`eval echo '${'$as_ac_var'}'`
34417 { echo "$as_me:$LINENO: result: $ac_res" >&5
34418echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034419if test `eval echo '${'$as_ac_var'}'` = yes; then
34420 cat >>confdefs.h <<_ACEOF
34421#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34422_ACEOF
34423
34424fi
34425done
34426
Reid Spencera773bd52006-08-04 18:18:08 +000034427{ echo "$as_me:$LINENO: checking for working mmap" >&5
34428echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034429if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34430 echo $ECHO_N "(cached) $ECHO_C" >&6
34431else
34432 if test "$cross_compiling" = yes; then
34433 ac_cv_func_mmap_fixed_mapped=no
34434else
34435 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034436/* confdefs.h. */
34437_ACEOF
34438cat confdefs.h >>conftest.$ac_ext
34439cat >>conftest.$ac_ext <<_ACEOF
34440/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034441$ac_includes_default
34442/* malloc might have been renamed as rpl_malloc. */
34443#undef malloc
34444
34445/* Thanks to Mike Haertel and Jim Avera for this test.
34446 Here is a matrix of mmap possibilities:
34447 mmap private not fixed
34448 mmap private fixed at somewhere currently unmapped
34449 mmap private fixed at somewhere already mapped
34450 mmap shared not fixed
34451 mmap shared fixed at somewhere currently unmapped
34452 mmap shared fixed at somewhere already mapped
34453 For private mappings, we should verify that changes cannot be read()
34454 back from the file, nor mmap's back from the file at a different
34455 address. (There have been systems where private was not correctly
34456 implemented like the infamous i386 svr4.0, and systems where the
34457 VM page cache was not coherent with the file system buffer cache
34458 like early versions of FreeBSD and possibly contemporary NetBSD.)
34459 For shared mappings, we should conversely verify that changes get
34460 propagated back to all the places they're supposed to be.
34461
34462 Grep wants private fixed already mapped.
34463 The main things grep needs to know about mmap are:
34464 * does it exist and is it safe to write into the mmap'd area
34465 * how to use it (BSD variants) */
34466
34467#include <fcntl.h>
34468#include <sys/mman.h>
34469
Bill Wendlingebcceee2009-04-18 11:20:33 +000034470#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000034471char *malloc ();
34472#endif
34473
34474/* This mess was copied from the GNU getpagesize.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034475#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000034476/* Assume that all systems that can run configure have sys/param.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034477# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000034478# define HAVE_SYS_PARAM_H 1
34479# endif
34480
34481# ifdef _SC_PAGESIZE
34482# define getpagesize() sysconf(_SC_PAGESIZE)
34483# else /* no _SC_PAGESIZE */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034484# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000034485# include <sys/param.h>
34486# ifdef EXEC_PAGESIZE
34487# define getpagesize() EXEC_PAGESIZE
34488# else /* no EXEC_PAGESIZE */
34489# ifdef NBPG
34490# define getpagesize() NBPG * CLSIZE
34491# ifndef CLSIZE
34492# define CLSIZE 1
34493# endif /* no CLSIZE */
34494# else /* no NBPG */
34495# ifdef NBPC
34496# define getpagesize() NBPC
34497# else /* no NBPC */
34498# ifdef PAGESIZE
34499# define getpagesize() PAGESIZE
34500# endif /* PAGESIZE */
34501# endif /* no NBPC */
34502# endif /* no NBPG */
34503# endif /* no EXEC_PAGESIZE */
34504# else /* no HAVE_SYS_PARAM_H */
34505# define getpagesize() 8192 /* punt totally */
34506# endif /* no HAVE_SYS_PARAM_H */
34507# endif /* no _SC_PAGESIZE */
34508
34509#endif /* no HAVE_GETPAGESIZE */
34510
34511int
34512main ()
34513{
34514 char *data, *data2, *data3;
34515 int i, pagesize;
34516 int fd;
34517
34518 pagesize = getpagesize ();
34519
34520 /* First, make a file with some known garbage in it. */
34521 data = (char *) malloc (pagesize);
34522 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000034523 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034524 for (i = 0; i < pagesize; ++i)
34525 *(data + i) = rand ();
34526 umask (0);
34527 fd = creat ("conftest.mmap", 0600);
34528 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034529 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034530 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034531 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034532 close (fd);
34533
34534 /* Next, try to mmap the file at a fixed address which already has
34535 something else allocated at it. If we can, also make sure that
34536 we see the same garbage. */
34537 fd = open ("conftest.mmap", O_RDWR);
34538 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034539 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034540 data2 = (char *) malloc (2 * pagesize);
34541 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000034542 return 1;
34543 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000034544 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000034545 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000034546 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034547 for (i = 0; i < pagesize; ++i)
34548 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034549 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034550
34551 /* Finally, make sure that changes to the mapped area do not
34552 percolate back to the file as seen by read(). (This is a bug on
34553 some variants of i386 svr4.0.) */
34554 for (i = 0; i < pagesize; ++i)
34555 *(data2 + i) = *(data2 + i) + 1;
34556 data3 = (char *) malloc (pagesize);
34557 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000034558 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034559 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034560 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034561 for (i = 0; i < pagesize; ++i)
34562 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034563 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034564 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000034565 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000034566}
34567_ACEOF
34568rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034569if { (ac_try="$ac_link"
34570case "(($ac_try" in
34571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34572 *) ac_try_echo=$ac_try;;
34573esac
34574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34575 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034576 ac_status=$?
34577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034579 { (case "(($ac_try" in
34580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34581 *) ac_try_echo=$ac_try;;
34582esac
34583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34584 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034585 ac_status=$?
34586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34587 (exit $ac_status); }; }; then
34588 ac_cv_func_mmap_fixed_mapped=yes
34589else
34590 echo "$as_me: program exited with status $ac_status" >&5
34591echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034592sed 's/^/| /' conftest.$ac_ext >&5
34593
John Criswell7a73b802003-06-30 21:59:07 +000034594( exit $ac_status )
34595ac_cv_func_mmap_fixed_mapped=no
34596fi
Reid Spencera773bd52006-08-04 18:18:08 +000034597rm -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 +000034598fi
Reid Spencera773bd52006-08-04 18:18:08 +000034599
34600
John Criswell7a73b802003-06-30 21:59:07 +000034601fi
Reid Spencera773bd52006-08-04 18:18:08 +000034602{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34603echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034604if test $ac_cv_func_mmap_fixed_mapped = yes; then
34605
34606cat >>confdefs.h <<\_ACEOF
34607#define HAVE_MMAP 1
34608_ACEOF
34609
34610fi
34611rm -f conftest.mmap
34612
Reid Spencer30fe5262007-01-20 07:48:49 +000034613 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034614echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034615if test "${ac_cv_func_mmap_file+set}" = set; then
34616 echo $ECHO_N "(cached) $ECHO_C" >&6
34617else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034618 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000034619ac_cpp='$CPP $CPPFLAGS'
34620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34622ac_compiler_gnu=$ac_cv_c_compiler_gnu
34623
34624 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034625 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000034626else
34627 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034628
Reid Spencer777ce172004-09-20 04:09:56 +000034629 /* confdefs.h. */
34630_ACEOF
34631cat confdefs.h >>conftest.$ac_ext
34632cat >>conftest.$ac_ext <<_ACEOF
34633/* end confdefs.h. */
34634
John Criswell7a73b802003-06-30 21:59:07 +000034635#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000034636#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000034637#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000034638
34639int
34640main ()
34641{
John Criswell7a73b802003-06-30 21:59:07 +000034642
34643 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000034644 fd = creat ("foo",0777);
34645 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34646 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034647 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000034648 ;
34649 return 0;
34650}
John Criswell7a73b802003-06-30 21:59:07 +000034651_ACEOF
34652rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034653if { (ac_try="$ac_link"
34654case "(($ac_try" in
34655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34656 *) ac_try_echo=$ac_try;;
34657esac
34658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34659 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034660 ac_status=$?
34661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34662 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034663 { (case "(($ac_try" in
34664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34665 *) ac_try_echo=$ac_try;;
34666esac
34667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34668 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034669 ac_status=$?
34670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34671 (exit $ac_status); }; }; then
34672 ac_cv_func_mmap_file=yes
34673else
34674 echo "$as_me: program exited with status $ac_status" >&5
34675echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034676sed 's/^/| /' conftest.$ac_ext >&5
34677
John Criswell7a73b802003-06-30 21:59:07 +000034678( exit $ac_status )
34679ac_cv_func_mmap_file=no
34680fi
Reid Spencera773bd52006-08-04 18:18:08 +000034681rm -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 +000034682fi
Reid Spencera773bd52006-08-04 18:18:08 +000034683
34684
John Criswell7a73b802003-06-30 21:59:07 +000034685 ac_ext=c
34686ac_cpp='$CPP $CPPFLAGS'
34687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34689ac_compiler_gnu=$ac_cv_c_compiler_gnu
34690
34691
34692fi
Reid Spencera773bd52006-08-04 18:18:08 +000034693{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34694echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034695if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000034696
34697cat >>confdefs.h <<\_ACEOF
34698#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000034699_ACEOF
34700
34701 MMAP_FILE=yes
34702
34703fi
34704
Reid Spencer30fe5262007-01-20 07:48:49 +000034705 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034706echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034707if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34708 echo $ECHO_N "(cached) $ECHO_C" >&6
34709else
Reid Spencer582a23c2004-12-29 07:07:57 +000034710 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000034711 ac_cv_need_dev_zero_for_mmap=yes
34712 else
34713 ac_cv_need_dev_zero_for_mmap=no
34714 fi
34715
34716fi
Reid Spencera773bd52006-08-04 18:18:08 +000034717{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34718echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034719if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34720
34721cat >>confdefs.h <<\_ACEOF
34722#define NEED_DEV_ZERO_FOR_MMAP 1
34723_ACEOF
34724
34725fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000034726
Reid Spencer30fe5262007-01-20 07:48:49 +000034727 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34728 then
34729 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000034730echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034731 fi
34732 if test "$ac_cv_func_mmap_file" = "no"
34733 then
34734 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034735echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034736 fi
John Criswellb13092b2003-07-22 21:00:24 +000034737fi
John Criswell7a73b802003-06-30 21:59:07 +000034738
Owen Andersona8603702009-05-19 22:18:56 +000034739{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000034740echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034741cat >conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000034742/* confdefs.h. */
34743_ACEOF
34744cat confdefs.h >>conftest.$ac_ext
34745cat >>conftest.$ac_ext <<_ACEOF
34746/* end confdefs.h. */
34747int main() {
Owen Andersona8603702009-05-19 22:18:56 +000034748 volatile unsigned long val = 1;
34749 __sync_synchronize();
34750 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000034751 __sync_add_and_fetch(&val, 1);
34752 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000034753 return 0;
34754 }
Owen Andersond4b272b2009-05-18 23:58:51 +000034755
34756_ACEOF
34757rm -f conftest.$ac_objext conftest$ac_exeext
34758if { (ac_try="$ac_link"
34759case "(($ac_try" in
34760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34761 *) ac_try_echo=$ac_try;;
34762esac
34763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34764 (eval "$ac_link") 2>conftest.er1
34765 ac_status=$?
34766 grep -v '^ *+' conftest.er1 >conftest.err
34767 rm -f conftest.er1
34768 cat conftest.err >&5
34769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34770 (exit $ac_status); } &&
34771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34772 { (case "(($ac_try" in
34773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34774 *) ac_try_echo=$ac_try;;
34775esac
34776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34777 (eval "$ac_try") 2>&5
34778 ac_status=$?
34779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34780 (exit $ac_status); }; } &&
34781 { ac_try='test -s conftest$ac_exeext'
34782 { (case "(($ac_try" in
34783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34784 *) ac_try_echo=$ac_try;;
34785esac
34786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34787 (eval "$ac_try") 2>&5
34788 ac_status=$?
34789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34790 (exit $ac_status); }; }; then
34791 { echo "$as_me:$LINENO: result: yes" >&5
34792echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034793
34794cat >>confdefs.h <<\_ACEOF
34795#define LLVM_MULTITHREADED 1
34796_ACEOF
34797
Owen Andersond4b272b2009-05-18 23:58:51 +000034798else
34799 echo "$as_me: failed program was:" >&5
34800sed 's/^/| /' conftest.$ac_ext >&5
34801
34802 { echo "$as_me:$LINENO: result: no" >&5
34803echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000034804
Owen Andersona8603702009-05-19 22:18:56 +000034805cat >>confdefs.h <<\_ACEOF
34806#define LLVM_MULTITHREADED 0
34807_ACEOF
34808
34809 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34810echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000034811fi
34812
34813rm -f core conftest.err conftest.$ac_objext \
34814 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000034815
34816
John Criswell7a73b802003-06-30 21:59:07 +000034817
Reid Spencer9372f152007-07-30 20:13:24 +000034818
34819for ac_func in __dso_handle
34820do
34821as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34822{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34823echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34824if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34825 echo $ECHO_N "(cached) $ECHO_C" >&6
34826else
34827 cat >conftest.$ac_ext <<_ACEOF
34828/* confdefs.h. */
34829_ACEOF
34830cat confdefs.h >>conftest.$ac_ext
34831cat >>conftest.$ac_ext <<_ACEOF
34832/* end confdefs.h. */
34833/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34835#define $ac_func innocuous_$ac_func
34836
34837/* System header to define __stub macros and hopefully few prototypes,
34838 which can conflict with char $ac_func (); below.
34839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34840 <limits.h> exists even on freestanding compilers. */
34841
34842#ifdef __STDC__
34843# include <limits.h>
34844#else
34845# include <assert.h>
34846#endif
34847
34848#undef $ac_func
34849
34850/* Override any GCC internal prototype to avoid an error.
34851 Use char because int might match the return type of a GCC
34852 builtin and then its argument prototype would still apply. */
34853#ifdef __cplusplus
34854extern "C"
34855#endif
34856char $ac_func ();
34857/* The GNU C library defines this for functions which it implements
34858 to always fail with ENOSYS. Some functions are actually named
34859 something starting with __ and the normal name is an alias. */
34860#if defined __stub_$ac_func || defined __stub___$ac_func
34861choke me
34862#endif
34863
34864int
34865main ()
34866{
34867return $ac_func ();
34868 ;
34869 return 0;
34870}
34871_ACEOF
34872rm -f conftest.$ac_objext conftest$ac_exeext
34873if { (ac_try="$ac_link"
34874case "(($ac_try" in
34875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34876 *) ac_try_echo=$ac_try;;
34877esac
34878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34879 (eval "$ac_link") 2>conftest.er1
34880 ac_status=$?
34881 grep -v '^ *+' conftest.er1 >conftest.err
34882 rm -f conftest.er1
34883 cat conftest.err >&5
34884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034885 (exit $ac_status); } &&
34886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34887 { (case "(($ac_try" in
34888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34889 *) ac_try_echo=$ac_try;;
34890esac
34891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34892 (eval "$ac_try") 2>&5
34893 ac_status=$?
34894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34895 (exit $ac_status); }; } &&
34896 { ac_try='test -s conftest$ac_exeext'
34897 { (case "(($ac_try" in
34898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34899 *) ac_try_echo=$ac_try;;
34900esac
34901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34902 (eval "$ac_try") 2>&5
34903 ac_status=$?
34904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34905 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000034906 eval "$as_ac_var=yes"
34907else
34908 echo "$as_me: failed program was:" >&5
34909sed 's/^/| /' conftest.$ac_ext >&5
34910
34911 eval "$as_ac_var=no"
34912fi
34913
Bill Wendlingebcceee2009-04-18 11:20:33 +000034914rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000034915 conftest$ac_exeext conftest.$ac_ext
34916fi
34917ac_res=`eval echo '${'$as_ac_var'}'`
34918 { echo "$as_me:$LINENO: result: $ac_res" >&5
34919echo "${ECHO_T}$ac_res" >&6; }
34920if test `eval echo '${'$as_ac_var'}'` = yes; then
34921 cat >>confdefs.h <<_ACEOF
34922#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34923_ACEOF
34924
34925fi
34926done
34927
34928
Reid Spencera773bd52006-08-04 18:18:08 +000034929{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34930echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034931if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34932 echo $ECHO_N "(cached) $ECHO_C" >&6
34933else
34934 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000034935if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034936 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000034937 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34938 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034939 if test $? -eq 0 ; then
34940 llvm_cv_llvmgcc_sanity="yes"
34941 fi
34942 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000034943fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034944fi
Reid Spencera773bd52006-08-04 18:18:08 +000034945{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34946echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034947
34948if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000034949 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34950echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000034951 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034952 LLVMCC1=$llvmcc1path
34953
Reid Spencer502935f2004-12-22 05:56:56 +000034954 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034955 LLVMCC1PLUS=$llvmcc1pluspath
34956
Reid Spencer502935f2004-12-22 05:56:56 +000034957 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34958 LLVMGCCDIR=$llvmgccdir
34959
Reid Spencer282d8c12006-12-21 22:55:41 +000034960 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34961 LLVMGCCLIBEXEC=$llvmgcclibexec
34962
Reid Spencerb5d75b82006-05-09 00:31:01 +000034963 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000034964 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34965 LLVMGCC_VERSION=$llvmgccversion
34966
34967 LLVMGCC_MAJVERS=$llvmgccmajvers
34968
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000034969 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000034970 LLVMGCC_LANGS=$llvmgcclangs
34971
34972 { echo "$as_me:$LINENO: result: ok" >&5
34973echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000034974fi
34975
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034976SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000034977
34978
Reid Spencere9de0912004-08-20 09:03:57 +000034979# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034980# information into substitutions that will end up in Makefile.config.in
34981# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000034982if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000034983 prefix="/usr/local"
34984fi
Reid Spencere9de0912004-08-20 09:03:57 +000034985eval LLVM_PREFIX="${prefix}";
34986eval LLVM_BINDIR="${prefix}/bin";
34987eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000034988eval LLVM_DATADIR="${prefix}/share/llvm";
34989eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34990eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000034991eval LLVM_INCLUDEDIR="${prefix}/include";
34992eval LLVM_INFODIR="${prefix}/info";
34993eval LLVM_MANDIR="${prefix}/man";
34994LLVM_CONFIGTIME=`date`
34995
34996
34997
34998
34999
35000
35001
35002
35003
35004
35005
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035006# Place the various directores into the config.h file as #defines so that we
35007# can know about the installation paths within LLVM.
35008
Reid Spencere9de0912004-08-20 09:03:57 +000035009cat >>confdefs.h <<_ACEOF
35010#define LLVM_PREFIX "$LLVM_PREFIX"
35011_ACEOF
35012
35013
35014cat >>confdefs.h <<_ACEOF
35015#define LLVM_BINDIR "$LLVM_BINDIR"
35016_ACEOF
35017
35018
35019cat >>confdefs.h <<_ACEOF
35020#define LLVM_LIBDIR "$LLVM_LIBDIR"
35021_ACEOF
35022
35023
35024cat >>confdefs.h <<_ACEOF
35025#define LLVM_DATADIR "$LLVM_DATADIR"
35026_ACEOF
35027
35028
35029cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000035030#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000035031_ACEOF
35032
35033
35034cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000035035#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000035036_ACEOF
35037
35038
35039cat >>confdefs.h <<_ACEOF
35040#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35041_ACEOF
35042
35043
35044cat >>confdefs.h <<_ACEOF
35045#define LLVM_INFODIR "$LLVM_INFODIR"
35046_ACEOF
35047
35048
35049cat >>confdefs.h <<_ACEOF
35050#define LLVM_MANDIR "$LLVM_MANDIR"
35051_ACEOF
35052
35053
35054cat >>confdefs.h <<_ACEOF
35055#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35056_ACEOF
35057
35058
Eric Christopher790e11c2007-12-01 00:34:39 +000035059cat >>confdefs.h <<_ACEOF
35060#define LLVM_HOSTTRIPLE "$host"
35061_ACEOF
35062
35063
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035064# Determine which bindings to build.
35065if test "$BINDINGS_TO_BUILD" = auto ; then
35066 BINDINGS_TO_BUILD=""
35067 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35068 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35069 fi
35070fi
35071BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35072
35073
35074# This isn't really configurey, but it avoids having to repeat the list in
35075# other files.
35076ALL_BINDINGS=ocaml
35077
35078
Gordon Henriksenf0915682007-10-02 16:42:22 +000035079# Do any work necessary to ensure that bindings have what they need.
35080binding_prereqs_failed=0
35081for a_binding in $BINDINGS_TO_BUILD ; do
35082 case "$a_binding" in
35083 ocaml)
35084 if test "x$OCAMLC" = x ; then
35085 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35086echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35087 binding_prereqs_failed=1
35088 fi
35089 if test "x$OCAMLDEP" = x ; then
35090 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35091echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35092 binding_prereqs_failed=1
35093 fi
35094 if test "x$OCAMLOPT" = x ; then
35095 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35096echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35097 fi
35098 if test "x$with_ocaml_libdir" != xauto ; then
35099 OCAML_LIBDIR=$with_ocaml_libdir
35100
35101 else
35102 ocaml_stdlib="`"$OCAMLC" -where`"
35103 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35104 then
35105 # ocaml stdlib is beneath our prefix; use stdlib
35106 OCAML_LIBDIR=$ocaml_stdlib
35107
35108 else
35109 # ocaml stdlib is outside our prefix; use libdir/ocaml
35110 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35111
35112 fi
35113 fi
35114 ;;
35115 esac
35116done
35117if test "$binding_prereqs_failed" = 1 ; then
35118 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35119echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35120 { (exit 1); exit 1; }; }
35121fi
35122
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035123{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35124echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35125if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35126 echo $ECHO_N "(cached) $ECHO_C" >&6
35127else
35128 ac_ext=cpp
35129ac_cpp='$CXXCPP $CPPFLAGS'
35130ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35131ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35132ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35133
35134 oldcxxflags="$CXXFLAGS"
35135 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35136 cat >conftest.$ac_ext <<_ACEOF
35137/* confdefs.h. */
35138_ACEOF
35139cat confdefs.h >>conftest.$ac_ext
35140cat >>conftest.$ac_ext <<_ACEOF
35141/* end confdefs.h. */
35142
35143int
35144main ()
35145{
35146
35147 ;
35148 return 0;
35149}
35150_ACEOF
35151rm -f conftest.$ac_objext
35152if { (ac_try="$ac_compile"
35153case "(($ac_try" in
35154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35155 *) ac_try_echo=$ac_try;;
35156esac
35157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35158 (eval "$ac_compile") 2>conftest.er1
35159 ac_status=$?
35160 grep -v '^ *+' conftest.er1 >conftest.err
35161 rm -f conftest.er1
35162 cat conftest.err >&5
35163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000035164 (exit $ac_status); } &&
35165 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35166 { (case "(($ac_try" in
35167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35168 *) ac_try_echo=$ac_try;;
35169esac
35170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35171 (eval "$ac_try") 2>&5
35172 ac_status=$?
35173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35174 (exit $ac_status); }; } &&
35175 { ac_try='test -s conftest.$ac_objext'
35176 { (case "(($ac_try" in
35177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35178 *) ac_try_echo=$ac_try;;
35179esac
35180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35181 (eval "$ac_try") 2>&5
35182 ac_status=$?
35183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35184 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035185 llvm_cv_cxx_visibility_inlines_hidden=yes
35186else
35187 echo "$as_me: failed program was:" >&5
35188sed 's/^/| /' conftest.$ac_ext >&5
35189
35190 llvm_cv_cxx_visibility_inlines_hidden=no
35191fi
35192
35193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35194 CXXFLAGS="$oldcxxflags"
35195 ac_ext=c
35196ac_cpp='$CPP $CPPFLAGS'
35197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35199ac_compiler_gnu=$ac_cv_c_compiler_gnu
35200
35201
35202fi
35203{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35204echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35205if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35206 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35207
35208else
35209 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35210
35211fi
35212
Gordon Henriksenf0915682007-10-02 16:42:22 +000035213
Nick Lewycky731c6ab2009-03-05 08:20:44 +000035214if test "$llvm_cv_link_use_r" = "yes" ; then
35215 RPATH="-Wl,-R"
35216else
35217 RPATH="-Wl,-rpath"
35218fi
35219
35220
35221if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35222 RDYNAMIC="-Wl,-export-dynamic"
35223else
35224 RDYNAMIC=""
35225fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000035226
35227
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035228
Reid Spencera773bd52006-08-04 18:18:08 +000035229ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035230
Douglas Gregor1555a232009-06-16 20:12:29 +000035231ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35232
35233ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35234
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000035235ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35236
Reid Spencera773bd52006-08-04 18:18:08 +000035237ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035238
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000035239ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035240
35241
Reid Spencera773bd52006-08-04 18:18:08 +000035242ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035243
35244
Reid Spencerea949cf2006-08-16 00:45:38 +000035245ac_config_files="$ac_config_files llvm.spec"
35246
35247
Reid Spencera773bd52006-08-04 18:18:08 +000035248ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000035249
35250
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035251ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35252
35253
Reid Spencera773bd52006-08-04 18:18:08 +000035254ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000035255
35256
Reid Spencera773bd52006-08-04 18:18:08 +000035257ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000035258
Reid Spencera773bd52006-08-04 18:18:08 +000035259ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035260
35261
Reid Spencera773bd52006-08-04 18:18:08 +000035262ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035263
35264
Reid Spencera773bd52006-08-04 18:18:08 +000035265ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035266
35267
Reid Spencera773bd52006-08-04 18:18:08 +000035268ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035269
35270
Reid Spencer8b2e1412006-11-17 03:32:33 +000035271ac_config_commands="$ac_config_commands runtime/Makefile"
35272
35273
Reid Spencera773bd52006-08-04 18:18:08 +000035274ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035275
35276
Reid Spencera773bd52006-08-04 18:18:08 +000035277ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035278
35279
Bill Wendlingf24eb392009-01-04 23:12:30 +000035280ac_config_commands="$ac_config_commands unittests/Makefile"
35281
35282
Reid Spencera773bd52006-08-04 18:18:08 +000035283ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035284
35285
Reid Spencera773bd52006-08-04 18:18:08 +000035286ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035287
35288
Reid Spencera773bd52006-08-04 18:18:08 +000035289ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035290
35291
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035292ac_config_commands="$ac_config_commands bindings/Makefile"
35293
35294
35295ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35296
35297
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035298
John Criswell7a73b802003-06-30 21:59:07 +000035299cat >confcache <<\_ACEOF
35300# This file is a shell script that caches the results of configure
35301# tests run on this system so they can be shared between configure
35302# scripts and configure runs, see configure's option --config-cache.
35303# It is not useful on other systems. If it contains results you don't
35304# want to keep, you may remove or edit it.
35305#
35306# config.status only pays attention to the cache file if you give it
35307# the --recheck option to rerun configure.
35308#
John Criswell0c38eaf2003-09-10 15:17:25 +000035309# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000035310# loading this file, other *unset* `ac_cv_foo' will be assigned the
35311# following values.
35312
35313_ACEOF
35314
35315# The following way of writing the cache mishandles newlines in values,
35316# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000035317# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000035318# Ultrix sh set writes to stderr and can't be redirected directly,
35319# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000035320(
35321 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35322 eval ac_val=\$$ac_var
35323 case $ac_val in #(
35324 *${as_nl}*)
35325 case $ac_var in #(
35326 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35327echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35328 esac
35329 case $ac_var in #(
35330 _ | IFS | as_nl) ;; #(
35331 *) $as_unset $ac_var ;;
35332 esac ;;
35333 esac
35334 done
35335
John Criswell7a73b802003-06-30 21:59:07 +000035336 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000035337 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35338 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000035339 # `set' does not quote correctly, so add quotes (double-quote
35340 # substitution turns \\\\ into \\, and sed turns \\ into \).
35341 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035342 "s/'/'\\\\''/g;
35343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000035344 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000035345 *)
35346 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000035347 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000035348 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035349 esac |
35350 sort
35351) |
John Criswell7a73b802003-06-30 21:59:07 +000035352 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000035353 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000035354 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000035355 :clear
John Criswell7a73b802003-06-30 21:59:07 +000035356 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35357 t end
Reid Spencera773bd52006-08-04 18:18:08 +000035358 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35359 :end' >>confcache
35360if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35361 if test -w "$cache_file"; then
35362 test "x$cache_file" != "x/dev/null" &&
35363 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35364echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000035365 cat confcache >$cache_file
35366 else
Reid Spencera773bd52006-08-04 18:18:08 +000035367 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35368echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000035369 fi
35370fi
35371rm -f confcache
35372
35373test "x$prefix" = xNONE && prefix=$ac_default_prefix
35374# Let make expand exec_prefix.
35375test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35376
John Criswell7a73b802003-06-30 21:59:07 +000035377DEFS=-DHAVE_CONFIG_H
35378
John Criswell0c38eaf2003-09-10 15:17:25 +000035379ac_libobjs=
35380ac_ltlibobjs=
35381for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35382 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000035383 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35384 ac_i=`echo "$ac_i" | sed "$ac_script"`
35385 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35386 # will be set to the directory where LIBOBJS objects are built.
35387 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35388 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000035389done
35390LIBOBJS=$ac_libobjs
35391
35392LTLIBOBJS=$ac_ltlibobjs
35393
35394
Reid Spencer2bc7bd52004-11-29 12:29:58 +000035395if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35396 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35397Usually this means the macro was only invoked conditionally." >&5
35398echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35399Usually this means the macro was only invoked conditionally." >&2;}
35400 { (exit 1); exit 1; }; }
35401fi
35402if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35403 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35404Usually this means the macro was only invoked conditionally." >&5
35405echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35406Usually this means the macro was only invoked conditionally." >&2;}
35407 { (exit 1); exit 1; }; }
35408fi
John Criswell7a73b802003-06-30 21:59:07 +000035409
35410: ${CONFIG_STATUS=./config.status}
35411ac_clean_files_save=$ac_clean_files
35412ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35413{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35414echo "$as_me: creating $CONFIG_STATUS" >&6;}
35415cat >$CONFIG_STATUS <<_ACEOF
35416#! $SHELL
35417# Generated by $as_me.
35418# Run this file to recreate the current configuration.
35419# Compiler output produced by configure, useful for debugging
35420# configure, is in config.log if it exists.
35421
35422debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000035423ac_cs_recheck=false
35424ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000035425SHELL=\${CONFIG_SHELL-$SHELL}
35426_ACEOF
35427
35428cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035429## --------------------- ##
35430## M4sh Initialization. ##
35431## --------------------- ##
35432
Bill Wendlingebcceee2009-04-18 11:20:33 +000035433# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000035434if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35435 emulate sh
35436 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035437 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35438 # is contrary to our usage. Disable this feature.
35439 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000035440 setopt NO_GLOB_SUBST
35441else
Bill Wendlingebcceee2009-04-18 11:20:33 +000035442 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000035443fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000035444BIN_SH=xpg4; export BIN_SH # for Tru64
35445DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000035446
John Criswell7a73b802003-06-30 21:59:07 +000035447
Reid Spencera773bd52006-08-04 18:18:08 +000035448# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000035449# Avoid depending upon Character Ranges.
35450as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35451as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35452as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35453as_cr_digits='0123456789'
35454as_cr_alnum=$as_cr_Letters$as_cr_digits
35455
35456# The user is always right.
35457if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000035458 echo "#! /bin/sh" >conf$$.sh
35459 echo "exit 0" >>conf$$.sh
35460 chmod +x conf$$.sh
35461 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035462 PATH_SEPARATOR=';'
35463 else
35464 PATH_SEPARATOR=:
35465 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000035466 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000035467fi
35468
Reid Spencera773bd52006-08-04 18:18:08 +000035469# Support unset when possible.
35470if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35471 as_unset=unset
35472else
35473 as_unset=false
35474fi
John Criswell7a73b802003-06-30 21:59:07 +000035475
Reid Spencera773bd52006-08-04 18:18:08 +000035476
35477# IFS
35478# We need space, tab and new line, in precisely that order. Quoting is
35479# there to prevent editors from complaining about space-tab.
35480# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35481# splitting by setting IFS to empty value.)
35482as_nl='
35483'
35484IFS=" "" $as_nl"
35485
35486# Find who we are. Look in the path if we contain no directory separator.
35487case $0 in
35488 *[\\/]* ) as_myself=$0 ;;
35489 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000035490for as_dir in $PATH
35491do
35492 IFS=$as_save_IFS
35493 test -z "$as_dir" && as_dir=.
35494 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35495done
Reid Spencera773bd52006-08-04 18:18:08 +000035496IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000035497
Reid Spencera773bd52006-08-04 18:18:08 +000035498 ;;
35499esac
35500# We did not find ourselves, most probably we were run as `sh COMMAND'
35501# in which case we are not to be found in the path.
35502if test "x$as_myself" = x; then
35503 as_myself=$0
35504fi
35505if test ! -f "$as_myself"; then
35506 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35507 { (exit 1); exit 1; }
35508fi
35509
35510# Work around bugs in pre-3.0 UWIN ksh.
35511for as_var in ENV MAIL MAILPATH
35512do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35513done
35514PS1='$ '
35515PS2='> '
35516PS4='+ '
35517
35518# NLS nuisances.
35519for as_var in \
35520 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35521 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35522 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000035523do
Reid Spencera773bd52006-08-04 18:18:08 +000035524 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35525 eval $as_var=C; export $as_var
35526 else
35527 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35528 fi
35529done
35530
35531# Required to use basename.
35532if expr a : '\(a\)' >/dev/null 2>&1 &&
35533 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35534 as_expr=expr
35535else
35536 as_expr=false
35537fi
35538
35539if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35540 as_basename=basename
35541else
35542 as_basename=false
35543fi
35544
35545
35546# Name of the executable.
35547as_me=`$as_basename -- "$0" ||
35548$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35549 X"$0" : 'X\(//\)$' \| \
35550 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35551echo X/"$0" |
35552 sed '/^.*\/\([^/][^/]*\)\/*$/{
35553 s//\1/
35554 q
35555 }
35556 /^X\/\(\/\/\)$/{
35557 s//\1/
35558 q
35559 }
35560 /^X\/\(\/\).*/{
35561 s//\1/
35562 q
35563 }
35564 s/.*/./; q'`
35565
35566# CDPATH.
35567$as_unset CDPATH
35568
35569
35570
John Criswell7a73b802003-06-30 21:59:07 +000035571 as_lineno_1=$LINENO
35572 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000035573 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000035574 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000035575
35576 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35577 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000035578 # line-number line after each line using $LINENO; the second 'sed'
35579 # does the real work. The second script uses 'N' to pair each
35580 # line-number line with the line containing $LINENO, and appends
35581 # trailing '-' during substitution so that $LINENO is not a special
35582 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000035583 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000035584 # scripts with optimization help from Paolo Bonzini. Blame Lee
35585 # E. McMahon (1931-1989) for sed's syntax. :-)
35586 sed -n '
35587 p
35588 /[$]LINENO/=
35589 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000035590 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000035591 s/[$]LINENO.*/&-/
35592 t lineno
35593 b
35594 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000035595 N
Reid Spencera773bd52006-08-04 18:18:08 +000035596 :loop
35597 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000035598 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000035599 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000035600 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000035601 chmod +x "$as_me.lineno" ||
35602 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000035603 { (exit 1); exit 1; }; }
35604
35605 # Don't try to exec as it changes $[0], causing all sort of problems
35606 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000035607 # original and so on. Autoconf is especially sensitive to this).
35608 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000035609 # Exit status is that of the last command.
35610 exit
35611}
35612
35613
Reid Spencera773bd52006-08-04 18:18:08 +000035614if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35615 as_dirname=dirname
35616else
35617 as_dirname=false
35618fi
35619
35620ECHO_C= ECHO_N= ECHO_T=
35621case `echo -n x` in
35622-n*)
35623 case `echo 'x\c'` in
35624 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35625 *) ECHO_C='\c';;
35626 esac;;
35627*)
35628 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000035629esac
35630
Reid Spencera773bd52006-08-04 18:18:08 +000035631if expr a : '\(a\)' >/dev/null 2>&1 &&
35632 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000035633 as_expr=expr
35634else
35635 as_expr=false
35636fi
35637
35638rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000035639if test -d conf$$.dir; then
35640 rm -f conf$$.dir/conf$$.file
35641else
35642 rm -f conf$$.dir
35643 mkdir conf$$.dir
35644fi
John Criswell7a73b802003-06-30 21:59:07 +000035645echo >conf$$.file
35646if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000035647 as_ln_s='ln -s'
35648 # ... but there are two gotchas:
35649 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35650 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35651 # In both cases, we have to default to `cp -p'.
35652 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000035653 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000035654elif ln conf$$.file conf$$ 2>/dev/null; then
35655 as_ln_s=ln
35656else
35657 as_ln_s='cp -p'
35658fi
Reid Spencera773bd52006-08-04 18:18:08 +000035659rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35660rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000035661
John Criswell0c38eaf2003-09-10 15:17:25 +000035662if mkdir -p . 2>/dev/null; then
35663 as_mkdir_p=:
35664else
Reid Spencer2706f8c2004-09-19 23:53:36 +000035665 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000035666 as_mkdir_p=false
35667fi
35668
Bill Wendlingebcceee2009-04-18 11:20:33 +000035669# Find out whether ``test -x'' works. Don't use a zero-byte file, as
35670# systems may use methods other than mode bits to determine executability.
35671cat >conf$$.file <<_ASEOF
35672#! /bin/sh
35673exit 0
35674_ASEOF
35675chmod +x conf$$.file
35676if test -x conf$$.file >/dev/null 2>&1; then
35677 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000035678else
Bill Wendlingebcceee2009-04-18 11:20:33 +000035679 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000035680fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000035681rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000035682
35683# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035684as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035685
35686# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035687as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035688
35689
John Criswell7a73b802003-06-30 21:59:07 +000035690exec 6>&1
35691
Reid Spencera773bd52006-08-04 18:18:08 +000035692# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000035693# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000035694# values after options handling.
35695ac_log="
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000035696This file was extended by llvm $as_me 2.6svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +000035697generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000035698
35699 CONFIG_FILES = $CONFIG_FILES
35700 CONFIG_HEADERS = $CONFIG_HEADERS
35701 CONFIG_LINKS = $CONFIG_LINKS
35702 CONFIG_COMMANDS = $CONFIG_COMMANDS
35703 $ $0 $@
35704
Reid Spencera773bd52006-08-04 18:18:08 +000035705on `(hostname || uname -n) 2>/dev/null | sed 1q`
35706"
35707
John Criswell7a73b802003-06-30 21:59:07 +000035708_ACEOF
35709
Reid Spencera773bd52006-08-04 18:18:08 +000035710cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035711# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000035712config_files="$ac_config_files"
35713config_headers="$ac_config_headers"
35714config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000035715
Reid Spencera773bd52006-08-04 18:18:08 +000035716_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035717
35718cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035719ac_cs_usage="\
35720\`$as_me' instantiates files from templates according to the
35721current configuration.
35722
35723Usage: $0 [OPTIONS] [FILE]...
35724
35725 -h, --help print this help, then exit
Bill Wendlingebcceee2009-04-18 11:20:33 +000035726 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000035727 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000035728 -d, --debug don't remove temporary files
35729 --recheck update $as_me by reconfiguring in the same conditions
35730 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035731 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000035732 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035733 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000035734
35735Configuration files:
35736$config_files
35737
35738Configuration headers:
35739$config_headers
35740
John Criswellc764fbc2003-09-06 15:17:13 +000035741Configuration commands:
35742$config_commands
35743
John Criswell7a73b802003-06-30 21:59:07 +000035744Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000035745
Reid Spencera773bd52006-08-04 18:18:08 +000035746_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035747cat >>$CONFIG_STATUS <<_ACEOF
35748ac_cs_version="\\
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000035749llvm config.status 2.6svn
Bill Wendlingebcceee2009-04-18 11:20:33 +000035750configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000035751 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000035752
Reid Spencera773bd52006-08-04 18:18:08 +000035753Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000035754This config.status script is free software; the Free Software Foundation
35755gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000035756
35757ac_pwd='$ac_pwd'
35758srcdir='$srcdir'
35759INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000035760_ACEOF
35761
35762cat >>$CONFIG_STATUS <<\_ACEOF
35763# If no file are specified by the user, then we need to provide default
35764# value. By we need to know if files were specified by the user.
35765ac_need_defaults=:
35766while test $# != 0
35767do
35768 case $1 in
35769 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000035770 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35771 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000035772 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000035773 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035774 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000035775 ac_option=$1
35776 ac_optarg=$2
35777 ac_shift=shift
35778 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035779 esac
35780
John Criswell0c38eaf2003-09-10 15:17:25 +000035781 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000035782 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000035783 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35784 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035785 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35786 echo "$ac_cs_version"; exit ;;
35787 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000035788 debug=: ;;
35789 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000035790 $ac_shift
35791 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035792 ac_need_defaults=false;;
35793 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000035794 $ac_shift
35795 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035796 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000035797 --he | --h)
35798 # Conflict between --help and --header
35799 { echo "$as_me: error: ambiguous option: $1
35800Try \`$0 --help' for more information." >&2
35801 { (exit 1); exit 1; }; };;
35802 --help | --hel | -h )
35803 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000035804 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35805 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35806 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000035807
35808 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000035809 -*) { echo "$as_me: error: unrecognized option: $1
35810Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035811 { (exit 1); exit 1; }; } ;;
35812
Reid Spencera773bd52006-08-04 18:18:08 +000035813 *) ac_config_targets="$ac_config_targets $1"
35814 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000035815
35816 esac
35817 shift
35818done
35819
John Criswell0c38eaf2003-09-10 15:17:25 +000035820ac_configure_extra_args=
35821
35822if $ac_cs_silent; then
35823 exec 6>/dev/null
35824 ac_configure_extra_args="$ac_configure_extra_args --silent"
35825fi
35826
35827_ACEOF
35828cat >>$CONFIG_STATUS <<_ACEOF
35829if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000035830 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35831 CONFIG_SHELL=$SHELL
35832 export CONFIG_SHELL
35833 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000035834fi
35835
John Criswell7a73b802003-06-30 21:59:07 +000035836_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035837cat >>$CONFIG_STATUS <<\_ACEOF
35838exec 5>>config.log
35839{
35840 echo
35841 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35842## Running $as_me. ##
35843_ASBOX
35844 echo "$ac_log"
35845} >&5
John Criswell7a73b802003-06-30 21:59:07 +000035846
Reid Spencera773bd52006-08-04 18:18:08 +000035847_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000035848cat >>$CONFIG_STATUS <<_ACEOF
35849#
Reid Spencera773bd52006-08-04 18:18:08 +000035850# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000035851#
Reid Spencerc0682832005-02-24 19:05:19 +000035852llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000035853
35854_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035855
John Criswell7a73b802003-06-30 21:59:07 +000035856cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035857
35858# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000035859for ac_config_target in $ac_config_targets
35860do
Reid Spencera773bd52006-08-04 18:18:08 +000035861 case $ac_config_target in
35862 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000035863 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35864 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000035865 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035866 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000035867 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035868 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000035869 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035870 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035871 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035872 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35873 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35874 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35875 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35876 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35877 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035878 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035879 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35880 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000035881 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035882 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35883 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35884 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035885 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35886 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035887
John Criswell7a73b802003-06-30 21:59:07 +000035888 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35889echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35890 { (exit 1); exit 1; }; };;
35891 esac
35892done
35893
Reid Spencera773bd52006-08-04 18:18:08 +000035894
John Criswell7a73b802003-06-30 21:59:07 +000035895# If the user did not use the arguments to specify the items to instantiate,
35896# then the envvar interface is used. Set only those that are not.
35897# We use the long form for the default assignment because of an extremely
35898# bizarre bug on SunOS 4.1.3.
35899if $ac_need_defaults; then
35900 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35901 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000035902 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000035903fi
35904
John Criswell0c38eaf2003-09-10 15:17:25 +000035905# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000035906# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000035907# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000035908# Hook for its removal unless debugging.
35909# Note that there is a small window in which the directory will not be cleaned:
35910# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000035911$debug ||
35912{
Reid Spencera773bd52006-08-04 18:18:08 +000035913 tmp=
35914 trap 'exit_status=$?
35915 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35916' 0
John Criswell7a73b802003-06-30 21:59:07 +000035917 trap '{ (exit 1); exit 1; }' 1 2 13 15
35918}
John Criswell7a73b802003-06-30 21:59:07 +000035919# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000035920
John Criswell7a73b802003-06-30 21:59:07 +000035921{
Reid Spencera773bd52006-08-04 18:18:08 +000035922 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000035923 test -n "$tmp" && test -d "$tmp"
35924} ||
35925{
Reid Spencera773bd52006-08-04 18:18:08 +000035926 tmp=./conf$$-$RANDOM
35927 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000035928} ||
35929{
John Criswell0c38eaf2003-09-10 15:17:25 +000035930 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035931 { (exit 1); exit 1; }
35932}
35933
John Criswell7a73b802003-06-30 21:59:07 +000035934#
Reid Spencera773bd52006-08-04 18:18:08 +000035935# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000035936#
35937
35938# No need to generate the scripts if there are no CONFIG_FILES.
35939# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000035940if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000035941
35942_ACEOF
35943
Reid Spencera773bd52006-08-04 18:18:08 +000035944
35945
35946ac_delim='%!_!# '
35947for ac_last_try in false false false false false :; do
35948 cat >conf$$subs.sed <<_ACEOF
35949SHELL!$SHELL$ac_delim
35950PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35951PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35952PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35953PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35954PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35955PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35956exec_prefix!$exec_prefix$ac_delim
35957prefix!$prefix$ac_delim
35958program_transform_name!$program_transform_name$ac_delim
35959bindir!$bindir$ac_delim
35960sbindir!$sbindir$ac_delim
35961libexecdir!$libexecdir$ac_delim
35962datarootdir!$datarootdir$ac_delim
35963datadir!$datadir$ac_delim
35964sysconfdir!$sysconfdir$ac_delim
35965sharedstatedir!$sharedstatedir$ac_delim
35966localstatedir!$localstatedir$ac_delim
35967includedir!$includedir$ac_delim
35968oldincludedir!$oldincludedir$ac_delim
35969docdir!$docdir$ac_delim
35970infodir!$infodir$ac_delim
35971htmldir!$htmldir$ac_delim
35972dvidir!$dvidir$ac_delim
35973pdfdir!$pdfdir$ac_delim
35974psdir!$psdir$ac_delim
35975libdir!$libdir$ac_delim
35976localedir!$localedir$ac_delim
35977mandir!$mandir$ac_delim
35978DEFS!$DEFS$ac_delim
35979ECHO_C!$ECHO_C$ac_delim
35980ECHO_N!$ECHO_N$ac_delim
35981ECHO_T!$ECHO_T$ac_delim
35982LIBS!$LIBS$ac_delim
35983build_alias!$build_alias$ac_delim
35984host_alias!$host_alias$ac_delim
35985target_alias!$target_alias$ac_delim
35986LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35987subdirs!$subdirs$ac_delim
35988build!$build$ac_delim
35989build_cpu!$build_cpu$ac_delim
35990build_vendor!$build_vendor$ac_delim
35991build_os!$build_os$ac_delim
35992host!$host$ac_delim
35993host_cpu!$host_cpu$ac_delim
35994host_vendor!$host_vendor$ac_delim
35995host_os!$host_os$ac_delim
35996target!$target$ac_delim
35997target_cpu!$target_cpu$ac_delim
35998target_vendor!$target_vendor$ac_delim
35999target_os!$target_os$ac_delim
36000OS!$OS$ac_delim
36001LINKALL!$LINKALL$ac_delim
36002NOLINKALL!$NOLINKALL$ac_delim
36003LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36004LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Bill Wendlinga0833352009-03-12 04:10:09 +000036005ARCH!$ARCH$ac_delim
36006ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036007CC!$CC$ac_delim
36008CFLAGS!$CFLAGS$ac_delim
36009LDFLAGS!$LDFLAGS$ac_delim
36010CPPFLAGS!$CPPFLAGS$ac_delim
36011ac_ct_CC!$ac_ct_CC$ac_delim
36012EXEEXT!$EXEEXT$ac_delim
36013OBJEXT!$OBJEXT$ac_delim
36014CPP!$CPP$ac_delim
36015GREP!$GREP$ac_delim
36016EGREP!$EGREP$ac_delim
36017LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36018BUILD_CC!$BUILD_CC$ac_delim
36019BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000036020BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036021CVSBUILD!$CVSBUILD$ac_delim
36022ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000036023ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036024DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000036025ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36026EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000036027DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036028JIT!$JIT$ac_delim
36029TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36030ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36031ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000036032ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036033TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000036034LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36035LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000036036LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000036037ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036038EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckye792b1d2009-02-03 07:10:30 +000036039BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000036040ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36041ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036042CXX!$CXX$ac_delim
36043CXXFLAGS!$CXXFLAGS$ac_delim
36044ac_ct_CXX!$ac_ct_CXX$ac_delim
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000036045NM!$NM$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036046_ACEOF
36047
36048 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36049 break
36050 elif $ac_last_try; then
36051 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36052echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36053 { (exit 1); exit 1; }; }
36054 else
36055 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000036056 fi
Reid Spencera773bd52006-08-04 18:18:08 +000036057done
36058
36059ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36060if test -n "$ac_eof"; then
36061 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36062 ac_eof=`expr $ac_eof + 1`
36063fi
36064
36065cat >>$CONFIG_STATUS <<_ACEOF
36066cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36067/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36068_ACEOF
36069sed '
36070s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36071s/^/s,@/; s/!/@,|#_!!_#|/
36072:n
36073t n
36074s/'"$ac_delim"'$/,g/; t
36075s/$/\\/; p
36076N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36077' >>$CONFIG_STATUS <conf$$subs.sed
36078rm -f conf$$subs.sed
36079cat >>$CONFIG_STATUS <<_ACEOF
36080CEOF$ac_eof
36081_ACEOF
36082
36083
36084ac_delim='%!_!# '
36085for ac_last_try in false false false false false :; do
36086 cat >conf$$subs.sed <<_ACEOF
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000036087ifGNUmake!$ifGNUmake$ac_delim
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000036088LN_S!$LN_S$ac_delim
36089CMP!$CMP$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000036090CP!$CP$ac_delim
36091DATE!$DATE$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000036092FIND!$FIND$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036093MKDIR!$MKDIR$ac_delim
36094MV!$MV$ac_delim
36095RANLIB!$RANLIB$ac_delim
36096RM!$RM$ac_delim
36097SED!$SED$ac_delim
36098TAR!$TAR$ac_delim
36099BINPWD!$BINPWD$ac_delim
36100GRAPHVIZ!$GRAPHVIZ$ac_delim
36101DOT!$DOT$ac_delim
David Greenef0b9eff2009-07-09 17:16:26 +000036102FDP!$FDP$ac_delim
36103NEATO!$NEATO$ac_delim
36104TWOPI!$TWOPI$ac_delim
36105CIRCO!$CIRCO$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036106GV!$GV$ac_delim
36107DOTTY!$DOTTY$ac_delim
36108PERL!$PERL$ac_delim
36109HAVE_PERL!$HAVE_PERL$ac_delim
36110INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36111INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36112INSTALL_DATA!$INSTALL_DATA$ac_delim
36113BZIP2!$BZIP2$ac_delim
36114DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036115GROFF!$GROFF$ac_delim
36116GZIP!$GZIP$ac_delim
36117POD2HTML!$POD2HTML$ac_delim
36118POD2MAN!$POD2MAN$ac_delim
36119RUNTEST!$RUNTEST$ac_delim
36120TCLSH!$TCLSH$ac_delim
36121ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000036122OCAMLC!$OCAMLC$ac_delim
36123OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000036124OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000036125OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000036126GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036127INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36128INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36129CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36130CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36131LIBADD_DL!$LIBADD_DL$ac_delim
36132ECHO!$ECHO$ac_delim
36133AR!$AR$ac_delim
36134STRIP!$STRIP$ac_delim
36135CXXCPP!$CXXCPP$ac_delim
36136F77!$F77$ac_delim
36137FFLAGS!$FFLAGS$ac_delim
36138ac_ct_F77!$ac_ct_F77$ac_delim
36139LIBTOOL!$LIBTOOL$ac_delim
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000036140LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36141LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
Douglas Gregor01746742009-05-11 18:05:52 +000036142LLVMGCC!$LLVMGCC$ac_delim
36143LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000036144USE_UDIS86!$USE_UDIS86$ac_delim
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000036145USE_OPROFILE!$USE_OPROFILE$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000036146HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000036147HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036148ALLOCA!$ALLOCA$ac_delim
36149MMAP_FILE!$MMAP_FILE$ac_delim
36150LLVMCC1!$LLVMCC1$ac_delim
36151LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36152LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000036153LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036154LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36155LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000036156LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036157SHLIBEXT!$SHLIBEXT$ac_delim
36158LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36159LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36160LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36161LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36162LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36163LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36164LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36165LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36166LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36167LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000036168BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36169ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000036170OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000036171ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckye9821dc2009-03-03 04:55:29 +000036172RPATH!$RPATH$ac_delim
Nick Lewycky731c6ab2009-03-05 08:20:44 +000036173RDYNAMIC!$RDYNAMIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036174LIBOBJS!$LIBOBJS$ac_delim
36175LTLIBOBJS!$LTLIBOBJS$ac_delim
36176_ACEOF
36177
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000036178 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
Reid Spencera773bd52006-08-04 18:18:08 +000036179 break
36180 elif $ac_last_try; then
36181 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36182echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36183 { (exit 1); exit 1; }; }
36184 else
36185 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36186 fi
36187done
36188
36189ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36190if test -n "$ac_eof"; then
36191 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36192 ac_eof=`expr $ac_eof + 1`
36193fi
36194
36195cat >>$CONFIG_STATUS <<_ACEOF
36196cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36197/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36198_ACEOF
36199sed '
36200s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36201s/^/s,@/; s/!/@,|#_!!_#|/
36202:n
36203t n
36204s/'"$ac_delim"'$/,g/; t
36205s/$/\\/; p
36206N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36207' >>$CONFIG_STATUS <conf$$subs.sed
36208rm -f conf$$subs.sed
36209cat >>$CONFIG_STATUS <<_ACEOF
36210:end
36211s/|#_!!_#|//g
36212CEOF$ac_eof
36213_ACEOF
36214
36215
36216# VPATH may cause trouble with some makes, so we remove $(srcdir),
36217# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36218# trailing colons and then remove the whole line if VPATH becomes empty
36219# (actually we leave an empty line to preserve line numbers).
36220if test "x$srcdir" = x.; then
36221 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36222s/:*\$(srcdir):*/:/
36223s/:*\${srcdir}:*/:/
36224s/:*@srcdir@:*/:/
36225s/^\([^=]*=[ ]*\):*/\1/
36226s/:*$//
36227s/^[^=]*=[ ]*$//
36228}'
36229fi
36230
36231cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000036232fi # test -n "$CONFIG_FILES"
36233
Reid Spencera773bd52006-08-04 18:18:08 +000036234
36235for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36236do
36237 case $ac_tag in
36238 :[FHLC]) ac_mode=$ac_tag; continue;;
36239 esac
36240 case $ac_mode$ac_tag in
36241 :[FHL]*:*);;
36242 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36243echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36244 { (exit 1); exit 1; }; };;
36245 :[FH]-) ac_tag=-:-;;
36246 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36247 esac
36248 ac_save_IFS=$IFS
36249 IFS=:
36250 set x $ac_tag
36251 IFS=$ac_save_IFS
36252 shift
36253 ac_file=$1
36254 shift
36255
36256 case $ac_mode in
36257 :L) ac_source=$1;;
36258 :[FH])
36259 ac_file_inputs=
36260 for ac_f
36261 do
36262 case $ac_f in
36263 -) ac_f="$tmp/stdin";;
36264 *) # Look for the file first in the build tree, then in the source tree
36265 # (if the path is not absolute). The absolute path cannot be DOS-style,
36266 # because $ac_f cannot contain `:'.
36267 test -f "$ac_f" ||
36268 case $ac_f in
36269 [\\/$]*) false;;
36270 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36271 esac ||
36272 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36273echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36274 { (exit 1); exit 1; }; };;
36275 esac
36276 ac_file_inputs="$ac_file_inputs $ac_f"
36277 done
36278
36279 # Let's still pretend it is `configure' which instantiates (i.e., don't
36280 # use $as_me), people would be surprised to read:
36281 # /* config.h. Generated by config.status. */
36282 configure_input="Generated from "`IFS=:
36283 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36284 if test x"$ac_file" != x-; then
36285 configure_input="$ac_file. $configure_input"
36286 { echo "$as_me:$LINENO: creating $ac_file" >&5
36287echo "$as_me: creating $ac_file" >&6;}
36288 fi
36289
36290 case $ac_tag in
36291 *:-:* | *:-) cat >"$tmp/stdin";;
36292 esac
36293 ;;
John Criswell7a73b802003-06-30 21:59:07 +000036294 esac
36295
Reid Spencera773bd52006-08-04 18:18:08 +000036296 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000036297$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036298 X"$ac_file" : 'X\(//\)[^/]' \| \
36299 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036300 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000036301echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000036302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36303 s//\1/
36304 q
36305 }
36306 /^X\(\/\/\)[^/].*/{
36307 s//\1/
36308 q
36309 }
36310 /^X\(\/\/\)$/{
36311 s//\1/
36312 q
36313 }
36314 /^X\(\/\).*/{
36315 s//\1/
36316 q
36317 }
36318 s/.*/./; q'`
36319 { as_dir="$ac_dir"
36320 case $as_dir in #(
36321 -*) as_dir=./$as_dir;;
36322 esac
36323 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000036324 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036325 while :; do
36326 case $as_dir in #(
36327 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36328 *) as_qdir=$as_dir;;
36329 esac
36330 as_dirs="'$as_qdir' $as_dirs"
36331 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000036332$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036333 X"$as_dir" : 'X\(//\)[^/]' \| \
36334 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036335 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000036336echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36338 s//\1/
36339 q
36340 }
36341 /^X\(\/\/\)[^/].*/{
36342 s//\1/
36343 q
36344 }
36345 /^X\(\/\/\)$/{
36346 s//\1/
36347 q
36348 }
36349 /^X\(\/\).*/{
36350 s//\1/
36351 q
36352 }
36353 s/.*/./; q'`
36354 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000036355 done
Reid Spencera773bd52006-08-04 18:18:08 +000036356 test -z "$as_dirs" || eval "mkdir $as_dirs"
36357 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36358echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000036359 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000036360 ac_builddir=.
36361
Reid Spencera773bd52006-08-04 18:18:08 +000036362case "$ac_dir" in
36363.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36364*)
John Criswell7a73b802003-06-30 21:59:07 +000036365 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036366 # A ".." for each directory in $ac_dir_suffix.
36367 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36368 case $ac_top_builddir_sub in
36369 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36370 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36371 esac ;;
36372esac
36373ac_abs_top_builddir=$ac_pwd
36374ac_abs_builddir=$ac_pwd$ac_dir_suffix
36375# for backward compatibility:
36376ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000036377
36378case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036379 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000036380 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036381 ac_top_srcdir=$ac_top_builddir_sub
36382 ac_abs_top_srcdir=$ac_pwd ;;
36383 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000036384 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036385 ac_top_srcdir=$srcdir
36386 ac_abs_top_srcdir=$srcdir ;;
36387 *) # Relative name.
36388 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36389 ac_top_srcdir=$ac_top_build_prefix$srcdir
36390 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000036391esac
Reid Spencera773bd52006-08-04 18:18:08 +000036392ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000036393
John Criswell7a73b802003-06-30 21:59:07 +000036394
Reid Spencera773bd52006-08-04 18:18:08 +000036395 case $ac_mode in
36396 :F)
36397 #
36398 # CONFIG_FILE
36399 #
John Criswell7a73b802003-06-30 21:59:07 +000036400
36401 case $INSTALL in
36402 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036403 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000036404 esac
John Criswell7a73b802003-06-30 21:59:07 +000036405_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036406
36407cat >>$CONFIG_STATUS <<\_ACEOF
36408# If the template does not know about datarootdir, expand it.
36409# FIXME: This hack should be removed a few years after 2.60.
36410ac_datarootdir_hack=; ac_datarootdir_seen=
36411
36412case `sed -n '/datarootdir/ {
36413 p
36414 q
36415}
36416/@datadir@/p
36417/@docdir@/p
36418/@infodir@/p
36419/@localedir@/p
36420/@mandir@/p
36421' $ac_file_inputs` in
36422*datarootdir*) ac_datarootdir_seen=yes;;
36423*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36424 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36425echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36426_ACEOF
36427cat >>$CONFIG_STATUS <<_ACEOF
36428 ac_datarootdir_hack='
36429 s&@datadir@&$datadir&g
36430 s&@docdir@&$docdir&g
36431 s&@infodir@&$infodir&g
36432 s&@localedir@&$localedir&g
36433 s&@mandir@&$mandir&g
36434 s&\\\${datarootdir}&$datarootdir&g' ;;
36435esac
36436_ACEOF
36437
36438# Neutralize VPATH when `$srcdir' = `.'.
36439# Shell code in configure.ac might set extrasub.
36440# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000036441cat >>$CONFIG_STATUS <<_ACEOF
36442 sed "$ac_vpsub
36443$extrasub
36444_ACEOF
36445cat >>$CONFIG_STATUS <<\_ACEOF
36446:t
36447/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000036448s&@configure_input@&$configure_input&;t t
36449s&@top_builddir@&$ac_top_builddir_sub&;t t
36450s&@srcdir@&$ac_srcdir&;t t
36451s&@abs_srcdir@&$ac_abs_srcdir&;t t
36452s&@top_srcdir@&$ac_top_srcdir&;t t
36453s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36454s&@builddir@&$ac_builddir&;t t
36455s&@abs_builddir@&$ac_abs_builddir&;t t
36456s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36457s&@INSTALL@&$ac_INSTALL&;t t
36458$ac_datarootdir_hack
36459" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000036460
Reid Spencera773bd52006-08-04 18:18:08 +000036461test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36462 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36463 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36464 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36465which seems to be undefined. Please make sure it is defined." >&5
36466echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36467which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000036468
Reid Spencera773bd52006-08-04 18:18:08 +000036469 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000036470 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000036471 -) cat "$tmp/out"; rm -f "$tmp/out";;
36472 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000036473 esac
Reid Spencera773bd52006-08-04 18:18:08 +000036474 ;;
36475 :H)
36476 #
36477 # CONFIG_HEADER
36478 #
John Criswell7a73b802003-06-30 21:59:07 +000036479_ACEOF
36480
Reid Spencera773bd52006-08-04 18:18:08 +000036481# Transform confdefs.h into a sed script `conftest.defines', that
36482# substitutes the proper values into config.h.in to produce config.h.
36483rm -f conftest.defines conftest.tail
36484# First, append a space to every undef/define line, to ease matching.
36485echo 's/$/ /' >conftest.defines
36486# Then, protect against being on the right side of a sed subst, or in
36487# an unquoted here document, in config.status. If some macros were
36488# called several times there might be several #defines for the same
36489# symbol, which is useless. But do not sort them, since the last
36490# AC_DEFINE must be honored.
36491ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36492# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36493# NAME is the cpp macro being defined, VALUE is the value it is being given.
36494# PARAMS is the parameter list in the macro definition--in most cases, it's
36495# just an empty string.
36496ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36497ac_dB='\\)[ (].*,\\1define\\2'
36498ac_dC=' '
36499ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000036500
Reid Spencera773bd52006-08-04 18:18:08 +000036501uniq confdefs.h |
36502 sed -n '
36503 t rset
36504 :rset
36505 s/^[ ]*#[ ]*define[ ][ ]*//
36506 t ok
36507 d
36508 :ok
36509 s/[\\&,]/\\&/g
36510 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36511 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36512 ' >>conftest.defines
36513
36514# Remove the space that was appended to ease matching.
36515# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000036516# example, in the case of _POSIX_SOURCE, which is predefined and required
36517# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000036518# (The regexp can be short, since the line contains either #define or #undef.)
36519echo 's/ $//
36520s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000036521
Reid Spencera773bd52006-08-04 18:18:08 +000036522# Break up conftest.defines:
36523ac_max_sed_lines=50
36524
36525# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36526# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36527# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36528# et cetera.
36529ac_in='$ac_file_inputs'
36530ac_out='"$tmp/out1"'
36531ac_nxt='"$tmp/out2"'
36532
36533while :
John Criswell7a73b802003-06-30 21:59:07 +000036534do
Reid Spencera773bd52006-08-04 18:18:08 +000036535 # Write a here document:
36536 cat >>$CONFIG_STATUS <<_ACEOF
36537 # First, check the format of the line:
36538 cat >"\$tmp/defines.sed" <<\\CEOF
36539/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36540/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36541b
36542:def
36543_ACEOF
36544 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036545 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036546 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36547 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36548 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36549 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000036550 rm -f conftest.defines
36551 mv conftest.tail conftest.defines
36552done
Reid Spencera773bd52006-08-04 18:18:08 +000036553rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000036554
Reid Spencera773bd52006-08-04 18:18:08 +000036555echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036556cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000036557 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000036558 echo "/* $configure_input */" >"$tmp/config.h"
36559 cat "$ac_result" >>"$tmp/config.h"
36560 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000036561 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36562echo "$as_me: $ac_file is unchanged" >&6;}
36563 else
John Criswell7a73b802003-06-30 21:59:07 +000036564 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000036565 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000036566 fi
36567 else
Reid Spencera773bd52006-08-04 18:18:08 +000036568 echo "/* $configure_input */"
36569 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000036570 fi
Reid Spencera773bd52006-08-04 18:18:08 +000036571 rm -f "$tmp/out12"
36572 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036573
Reid Spencera773bd52006-08-04 18:18:08 +000036574 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36575echo "$as_me: executing $ac_file commands" >&6;}
36576 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036577 esac
John Criswell7a73b802003-06-30 21:59:07 +000036578
Reid Spencera773bd52006-08-04 18:18:08 +000036579
36580 case $ac_file$ac_mode in
36581 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36582 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
36583 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36584 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
36585 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36586 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
36587 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36588 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000036589 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36590 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036591 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36592 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
36593 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36594 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000036595 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36596 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036597 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36598 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
36599 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36600 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
36601 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36602 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000036603 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36604 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36605 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36606 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036607
36608 esac
36609done # for ac_tag
36610
John Criswell7a73b802003-06-30 21:59:07 +000036611
36612{ (exit 0); exit 0; }
36613_ACEOF
36614chmod +x $CONFIG_STATUS
36615ac_clean_files=$ac_clean_files_save
36616
36617
36618# configure is writing to config.log, and then calls config.status.
36619# config.status does its own redirection, appending to config.log.
36620# Unfortunately, on DOS this fails, as config.log is still kept open
36621# by configure, so config.status won't be able to write to it; its
36622# output is simply discarded. So we exec the FD to /dev/null,
36623# effectively closing config.log, so it can be properly (re)opened and
36624# appended to by config.status. When coming back to configure, we
36625# need to make the FD available again.
36626if test "$no_create" != yes; then
36627 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000036628 ac_config_status_args=
36629 test "$silent" = yes &&
36630 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000036631 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000036632 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000036633 exec 5>>config.log
36634 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36635 # would make configure fail if this is the last instruction.
36636 $ac_cs_success || { (exit 1); exit 1; }
36637fi
36638
John Criswell12399a12003-09-30 15:55:44 +000036639#
36640# CONFIG_SUBDIRS section.
36641#
36642if test "$no_recursion" != yes; then
36643
36644 # Remove --cache-file and --srcdir arguments so they do not pile up.
36645 ac_sub_configure_args=
36646 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000036647 eval "set x $ac_configure_args"
36648 shift
36649 for ac_arg
36650 do
John Criswell12399a12003-09-30 15:55:44 +000036651 if test -n "$ac_prev"; then
36652 ac_prev=
36653 continue
36654 fi
36655 case $ac_arg in
36656 -cache-file | --cache-file | --cache-fil | --cache-fi \
36657 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36658 ac_prev=cache_file ;;
36659 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36660 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36661 | --c=*)
36662 ;;
36663 --config-cache | -C)
36664 ;;
36665 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36666 ac_prev=srcdir ;;
36667 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36668 ;;
36669 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36670 ac_prev=prefix ;;
36671 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36672 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036673 *)
36674 case $ac_arg in
36675 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36676 esac
36677 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000036678 esac
36679 done
36680
36681 # Always prepend --prefix to ensure using the same prefix
36682 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000036683 ac_arg="--prefix=$prefix"
36684 case $ac_arg in
36685 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36686 esac
Bill Wendlingebcceee2009-04-18 11:20:33 +000036687 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000036688
36689 ac_popdir=`pwd`
36690 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36691
36692 # Do not complain, so a configure script can configure whichever
36693 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000036694 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000036695
Reid Spencera773bd52006-08-04 18:18:08 +000036696 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36697 echo "$as_me:$LINENO: $ac_msg" >&5
36698 echo "$ac_msg" >&6
36699 { as_dir="$ac_dir"
36700 case $as_dir in #(
36701 -*) as_dir=./$as_dir;;
36702 esac
36703 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000036704 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036705 while :; do
36706 case $as_dir in #(
36707 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36708 *) as_qdir=$as_dir;;
36709 esac
36710 as_dirs="'$as_qdir' $as_dirs"
36711 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000036712$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036713 X"$as_dir" : 'X\(//\)[^/]' \| \
36714 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036715 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000036716echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36718 s//\1/
36719 q
36720 }
36721 /^X\(\/\/\)[^/].*/{
36722 s//\1/
36723 q
36724 }
36725 /^X\(\/\/\)$/{
36726 s//\1/
36727 q
36728 }
36729 /^X\(\/\).*/{
36730 s//\1/
36731 q
36732 }
36733 s/.*/./; q'`
36734 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000036735 done
Reid Spencera773bd52006-08-04 18:18:08 +000036736 test -z "$as_dirs" || eval "mkdir $as_dirs"
36737 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36738echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000036739 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000036740 ac_builddir=.
36741
Reid Spencera773bd52006-08-04 18:18:08 +000036742case "$ac_dir" in
36743.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36744*)
John Criswell12399a12003-09-30 15:55:44 +000036745 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036746 # A ".." for each directory in $ac_dir_suffix.
36747 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36748 case $ac_top_builddir_sub in
36749 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36750 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36751 esac ;;
36752esac
36753ac_abs_top_builddir=$ac_pwd
36754ac_abs_builddir=$ac_pwd$ac_dir_suffix
36755# for backward compatibility:
36756ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000036757
36758case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036759 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000036760 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036761 ac_top_srcdir=$ac_top_builddir_sub
36762 ac_abs_top_srcdir=$ac_pwd ;;
36763 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000036764 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036765 ac_top_srcdir=$srcdir
36766 ac_abs_top_srcdir=$srcdir ;;
36767 *) # Relative name.
36768 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36769 ac_top_srcdir=$ac_top_build_prefix$srcdir
36770 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000036771esac
Reid Spencera773bd52006-08-04 18:18:08 +000036772ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000036773
36774
Reid Spencera773bd52006-08-04 18:18:08 +000036775 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000036776
36777 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000036778 if test -f "$ac_srcdir/configure.gnu"; then
36779 ac_sub_configure=$ac_srcdir/configure.gnu
36780 elif test -f "$ac_srcdir/configure"; then
36781 ac_sub_configure=$ac_srcdir/configure
36782 elif test -f "$ac_srcdir/configure.in"; then
36783 # This should be Cygnus configure.
36784 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000036785 else
36786 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36787echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36788 ac_sub_configure=
36789 fi
36790
36791 # The recursion is here.
36792 if test -n "$ac_sub_configure"; then
36793 # Make the cache file name correct relative to the subdirectory.
36794 case $cache_file in
36795 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036796 *) # Relative name.
36797 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000036798 esac
36799
Reid Spencera773bd52006-08-04 18:18:08 +000036800 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36801echo "$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 +000036802 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000036803 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36804 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000036805 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000036806echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36807 { (exit 1); exit 1; }; }
36808 fi
36809
Reid Spencera773bd52006-08-04 18:18:08 +000036810 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000036811 done
36812fi
36813