blob: 913c6e79fba3243778f35d3b58ea8760fa78f3b6 [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
Reid Spencer65c5d752006-11-05 17:08:18 +0000846ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000847EXTRA_OPTIONS
Nick Lewyckye792b1d2009-02-03 07:10:30 +0000848BINUTILS_INCDIR
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +0000849ENABLE_LLVMC_DYNAMIC
850ENABLE_LLVMC_DYNAMIC_PLUGINS
Reid Spencera773bd52006-08-04 18:18:08 +0000851CXX
852CXXFLAGS
853ac_ct_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000854NM
855ifGNUmake
856LN_S
857CMP
858CP
859DATE
860FIND
861MKDIR
862MV
863RANLIB
864RM
865SED
866TAR
867BINPWD
868GRAPHVIZ
869DOT
David Greenef0b9eff2009-07-09 17:16:26 +0000870FDP
871NEATO
872TWOPI
873CIRCO
Reid Spencera773bd52006-08-04 18:18:08 +0000874GV
875DOTTY
876PERL
877HAVE_PERL
878INSTALL_PROGRAM
879INSTALL_SCRIPT
880INSTALL_DATA
881BZIP2
882DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000883GROFF
884GZIP
885POD2HTML
886POD2MAN
887RUNTEST
888TCLSH
889ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000890OCAMLC
891OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000892OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000893OCAMLDOC
Torok Edwincc499a42008-10-22 09:56:27 +0000894GAS
Reid Spencera773bd52006-08-04 18:18:08 +0000895INSTALL_LTDL_TRUE
896INSTALL_LTDL_FALSE
897CONVENIENCE_LTDL_TRUE
898CONVENIENCE_LTDL_FALSE
899LIBADD_DL
900ECHO
901AR
902STRIP
903CXXCPP
904F77
905FFLAGS
906ac_ct_F77
907LIBTOOL
Mikhail Glushenkov4558f482009-04-21 19:46:10 +0000908LLVMGCCCOMMAND
909LLVMGXXCOMMAND
Douglas Gregor01746742009-05-11 18:05:52 +0000910LLVMGCC
911LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000912USE_UDIS86
Jeffrey Yasskina93e7702009-07-10 21:09:55 +0000913USE_OPROFILE
Reid Spencer1000b732006-12-01 00:37:14 +0000914HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000915HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000916ALLOCA
917MMAP_FILE
918LLVMCC1
919LLVMCC1PLUS
920LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000921LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000922LLVMGCC_VERSION
923LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000924LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000925SHLIBEXT
926LLVM_PREFIX
927LLVM_BINDIR
928LLVM_LIBDIR
929LLVM_DATADIR
930LLVM_DOCSDIR
931LLVM_ETCDIR
932LLVM_INCLUDEDIR
933LLVM_INFODIR
934LLVM_MANDIR
935LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000936BINDINGS_TO_BUILD
937ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000938OCAML_LIBDIR
Daniel Dunbardcf114e2008-08-30 01:16:19 +0000939ENABLE_VISIBILITY_INLINES_HIDDEN
Nick Lewyckye9821dc2009-03-03 04:55:29 +0000940RPATH
Nick Lewycky731c6ab2009-03-05 08:20:44 +0000941RDYNAMIC
Reid Spencera773bd52006-08-04 18:18:08 +0000942LIBOBJS
943LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000944ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000945 ac_precious_vars='build_alias
946host_alias
947target_alias
948CC
949CFLAGS
950LDFLAGS
951CPPFLAGS
952CPP
953CXX
954CXXFLAGS
955CCC
Reid Spencera773bd52006-08-04 18:18:08 +0000956CXXCPP
957F77
958FFLAGS'
959ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000960projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000961projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000962projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000963projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000964projects/llvm-reopt
965projects/llvm-gcc
966projects/llvm-java
967projects/llvm-tv
968projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000969projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000970projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000971
972# Initialize some variables set by options.
973ac_init_help=
974ac_init_version=false
975# The variables have the same names as the options, with
976# dashes changed to underlines.
977cache_file=/dev/null
978exec_prefix=NONE
979no_create=
980no_recursion=
981prefix=NONE
982program_prefix=NONE
983program_suffix=NONE
984program_transform_name=s,x,x,
985silent=
986site=
987srcdir=
988verbose=
989x_includes=NONE
990x_libraries=NONE
991
992# Installation directory options.
993# These are left unexpanded so users can "make install exec_prefix=/foo"
994# and all the variables that are supposed to be based on exec_prefix
995# by default will actually change.
996# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000997# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000998bindir='${exec_prefix}/bin'
999sbindir='${exec_prefix}/sbin'
1000libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +00001001datarootdir='${prefix}/share'
1002datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +00001003sysconfdir='${prefix}/etc'
1004sharedstatedir='${prefix}/com'
1005localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +00001006includedir='${prefix}/include'
1007oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +00001008docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1009infodir='${datarootdir}/info'
1010htmldir='${docdir}'
1011dvidir='${docdir}'
1012pdfdir='${docdir}'
1013psdir='${docdir}'
1014libdir='${exec_prefix}/lib'
1015localedir='${datarootdir}/locale'
1016mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001017
1018ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001019ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001020for ac_option
1021do
1022 # If the previous option needs an argument, assign it.
1023 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001024 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001025 ac_prev=
1026 continue
1027 fi
1028
Reid Spencera773bd52006-08-04 18:18:08 +00001029 case $ac_option in
1030 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1031 *) ac_optarg=yes ;;
1032 esac
John Criswell7a73b802003-06-30 21:59:07 +00001033
1034 # Accept the important Cygnus configure options, so we can diagnose typos.
1035
Reid Spencera773bd52006-08-04 18:18:08 +00001036 case $ac_dashdash$ac_option in
1037 --)
1038 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001039
1040 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1041 ac_prev=bindir ;;
1042 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1043 bindir=$ac_optarg ;;
1044
1045 -build | --build | --buil | --bui | --bu)
1046 ac_prev=build_alias ;;
1047 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1048 build_alias=$ac_optarg ;;
1049
1050 -cache-file | --cache-file | --cache-fil | --cache-fi \
1051 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1052 ac_prev=cache_file ;;
1053 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1054 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1055 cache_file=$ac_optarg ;;
1056
1057 --config-cache | -C)
1058 cache_file=config.cache ;;
1059
Reid Spencera773bd52006-08-04 18:18:08 +00001060 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001061 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001062 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001063 datadir=$ac_optarg ;;
1064
Reid Spencera773bd52006-08-04 18:18:08 +00001065 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1066 | --dataroo | --dataro | --datar)
1067 ac_prev=datarootdir ;;
1068 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1069 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1070 datarootdir=$ac_optarg ;;
1071
John Criswell7a73b802003-06-30 21:59:07 +00001072 -disable-* | --disable-*)
1073 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1074 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001075 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001076 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1077 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001078 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001079 eval enable_$ac_feature=no ;;
1080
1081 -docdir | --docdir | --docdi | --doc | --do)
1082 ac_prev=docdir ;;
1083 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1084 docdir=$ac_optarg ;;
1085
1086 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1087 ac_prev=dvidir ;;
1088 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1089 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001090
1091 -enable-* | --enable-*)
1092 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1093 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001094 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001095 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1096 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001097 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001098 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001099
1100 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1101 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1102 | --exec | --exe | --ex)
1103 ac_prev=exec_prefix ;;
1104 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1105 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1106 | --exec=* | --exe=* | --ex=*)
1107 exec_prefix=$ac_optarg ;;
1108
1109 -gas | --gas | --ga | --g)
1110 # Obsolete; use --with-gas.
1111 with_gas=yes ;;
1112
1113 -help | --help | --hel | --he | -h)
1114 ac_init_help=long ;;
1115 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1116 ac_init_help=recursive ;;
1117 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1118 ac_init_help=short ;;
1119
1120 -host | --host | --hos | --ho)
1121 ac_prev=host_alias ;;
1122 -host=* | --host=* | --hos=* | --ho=*)
1123 host_alias=$ac_optarg ;;
1124
Reid Spencera773bd52006-08-04 18:18:08 +00001125 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1126 ac_prev=htmldir ;;
1127 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1128 | --ht=*)
1129 htmldir=$ac_optarg ;;
1130
John Criswell7a73b802003-06-30 21:59:07 +00001131 -includedir | --includedir | --includedi | --included | --include \
1132 | --includ | --inclu | --incl | --inc)
1133 ac_prev=includedir ;;
1134 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1135 | --includ=* | --inclu=* | --incl=* | --inc=*)
1136 includedir=$ac_optarg ;;
1137
1138 -infodir | --infodir | --infodi | --infod | --info | --inf)
1139 ac_prev=infodir ;;
1140 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1141 infodir=$ac_optarg ;;
1142
1143 -libdir | --libdir | --libdi | --libd)
1144 ac_prev=libdir ;;
1145 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1146 libdir=$ac_optarg ;;
1147
1148 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1149 | --libexe | --libex | --libe)
1150 ac_prev=libexecdir ;;
1151 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1152 | --libexe=* | --libex=* | --libe=*)
1153 libexecdir=$ac_optarg ;;
1154
Reid Spencera773bd52006-08-04 18:18:08 +00001155 -localedir | --localedir | --localedi | --localed | --locale)
1156 ac_prev=localedir ;;
1157 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1158 localedir=$ac_optarg ;;
1159
John Criswell7a73b802003-06-30 21:59:07 +00001160 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001161 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001162 ac_prev=localstatedir ;;
1163 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001164 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001165 localstatedir=$ac_optarg ;;
1166
1167 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1168 ac_prev=mandir ;;
1169 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1170 mandir=$ac_optarg ;;
1171
1172 -nfp | --nfp | --nf)
1173 # Obsolete; use --without-fp.
1174 with_fp=no ;;
1175
1176 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1177 | --no-cr | --no-c | -n)
1178 no_create=yes ;;
1179
1180 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1181 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1182 no_recursion=yes ;;
1183
1184 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1185 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1186 | --oldin | --oldi | --old | --ol | --o)
1187 ac_prev=oldincludedir ;;
1188 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1189 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1190 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1191 oldincludedir=$ac_optarg ;;
1192
1193 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1194 ac_prev=prefix ;;
1195 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1196 prefix=$ac_optarg ;;
1197
1198 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1199 | --program-pre | --program-pr | --program-p)
1200 ac_prev=program_prefix ;;
1201 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1202 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1203 program_prefix=$ac_optarg ;;
1204
1205 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1206 | --program-suf | --program-su | --program-s)
1207 ac_prev=program_suffix ;;
1208 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1209 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1210 program_suffix=$ac_optarg ;;
1211
1212 -program-transform-name | --program-transform-name \
1213 | --program-transform-nam | --program-transform-na \
1214 | --program-transform-n | --program-transform- \
1215 | --program-transform | --program-transfor \
1216 | --program-transfo | --program-transf \
1217 | --program-trans | --program-tran \
1218 | --progr-tra | --program-tr | --program-t)
1219 ac_prev=program_transform_name ;;
1220 -program-transform-name=* | --program-transform-name=* \
1221 | --program-transform-nam=* | --program-transform-na=* \
1222 | --program-transform-n=* | --program-transform-=* \
1223 | --program-transform=* | --program-transfor=* \
1224 | --program-transfo=* | --program-transf=* \
1225 | --program-trans=* | --program-tran=* \
1226 | --progr-tra=* | --program-tr=* | --program-t=*)
1227 program_transform_name=$ac_optarg ;;
1228
Reid Spencera773bd52006-08-04 18:18:08 +00001229 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1230 ac_prev=pdfdir ;;
1231 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1232 pdfdir=$ac_optarg ;;
1233
1234 -psdir | --psdir | --psdi | --psd | --ps)
1235 ac_prev=psdir ;;
1236 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1237 psdir=$ac_optarg ;;
1238
John Criswell7a73b802003-06-30 21:59:07 +00001239 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1240 | -silent | --silent | --silen | --sile | --sil)
1241 silent=yes ;;
1242
1243 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1244 ac_prev=sbindir ;;
1245 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1246 | --sbi=* | --sb=*)
1247 sbindir=$ac_optarg ;;
1248
1249 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1250 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1251 | --sharedst | --shareds | --shared | --share | --shar \
1252 | --sha | --sh)
1253 ac_prev=sharedstatedir ;;
1254 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1255 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1256 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1257 | --sha=* | --sh=*)
1258 sharedstatedir=$ac_optarg ;;
1259
1260 -site | --site | --sit)
1261 ac_prev=site ;;
1262 -site=* | --site=* | --sit=*)
1263 site=$ac_optarg ;;
1264
1265 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1266 ac_prev=srcdir ;;
1267 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1268 srcdir=$ac_optarg ;;
1269
1270 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1271 | --syscon | --sysco | --sysc | --sys | --sy)
1272 ac_prev=sysconfdir ;;
1273 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1274 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1275 sysconfdir=$ac_optarg ;;
1276
1277 -target | --target | --targe | --targ | --tar | --ta | --t)
1278 ac_prev=target_alias ;;
1279 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1280 target_alias=$ac_optarg ;;
1281
1282 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1283 verbose=yes ;;
1284
1285 -version | --version | --versio | --versi | --vers | -V)
1286 ac_init_version=: ;;
1287
1288 -with-* | --with-*)
1289 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1290 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001291 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001292 { echo "$as_me: error: invalid package name: $ac_package" >&2
1293 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001294 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001295 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001296
1297 -without-* | --without-*)
1298 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001300 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001301 { echo "$as_me: error: invalid package name: $ac_package" >&2
1302 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001303 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001304 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001305
1306 --x)
1307 # Obsolete; use --with-x.
1308 with_x=yes ;;
1309
1310 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311 | --x-incl | --x-inc | --x-in | --x-i)
1312 ac_prev=x_includes ;;
1313 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315 x_includes=$ac_optarg ;;
1316
1317 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319 ac_prev=x_libraries ;;
1320 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322 x_libraries=$ac_optarg ;;
1323
1324 -*) { echo "$as_me: error: unrecognized option: $ac_option
1325Try \`$0 --help' for more information." >&2
1326 { (exit 1); exit 1; }; }
1327 ;;
1328
1329 *=*)
1330 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331 # Reject names that are not valid shell variable names.
1332 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1333 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1334 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001335 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001336 export $ac_envvar ;;
1337
1338 *)
1339 # FIXME: should be removed in autoconf 3.0.
1340 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1344 ;;
1345
1346 esac
1347done
1348
1349if test -n "$ac_prev"; then
1350 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351 { echo "$as_me: error: missing argument to $ac_option" >&2
1352 { (exit 1); exit 1; }; }
1353fi
1354
Reid Spencera773bd52006-08-04 18:18:08 +00001355# Be sure to have absolute directory names.
1356for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1357 datadir sysconfdir sharedstatedir localstatedir includedir \
1358 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1359 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001360do
Reid Spencera773bd52006-08-04 18:18:08 +00001361 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001362 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001363 [\\/$]* | ?:[\\/]* ) continue;;
1364 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001365 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001366 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1367 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001368done
1369
1370# There might be people who depend on the old broken behavior: `$host'
1371# used to hold the argument of --host etc.
1372# FIXME: To remove some day.
1373build=$build_alias
1374host=$host_alias
1375target=$target_alias
1376
1377# FIXME: To remove some day.
1378if test "x$host_alias" != x; then
1379 if test "x$build_alias" = x; then
1380 cross_compiling=maybe
1381 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1382 If a cross compiler is detected then cross compile mode will be used." >&2
1383 elif test "x$build_alias" != "x$host_alias"; then
1384 cross_compiling=yes
1385 fi
1386fi
1387
1388ac_tool_prefix=
1389test -n "$host_alias" && ac_tool_prefix=$host_alias-
1390
1391test "$silent" = yes && exec 6>/dev/null
1392
1393
Reid Spencera773bd52006-08-04 18:18:08 +00001394ac_pwd=`pwd` && test -n "$ac_pwd" &&
1395ac_ls_di=`ls -di .` &&
1396ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1397 { echo "$as_me: error: Working directory cannot be determined" >&2
1398 { (exit 1); exit 1; }; }
1399test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1400 { echo "$as_me: error: pwd does not report name of working directory" >&2
1401 { (exit 1); exit 1; }; }
1402
1403
John Criswell7a73b802003-06-30 21:59:07 +00001404# Find the source files, if location was not specified.
1405if test -z "$srcdir"; then
1406 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001407 # Try the directory containing this script, then the parent directory.
1408 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001409$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001410 X"$0" : 'X\(//\)[^/]' \| \
1411 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001412 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001413echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1415 s//\1/
1416 q
1417 }
1418 /^X\(\/\/\)[^/].*/{
1419 s//\1/
1420 q
1421 }
1422 /^X\(\/\/\)$/{
1423 s//\1/
1424 q
1425 }
1426 /^X\(\/\).*/{
1427 s//\1/
1428 q
1429 }
1430 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001431 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001432 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001433 srcdir=..
1434 fi
1435else
1436 ac_srcdir_defaulted=no
1437fi
Reid Spencera773bd52006-08-04 18:18:08 +00001438if test ! -r "$srcdir/$ac_unique_file"; then
1439 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1440 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001441 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001442fi
Reid Spencera773bd52006-08-04 18:18:08 +00001443ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1444ac_abs_confdir=`(
1445 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001446 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001447 pwd)`
1448# When building in place, set srcdir=.
1449if test "$ac_abs_confdir" = "$ac_pwd"; then
1450 srcdir=.
1451fi
1452# Remove unnecessary trailing slashes from srcdir.
1453# Double slashes in file names in object file debugging info
1454# mess up M-x gdb in Emacs.
1455case $srcdir in
1456*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1457esac
1458for ac_var in $ac_precious_vars; do
1459 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1460 eval ac_env_${ac_var}_value=\$${ac_var}
1461 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1462 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1463done
John Criswell7a73b802003-06-30 21:59:07 +00001464
1465#
1466# Report the --help message.
1467#
1468if test "$ac_init_help" = "long"; then
1469 # Omit some internal or obsolete options to make the list less imposing.
1470 # This message is too long to be a string in the A/UX 3.1 sh.
1471 cat <<_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001472\`configure' configures llvm 2.6svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001473
1474Usage: $0 [OPTION]... [VAR=VALUE]...
1475
1476To assign environment variables (e.g., CC, CFLAGS...), specify them as
1477VAR=VALUE. See below for descriptions of some of the useful variables.
1478
1479Defaults for the options are specified in brackets.
1480
1481Configuration:
1482 -h, --help display this help and exit
1483 --help=short display options specific to this package
1484 --help=recursive display the short help of all the included packages
1485 -V, --version display version information and exit
1486 -q, --quiet, --silent do not print \`checking...' messages
1487 --cache-file=FILE cache test results in FILE [disabled]
1488 -C, --config-cache alias for \`--cache-file=config.cache'
1489 -n, --no-create do not create output files
1490 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1491
John Criswell7a73b802003-06-30 21:59:07 +00001492Installation directories:
1493 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001494 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001495 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001496 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001497
1498By default, \`make install' will install all the files in
1499\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1500an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1501for instance \`--prefix=\$HOME'.
1502
1503For better control, use the options below.
1504
1505Fine tuning of the installation directories:
1506 --bindir=DIR user executables [EPREFIX/bin]
1507 --sbindir=DIR system admin executables [EPREFIX/sbin]
1508 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001509 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1510 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1511 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1512 --libdir=DIR object code libraries [EPREFIX/lib]
1513 --includedir=DIR C header files [PREFIX/include]
1514 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001515 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1516 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1517 --infodir=DIR info documentation [DATAROOTDIR/info]
1518 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1519 --mandir=DIR man documentation [DATAROOTDIR/man]
1520 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1521 --htmldir=DIR html documentation [DOCDIR]
1522 --dvidir=DIR dvi documentation [DOCDIR]
1523 --pdfdir=DIR pdf documentation [DOCDIR]
1524 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001525_ACEOF
1526
1527 cat <<\_ACEOF
1528
1529System types:
1530 --build=BUILD configure for building on BUILD [guessed]
1531 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1532 --target=TARGET configure for building compilers for TARGET [HOST]
1533_ACEOF
1534fi
1535
1536if test -n "$ac_init_help"; then
1537 case $ac_init_help in
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001538 short | recursive ) echo "Configuration of llvm 2.6svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001539 esac
1540 cat <<\_ACEOF
1541
1542Optional Features:
1543 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1544 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001545 --enable-optimized Compile with optimizations enabled (default is NO)
1546 --enable-profiling Compile with profiling enabled (default is NO)
1547 --enable-assertions Compile with assertion checks enabled (default is
1548 YES)
David Greenea696d242007-06-28 19:36:08 +00001549 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001550 Compile with expensive debug checks enabled (default
1551 is NO)
1552 --enable-debug-runtime Build runtime libs with debug symbols (default is
1553 NO)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001554 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001555 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001556 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001557 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001558 is YES)
Evan Cheng939ea652006-07-06 07:46:33 +00001559 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001560 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001561 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1562 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001563 --enable-bindings Build specific language bindings:
1564 all,auto,none,{binding-name} (default=auto)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001565 --enable-libffi Check for the presence of libffi (default is YES)
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00001566 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1567 Win32)
1568 --enable-llvmc-dynamic-plugins
1569 Enable dynamic LLVMC plugins (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001570 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001571 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001572 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001573 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001574 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001575 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001576 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001577 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001578 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001579
1580Optional Packages:
1581 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1582 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001583 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1584 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001585 --with-llvmgcc Specify location of llvm-gcc driver (default
1586 searches PATH)
1587 --with-llvmgxx Specify location of llvm-g++ driver (default
1588 searches PATH)
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001589 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001590 --with-ocaml-libdir Specify install location for ocaml bindings (default
1591 is stdlib)
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001592 --with-binutils-include Specify path to binutils/include/ containing
1593 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001594 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001595 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1596 --with-pic try to use only PIC/non-PIC objects [default=use
1597 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001598 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001599 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001600 --with-oprofile=<prefix>
1601 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001602
1603Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001604 CC C compiler command
1605 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001606 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1607 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001608 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1609 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001610 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001611 CXX C++ compiler command
1612 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001613 CXXCPP C++ preprocessor
1614 F77 Fortran 77 compiler command
1615 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001616
1617Use these variables to override the choices made by `configure' or to help
1618it to find libraries and programs with nonstandard names/locations.
1619
1620Report bugs to <llvmbugs@cs.uiuc.edu>.
1621_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001622ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001623fi
1624
1625if test "$ac_init_help" = "recursive"; then
1626 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001627 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001628 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001629 ac_builddir=.
1630
Reid Spencera773bd52006-08-04 18:18:08 +00001631case "$ac_dir" in
1632.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1633*)
John Criswell7a73b802003-06-30 21:59:07 +00001634 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001635 # A ".." for each directory in $ac_dir_suffix.
1636 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1637 case $ac_top_builddir_sub in
1638 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1640 esac ;;
1641esac
1642ac_abs_top_builddir=$ac_pwd
1643ac_abs_builddir=$ac_pwd$ac_dir_suffix
1644# for backward compatibility:
1645ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001646
1647case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001648 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001649 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001650 ac_top_srcdir=$ac_top_builddir_sub
1651 ac_abs_top_srcdir=$ac_pwd ;;
1652 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001653 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001654 ac_top_srcdir=$srcdir
1655 ac_abs_top_srcdir=$srcdir ;;
1656 *) # Relative name.
1657 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1658 ac_top_srcdir=$ac_top_build_prefix$srcdir
1659 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001660esac
Reid Spencera773bd52006-08-04 18:18:08 +00001661ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001662
Reid Spencera773bd52006-08-04 18:18:08 +00001663 cd "$ac_dir" || { ac_status=$?; continue; }
1664 # Check for guested configure.
1665 if test -f "$ac_srcdir/configure.gnu"; then
1666 echo &&
1667 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1668 elif test -f "$ac_srcdir/configure"; then
1669 echo &&
1670 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001671 else
1672 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001673 fi || ac_status=$?
1674 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001675 done
1676fi
1677
Reid Spencera773bd52006-08-04 18:18:08 +00001678test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001679if $ac_init_version; then
1680 cat <<\_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001681llvm configure 2.6svn
Bill Wendlingebcceee2009-04-18 11:20:33 +00001682generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001683
Reid Spencera773bd52006-08-04 18:18:08 +00001684Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16852002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001686This configure script is free software; the Free Software Foundation
1687gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001688
Tanya Lattnercf067672008-01-17 05:57:22 +00001689Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001690_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001691 exit
John Criswell7a73b802003-06-30 21:59:07 +00001692fi
Reid Spencera773bd52006-08-04 18:18:08 +00001693cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001694This file contains any messages produced by compilers while
1695running configure, to aid debugging if configure makes a mistake.
1696
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001697It was created by llvm $as_me 2.6svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +00001698generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001699
1700 $ $0 $@
1701
1702_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001703exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001704{
1705cat <<_ASUNAME
1706## --------- ##
1707## Platform. ##
1708## --------- ##
1709
1710hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1711uname -m = `(uname -m) 2>/dev/null || echo unknown`
1712uname -r = `(uname -r) 2>/dev/null || echo unknown`
1713uname -s = `(uname -s) 2>/dev/null || echo unknown`
1714uname -v = `(uname -v) 2>/dev/null || echo unknown`
1715
1716/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1717/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1718
1719/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1720/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1721/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001722/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001723/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1724/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1725/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1726
1727_ASUNAME
1728
1729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1730for as_dir in $PATH
1731do
1732 IFS=$as_save_IFS
1733 test -z "$as_dir" && as_dir=.
1734 echo "PATH: $as_dir"
1735done
Reid Spencera773bd52006-08-04 18:18:08 +00001736IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001737
1738} >&5
1739
1740cat >&5 <<_ACEOF
1741
1742
1743## ----------- ##
1744## Core tests. ##
1745## ----------- ##
1746
1747_ACEOF
1748
1749
1750# Keep a trace of the command line.
1751# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001752# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001753# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001754# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001755ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001756ac_configure_args0=
1757ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001758ac_must_keep_next=false
1759for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001760do
John Criswell0c38eaf2003-09-10 15:17:25 +00001761 for ac_arg
1762 do
1763 case $ac_arg in
1764 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1765 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1766 | -silent | --silent | --silen | --sile | --sil)
1767 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001768 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001769 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1770 esac
1771 case $ac_pass in
1772 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1773 2)
1774 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1775 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001776 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001777 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001778 case $ac_arg in
1779 *=* | --config-cache | -C | -disable-* | --disable-* \
1780 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1781 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1782 | -with-* | --with-* | -without-* | --without-* | --x)
1783 case "$ac_configure_args0 " in
1784 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1785 esac
1786 ;;
1787 -* ) ac_must_keep_next=true ;;
1788 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001789 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001790 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001791 ;;
1792 esac
1793 done
John Criswell7a73b802003-06-30 21:59:07 +00001794done
John Criswell0c38eaf2003-09-10 15:17:25 +00001795$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1796$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 +00001797
1798# When interrupted or exit'd, cleanup temporary files, and complete
1799# config.log. We remove comments because anyway the quotes in there
1800# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001801# WARNING: Use '\'' to represent an apostrophe within the trap.
1802# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001803trap 'exit_status=$?
1804 # Save into config.log some information that might help in debugging.
1805 {
1806 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001807
John Criswell7a73b802003-06-30 21:59:07 +00001808 cat <<\_ASBOX
1809## ---------------- ##
1810## Cache variables. ##
1811## ---------------- ##
1812_ASBOX
1813 echo
1814 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001815(
1816 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1817 eval ac_val=\$$ac_var
1818 case $ac_val in #(
1819 *${as_nl}*)
1820 case $ac_var in #(
1821 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1822echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1823 esac
1824 case $ac_var in #(
1825 _ | IFS | as_nl) ;; #(
1826 *) $as_unset $ac_var ;;
1827 esac ;;
1828 esac
1829 done
John Criswell7a73b802003-06-30 21:59:07 +00001830 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001831 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1832 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001833 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001834 "s/'\''/'\''\\\\'\'''\''/g;
1835 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1836 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001837 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001838 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001839 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001840 esac |
1841 sort
1842)
John Criswell7a73b802003-06-30 21:59:07 +00001843 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001844
1845 cat <<\_ASBOX
1846## ----------------- ##
1847## Output variables. ##
1848## ----------------- ##
1849_ASBOX
1850 echo
1851 for ac_var in $ac_subst_vars
1852 do
Reid Spencera773bd52006-08-04 18:18:08 +00001853 eval ac_val=\$$ac_var
1854 case $ac_val in
1855 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1856 esac
1857 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001858 done | sort
1859 echo
1860
1861 if test -n "$ac_subst_files"; then
1862 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001863## ------------------- ##
1864## File substitutions. ##
1865## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001866_ASBOX
1867 echo
1868 for ac_var in $ac_subst_files
1869 do
Reid Spencera773bd52006-08-04 18:18:08 +00001870 eval ac_val=\$$ac_var
1871 case $ac_val in
1872 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1873 esac
1874 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001875 done | sort
1876 echo
1877 fi
1878
John Criswell7a73b802003-06-30 21:59:07 +00001879 if test -s confdefs.h; then
1880 cat <<\_ASBOX
1881## ----------- ##
1882## confdefs.h. ##
1883## ----------- ##
1884_ASBOX
1885 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001886 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001887 echo
1888 fi
1889 test "$ac_signal" != 0 &&
1890 echo "$as_me: caught signal $ac_signal"
1891 echo "$as_me: exit $exit_status"
1892 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001893 rm -f core *.core core.conftest.* &&
1894 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001895 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001896' 0
John Criswell7a73b802003-06-30 21:59:07 +00001897for ac_signal in 1 2 13 15; do
1898 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1899done
1900ac_signal=0
1901
1902# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001903rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001904
1905# Predefined preprocessor variables.
1906
1907cat >>confdefs.h <<_ACEOF
1908#define PACKAGE_NAME "$PACKAGE_NAME"
1909_ACEOF
1910
1911
1912cat >>confdefs.h <<_ACEOF
1913#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1914_ACEOF
1915
1916
1917cat >>confdefs.h <<_ACEOF
1918#define PACKAGE_VERSION "$PACKAGE_VERSION"
1919_ACEOF
1920
1921
1922cat >>confdefs.h <<_ACEOF
1923#define PACKAGE_STRING "$PACKAGE_STRING"
1924_ACEOF
1925
1926
1927cat >>confdefs.h <<_ACEOF
1928#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1929_ACEOF
1930
1931
1932# Let the site file select an alternate cache file if it wants to.
1933# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001934if test -n "$CONFIG_SITE"; then
1935 set x "$CONFIG_SITE"
1936elif test "x$prefix" != xNONE; then
1937 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1938else
1939 set x "$ac_default_prefix/share/config.site" \
1940 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001941fi
Reid Spencera773bd52006-08-04 18:18:08 +00001942shift
1943for ac_site_file
1944do
John Criswell7a73b802003-06-30 21:59:07 +00001945 if test -r "$ac_site_file"; then
1946 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1947echo "$as_me: loading site script $ac_site_file" >&6;}
1948 sed 's/^/| /' "$ac_site_file" >&5
1949 . "$ac_site_file"
1950 fi
1951done
1952
1953if test -r "$cache_file"; then
1954 # Some versions of bash will fail to source /dev/null (special
1955 # files actually), so we avoid doing that.
1956 if test -f "$cache_file"; then
1957 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1958echo "$as_me: loading cache $cache_file" >&6;}
1959 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001960 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1961 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001962 esac
1963 fi
1964else
1965 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1966echo "$as_me: creating cache $cache_file" >&6;}
1967 >$cache_file
1968fi
1969
1970# Check that the precious variables saved in the cache have kept the same
1971# value.
1972ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001973for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001974 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1975 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001976 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1977 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001978 case $ac_old_set,$ac_new_set in
1979 set,)
1980 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1981echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1982 ac_cache_corrupted=: ;;
1983 ,set)
1984 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1985echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1986 ac_cache_corrupted=: ;;
1987 ,);;
1988 *)
1989 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001990 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001991echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001992 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001993echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001994 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001995echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001996 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001997 fi;;
1998 esac
1999 # Pass precious variables to config.status.
2000 if test "$ac_new_set" = set; then
2001 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00002002 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00002003 *) ac_arg=$ac_var=$ac_new_val ;;
2004 esac
2005 case " $ac_configure_args " in
2006 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2007 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2008 esac
2009 fi
2010done
2011if $ac_cache_corrupted; then
2012 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2013echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2014 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2015echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2016 { (exit 1); exit 1; }; }
2017fi
2018
Reid Spencera773bd52006-08-04 18:18:08 +00002019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
John Criswell7a73b802003-06-30 21:59:07 +00002043ac_ext=c
2044ac_cpp='$CPP $CPPFLAGS'
2045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2047ac_compiler_gnu=$ac_cv_c_compiler_gnu
2048
2049
2050
Tanya Lattnercf067672008-01-17 05:57:22 +00002051LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002052
2053
2054
2055
2056
2057
2058
John Criswell7a73b802003-06-30 21:59:07 +00002059ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002060for ac_dir in autoconf "$srcdir"/autoconf; do
2061 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002062 ac_aux_dir=$ac_dir
2063 ac_install_sh="$ac_aux_dir/install-sh -c"
2064 break
Reid Spencera773bd52006-08-04 18:18:08 +00002065 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002066 ac_aux_dir=$ac_dir
2067 ac_install_sh="$ac_aux_dir/install.sh -c"
2068 break
Reid Spencera773bd52006-08-04 18:18:08 +00002069 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002070 ac_aux_dir=$ac_dir
2071 ac_install_sh="$ac_aux_dir/shtool install -c"
2072 break
2073 fi
2074done
2075if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002076 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2077echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002078 { (exit 1); exit 1; }; }
2079fi
Reid Spencera773bd52006-08-04 18:18:08 +00002080
2081# These three variables are undocumented and unsupported,
2082# and are intended to be withdrawn in a future Autoconf release.
2083# They can cause serious problems if a builder's source tree is in a directory
2084# whose full name contains unusual characters.
2085ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2086ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2087ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2088
John Criswell7a73b802003-06-30 21:59:07 +00002089
John Criswell392aaa32003-07-22 19:18:09 +00002090
Reid Spencer2706f8c2004-09-19 23:53:36 +00002091if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002092 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2093 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002094echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2095 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002096 fi
John Criswell93e1c722003-09-15 17:04:06 +00002097fi
2098
John Criswell33a911a2003-11-25 20:36:46 +00002099for i in `ls ${srcdir}/projects`
2100do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002101 if test -d ${srcdir}/projects/${i} ; then
2102 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002103 CVS) ;;
2104 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002105 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002106 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002107 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002108 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002109 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002110 # llvm-test is the old name of the test-suite, kept here for backwards
2111 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002112 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002113 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002114 test-suite) subdirs="$subdirs projects/test-suite"
2115 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002116 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002117;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002118 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002119 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002120 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002121 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002122 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002123 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002124 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002125 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002126 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002127 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002128 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002129 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002130 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002131 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2132echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002133 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002134 esac
John Criswell33a911a2003-11-25 20:36:46 +00002135 fi
2136done
John Criswell559a6c12003-09-30 16:31:48 +00002137
John Criswell7a73b802003-06-30 21:59:07 +00002138
2139# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002140$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2141 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2142echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002143 { (exit 1); exit 1; }; }
2144
Reid Spencera773bd52006-08-04 18:18:08 +00002145{ echo "$as_me:$LINENO: checking build system type" >&5
2146echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002147if test "${ac_cv_build+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2149else
Reid Spencera773bd52006-08-04 18:18:08 +00002150 ac_build_alias=$build_alias
2151test "x$ac_build_alias" = x &&
2152 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2153test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002154 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2155echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2156 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002157ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2158 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2159echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002160 { (exit 1); exit 1; }; }
2161
2162fi
Reid Spencera773bd52006-08-04 18:18:08 +00002163{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2164echo "${ECHO_T}$ac_cv_build" >&6; }
2165case $ac_cv_build in
2166*-*-*) ;;
2167*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2168echo "$as_me: error: invalid value of canonical build" >&2;}
2169 { (exit 1); exit 1; }; };;
2170esac
John Criswell7a73b802003-06-30 21:59:07 +00002171build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002172ac_save_IFS=$IFS; IFS='-'
2173set x $ac_cv_build
2174shift
2175build_cpu=$1
2176build_vendor=$2
2177shift; shift
2178# Remember, the first character of IFS is used to create $*,
2179# except with old shells:
2180build_os=$*
2181IFS=$ac_save_IFS
2182case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002183
2184
Reid Spencera773bd52006-08-04 18:18:08 +00002185{ echo "$as_me:$LINENO: checking host system type" >&5
2186echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002187if test "${ac_cv_host+set}" = set; then
2188 echo $ECHO_N "(cached) $ECHO_C" >&6
2189else
Reid Spencera773bd52006-08-04 18:18:08 +00002190 if test "x$host_alias" = x; then
2191 ac_cv_host=$ac_cv_build
2192else
2193 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2194 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2195echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002196 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002197fi
John Criswell7a73b802003-06-30 21:59:07 +00002198
2199fi
Reid Spencera773bd52006-08-04 18:18:08 +00002200{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2201echo "${ECHO_T}$ac_cv_host" >&6; }
2202case $ac_cv_host in
2203*-*-*) ;;
2204*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2205echo "$as_me: error: invalid value of canonical host" >&2;}
2206 { (exit 1); exit 1; }; };;
2207esac
John Criswell7a73b802003-06-30 21:59:07 +00002208host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002209ac_save_IFS=$IFS; IFS='-'
2210set x $ac_cv_host
2211shift
2212host_cpu=$1
2213host_vendor=$2
2214shift; shift
2215# Remember, the first character of IFS is used to create $*,
2216# except with old shells:
2217host_os=$*
2218IFS=$ac_save_IFS
2219case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002220
2221
Reid Spencera773bd52006-08-04 18:18:08 +00002222{ echo "$as_me:$LINENO: checking target system type" >&5
2223echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002224if test "${ac_cv_target+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2226else
Reid Spencera773bd52006-08-04 18:18:08 +00002227 if test "x$target_alias" = x; then
2228 ac_cv_target=$ac_cv_host
2229else
2230 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2231 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2232echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002233 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002234fi
John Criswell7a73b802003-06-30 21:59:07 +00002235
2236fi
Reid Spencera773bd52006-08-04 18:18:08 +00002237{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2238echo "${ECHO_T}$ac_cv_target" >&6; }
2239case $ac_cv_target in
2240*-*-*) ;;
2241*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2242echo "$as_me: error: invalid value of canonical target" >&2;}
2243 { (exit 1); exit 1; }; };;
2244esac
John Criswell7a73b802003-06-30 21:59:07 +00002245target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002246ac_save_IFS=$IFS; IFS='-'
2247set x $ac_cv_target
2248shift
2249target_cpu=$1
2250target_vendor=$2
2251shift; shift
2252# Remember, the first character of IFS is used to create $*,
2253# except with old shells:
2254target_os=$*
2255IFS=$ac_save_IFS
2256case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002257
2258
2259# The aliases save the names the user supplied, while $host etc.
2260# will get canonicalized.
2261test -n "$target_alias" &&
2262 test "$program_prefix$program_suffix$program_transform_name" = \
2263 NONENONEs,x,x, &&
2264 program_prefix=${target_alias}-
2265
Reid Spencera773bd52006-08-04 18:18:08 +00002266{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2267echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002268if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002269 echo $ECHO_N "(cached) $ECHO_C" >&6
2270else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002271 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002272 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002273 llvm_cv_link_all_option="-Wl,--whole-archive"
2274 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002275 llvm_cv_os_type="AIX"
2276 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002277 *-*-irix*)
2278 llvm_cv_link_all_option="-Wl,--whole-archive"
2279 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2280 llvm_cv_os_type="IRIX"
2281 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002282 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002283 llvm_cv_link_all_option="-Wl,--whole-archive"
2284 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002285 llvm_cv_os_type="Cygwin"
2286 llvm_cv_platform_type="Unix" ;;
2287 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002288 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002289 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002290 llvm_cv_os_type="Darwin"
2291 llvm_cv_platform_type="Unix" ;;
2292 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002293 llvm_cv_link_all_option="-Wl,--whole-archive"
2294 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002295 llvm_cv_os_type="FreeBSD"
2296 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002297 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002298 llvm_cv_link_all_option="-Wl,--whole-archive"
2299 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002300 llvm_cv_os_type="OpenBSD"
2301 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002302 *-*-netbsd*)
2303 llvm_cv_link_all_option="-Wl,--whole-archive"
2304 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2305 llvm_cv_os_type="NetBSD"
2306 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002307 *-*-dragonfly*)
2308 llvm_cv_link_all_option="-Wl,--whole-archive"
2309 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2310 llvm_cv_os_type="DragonFly"
2311 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002312 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002313 llvm_cv_link_all_option="-Wl,--whole-archive"
2314 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002315 llvm_cv_os_type="HP-UX"
2316 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002317 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002318 llvm_cv_link_all_option="-Wl,--whole-archive"
2319 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002320 llvm_cv_os_type="Interix"
2321 llvm_cv_platform_type="Unix" ;;
2322 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002323 llvm_cv_link_all_option="-Wl,--whole-archive"
2324 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002325 llvm_cv_os_type="Linux"
2326 llvm_cv_platform_type="Unix" ;;
2327 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002328 llvm_cv_link_all_option="-Wl,-z,allextract"
2329 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002330 llvm_cv_os_type="SunOS"
2331 llvm_cv_platform_type="Unix" ;;
2332 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002333 llvm_cv_link_all_option="-Wl,--whole-archive"
2334 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002335 llvm_cv_os_type="Win32"
2336 llvm_cv_platform_type="Win32" ;;
2337 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002338 llvm_cv_link_all_option="-Wl,--whole-archive"
2339 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002340 llvm_cv_os_type="MingW"
2341 llvm_cv_platform_type="Win32" ;;
2342 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002343 llvm_cv_link_all_option=""
2344 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002345 llvm_cv_os_type="Unknown"
2346 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002347esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002348fi
Reid Spencera773bd52006-08-04 18:18:08 +00002349{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2350echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002351
Reid Spencer7b3e8512004-12-24 06:29:05 +00002352if test "$llvm_cv_os_type" = "Unknown" ; then
2353 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2354echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002355 { (exit 1); exit 1; }; }
2356fi
2357
Reid Spencer7b3e8512004-12-24 06:29:05 +00002358OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002359
2360
Reid Spencera773bd52006-08-04 18:18:08 +00002361LINKALL=$llvm_cv_link_all_option
2362
2363NOLINKALL=$llvm_cv_no_link_all_option
2364
2365
Reid Spencer7b3e8512004-12-24 06:29:05 +00002366case $llvm_cv_platform_type in
2367 Unix)
2368
2369cat >>confdefs.h <<\_ACEOF
2370#define LLVM_ON_UNIX 1
2371_ACEOF
2372
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002373 LLVM_ON_UNIX=1
2374
2375 LLVM_ON_WIN32=0
2376
Reid Spencer7b3e8512004-12-24 06:29:05 +00002377 ;;
2378 Win32)
2379
2380cat >>confdefs.h <<\_ACEOF
2381#define LLVM_ON_WIN32 1
2382_ACEOF
2383
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002384 LLVM_ON_UNIX=0
2385
2386 LLVM_ON_WIN32=1
2387
Reid Spencer7b3e8512004-12-24 06:29:05 +00002388 ;;
2389esac
2390
Reid Spencera773bd52006-08-04 18:18:08 +00002391{ echo "$as_me:$LINENO: checking target architecture" >&5
2392echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002393if test "${llvm_cv_target_arch+set}" = set; then
2394 echo $ECHO_N "(cached) $ECHO_C" >&6
2395else
2396 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002397 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002398 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002399 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2400 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002401 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002402 ia64-*) llvm_cv_target_arch="IA64" ;;
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 ;;
4845 IA64) TARGET_HAS_JIT=0
4846 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004847 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004848 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004849 Mips) TARGET_HAS_JIT=0
4850 ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004851 PIC16) TARGET_HAS_JIT=0
4852 ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004853 XCore) TARGET_HAS_JIT=0
4854 ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004855 MSP430) TARGET_HAS_JIT=0
4856 ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004857 SystemZ) TARGET_HAS_JIT=0
4858 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004859 *) TARGET_HAS_JIT=0
4860 ;;
4861 esac
4862fi
4863
4864# Check whether --enable-doxygen was given.
4865if test "${enable_doxygen+set}" = set; then
4866 enableval=$enable_doxygen;
4867else
4868 enableval=default
4869fi
4870
4871case "$enableval" in
4872 yes) ENABLE_DOXYGEN=1
4873 ;;
4874 no) ENABLE_DOXYGEN=0
4875 ;;
4876 default) ENABLE_DOXYGEN=0
4877 ;;
4878 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4879echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4880 { (exit 1); exit 1; }; } ;;
4881esac
4882
4883# Check whether --enable-threads was given.
4884if test "${enable_threads+set}" = set; then
4885 enableval=$enable_threads;
4886else
Reid Spencer65c5d752006-11-05 17:08:18 +00004887 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004888fi
4889
4890case "$enableval" in
4891 yes) ENABLE_THREADS=1
4892 ;;
4893 no) ENABLE_THREADS=0
4894 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004895 default) ENABLE_THREADS=1
4896 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004897 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4898echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4899 { (exit 1); exit 1; }; } ;;
4900esac
4901
Owen Andersona8603702009-05-19 22:18:56 +00004902cat >>confdefs.h <<_ACEOF
4903#define ENABLE_THREADS $ENABLE_THREADS
4904_ACEOF
4905
4906
Reid Spencer89b0d992006-12-16 22:07:52 +00004907# Check whether --enable-pic was given.
4908if test "${enable_pic+set}" = set; then
4909 enableval=$enable_pic;
4910else
4911 enableval=default
4912fi
4913
4914case "$enableval" in
4915 yes) ENABLE_PIC=1
4916 ;;
4917 no) ENABLE_PIC=0
4918 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004919 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004920 ;;
4921 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4922echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4923 { (exit 1); exit 1; }; } ;;
4924esac
4925
4926cat >>confdefs.h <<_ACEOF
4927#define ENABLE_PIC $ENABLE_PIC
4928_ACEOF
4929
4930
Reid Spencera773bd52006-08-04 18:18:08 +00004931TARGETS_TO_BUILD=""
4932# Check whether --enable-targets was given.
4933if test "${enable_targets+set}" = set; then
4934 enableval=$enable_targets;
4935else
4936 enableval=all
4937fi
4938
4939case "$enableval" in
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004940 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore MSP430 SystemZ CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004941 host-only)
4942 case "$llvm_cv_target_arch" in
4943 x86) TARGETS_TO_BUILD="X86" ;;
4944 x86_64) TARGETS_TO_BUILD="X86" ;;
4945 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4946 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4947 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4948 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004949 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004950 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004951 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004952 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004953 XCore) TARGETS_TO_BUILD="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004954 MSP430) TARGETS_TO_BUILD="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004955 SystemZ) TARGETS_TO_BUILD="SystemZ" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004956 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4957echo "$as_me: error: Can not set target to build" >&2;}
4958 { (exit 1); exit 1; }; } ;;
4959 esac
4960 ;;
4961 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4962 case "$a_target" in
4963 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4964 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4965 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4966 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4967 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4968 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004969 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004970 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004971 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004972 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004973 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004974 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004975 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Nate Begeman57b1efb2007-12-13 01:18:52 +00004976 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4977 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner49ff6612008-05-10 04:20:38 +00004978 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004979 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4980echo "$as_me: error: Unrecognized target $a_target" >&2;}
4981 { (exit 1); exit 1; }; } ;;
4982 esac
4983 done
4984 ;;
4985esac
Reid Spencera773bd52006-08-04 18:18:08 +00004986TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4987
4988
Douglas Gregor0711c302009-06-17 00:43:20 +00004989# Determine whether we are building LLVM support for the native architecture.
4990# If so, define LLVM_NATIVE_ARCH to that LLVM target.
4991for a_target in $TARGETS_TO_BUILD; do
4992 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00004993 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00004994
4995cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00004996#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00004997_ACEOF
4998
4999 fi
5000done
5001
Douglas Gregor1555a232009-06-16 20:12:29 +00005002# Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
5003# Targets.def and AsmPrinters.def.
5004LLVM_ENUM_TARGETS=""
5005LLVM_ENUM_ASM_PRINTERS=""
5006for target_to_build in $TARGETS_TO_BUILD; do
5007 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5008 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5009 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5010 fi
5011done
5012
5013
5014
Reid Spencer65c5d752006-11-05 17:08:18 +00005015# Check whether --enable-cbe-printf-a was given.
5016if test "${enable_cbe_printf_a+set}" = set; then
5017 enableval=$enable_cbe_printf_a;
5018else
5019 enableval=default
5020fi
5021
5022case "$enableval" in
5023 yes) ENABLE_CBE_PRINTF_A=1
5024 ;;
5025 no) ENABLE_CBE_PRINTF_A=0
5026 ;;
5027 default) ENABLE_CBE_PRINTF_A=1
5028 ;;
5029 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5030echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5031 { (exit 1); exit 1; }; } ;;
5032esac
5033
5034cat >>confdefs.h <<_ACEOF
5035#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5036_ACEOF
5037
5038
Reid Spencera773bd52006-08-04 18:18:08 +00005039
5040# Check whether --with-llvmgccdir was given.
5041if test "${with_llvmgccdir+set}" = set; then
5042 withval=$with_llvmgccdir;
5043else
5044 withval=default
5045fi
5046
5047case "$withval" in
5048 default) WITH_LLVMGCCDIR=default ;;
5049 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5050 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5051echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5052 { (exit 1); exit 1; }; } ;;
5053esac
5054
5055
Devang Patel5d28b882007-12-04 22:54:47 +00005056# Check whether --with-llvmgcc was given.
5057if test "${with_llvmgcc+set}" = set; then
5058 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5059 WITH_LLVMGCCDIR=""
5060fi
5061
5062
5063
5064# Check whether --with-llvmgxx was given.
5065if test "${with_llvmgxx+set}" = set; then
5066 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5067 WITH_LLVMGCCDIR=""
5068fi
5069
Douglas Gregor01746742009-05-11 18:05:52 +00005070
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005071if test -n "$LLVMGCC"; then
5072 LLVMGCCCOMMAND="$LLVMGCC"
5073fi
5074
5075if test -n "$LLVMGXX"; then
5076 LLVMGXXCOMMAND="$LLVMGXX"
5077fi
Devang Patel5d28b882007-12-04 22:54:47 +00005078
5079if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5080 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5081echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5082 { (exit 1); exit 1; }; };
5083fi
5084
5085if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5086 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5087echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5088 { (exit 1); exit 1; }; };
5089fi
5090
5091
Reid Spencera773bd52006-08-04 18:18:08 +00005092# Check whether --with-extra-options was given.
5093if test "${with_extra_options+set}" = set; then
5094 withval=$with_extra_options;
5095else
5096 withval=default
5097fi
5098
5099case "$withval" in
5100 default) EXTRA_OPTIONS= ;;
5101 *) EXTRA_OPTIONS=$withval ;;
5102esac
5103EXTRA_OPTIONS=$EXTRA_OPTIONS
5104
5105
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005106# Check whether --enable-bindings was given.
5107if test "${enable_bindings+set}" = set; then
5108 enableval=$enable_bindings;
5109else
5110 enableval=default
5111fi
5112
5113BINDINGS_TO_BUILD=""
5114case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005115 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005116 all ) BINDINGS_TO_BUILD="ocaml" ;;
5117 none | no) BINDINGS_TO_BUILD="" ;;
5118 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5119 case "$a_binding" in
5120 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5121 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5122echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5123 { (exit 1); exit 1; }; } ;;
5124 esac
5125 done
5126 ;;
5127esac
5128
Reid Spencera773bd52006-08-04 18:18:08 +00005129
Gordon Henriksenf0915682007-10-02 16:42:22 +00005130# Check whether --with-ocaml-libdir was given.
5131if test "${with_ocaml_libdir+set}" = set; then
5132 withval=$with_ocaml_libdir;
5133else
5134 withval=auto
5135fi
5136
5137case "$withval" in
5138 auto) with_ocaml_libdir="$withval" ;;
5139 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5140 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5141echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5142 { (exit 1); exit 1; }; } ;;
5143esac
5144
5145
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005146# Check whether --with-binutils-include was given.
5147if test "${with_binutils_include+set}" = set; then
5148 withval=$with_binutils_include;
5149else
5150 withval=default
5151fi
5152
5153case "$withval" in
5154 default) WITH_BINUTILS_INCDIR=default ;;
5155 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5156 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5157echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5158 { (exit 1); exit 1; }; } ;;
5159esac
5160if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5161 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5162
5163 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5164 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5165 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5166echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5167 { (exit 1); exit 1; }; };
5168 fi
5169fi
5170
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005171# Check whether --enable-libffi was given.
5172if test "${enable_libffi+set}" = set; then
5173 enableval=$enable_libffi;
5174else
5175 enableval=yes
5176fi
5177
5178case "$enableval" in
5179 yes) llvm_cv_enable_libffi="yes" ;;
5180 no) llvm_cv_enable_libffi="no" ;;
5181 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5182echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5183 { (exit 1); exit 1; }; } ;;
5184esac
5185
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005186if test "$llvm_cv_os_type" = "Win32" ; then
5187 llvmc_dynamic="yes"
5188else
5189 llvmc_dynamic="no"
5190fi
5191
5192# Check whether --enable-llvmc-dynamic was given.
5193if test "${enable_llvmc_dynamic+set}" = set; then
5194 enableval=$enable_llvmc_dynamic;
5195else
5196 enableval=$llvmc_dynamic
5197fi
5198
5199if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5200 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5201
5202else
5203 ENABLE_LLVMC_DYNAMIC=
5204
5205fi
5206
5207# Check whether --enable-llvmc-dynamic-plugins was given.
5208if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5209 enableval=$enable_llvmc_dynamic_plugins;
5210else
5211 enableval=yes
5212fi
5213
5214if test ${enableval} = "yes" ; then
5215 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5216
5217else
5218 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5219
5220fi
5221
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005222
Reid Spencera773bd52006-08-04 18:18:08 +00005223ac_ext=c
5224ac_cpp='$CPP $CPPFLAGS'
5225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5227ac_compiler_gnu=$ac_cv_c_compiler_gnu
5228{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5229echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5230# On Suns, sometimes $CPP names a directory.
5231if test -n "$CPP" && test -d "$CPP"; then
5232 CPP=
5233fi
5234if test -z "$CPP"; then
5235 if test "${ac_cv_prog_CPP+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5237else
5238 # Double quotes because CPP needs to be expanded
5239 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5240 do
5241 ac_preproc_ok=false
5242for ac_c_preproc_warn_flag in '' yes
5243do
5244 # Use a header file that comes with gcc, so configuring glibc
5245 # with a fresh cross-compiler works.
5246 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5247 # <limits.h> exists even on freestanding compilers.
5248 # On the NeXT, cc -E runs the code through the compiler's parser,
5249 # not just through cpp. "Syntax error" is here to catch this case.
5250 cat >conftest.$ac_ext <<_ACEOF
5251/* confdefs.h. */
5252_ACEOF
5253cat confdefs.h >>conftest.$ac_ext
5254cat >>conftest.$ac_ext <<_ACEOF
5255/* end confdefs.h. */
5256#ifdef __STDC__
5257# include <limits.h>
5258#else
5259# include <assert.h>
5260#endif
5261 Syntax error
5262_ACEOF
5263if { (ac_try="$ac_cpp conftest.$ac_ext"
5264case "(($ac_try" in
5265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5266 *) ac_try_echo=$ac_try;;
5267esac
5268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5270 ac_status=$?
5271 grep -v '^ *+' conftest.er1 >conftest.err
5272 rm -f conftest.er1
5273 cat conftest.err >&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005275 (exit $ac_status); } >/dev/null; then
5276 if test -s conftest.err; then
5277 ac_cpp_err=$ac_c_preproc_warn_flag
5278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5279 else
5280 ac_cpp_err=
5281 fi
5282else
5283 ac_cpp_err=yes
5284fi
5285if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005286 :
5287else
5288 echo "$as_me: failed program was:" >&5
5289sed 's/^/| /' conftest.$ac_ext >&5
5290
5291 # Broken: fails on valid input.
5292continue
5293fi
5294
5295rm -f conftest.err conftest.$ac_ext
5296
5297 # OK, works on sane cases. Now check whether nonexistent headers
5298 # can be detected and how.
5299 cat >conftest.$ac_ext <<_ACEOF
5300/* confdefs.h. */
5301_ACEOF
5302cat confdefs.h >>conftest.$ac_ext
5303cat >>conftest.$ac_ext <<_ACEOF
5304/* end confdefs.h. */
5305#include <ac_nonexistent.h>
5306_ACEOF
5307if { (ac_try="$ac_cpp conftest.$ac_ext"
5308case "(($ac_try" in
5309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5310 *) ac_try_echo=$ac_try;;
5311esac
5312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5314 ac_status=$?
5315 grep -v '^ *+' conftest.er1 >conftest.err
5316 rm -f conftest.er1
5317 cat conftest.err >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005319 (exit $ac_status); } >/dev/null; then
5320 if test -s conftest.err; then
5321 ac_cpp_err=$ac_c_preproc_warn_flag
5322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5323 else
5324 ac_cpp_err=
5325 fi
5326else
5327 ac_cpp_err=yes
5328fi
5329if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005330 # Broken: success on invalid input.
5331continue
5332else
5333 echo "$as_me: failed program was:" >&5
5334sed 's/^/| /' conftest.$ac_ext >&5
5335
5336 # Passes both tests.
5337ac_preproc_ok=:
5338break
5339fi
5340
5341rm -f conftest.err conftest.$ac_ext
5342
5343done
5344# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5345rm -f conftest.err conftest.$ac_ext
5346if $ac_preproc_ok; then
5347 break
5348fi
5349
5350 done
5351 ac_cv_prog_CPP=$CPP
5352
5353fi
5354 CPP=$ac_cv_prog_CPP
5355else
5356 ac_cv_prog_CPP=$CPP
5357fi
5358{ echo "$as_me:$LINENO: result: $CPP" >&5
5359echo "${ECHO_T}$CPP" >&6; }
5360ac_preproc_ok=false
5361for ac_c_preproc_warn_flag in '' yes
5362do
5363 # Use a header file that comes with gcc, so configuring glibc
5364 # with a fresh cross-compiler works.
5365 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5366 # <limits.h> exists even on freestanding compilers.
5367 # On the NeXT, cc -E runs the code through the compiler's parser,
5368 # not just through cpp. "Syntax error" is here to catch this case.
5369 cat >conftest.$ac_ext <<_ACEOF
5370/* confdefs.h. */
5371_ACEOF
5372cat confdefs.h >>conftest.$ac_ext
5373cat >>conftest.$ac_ext <<_ACEOF
5374/* end confdefs.h. */
5375#ifdef __STDC__
5376# include <limits.h>
5377#else
5378# include <assert.h>
5379#endif
5380 Syntax error
5381_ACEOF
5382if { (ac_try="$ac_cpp conftest.$ac_ext"
5383case "(($ac_try" in
5384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385 *) ac_try_echo=$ac_try;;
5386esac
5387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5389 ac_status=$?
5390 grep -v '^ *+' conftest.er1 >conftest.err
5391 rm -f conftest.er1
5392 cat conftest.err >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005394 (exit $ac_status); } >/dev/null; then
5395 if test -s conftest.err; then
5396 ac_cpp_err=$ac_c_preproc_warn_flag
5397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5398 else
5399 ac_cpp_err=
5400 fi
5401else
5402 ac_cpp_err=yes
5403fi
5404if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005405 :
5406else
5407 echo "$as_me: failed program was:" >&5
5408sed 's/^/| /' conftest.$ac_ext >&5
5409
5410 # Broken: fails on valid input.
5411continue
5412fi
5413
5414rm -f conftest.err conftest.$ac_ext
5415
5416 # OK, works on sane cases. Now check whether nonexistent headers
5417 # can be detected and how.
5418 cat >conftest.$ac_ext <<_ACEOF
5419/* confdefs.h. */
5420_ACEOF
5421cat confdefs.h >>conftest.$ac_ext
5422cat >>conftest.$ac_ext <<_ACEOF
5423/* end confdefs.h. */
5424#include <ac_nonexistent.h>
5425_ACEOF
5426if { (ac_try="$ac_cpp conftest.$ac_ext"
5427case "(($ac_try" in
5428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5429 *) ac_try_echo=$ac_try;;
5430esac
5431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5433 ac_status=$?
5434 grep -v '^ *+' conftest.er1 >conftest.err
5435 rm -f conftest.er1
5436 cat conftest.err >&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005438 (exit $ac_status); } >/dev/null; then
5439 if test -s conftest.err; then
5440 ac_cpp_err=$ac_c_preproc_warn_flag
5441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5442 else
5443 ac_cpp_err=
5444 fi
5445else
5446 ac_cpp_err=yes
5447fi
5448if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005449 # Broken: success on invalid input.
5450continue
5451else
5452 echo "$as_me: failed program was:" >&5
5453sed 's/^/| /' conftest.$ac_ext >&5
5454
5455 # Passes both tests.
5456ac_preproc_ok=:
5457break
5458fi
5459
5460rm -f conftest.err conftest.$ac_ext
5461
5462done
5463# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5464rm -f conftest.err conftest.$ac_ext
5465if $ac_preproc_ok; then
5466 :
5467else
5468 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5469See \`config.log' for more details." >&5
5470echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5471See \`config.log' for more details." >&2;}
5472 { (exit 1); exit 1; }; }
5473fi
5474
5475ac_ext=c
5476ac_cpp='$CPP $CPPFLAGS'
5477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5479ac_compiler_gnu=$ac_cv_c_compiler_gnu
5480
5481ac_ext=c
5482ac_cpp='$CPP $CPPFLAGS'
5483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5485ac_compiler_gnu=$ac_cv_c_compiler_gnu
5486if test -n "$ac_tool_prefix"; then
5487 for ac_prog in gcc
5488 do
5489 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5490set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5491{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5493if test "${ac_cv_prog_CC+set}" = set; then
5494 echo $ECHO_N "(cached) $ECHO_C" >&6
5495else
5496 if test -n "$CC"; then
5497 ac_cv_prog_CC="$CC" # Let the user override the test.
5498else
5499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5500for as_dir in $PATH
5501do
5502 IFS=$as_save_IFS
5503 test -z "$as_dir" && as_dir=.
5504 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005505 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 +00005506 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5508 break 2
5509 fi
5510done
5511done
5512IFS=$as_save_IFS
5513
5514fi
5515fi
5516CC=$ac_cv_prog_CC
5517if test -n "$CC"; then
5518 { echo "$as_me:$LINENO: result: $CC" >&5
5519echo "${ECHO_T}$CC" >&6; }
5520else
5521 { echo "$as_me:$LINENO: result: no" >&5
5522echo "${ECHO_T}no" >&6; }
5523fi
5524
5525
5526 test -n "$CC" && break
5527 done
5528fi
5529if test -z "$CC"; then
5530 ac_ct_CC=$CC
5531 for ac_prog in gcc
5532do
5533 # Extract the first word of "$ac_prog", so it can be a program name with args.
5534set dummy $ac_prog; ac_word=$2
5535{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5537if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5538 echo $ECHO_N "(cached) $ECHO_C" >&6
5539else
5540 if test -n "$ac_ct_CC"; then
5541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5542else
5543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544for as_dir in $PATH
5545do
5546 IFS=$as_save_IFS
5547 test -z "$as_dir" && as_dir=.
5548 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005549 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 +00005550 ac_cv_prog_ac_ct_CC="$ac_prog"
5551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5552 break 2
5553 fi
5554done
5555done
5556IFS=$as_save_IFS
5557
5558fi
5559fi
5560ac_ct_CC=$ac_cv_prog_ac_ct_CC
5561if test -n "$ac_ct_CC"; then
5562 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5563echo "${ECHO_T}$ac_ct_CC" >&6; }
5564else
5565 { echo "$as_me:$LINENO: result: no" >&5
5566echo "${ECHO_T}no" >&6; }
5567fi
5568
5569
5570 test -n "$ac_ct_CC" && break
5571done
5572
5573 if test "x$ac_ct_CC" = x; then
5574 CC=""
5575 else
5576 case $cross_compiling:$ac_tool_warned in
5577yes:)
5578{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5579whose name does not start with the host triplet. If you think this
5580configuration is useful to you, please write to autoconf@gnu.org." >&5
5581echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5582whose name does not start with the host triplet. If you think this
5583configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5584ac_tool_warned=yes ;;
5585esac
5586 CC=$ac_ct_CC
5587 fi
5588fi
5589
5590
5591test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5592See \`config.log' for more details." >&5
5593echo "$as_me: error: no acceptable C compiler found in \$PATH
5594See \`config.log' for more details." >&2;}
5595 { (exit 1); exit 1; }; }
5596
5597# Provide some information about the compiler.
5598echo "$as_me:$LINENO: checking for C compiler version" >&5
5599ac_compiler=`set X $ac_compile; echo $2`
5600{ (ac_try="$ac_compiler --version >&5"
5601case "(($ac_try" in
5602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603 *) ac_try_echo=$ac_try;;
5604esac
5605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606 (eval "$ac_compiler --version >&5") 2>&5
5607 ac_status=$?
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); }
5610{ (ac_try="$ac_compiler -v >&5"
5611case "(($ac_try" in
5612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5613 *) ac_try_echo=$ac_try;;
5614esac
5615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5616 (eval "$ac_compiler -v >&5") 2>&5
5617 ac_status=$?
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); }
5620{ (ac_try="$ac_compiler -V >&5"
5621case "(($ac_try" in
5622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623 *) ac_try_echo=$ac_try;;
5624esac
5625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5626 (eval "$ac_compiler -V >&5") 2>&5
5627 ac_status=$?
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); }
5630
5631{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5632echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5633if test "${ac_cv_c_compiler_gnu+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5635else
5636 cat >conftest.$ac_ext <<_ACEOF
5637/* confdefs.h. */
5638_ACEOF
5639cat confdefs.h >>conftest.$ac_ext
5640cat >>conftest.$ac_ext <<_ACEOF
5641/* end confdefs.h. */
5642
5643int
5644main ()
5645{
5646#ifndef __GNUC__
5647 choke me
5648#endif
5649
5650 ;
5651 return 0;
5652}
5653_ACEOF
5654rm -f conftest.$ac_objext
5655if { (ac_try="$ac_compile"
5656case "(($ac_try" in
5657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5658 *) ac_try_echo=$ac_try;;
5659esac
5660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661 (eval "$ac_compile") 2>conftest.er1
5662 ac_status=$?
5663 grep -v '^ *+' conftest.er1 >conftest.err
5664 rm -f conftest.er1
5665 cat conftest.err >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005667 (exit $ac_status); } &&
5668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5669 { (case "(($ac_try" in
5670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671 *) ac_try_echo=$ac_try;;
5672esac
5673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674 (eval "$ac_try") 2>&5
5675 ac_status=$?
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; } &&
5678 { ac_try='test -s conftest.$ac_objext'
5679 { (case "(($ac_try" in
5680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5681 *) ac_try_echo=$ac_try;;
5682esac
5683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5684 (eval "$ac_try") 2>&5
5685 ac_status=$?
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005688 ac_compiler_gnu=yes
5689else
5690 echo "$as_me: failed program was:" >&5
5691sed 's/^/| /' conftest.$ac_ext >&5
5692
5693 ac_compiler_gnu=no
5694fi
5695
5696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697ac_cv_c_compiler_gnu=$ac_compiler_gnu
5698
5699fi
5700{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5701echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5702GCC=`test $ac_compiler_gnu = yes && echo yes`
5703ac_test_CFLAGS=${CFLAGS+set}
5704ac_save_CFLAGS=$CFLAGS
5705{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5706echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5707if test "${ac_cv_prog_cc_g+set}" = set; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
5709else
5710 ac_save_c_werror_flag=$ac_c_werror_flag
5711 ac_c_werror_flag=yes
5712 ac_cv_prog_cc_g=no
5713 CFLAGS="-g"
5714 cat >conftest.$ac_ext <<_ACEOF
5715/* confdefs.h. */
5716_ACEOF
5717cat confdefs.h >>conftest.$ac_ext
5718cat >>conftest.$ac_ext <<_ACEOF
5719/* end confdefs.h. */
5720
5721int
5722main ()
5723{
5724
5725 ;
5726 return 0;
5727}
5728_ACEOF
5729rm -f conftest.$ac_objext
5730if { (ac_try="$ac_compile"
5731case "(($ac_try" in
5732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5733 *) ac_try_echo=$ac_try;;
5734esac
5735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5736 (eval "$ac_compile") 2>conftest.er1
5737 ac_status=$?
5738 grep -v '^ *+' conftest.er1 >conftest.err
5739 rm -f conftest.er1
5740 cat conftest.err >&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005742 (exit $ac_status); } &&
5743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5744 { (case "(($ac_try" in
5745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5746 *) ac_try_echo=$ac_try;;
5747esac
5748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5749 (eval "$ac_try") 2>&5
5750 ac_status=$?
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); }; } &&
5753 { ac_try='test -s conftest.$ac_objext'
5754 { (case "(($ac_try" in
5755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5756 *) ac_try_echo=$ac_try;;
5757esac
5758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5759 (eval "$ac_try") 2>&5
5760 ac_status=$?
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005763 ac_cv_prog_cc_g=yes
5764else
5765 echo "$as_me: failed program was:" >&5
5766sed 's/^/| /' conftest.$ac_ext >&5
5767
5768 CFLAGS=""
5769 cat >conftest.$ac_ext <<_ACEOF
5770/* confdefs.h. */
5771_ACEOF
5772cat confdefs.h >>conftest.$ac_ext
5773cat >>conftest.$ac_ext <<_ACEOF
5774/* end confdefs.h. */
5775
5776int
5777main ()
5778{
5779
5780 ;
5781 return 0;
5782}
5783_ACEOF
5784rm -f conftest.$ac_objext
5785if { (ac_try="$ac_compile"
5786case "(($ac_try" in
5787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5788 *) ac_try_echo=$ac_try;;
5789esac
5790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5791 (eval "$ac_compile") 2>conftest.er1
5792 ac_status=$?
5793 grep -v '^ *+' conftest.er1 >conftest.err
5794 rm -f conftest.er1
5795 cat conftest.err >&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005797 (exit $ac_status); } &&
5798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5799 { (case "(($ac_try" in
5800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801 *) ac_try_echo=$ac_try;;
5802esac
5803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5804 (eval "$ac_try") 2>&5
5805 ac_status=$?
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); }; } &&
5808 { ac_try='test -s conftest.$ac_objext'
5809 { (case "(($ac_try" in
5810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811 *) ac_try_echo=$ac_try;;
5812esac
5813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5814 (eval "$ac_try") 2>&5
5815 ac_status=$?
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005818 :
5819else
5820 echo "$as_me: failed program was:" >&5
5821sed 's/^/| /' conftest.$ac_ext >&5
5822
5823 ac_c_werror_flag=$ac_save_c_werror_flag
5824 CFLAGS="-g"
5825 cat >conftest.$ac_ext <<_ACEOF
5826/* confdefs.h. */
5827_ACEOF
5828cat confdefs.h >>conftest.$ac_ext
5829cat >>conftest.$ac_ext <<_ACEOF
5830/* end confdefs.h. */
5831
5832int
5833main ()
5834{
5835
5836 ;
5837 return 0;
5838}
5839_ACEOF
5840rm -f conftest.$ac_objext
5841if { (ac_try="$ac_compile"
5842case "(($ac_try" in
5843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5844 *) ac_try_echo=$ac_try;;
5845esac
5846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847 (eval "$ac_compile") 2>conftest.er1
5848 ac_status=$?
5849 grep -v '^ *+' conftest.er1 >conftest.err
5850 rm -f conftest.er1
5851 cat conftest.err >&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005853 (exit $ac_status); } &&
5854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5855 { (case "(($ac_try" in
5856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857 *) ac_try_echo=$ac_try;;
5858esac
5859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5860 (eval "$ac_try") 2>&5
5861 ac_status=$?
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); }; } &&
5864 { ac_try='test -s conftest.$ac_objext'
5865 { (case "(($ac_try" in
5866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5867 *) ac_try_echo=$ac_try;;
5868esac
5869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5870 (eval "$ac_try") 2>&5
5871 ac_status=$?
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005874 ac_cv_prog_cc_g=yes
5875else
5876 echo "$as_me: failed program was:" >&5
5877sed 's/^/| /' conftest.$ac_ext >&5
5878
5879
5880fi
5881
5882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883fi
5884
5885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5886fi
5887
5888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889 ac_c_werror_flag=$ac_save_c_werror_flag
5890fi
5891{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5892echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5893if test "$ac_test_CFLAGS" = set; then
5894 CFLAGS=$ac_save_CFLAGS
5895elif test $ac_cv_prog_cc_g = yes; then
5896 if test "$GCC" = yes; then
5897 CFLAGS="-g -O2"
5898 else
5899 CFLAGS="-g"
5900 fi
5901else
5902 if test "$GCC" = yes; then
5903 CFLAGS="-O2"
5904 else
5905 CFLAGS=
5906 fi
5907fi
5908{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5909echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5910if test "${ac_cv_prog_cc_c89+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5912else
5913 ac_cv_prog_cc_c89=no
5914ac_save_CC=$CC
5915cat >conftest.$ac_ext <<_ACEOF
5916/* confdefs.h. */
5917_ACEOF
5918cat confdefs.h >>conftest.$ac_ext
5919cat >>conftest.$ac_ext <<_ACEOF
5920/* end confdefs.h. */
5921#include <stdarg.h>
5922#include <stdio.h>
5923#include <sys/types.h>
5924#include <sys/stat.h>
5925/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5926struct buf { int x; };
5927FILE * (*rcsopen) (struct buf *, struct stat *, int);
5928static char *e (p, i)
5929 char **p;
5930 int i;
5931{
5932 return p[i];
5933}
5934static char *f (char * (*g) (char **, int), char **p, ...)
5935{
5936 char *s;
5937 va_list v;
5938 va_start (v,p);
5939 s = g (p, va_arg (v,int));
5940 va_end (v);
5941 return s;
5942}
5943
5944/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5945 function prototypes and stuff, but not '\xHH' hex character constants.
5946 These don't provoke an error unfortunately, instead are silently treated
5947 as 'x'. The following induces an error, until -std is added to get
5948 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5949 array size at least. It's necessary to write '\x00'==0 to get something
5950 that's true only with -std. */
5951int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5952
5953/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5954 inside strings and character constants. */
5955#define FOO(x) 'x'
5956int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5957
5958int test (int i, double x);
5959struct s1 {int (*f) (int a);};
5960struct s2 {int (*f) (double a);};
5961int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5962int argc;
5963char **argv;
5964int
5965main ()
5966{
5967return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5968 ;
5969 return 0;
5970}
5971_ACEOF
5972for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5973 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5974do
5975 CC="$ac_save_CC $ac_arg"
5976 rm -f conftest.$ac_objext
5977if { (ac_try="$ac_compile"
5978case "(($ac_try" in
5979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5980 *) ac_try_echo=$ac_try;;
5981esac
5982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5983 (eval "$ac_compile") 2>conftest.er1
5984 ac_status=$?
5985 grep -v '^ *+' conftest.er1 >conftest.err
5986 rm -f conftest.er1
5987 cat conftest.err >&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005989 (exit $ac_status); } &&
5990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5991 { (case "(($ac_try" in
5992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5993 *) ac_try_echo=$ac_try;;
5994esac
5995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5996 (eval "$ac_try") 2>&5
5997 ac_status=$?
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; } &&
6000 { ac_try='test -s conftest.$ac_objext'
6001 { (case "(($ac_try" in
6002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003 *) ac_try_echo=$ac_try;;
6004esac
6005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6006 (eval "$ac_try") 2>&5
6007 ac_status=$?
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006010 ac_cv_prog_cc_c89=$ac_arg
6011else
6012 echo "$as_me: failed program was:" >&5
6013sed 's/^/| /' conftest.$ac_ext >&5
6014
6015
6016fi
6017
6018rm -f core conftest.err conftest.$ac_objext
6019 test "x$ac_cv_prog_cc_c89" != "xno" && break
6020done
6021rm -f conftest.$ac_ext
6022CC=$ac_save_CC
6023
6024fi
6025# AC_CACHE_VAL
6026case "x$ac_cv_prog_cc_c89" in
6027 x)
6028 { echo "$as_me:$LINENO: result: none needed" >&5
6029echo "${ECHO_T}none needed" >&6; } ;;
6030 xno)
6031 { echo "$as_me:$LINENO: result: unsupported" >&5
6032echo "${ECHO_T}unsupported" >&6; } ;;
6033 *)
6034 CC="$CC $ac_cv_prog_cc_c89"
6035 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6036echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6037esac
6038
6039
6040ac_ext=c
6041ac_cpp='$CPP $CPPFLAGS'
6042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6044ac_compiler_gnu=$ac_cv_c_compiler_gnu
6045
6046ac_ext=cpp
6047ac_cpp='$CXXCPP $CPPFLAGS'
6048ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6049ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6050ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6051if test -z "$CXX"; then
6052 if test -n "$CCC"; then
6053 CXX=$CCC
6054 else
6055 if test -n "$ac_tool_prefix"; then
6056 for ac_prog in g++
6057 do
6058 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6059set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6060{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6062if test "${ac_cv_prog_CXX+set}" = set; then
6063 echo $ECHO_N "(cached) $ECHO_C" >&6
6064else
6065 if test -n "$CXX"; then
6066 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6067else
6068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069for as_dir in $PATH
6070do
6071 IFS=$as_save_IFS
6072 test -z "$as_dir" && as_dir=.
6073 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006074 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 +00006075 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6077 break 2
6078 fi
6079done
6080done
6081IFS=$as_save_IFS
6082
6083fi
6084fi
6085CXX=$ac_cv_prog_CXX
6086if test -n "$CXX"; then
6087 { echo "$as_me:$LINENO: result: $CXX" >&5
6088echo "${ECHO_T}$CXX" >&6; }
6089else
6090 { echo "$as_me:$LINENO: result: no" >&5
6091echo "${ECHO_T}no" >&6; }
6092fi
6093
6094
6095 test -n "$CXX" && break
6096 done
6097fi
6098if test -z "$CXX"; then
6099 ac_ct_CXX=$CXX
6100 for ac_prog in g++
6101do
6102 # Extract the first word of "$ac_prog", so it can be a program name with args.
6103set dummy $ac_prog; ac_word=$2
6104{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6106if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6108else
6109 if test -n "$ac_ct_CXX"; then
6110 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6111else
6112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113for as_dir in $PATH
6114do
6115 IFS=$as_save_IFS
6116 test -z "$as_dir" && as_dir=.
6117 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006118 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 +00006119 ac_cv_prog_ac_ct_CXX="$ac_prog"
6120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6121 break 2
6122 fi
6123done
6124done
6125IFS=$as_save_IFS
6126
6127fi
6128fi
6129ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6130if test -n "$ac_ct_CXX"; then
6131 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6132echo "${ECHO_T}$ac_ct_CXX" >&6; }
6133else
6134 { echo "$as_me:$LINENO: result: no" >&5
6135echo "${ECHO_T}no" >&6; }
6136fi
6137
6138
6139 test -n "$ac_ct_CXX" && break
6140done
6141
6142 if test "x$ac_ct_CXX" = x; then
6143 CXX="g++"
6144 else
6145 case $cross_compiling:$ac_tool_warned in
6146yes:)
6147{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6148whose name does not start with the host triplet. If you think this
6149configuration is useful to you, please write to autoconf@gnu.org." >&5
6150echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6151whose name does not start with the host triplet. If you think this
6152configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6153ac_tool_warned=yes ;;
6154esac
6155 CXX=$ac_ct_CXX
6156 fi
6157fi
6158
6159 fi
6160fi
6161# Provide some information about the compiler.
6162echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6163ac_compiler=`set X $ac_compile; echo $2`
6164{ (ac_try="$ac_compiler --version >&5"
6165case "(($ac_try" in
6166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6167 *) ac_try_echo=$ac_try;;
6168esac
6169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6170 (eval "$ac_compiler --version >&5") 2>&5
6171 ac_status=$?
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); }
6174{ (ac_try="$ac_compiler -v >&5"
6175case "(($ac_try" in
6176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6177 *) ac_try_echo=$ac_try;;
6178esac
6179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6180 (eval "$ac_compiler -v >&5") 2>&5
6181 ac_status=$?
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); }
6184{ (ac_try="$ac_compiler -V >&5"
6185case "(($ac_try" in
6186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6187 *) ac_try_echo=$ac_try;;
6188esac
6189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6190 (eval "$ac_compiler -V >&5") 2>&5
6191 ac_status=$?
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); }
6194
6195{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6196echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6197if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6199else
6200 cat >conftest.$ac_ext <<_ACEOF
6201/* confdefs.h. */
6202_ACEOF
6203cat confdefs.h >>conftest.$ac_ext
6204cat >>conftest.$ac_ext <<_ACEOF
6205/* end confdefs.h. */
6206
6207int
6208main ()
6209{
6210#ifndef __GNUC__
6211 choke me
6212#endif
6213
6214 ;
6215 return 0;
6216}
6217_ACEOF
6218rm -f conftest.$ac_objext
6219if { (ac_try="$ac_compile"
6220case "(($ac_try" in
6221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6222 *) ac_try_echo=$ac_try;;
6223esac
6224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6225 (eval "$ac_compile") 2>conftest.er1
6226 ac_status=$?
6227 grep -v '^ *+' conftest.er1 >conftest.err
6228 rm -f conftest.er1
6229 cat conftest.err >&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006231 (exit $ac_status); } &&
6232 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6233 { (case "(($ac_try" in
6234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235 *) ac_try_echo=$ac_try;;
6236esac
6237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6238 (eval "$ac_try") 2>&5
6239 ac_status=$?
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; } &&
6242 { ac_try='test -s conftest.$ac_objext'
6243 { (case "(($ac_try" in
6244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6245 *) ac_try_echo=$ac_try;;
6246esac
6247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6248 (eval "$ac_try") 2>&5
6249 ac_status=$?
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006252 ac_compiler_gnu=yes
6253else
6254 echo "$as_me: failed program was:" >&5
6255sed 's/^/| /' conftest.$ac_ext >&5
6256
6257 ac_compiler_gnu=no
6258fi
6259
6260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6261ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6262
6263fi
6264{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6265echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6266GXX=`test $ac_compiler_gnu = yes && echo yes`
6267ac_test_CXXFLAGS=${CXXFLAGS+set}
6268ac_save_CXXFLAGS=$CXXFLAGS
6269{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6270echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6271if test "${ac_cv_prog_cxx_g+set}" = set; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
6273else
6274 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6275 ac_cxx_werror_flag=yes
6276 ac_cv_prog_cxx_g=no
6277 CXXFLAGS="-g"
6278 cat >conftest.$ac_ext <<_ACEOF
6279/* confdefs.h. */
6280_ACEOF
6281cat confdefs.h >>conftest.$ac_ext
6282cat >>conftest.$ac_ext <<_ACEOF
6283/* end confdefs.h. */
6284
6285int
6286main ()
6287{
6288
6289 ;
6290 return 0;
6291}
6292_ACEOF
6293rm -f conftest.$ac_objext
6294if { (ac_try="$ac_compile"
6295case "(($ac_try" in
6296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6297 *) ac_try_echo=$ac_try;;
6298esac
6299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6300 (eval "$ac_compile") 2>conftest.er1
6301 ac_status=$?
6302 grep -v '^ *+' conftest.er1 >conftest.err
6303 rm -f conftest.er1
6304 cat conftest.err >&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006306 (exit $ac_status); } &&
6307 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6308 { (case "(($ac_try" in
6309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310 *) ac_try_echo=$ac_try;;
6311esac
6312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6313 (eval "$ac_try") 2>&5
6314 ac_status=$?
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; } &&
6317 { ac_try='test -s conftest.$ac_objext'
6318 { (case "(($ac_try" in
6319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320 *) ac_try_echo=$ac_try;;
6321esac
6322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323 (eval "$ac_try") 2>&5
6324 ac_status=$?
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006327 ac_cv_prog_cxx_g=yes
6328else
6329 echo "$as_me: failed program was:" >&5
6330sed 's/^/| /' conftest.$ac_ext >&5
6331
6332 CXXFLAGS=""
6333 cat >conftest.$ac_ext <<_ACEOF
6334/* confdefs.h. */
6335_ACEOF
6336cat confdefs.h >>conftest.$ac_ext
6337cat >>conftest.$ac_ext <<_ACEOF
6338/* end confdefs.h. */
6339
6340int
6341main ()
6342{
6343
6344 ;
6345 return 0;
6346}
6347_ACEOF
6348rm -f conftest.$ac_objext
6349if { (ac_try="$ac_compile"
6350case "(($ac_try" in
6351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6352 *) ac_try_echo=$ac_try;;
6353esac
6354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6355 (eval "$ac_compile") 2>conftest.er1
6356 ac_status=$?
6357 grep -v '^ *+' conftest.er1 >conftest.err
6358 rm -f conftest.er1
6359 cat conftest.err >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006361 (exit $ac_status); } &&
6362 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6363 { (case "(($ac_try" in
6364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6365 *) ac_try_echo=$ac_try;;
6366esac
6367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6368 (eval "$ac_try") 2>&5
6369 ac_status=$?
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); }; } &&
6372 { ac_try='test -s conftest.$ac_objext'
6373 { (case "(($ac_try" in
6374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6375 *) ac_try_echo=$ac_try;;
6376esac
6377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6378 (eval "$ac_try") 2>&5
6379 ac_status=$?
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006382 :
6383else
6384 echo "$as_me: failed program was:" >&5
6385sed 's/^/| /' conftest.$ac_ext >&5
6386
6387 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6388 CXXFLAGS="-g"
6389 cat >conftest.$ac_ext <<_ACEOF
6390/* confdefs.h. */
6391_ACEOF
6392cat confdefs.h >>conftest.$ac_ext
6393cat >>conftest.$ac_ext <<_ACEOF
6394/* end confdefs.h. */
6395
6396int
6397main ()
6398{
6399
6400 ;
6401 return 0;
6402}
6403_ACEOF
6404rm -f conftest.$ac_objext
6405if { (ac_try="$ac_compile"
6406case "(($ac_try" in
6407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6408 *) ac_try_echo=$ac_try;;
6409esac
6410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6411 (eval "$ac_compile") 2>conftest.er1
6412 ac_status=$?
6413 grep -v '^ *+' conftest.er1 >conftest.err
6414 rm -f conftest.er1
6415 cat conftest.err >&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006417 (exit $ac_status); } &&
6418 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6419 { (case "(($ac_try" in
6420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6421 *) ac_try_echo=$ac_try;;
6422esac
6423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424 (eval "$ac_try") 2>&5
6425 ac_status=$?
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; } &&
6428 { ac_try='test -s conftest.$ac_objext'
6429 { (case "(($ac_try" in
6430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6431 *) ac_try_echo=$ac_try;;
6432esac
6433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6434 (eval "$ac_try") 2>&5
6435 ac_status=$?
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006438 ac_cv_prog_cxx_g=yes
6439else
6440 echo "$as_me: failed program was:" >&5
6441sed 's/^/| /' conftest.$ac_ext >&5
6442
6443
6444fi
6445
6446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6447fi
6448
6449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6450fi
6451
6452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6453 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6454fi
6455{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6456echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6457if test "$ac_test_CXXFLAGS" = set; then
6458 CXXFLAGS=$ac_save_CXXFLAGS
6459elif test $ac_cv_prog_cxx_g = yes; then
6460 if test "$GXX" = yes; then
6461 CXXFLAGS="-g -O2"
6462 else
6463 CXXFLAGS="-g"
6464 fi
6465else
6466 if test "$GXX" = yes; then
6467 CXXFLAGS="-O2"
6468 else
6469 CXXFLAGS=
6470 fi
6471fi
6472ac_ext=c
6473ac_cpp='$CPP $CPPFLAGS'
6474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6476ac_compiler_gnu=$ac_cv_c_compiler_gnu
6477
Reid Spencera773bd52006-08-04 18:18:08 +00006478
6479{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6480echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6481if test "${lt_cv_path_NM+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6483else
6484 if test -n "$NM"; then
6485 # Let the user override the test.
6486 lt_cv_path_NM="$NM"
6487else
6488 lt_nm_to_check="${ac_tool_prefix}nm"
6489 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6490 lt_nm_to_check="$lt_nm_to_check nm"
6491 fi
6492 for lt_tmp_nm in $lt_nm_to_check; do
6493 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6494 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6495 IFS="$lt_save_ifs"
6496 test -z "$ac_dir" && ac_dir=.
6497 tmp_nm="$ac_dir/$lt_tmp_nm"
6498 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6499 # Check to see if the nm accepts a BSD-compat flag.
6500 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6501 # nm: unknown option "B" ignored
6502 # Tru64's nm complains that /dev/null is an invalid object file
6503 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6504 */dev/null* | *'Invalid file or object type'*)
6505 lt_cv_path_NM="$tmp_nm -B"
6506 break
6507 ;;
6508 *)
6509 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6510 */dev/null*)
6511 lt_cv_path_NM="$tmp_nm -p"
6512 break
6513 ;;
6514 *)
6515 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6516 continue # so that we can try to find one that supports BSD flags
6517 ;;
6518 esac
6519 ;;
6520 esac
6521 fi
6522 done
6523 IFS="$lt_save_ifs"
6524 done
6525 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6526fi
6527fi
6528{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6529echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6530NM="$lt_cv_path_NM"
6531
6532
6533
6534{ echo "$as_me:$LINENO: checking for GNU make" >&5
6535echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6536if test "${llvm_cv_gnu_make_command+set}" = set; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
6538else
6539 llvm_cv_gnu_make_command=''
6540 for a in "$MAKE" make gmake gnumake ; do
6541 if test -z "$a" ; then continue ; fi ;
6542 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6543 then
6544 llvm_cv_gnu_make_command=$a ;
6545 break;
6546 fi
6547 done
6548fi
6549{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6550echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6551 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6552 ifGNUmake='' ;
6553 else
6554 ifGNUmake='#' ;
6555 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6556echo "${ECHO_T}\"Not found\"" >&6; };
6557 fi
6558
6559
6560{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6561echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6562LN_S=$as_ln_s
6563if test "$LN_S" = "ln -s"; then
6564 { echo "$as_me:$LINENO: result: yes" >&5
6565echo "${ECHO_T}yes" >&6; }
6566else
6567 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6568echo "${ECHO_T}no, using $LN_S" >&6; }
6569fi
6570
6571# Extract the first word of "cmp", so it can be a program name with args.
6572set dummy cmp; ac_word=$2
6573{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6575if test "${ac_cv_path_CMP+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6577else
6578 case $CMP in
6579 [\\/]* | ?:[\\/]*)
6580 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6581 ;;
6582 *)
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584for as_dir in $PATH
6585do
6586 IFS=$as_save_IFS
6587 test -z "$as_dir" && as_dir=.
6588 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006589 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 +00006590 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6592 break 2
6593 fi
6594done
6595done
6596IFS=$as_save_IFS
6597
6598 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6599 ;;
6600esac
6601fi
6602CMP=$ac_cv_path_CMP
6603if test -n "$CMP"; then
6604 { echo "$as_me:$LINENO: result: $CMP" >&5
6605echo "${ECHO_T}$CMP" >&6; }
6606else
6607 { echo "$as_me:$LINENO: result: no" >&5
6608echo "${ECHO_T}no" >&6; }
6609fi
6610
6611
6612# Extract the first word of "cp", so it can be a program name with args.
6613set dummy cp; ac_word=$2
6614{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6616if test "${ac_cv_path_CP+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6618else
6619 case $CP in
6620 [\\/]* | ?:[\\/]*)
6621 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6622 ;;
6623 *)
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625for as_dir in $PATH
6626do
6627 IFS=$as_save_IFS
6628 test -z "$as_dir" && as_dir=.
6629 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006630 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 +00006631 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6633 break 2
6634 fi
6635done
6636done
6637IFS=$as_save_IFS
6638
6639 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6640 ;;
6641esac
6642fi
6643CP=$ac_cv_path_CP
6644if test -n "$CP"; then
6645 { echo "$as_me:$LINENO: result: $CP" >&5
6646echo "${ECHO_T}$CP" >&6; }
6647else
6648 { echo "$as_me:$LINENO: result: no" >&5
6649echo "${ECHO_T}no" >&6; }
6650fi
6651
6652
6653# Extract the first word of "date", so it can be a program name with args.
6654set dummy date; ac_word=$2
6655{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6657if test "${ac_cv_path_DATE+set}" = set; then
6658 echo $ECHO_N "(cached) $ECHO_C" >&6
6659else
6660 case $DATE in
6661 [\\/]* | ?:[\\/]*)
6662 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6663 ;;
6664 *)
6665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666for as_dir in $PATH
6667do
6668 IFS=$as_save_IFS
6669 test -z "$as_dir" && as_dir=.
6670 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006671 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 +00006672 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6674 break 2
6675 fi
6676done
6677done
6678IFS=$as_save_IFS
6679
6680 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6681 ;;
6682esac
6683fi
6684DATE=$ac_cv_path_DATE
6685if test -n "$DATE"; then
6686 { echo "$as_me:$LINENO: result: $DATE" >&5
6687echo "${ECHO_T}$DATE" >&6; }
6688else
6689 { echo "$as_me:$LINENO: result: no" >&5
6690echo "${ECHO_T}no" >&6; }
6691fi
6692
6693
6694# Extract the first word of "find", so it can be a program name with args.
6695set dummy find; ac_word=$2
6696{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6698if test "${ac_cv_path_FIND+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6700else
6701 case $FIND in
6702 [\\/]* | ?:[\\/]*)
6703 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6704 ;;
6705 *)
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707for as_dir in $PATH
6708do
6709 IFS=$as_save_IFS
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006712 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 +00006713 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6715 break 2
6716 fi
6717done
6718done
6719IFS=$as_save_IFS
6720
6721 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6722 ;;
6723esac
6724fi
6725FIND=$ac_cv_path_FIND
6726if test -n "$FIND"; then
6727 { echo "$as_me:$LINENO: result: $FIND" >&5
6728echo "${ECHO_T}$FIND" >&6; }
6729else
6730 { echo "$as_me:$LINENO: result: no" >&5
6731echo "${ECHO_T}no" >&6; }
6732fi
6733
6734
6735# Extract the first word of "grep", so it can be a program name with args.
6736set dummy grep; ac_word=$2
6737{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6739if test "${ac_cv_path_GREP+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6741else
6742 case $GREP in
6743 [\\/]* | ?:[\\/]*)
6744 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6745 ;;
6746 *)
6747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748for as_dir in $PATH
6749do
6750 IFS=$as_save_IFS
6751 test -z "$as_dir" && as_dir=.
6752 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006753 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 +00006754 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6756 break 2
6757 fi
6758done
6759done
6760IFS=$as_save_IFS
6761
6762 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6763 ;;
6764esac
6765fi
6766GREP=$ac_cv_path_GREP
6767if test -n "$GREP"; then
6768 { echo "$as_me:$LINENO: result: $GREP" >&5
6769echo "${ECHO_T}$GREP" >&6; }
6770else
6771 { echo "$as_me:$LINENO: result: no" >&5
6772echo "${ECHO_T}no" >&6; }
6773fi
6774
6775
6776# Extract the first word of "mkdir", so it can be a program name with args.
6777set dummy mkdir; ac_word=$2
6778{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6780if test "${ac_cv_path_MKDIR+set}" = set; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
6782else
6783 case $MKDIR in
6784 [\\/]* | ?:[\\/]*)
6785 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6786 ;;
6787 *)
6788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789for as_dir in $PATH
6790do
6791 IFS=$as_save_IFS
6792 test -z "$as_dir" && as_dir=.
6793 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006794 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 +00006795 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6797 break 2
6798 fi
6799done
6800done
6801IFS=$as_save_IFS
6802
6803 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6804 ;;
6805esac
6806fi
6807MKDIR=$ac_cv_path_MKDIR
6808if test -n "$MKDIR"; then
6809 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6810echo "${ECHO_T}$MKDIR" >&6; }
6811else
6812 { echo "$as_me:$LINENO: result: no" >&5
6813echo "${ECHO_T}no" >&6; }
6814fi
6815
6816
6817# Extract the first word of "mv", so it can be a program name with args.
6818set dummy mv; ac_word=$2
6819{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6821if test "${ac_cv_path_MV+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6823else
6824 case $MV in
6825 [\\/]* | ?:[\\/]*)
6826 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6827 ;;
6828 *)
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830for as_dir in $PATH
6831do
6832 IFS=$as_save_IFS
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006835 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 +00006836 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6838 break 2
6839 fi
6840done
6841done
6842IFS=$as_save_IFS
6843
6844 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6845 ;;
6846esac
6847fi
6848MV=$ac_cv_path_MV
6849if test -n "$MV"; then
6850 { echo "$as_me:$LINENO: result: $MV" >&5
6851echo "${ECHO_T}$MV" >&6; }
6852else
6853 { echo "$as_me:$LINENO: result: no" >&5
6854echo "${ECHO_T}no" >&6; }
6855fi
6856
6857
6858if test -n "$ac_tool_prefix"; then
6859 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6860set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6861{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6863if test "${ac_cv_prog_RANLIB+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6865else
6866 if test -n "$RANLIB"; then
6867 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6868else
6869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870for as_dir in $PATH
6871do
6872 IFS=$as_save_IFS
6873 test -z "$as_dir" && as_dir=.
6874 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006875 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 +00006876 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6878 break 2
6879 fi
6880done
6881done
6882IFS=$as_save_IFS
6883
6884fi
6885fi
6886RANLIB=$ac_cv_prog_RANLIB
6887if test -n "$RANLIB"; then
6888 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6889echo "${ECHO_T}$RANLIB" >&6; }
6890else
6891 { echo "$as_me:$LINENO: result: no" >&5
6892echo "${ECHO_T}no" >&6; }
6893fi
6894
6895
6896fi
6897if test -z "$ac_cv_prog_RANLIB"; then
6898 ac_ct_RANLIB=$RANLIB
6899 # Extract the first word of "ranlib", so it can be a program name with args.
6900set dummy ranlib; ac_word=$2
6901{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6903if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6904 echo $ECHO_N "(cached) $ECHO_C" >&6
6905else
6906 if test -n "$ac_ct_RANLIB"; then
6907 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6908else
6909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910for as_dir in $PATH
6911do
6912 IFS=$as_save_IFS
6913 test -z "$as_dir" && as_dir=.
6914 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006915 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 +00006916 ac_cv_prog_ac_ct_RANLIB="ranlib"
6917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6918 break 2
6919 fi
6920done
6921done
6922IFS=$as_save_IFS
6923
6924fi
6925fi
6926ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6927if test -n "$ac_ct_RANLIB"; then
6928 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6929echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6930else
6931 { echo "$as_me:$LINENO: result: no" >&5
6932echo "${ECHO_T}no" >&6; }
6933fi
6934
6935 if test "x$ac_ct_RANLIB" = x; then
6936 RANLIB=":"
6937 else
6938 case $cross_compiling:$ac_tool_warned in
6939yes:)
6940{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6941whose name does not start with the host triplet. If you think this
6942configuration is useful to you, please write to autoconf@gnu.org." >&5
6943echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6944whose name does not start with the host triplet. If you think this
6945configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6946ac_tool_warned=yes ;;
6947esac
6948 RANLIB=$ac_ct_RANLIB
6949 fi
6950else
6951 RANLIB="$ac_cv_prog_RANLIB"
6952fi
6953
6954# Extract the first word of "rm", so it can be a program name with args.
6955set dummy rm; ac_word=$2
6956{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6958if test "${ac_cv_path_RM+set}" = set; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6960else
6961 case $RM in
6962 [\\/]* | ?:[\\/]*)
6963 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6964 ;;
6965 *)
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967for as_dir in $PATH
6968do
6969 IFS=$as_save_IFS
6970 test -z "$as_dir" && as_dir=.
6971 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006972 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 +00006973 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6975 break 2
6976 fi
6977done
6978done
6979IFS=$as_save_IFS
6980
6981 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6982 ;;
6983esac
6984fi
6985RM=$ac_cv_path_RM
6986if test -n "$RM"; then
6987 { echo "$as_me:$LINENO: result: $RM" >&5
6988echo "${ECHO_T}$RM" >&6; }
6989else
6990 { echo "$as_me:$LINENO: result: no" >&5
6991echo "${ECHO_T}no" >&6; }
6992fi
6993
6994
6995# Extract the first word of "sed", so it can be a program name with args.
6996set dummy sed; ac_word=$2
6997{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6999if test "${ac_cv_path_SED+set}" = set; then
7000 echo $ECHO_N "(cached) $ECHO_C" >&6
7001else
7002 case $SED in
7003 [\\/]* | ?:[\\/]*)
7004 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7005 ;;
7006 *)
7007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008for as_dir in $PATH
7009do
7010 IFS=$as_save_IFS
7011 test -z "$as_dir" && as_dir=.
7012 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007013 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 +00007014 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7016 break 2
7017 fi
7018done
7019done
7020IFS=$as_save_IFS
7021
7022 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7023 ;;
7024esac
7025fi
7026SED=$ac_cv_path_SED
7027if test -n "$SED"; then
7028 { echo "$as_me:$LINENO: result: $SED" >&5
7029echo "${ECHO_T}$SED" >&6; }
7030else
7031 { echo "$as_me:$LINENO: result: no" >&5
7032echo "${ECHO_T}no" >&6; }
7033fi
7034
7035
7036# Extract the first word of "tar", so it can be a program name with args.
7037set dummy tar; ac_word=$2
7038{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7040if test "${ac_cv_path_TAR+set}" = set; then
7041 echo $ECHO_N "(cached) $ECHO_C" >&6
7042else
7043 case $TAR in
7044 [\\/]* | ?:[\\/]*)
7045 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7046 ;;
7047 *)
7048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049for as_dir in $PATH
7050do
7051 IFS=$as_save_IFS
7052 test -z "$as_dir" && as_dir=.
7053 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007054 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 +00007055 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7057 break 2
7058 fi
7059done
7060done
7061IFS=$as_save_IFS
7062
7063 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7064 ;;
7065esac
7066fi
7067TAR=$ac_cv_path_TAR
7068if test -n "$TAR"; then
7069 { echo "$as_me:$LINENO: result: $TAR" >&5
7070echo "${ECHO_T}$TAR" >&6; }
7071else
7072 { echo "$as_me:$LINENO: result: no" >&5
7073echo "${ECHO_T}no" >&6; }
7074fi
7075
7076
7077# Extract the first word of "pwd", so it can be a program name with args.
7078set dummy pwd; ac_word=$2
7079{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7081if test "${ac_cv_path_BINPWD+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7083else
7084 case $BINPWD in
7085 [\\/]* | ?:[\\/]*)
7086 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7087 ;;
7088 *)
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090for as_dir in $PATH
7091do
7092 IFS=$as_save_IFS
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007095 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 +00007096 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7098 break 2
7099 fi
7100done
7101done
7102IFS=$as_save_IFS
7103
7104 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7105 ;;
7106esac
7107fi
7108BINPWD=$ac_cv_path_BINPWD
7109if test -n "$BINPWD"; then
7110 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7111echo "${ECHO_T}$BINPWD" >&6; }
7112else
7113 { echo "$as_me:$LINENO: result: no" >&5
7114echo "${ECHO_T}no" >&6; }
7115fi
7116
7117
7118
7119# Extract the first word of "Graphviz", so it can be a program name with args.
7120set dummy Graphviz; ac_word=$2
7121{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7123if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7125else
7126 case $GRAPHVIZ in
7127 [\\/]* | ?:[\\/]*)
7128 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7129 ;;
7130 *)
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132for as_dir in $PATH
7133do
7134 IFS=$as_save_IFS
7135 test -z "$as_dir" && as_dir=.
7136 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007137 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 +00007138 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7140 break 2
7141 fi
7142done
7143done
7144IFS=$as_save_IFS
7145
7146 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7147 ;;
7148esac
7149fi
7150GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7151if test -n "$GRAPHVIZ"; then
7152 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7153echo "${ECHO_T}$GRAPHVIZ" >&6; }
7154else
7155 { echo "$as_me:$LINENO: result: no" >&5
7156echo "${ECHO_T}no" >&6; }
7157fi
7158
7159
7160if test "$GRAPHVIZ" != "echo Graphviz" ; then
7161
7162cat >>confdefs.h <<\_ACEOF
7163#define HAVE_GRAPHVIZ 1
7164_ACEOF
7165
Jeff Cohen28783c32007-01-12 18:22:38 +00007166 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007167 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7168 fi
7169
7170cat >>confdefs.h <<_ACEOF
7171#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7172_ACEOF
7173
7174fi
7175# Extract the first word of "dot", so it can be a program name with args.
7176set dummy dot; ac_word=$2
7177{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7179if test "${ac_cv_path_DOT+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7181else
7182 case $DOT in
7183 [\\/]* | ?:[\\/]*)
7184 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7185 ;;
7186 *)
7187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188for as_dir in $PATH
7189do
7190 IFS=$as_save_IFS
7191 test -z "$as_dir" && as_dir=.
7192 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007193 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 +00007194 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7196 break 2
7197 fi
7198done
7199done
7200IFS=$as_save_IFS
7201
7202 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7203 ;;
7204esac
7205fi
7206DOT=$ac_cv_path_DOT
7207if test -n "$DOT"; then
7208 { echo "$as_me:$LINENO: result: $DOT" >&5
7209echo "${ECHO_T}$DOT" >&6; }
7210else
7211 { echo "$as_me:$LINENO: result: no" >&5
7212echo "${ECHO_T}no" >&6; }
7213fi
7214
7215
7216if test "$DOT" != "echo dot" ; then
7217
7218cat >>confdefs.h <<\_ACEOF
7219#define HAVE_DOT 1
7220_ACEOF
7221
Jeff Cohen28783c32007-01-12 18:22:38 +00007222 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007223 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7224 fi
7225
7226cat >>confdefs.h <<_ACEOF
7227#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7228_ACEOF
7229
7230fi
David Greenef0b9eff2009-07-09 17:16:26 +00007231# Extract the first word of "fdp", so it can be a program name with args.
7232set dummy fdp; ac_word=$2
7233{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7235if test "${ac_cv_path_FDP+set}" = set; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
7237else
7238 case $FDP in
7239 [\\/]* | ?:[\\/]*)
7240 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7241 ;;
7242 *)
7243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244for as_dir in $PATH
7245do
7246 IFS=$as_save_IFS
7247 test -z "$as_dir" && as_dir=.
7248 for ac_exec_ext in '' $ac_executable_extensions; do
7249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7250 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7252 break 2
7253 fi
7254done
7255done
7256IFS=$as_save_IFS
7257
7258 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7259 ;;
7260esac
7261fi
7262FDP=$ac_cv_path_FDP
7263if test -n "$FDP"; then
7264 { echo "$as_me:$LINENO: result: $FDP" >&5
7265echo "${ECHO_T}$FDP" >&6; }
7266else
7267 { echo "$as_me:$LINENO: result: no" >&5
7268echo "${ECHO_T}no" >&6; }
7269fi
7270
7271
7272if test "$FDP" != "echo fdp" ; then
7273
7274cat >>confdefs.h <<\_ACEOF
7275#define HAVE_FDP 1
7276_ACEOF
7277
7278 if test "$llvm_cv_os_type" = "MingW" ; then
7279 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7280 fi
7281
7282cat >>confdefs.h <<_ACEOF
7283#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7284_ACEOF
7285
7286fi
7287# Extract the first word of "neato", so it can be a program name with args.
7288set dummy neato; ac_word=$2
7289{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7291if test "${ac_cv_path_NEATO+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7293else
7294 case $NEATO in
7295 [\\/]* | ?:[\\/]*)
7296 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7297 ;;
7298 *)
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300for as_dir in $PATH
7301do
7302 IFS=$as_save_IFS
7303 test -z "$as_dir" && as_dir=.
7304 for ac_exec_ext in '' $ac_executable_extensions; do
7305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7306 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7308 break 2
7309 fi
7310done
7311done
7312IFS=$as_save_IFS
7313
7314 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7315 ;;
7316esac
7317fi
7318NEATO=$ac_cv_path_NEATO
7319if test -n "$NEATO"; then
7320 { echo "$as_me:$LINENO: result: $NEATO" >&5
7321echo "${ECHO_T}$NEATO" >&6; }
7322else
7323 { echo "$as_me:$LINENO: result: no" >&5
7324echo "${ECHO_T}no" >&6; }
7325fi
7326
7327
7328if test "$NEATO" != "echo neato" ; then
7329
7330cat >>confdefs.h <<\_ACEOF
7331#define HAVE_NEATO 1
7332_ACEOF
7333
7334 if test "$llvm_cv_os_type" = "MingW" ; then
7335 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7336 fi
7337
7338cat >>confdefs.h <<_ACEOF
7339#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7340_ACEOF
7341
7342fi
7343# Extract the first word of "twopi", so it can be a program name with args.
7344set dummy twopi; ac_word=$2
7345{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7347if test "${ac_cv_path_TWOPI+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7349else
7350 case $TWOPI in
7351 [\\/]* | ?:[\\/]*)
7352 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7353 ;;
7354 *)
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356for as_dir in $PATH
7357do
7358 IFS=$as_save_IFS
7359 test -z "$as_dir" && as_dir=.
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7362 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7364 break 2
7365 fi
7366done
7367done
7368IFS=$as_save_IFS
7369
7370 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7371 ;;
7372esac
7373fi
7374TWOPI=$ac_cv_path_TWOPI
7375if test -n "$TWOPI"; then
7376 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7377echo "${ECHO_T}$TWOPI" >&6; }
7378else
7379 { echo "$as_me:$LINENO: result: no" >&5
7380echo "${ECHO_T}no" >&6; }
7381fi
7382
7383
7384if test "$TWOPI" != "echo twopi" ; then
7385
7386cat >>confdefs.h <<\_ACEOF
7387#define HAVE_TWOPI 1
7388_ACEOF
7389
7390 if test "$llvm_cv_os_type" = "MingW" ; then
7391 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7392 fi
7393
7394cat >>confdefs.h <<_ACEOF
7395#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7396_ACEOF
7397
7398fi
7399# Extract the first word of "circo", so it can be a program name with args.
7400set dummy circo; ac_word=$2
7401{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7403if test "${ac_cv_path_CIRCO+set}" = set; then
7404 echo $ECHO_N "(cached) $ECHO_C" >&6
7405else
7406 case $CIRCO in
7407 [\\/]* | ?:[\\/]*)
7408 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7409 ;;
7410 *)
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412for as_dir in $PATH
7413do
7414 IFS=$as_save_IFS
7415 test -z "$as_dir" && as_dir=.
7416 for ac_exec_ext in '' $ac_executable_extensions; do
7417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7418 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7420 break 2
7421 fi
7422done
7423done
7424IFS=$as_save_IFS
7425
7426 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7427 ;;
7428esac
7429fi
7430CIRCO=$ac_cv_path_CIRCO
7431if test -n "$CIRCO"; then
7432 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7433echo "${ECHO_T}$CIRCO" >&6; }
7434else
7435 { echo "$as_me:$LINENO: result: no" >&5
7436echo "${ECHO_T}no" >&6; }
7437fi
7438
7439
7440if test "$CIRCO" != "echo circo" ; then
7441
7442cat >>confdefs.h <<\_ACEOF
7443#define HAVE_CIRCO 1
7444_ACEOF
7445
7446 if test "$llvm_cv_os_type" = "MingW" ; then
7447 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7448 fi
7449
7450cat >>confdefs.h <<_ACEOF
7451#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7452_ACEOF
7453
7454fi
Reid Spencera773bd52006-08-04 18:18:08 +00007455for ac_prog in gv gsview32
7456do
7457 # Extract the first word of "$ac_prog", so it can be a program name with args.
7458set dummy $ac_prog; ac_word=$2
7459{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7461if test "${ac_cv_path_GV+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7463else
7464 case $GV in
7465 [\\/]* | ?:[\\/]*)
7466 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7467 ;;
7468 *)
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470for as_dir in $PATH
7471do
7472 IFS=$as_save_IFS
7473 test -z "$as_dir" && as_dir=.
7474 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007475 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 +00007476 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 break 2
7479 fi
7480done
7481done
7482IFS=$as_save_IFS
7483
7484 ;;
7485esac
7486fi
7487GV=$ac_cv_path_GV
7488if test -n "$GV"; then
7489 { echo "$as_me:$LINENO: result: $GV" >&5
7490echo "${ECHO_T}$GV" >&6; }
7491else
7492 { echo "$as_me:$LINENO: result: no" >&5
7493echo "${ECHO_T}no" >&6; }
7494fi
7495
7496
7497 test -n "$GV" && break
7498done
7499test -n "$GV" || GV="echo gv"
7500
7501if test "$GV" != "echo gv" ; then
7502
7503cat >>confdefs.h <<\_ACEOF
7504#define HAVE_GV 1
7505_ACEOF
7506
Jeff Cohen28783c32007-01-12 18:22:38 +00007507 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007508 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7509 fi
7510
7511cat >>confdefs.h <<_ACEOF
7512#define LLVM_PATH_GV "$GV${EXEEXT}"
7513_ACEOF
7514
7515fi
7516# Extract the first word of "dotty", so it can be a program name with args.
7517set dummy dotty; ac_word=$2
7518{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7520if test "${ac_cv_path_DOTTY+set}" = set; then
7521 echo $ECHO_N "(cached) $ECHO_C" >&6
7522else
7523 case $DOTTY in
7524 [\\/]* | ?:[\\/]*)
7525 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7526 ;;
7527 *)
7528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529for as_dir in $PATH
7530do
7531 IFS=$as_save_IFS
7532 test -z "$as_dir" && as_dir=.
7533 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007534 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 +00007535 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7537 break 2
7538 fi
7539done
7540done
7541IFS=$as_save_IFS
7542
7543 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7544 ;;
7545esac
7546fi
7547DOTTY=$ac_cv_path_DOTTY
7548if test -n "$DOTTY"; then
7549 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7550echo "${ECHO_T}$DOTTY" >&6; }
7551else
7552 { echo "$as_me:$LINENO: result: no" >&5
7553echo "${ECHO_T}no" >&6; }
7554fi
7555
7556
7557if test "$DOTTY" != "echo dotty" ; then
7558
7559cat >>confdefs.h <<\_ACEOF
7560#define HAVE_DOTTY 1
7561_ACEOF
7562
Jeff Cohen28783c32007-01-12 18:22:38 +00007563 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007564 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7565 fi
7566
7567cat >>confdefs.h <<_ACEOF
7568#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7569_ACEOF
7570
7571fi
7572
7573
7574# Extract the first word of "perl", so it can be a program name with args.
7575set dummy perl; ac_word=$2
7576{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7578if test "${ac_cv_path_PERL+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7580else
7581 case $PERL in
7582 [\\/]* | ?:[\\/]*)
7583 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7584 ;;
7585 *)
7586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587for as_dir in $PATH
7588do
7589 IFS=$as_save_IFS
7590 test -z "$as_dir" && as_dir=.
7591 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007592 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 +00007593 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7595 break 2
7596 fi
7597done
7598done
7599IFS=$as_save_IFS
7600
7601 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7602 ;;
7603esac
7604fi
7605PERL=$ac_cv_path_PERL
7606if test -n "$PERL"; then
7607 { echo "$as_me:$LINENO: result: $PERL" >&5
7608echo "${ECHO_T}$PERL" >&6; }
7609else
7610 { echo "$as_me:$LINENO: result: no" >&5
7611echo "${ECHO_T}no" >&6; }
7612fi
7613
7614
7615if test "$PERL" != "none"; then
7616 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7617echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7618 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7619 { echo "$as_me:$LINENO: result: yes" >&5
7620echo "${ECHO_T}yes" >&6; }
7621 else
7622 PERL=none
7623 { echo "$as_me:$LINENO: result: not found" >&5
7624echo "${ECHO_T}not found" >&6; }
7625 fi
7626fi
7627
7628
7629if test x"$PERL" = xnone; then
7630 HAVE_PERL=0
7631
Reid Spencer59807fa2007-05-17 18:11:03 +00007632 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7633echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7634 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007635else
7636 HAVE_PERL=1
7637
7638fi
7639
7640# Find a good install program. We prefer a C program (faster),
7641# so one script is as good as another. But avoid the broken or
7642# incompatible versions:
7643# SysV /etc/install, /usr/sbin/install
7644# SunOS /usr/etc/install
7645# IRIX /sbin/install
7646# AIX /bin/install
7647# AmigaOS /C/install, which installs bootblocks on floppy discs
7648# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7649# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7650# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7651# OS/2's system install, which has a completely different semantic
7652# ./install, which can be erroneously created by make from ./install.sh.
7653{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7654echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7655if test -z "$INSTALL"; then
7656if test "${ac_cv_path_install+set}" = set; then
7657 echo $ECHO_N "(cached) $ECHO_C" >&6
7658else
7659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660for as_dir in $PATH
7661do
7662 IFS=$as_save_IFS
7663 test -z "$as_dir" && as_dir=.
7664 # Account for people who put trailing slashes in PATH elements.
7665case $as_dir/ in
7666 ./ | .// | /cC/* | \
7667 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7668 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7669 /usr/ucb/* ) ;;
7670 *)
7671 # OSF1 and SCO ODT 3.0 have their own names for install.
7672 # Don't use installbsd from OSF since it installs stuff as root
7673 # by default.
7674 for ac_prog in ginstall scoinst install; do
7675 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007676 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 +00007677 if test $ac_prog = install &&
7678 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7679 # AIX install. It has an incompatible calling convention.
7680 :
7681 elif test $ac_prog = install &&
7682 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7683 # program-specific install script used by HP pwplus--don't use.
7684 :
7685 else
7686 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7687 break 3
7688 fi
7689 fi
7690 done
7691 done
7692 ;;
7693esac
7694done
7695IFS=$as_save_IFS
7696
7697
7698fi
7699 if test "${ac_cv_path_install+set}" = set; then
7700 INSTALL=$ac_cv_path_install
7701 else
7702 # As a last resort, use the slow shell script. Don't cache a
7703 # value for INSTALL within a source directory, because that will
7704 # break other packages using the cache if that directory is
7705 # removed, or if the value is a relative name.
7706 INSTALL=$ac_install_sh
7707 fi
7708fi
7709{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7710echo "${ECHO_T}$INSTALL" >&6; }
7711
7712# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7713# It thinks the first close brace ends the variable substitution.
7714test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7715
7716test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7717
7718test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7719
7720
7721# Extract the first word of "bzip2", so it can be a program name with args.
7722set dummy bzip2; ac_word=$2
7723{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7725if test "${ac_cv_path_BZIP2+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7727else
7728 case $BZIP2 in
7729 [\\/]* | ?:[\\/]*)
7730 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7731 ;;
7732 *)
7733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734for as_dir in $PATH
7735do
7736 IFS=$as_save_IFS
7737 test -z "$as_dir" && as_dir=.
7738 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007739 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 +00007740 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7742 break 2
7743 fi
7744done
7745done
7746IFS=$as_save_IFS
7747
Reid Spencera773bd52006-08-04 18:18:08 +00007748 ;;
7749esac
7750fi
7751BZIP2=$ac_cv_path_BZIP2
7752if test -n "$BZIP2"; then
7753 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7754echo "${ECHO_T}$BZIP2" >&6; }
7755else
7756 { echo "$as_me:$LINENO: result: no" >&5
7757echo "${ECHO_T}no" >&6; }
7758fi
7759
7760
7761# Extract the first word of "doxygen", so it can be a program name with args.
7762set dummy doxygen; ac_word=$2
7763{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7765if test "${ac_cv_path_DOXYGEN+set}" = set; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7767else
7768 case $DOXYGEN in
7769 [\\/]* | ?:[\\/]*)
7770 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7771 ;;
7772 *)
7773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774for as_dir in $PATH
7775do
7776 IFS=$as_save_IFS
7777 test -z "$as_dir" && as_dir=.
7778 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007779 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 +00007780 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7782 break 2
7783 fi
7784done
7785done
7786IFS=$as_save_IFS
7787
Reid Spencera773bd52006-08-04 18:18:08 +00007788 ;;
7789esac
7790fi
7791DOXYGEN=$ac_cv_path_DOXYGEN
7792if test -n "$DOXYGEN"; then
7793 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7794echo "${ECHO_T}$DOXYGEN" >&6; }
7795else
7796 { echo "$as_me:$LINENO: result: no" >&5
7797echo "${ECHO_T}no" >&6; }
7798fi
7799
7800
Reid Spencera773bd52006-08-04 18:18:08 +00007801# Extract the first word of "groff", so it can be a program name with args.
7802set dummy groff; ac_word=$2
7803{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7805if test "${ac_cv_path_GROFF+set}" = set; then
7806 echo $ECHO_N "(cached) $ECHO_C" >&6
7807else
7808 case $GROFF in
7809 [\\/]* | ?:[\\/]*)
7810 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7811 ;;
7812 *)
7813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814for as_dir in $PATH
7815do
7816 IFS=$as_save_IFS
7817 test -z "$as_dir" && as_dir=.
7818 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007819 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 +00007820 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7822 break 2
7823 fi
7824done
7825done
7826IFS=$as_save_IFS
7827
Reid Spencera773bd52006-08-04 18:18:08 +00007828 ;;
7829esac
7830fi
7831GROFF=$ac_cv_path_GROFF
7832if test -n "$GROFF"; then
7833 { echo "$as_me:$LINENO: result: $GROFF" >&5
7834echo "${ECHO_T}$GROFF" >&6; }
7835else
7836 { echo "$as_me:$LINENO: result: no" >&5
7837echo "${ECHO_T}no" >&6; }
7838fi
7839
7840
7841# Extract the first word of "gzip", so it can be a program name with args.
7842set dummy gzip; ac_word=$2
7843{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7845if test "${ac_cv_path_GZIP+set}" = set; then
7846 echo $ECHO_N "(cached) $ECHO_C" >&6
7847else
7848 case $GZIP in
7849 [\\/]* | ?:[\\/]*)
7850 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7851 ;;
7852 *)
7853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854for as_dir in $PATH
7855do
7856 IFS=$as_save_IFS
7857 test -z "$as_dir" && as_dir=.
7858 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007859 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 +00007860 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7862 break 2
7863 fi
7864done
7865done
7866IFS=$as_save_IFS
7867
Reid Spencera773bd52006-08-04 18:18:08 +00007868 ;;
7869esac
7870fi
7871GZIP=$ac_cv_path_GZIP
7872if test -n "$GZIP"; then
7873 { echo "$as_me:$LINENO: result: $GZIP" >&5
7874echo "${ECHO_T}$GZIP" >&6; }
7875else
7876 { echo "$as_me:$LINENO: result: no" >&5
7877echo "${ECHO_T}no" >&6; }
7878fi
7879
7880
7881# Extract the first word of "pod2html", so it can be a program name with args.
7882set dummy pod2html; ac_word=$2
7883{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7885if test "${ac_cv_path_POD2HTML+set}" = set; then
7886 echo $ECHO_N "(cached) $ECHO_C" >&6
7887else
7888 case $POD2HTML in
7889 [\\/]* | ?:[\\/]*)
7890 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7891 ;;
7892 *)
7893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894for as_dir in $PATH
7895do
7896 IFS=$as_save_IFS
7897 test -z "$as_dir" && as_dir=.
7898 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007899 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 +00007900 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7902 break 2
7903 fi
7904done
7905done
7906IFS=$as_save_IFS
7907
Reid Spencera773bd52006-08-04 18:18:08 +00007908 ;;
7909esac
7910fi
7911POD2HTML=$ac_cv_path_POD2HTML
7912if test -n "$POD2HTML"; then
7913 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7914echo "${ECHO_T}$POD2HTML" >&6; }
7915else
7916 { echo "$as_me:$LINENO: result: no" >&5
7917echo "${ECHO_T}no" >&6; }
7918fi
7919
7920
7921# Extract the first word of "pod2man", so it can be a program name with args.
7922set dummy pod2man; ac_word=$2
7923{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7925if test "${ac_cv_path_POD2MAN+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7927else
7928 case $POD2MAN in
7929 [\\/]* | ?:[\\/]*)
7930 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7931 ;;
7932 *)
7933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7934for as_dir in $PATH
7935do
7936 IFS=$as_save_IFS
7937 test -z "$as_dir" && as_dir=.
7938 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007939 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 +00007940 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7942 break 2
7943 fi
7944done
7945done
7946IFS=$as_save_IFS
7947
Reid Spencera773bd52006-08-04 18:18:08 +00007948 ;;
7949esac
7950fi
7951POD2MAN=$ac_cv_path_POD2MAN
7952if test -n "$POD2MAN"; then
7953 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7954echo "${ECHO_T}$POD2MAN" >&6; }
7955else
7956 { echo "$as_me:$LINENO: result: no" >&5
7957echo "${ECHO_T}no" >&6; }
7958fi
7959
7960
7961# Extract the first word of "runtest", so it can be a program name with args.
7962set dummy runtest; ac_word=$2
7963{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7965if test "${ac_cv_path_RUNTEST+set}" = set; then
7966 echo $ECHO_N "(cached) $ECHO_C" >&6
7967else
7968 case $RUNTEST in
7969 [\\/]* | ?:[\\/]*)
7970 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7971 ;;
7972 *)
7973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7974for as_dir in $PATH
7975do
7976 IFS=$as_save_IFS
7977 test -z "$as_dir" && as_dir=.
7978 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007979 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 +00007980 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7982 break 2
7983 fi
7984done
7985done
7986IFS=$as_save_IFS
7987
Reid Spencera773bd52006-08-04 18:18:08 +00007988 ;;
7989esac
7990fi
7991RUNTEST=$ac_cv_path_RUNTEST
7992if test -n "$RUNTEST"; then
7993 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7994echo "${ECHO_T}$RUNTEST" >&6; }
7995else
7996 { echo "$as_me:$LINENO: result: no" >&5
7997echo "${ECHO_T}no" >&6; }
7998fi
7999
8000
8001
8002no_itcl=true
8003{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8004echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8005
8006# Check whether --with-tclinclude was given.
8007if test "${with_tclinclude+set}" = set; then
8008 withval=$with_tclinclude; with_tclinclude=${withval}
8009else
8010 with_tclinclude=''
8011fi
8012
8013if test "${ac_cv_path_tclsh+set}" = set; then
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
8015else
8016
8017if test x"${with_tclinclude}" != x ; then
8018 if test -f ${with_tclinclude}/tclsh ; then
8019 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8020 elif test -f ${with_tclinclude}/src/tclsh ; then
8021 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8022 else
8023 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8024echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8025 { (exit 1); exit 1; }; }
8026 fi
8027fi
8028
8029if test x"${ac_cv_path_tclsh}" = x ; then
8030 { echo "$as_me:$LINENO: result: none" >&5
8031echo "${ECHO_T}none" >&6; }
8032 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
8033do
8034 # Extract the first word of "$ac_prog", so it can be a program name with args.
8035set dummy $ac_prog; ac_word=$2
8036{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8038if test "${ac_cv_path_TCLSH+set}" = set; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8040else
8041 case $TCLSH in
8042 [\\/]* | ?:[\\/]*)
8043 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8044 ;;
8045 *)
8046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8047for as_dir in $PATH
8048do
8049 IFS=$as_save_IFS
8050 test -z "$as_dir" && as_dir=.
8051 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008052 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 +00008053 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8055 break 2
8056 fi
8057done
8058done
8059IFS=$as_save_IFS
8060
8061 ;;
8062esac
8063fi
8064TCLSH=$ac_cv_path_TCLSH
8065if test -n "$TCLSH"; then
8066 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8067echo "${ECHO_T}$TCLSH" >&6; }
8068else
8069 { echo "$as_me:$LINENO: result: no" >&5
8070echo "${ECHO_T}no" >&6; }
8071fi
8072
8073
8074 test -n "$TCLSH" && break
8075done
8076
8077 if test x"${TCLSH}" = x ; then
8078 ac_cv_path_tclsh='';
8079 else
8080 ac_cv_path_tclsh="${TCLSH}";
8081 fi
8082else
8083 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8084echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8085 TCLSH="${ac_cv_path_tclsh}"
8086
8087fi
8088
8089fi
8090
8091# Extract the first word of "zip", so it can be a program name with args.
8092set dummy zip; ac_word=$2
8093{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8095if test "${ac_cv_path_ZIP+set}" = set; then
8096 echo $ECHO_N "(cached) $ECHO_C" >&6
8097else
8098 case $ZIP in
8099 [\\/]* | ?:[\\/]*)
8100 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8101 ;;
8102 *)
8103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8104for as_dir in $PATH
8105do
8106 IFS=$as_save_IFS
8107 test -z "$as_dir" && as_dir=.
8108 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008109 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 +00008110 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8112 break 2
8113 fi
8114done
8115done
8116IFS=$as_save_IFS
8117
Reid Spencera773bd52006-08-04 18:18:08 +00008118 ;;
8119esac
8120fi
8121ZIP=$ac_cv_path_ZIP
8122if test -n "$ZIP"; then
8123 { echo "$as_me:$LINENO: result: $ZIP" >&5
8124echo "${ECHO_T}$ZIP" >&6; }
8125else
8126 { echo "$as_me:$LINENO: result: no" >&5
8127echo "${ECHO_T}no" >&6; }
8128fi
8129
8130
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008131for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008132do
8133 # Extract the first word of "$ac_prog", so it can be a program name with args.
8134set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008135{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8137if test "${ac_cv_path_OCAMLC+set}" = set; then
8138 echo $ECHO_N "(cached) $ECHO_C" >&6
8139else
8140 case $OCAMLC in
8141 [\\/]* | ?:[\\/]*)
8142 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8143 ;;
8144 *)
8145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8146for as_dir in $PATH
8147do
8148 IFS=$as_save_IFS
8149 test -z "$as_dir" && as_dir=.
8150 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008151 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 +00008152 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8154 break 2
8155 fi
8156done
8157done
8158IFS=$as_save_IFS
8159
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008160 ;;
8161esac
8162fi
8163OCAMLC=$ac_cv_path_OCAMLC
8164if test -n "$OCAMLC"; then
8165 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8166echo "${ECHO_T}$OCAMLC" >&6; }
8167else
8168 { echo "$as_me:$LINENO: result: no" >&5
8169echo "${ECHO_T}no" >&6; }
8170fi
8171
8172
Gordon Henriksene7072162008-03-07 18:20:01 +00008173 test -n "$OCAMLC" && break
8174done
8175
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008176for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008177do
8178 # Extract the first word of "$ac_prog", so it can be a program name with args.
8179set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008180{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8182if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8183 echo $ECHO_N "(cached) $ECHO_C" >&6
8184else
8185 case $OCAMLOPT in
8186 [\\/]* | ?:[\\/]*)
8187 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8188 ;;
8189 *)
8190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191for as_dir in $PATH
8192do
8193 IFS=$as_save_IFS
8194 test -z "$as_dir" && as_dir=.
8195 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008196 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 +00008197 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8199 break 2
8200 fi
8201done
8202done
8203IFS=$as_save_IFS
8204
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008205 ;;
8206esac
8207fi
8208OCAMLOPT=$ac_cv_path_OCAMLOPT
8209if test -n "$OCAMLOPT"; then
8210 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8211echo "${ECHO_T}$OCAMLOPT" >&6; }
8212else
8213 { echo "$as_me:$LINENO: result: no" >&5
8214echo "${ECHO_T}no" >&6; }
8215fi
8216
8217
Gordon Henriksene7072162008-03-07 18:20:01 +00008218 test -n "$OCAMLOPT" && break
8219done
8220
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008221for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008222do
8223 # Extract the first word of "$ac_prog", so it can be a program name with args.
8224set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008225{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8227if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8228 echo $ECHO_N "(cached) $ECHO_C" >&6
8229else
8230 case $OCAMLDEP in
8231 [\\/]* | ?:[\\/]*)
8232 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8233 ;;
8234 *)
8235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236for as_dir in $PATH
8237do
8238 IFS=$as_save_IFS
8239 test -z "$as_dir" && as_dir=.
8240 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008241 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 +00008242 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8244 break 2
8245 fi
8246done
8247done
8248IFS=$as_save_IFS
8249
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008250 ;;
8251esac
8252fi
8253OCAMLDEP=$ac_cv_path_OCAMLDEP
8254if test -n "$OCAMLDEP"; then
8255 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8256echo "${ECHO_T}$OCAMLDEP" >&6; }
8257else
8258 { echo "$as_me:$LINENO: result: no" >&5
8259echo "${ECHO_T}no" >&6; }
8260fi
8261
8262
Gordon Henriksene7072162008-03-07 18:20:01 +00008263 test -n "$OCAMLDEP" && break
8264done
8265
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008266for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008267do
8268 # Extract the first word of "$ac_prog", so it can be a program name with args.
8269set dummy $ac_prog; ac_word=$2
8270{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8272if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8273 echo $ECHO_N "(cached) $ECHO_C" >&6
8274else
8275 case $OCAMLDOC in
8276 [\\/]* | ?:[\\/]*)
8277 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8278 ;;
8279 *)
8280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281for as_dir in $PATH
8282do
8283 IFS=$as_save_IFS
8284 test -z "$as_dir" && as_dir=.
8285 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008286 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 +00008287 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8289 break 2
8290 fi
8291done
8292done
8293IFS=$as_save_IFS
8294
8295 ;;
8296esac
8297fi
8298OCAMLDOC=$ac_cv_path_OCAMLDOC
8299if test -n "$OCAMLDOC"; then
8300 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8301echo "${ECHO_T}$OCAMLDOC" >&6; }
8302else
8303 { echo "$as_me:$LINENO: result: no" >&5
8304echo "${ECHO_T}no" >&6; }
8305fi
8306
8307
8308 test -n "$OCAMLDOC" && break
8309done
8310
Torok Edwincc499a42008-10-22 09:56:27 +00008311for ac_prog in gas as
8312do
8313 # Extract the first word of "$ac_prog", so it can be a program name with args.
8314set dummy $ac_prog; ac_word=$2
8315{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8317if test "${ac_cv_path_GAS+set}" = set; then
8318 echo $ECHO_N "(cached) $ECHO_C" >&6
8319else
8320 case $GAS in
8321 [\\/]* | ?:[\\/]*)
8322 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8323 ;;
8324 *)
8325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8326for as_dir in $PATH
8327do
8328 IFS=$as_save_IFS
8329 test -z "$as_dir" && as_dir=.
8330 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008331 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 +00008332 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8334 break 2
8335 fi
8336done
8337done
8338IFS=$as_save_IFS
8339
8340 ;;
8341esac
8342fi
8343GAS=$ac_cv_path_GAS
8344if test -n "$GAS"; then
8345 { echo "$as_me:$LINENO: result: $GAS" >&5
8346echo "${ECHO_T}$GAS" >&6; }
8347else
8348 { echo "$as_me:$LINENO: result: no" >&5
8349echo "${ECHO_T}no" >&6; }
8350fi
8351
8352
8353 test -n "$GAS" && break
8354done
8355
Reid Spencera773bd52006-08-04 18:18:08 +00008356
8357{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8358echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8359if test "${llvm_cv_link_use_r+set}" = set; then
8360 echo $ECHO_N "(cached) $ECHO_C" >&6
8361else
8362 ac_ext=c
8363ac_cpp='$CPP $CPPFLAGS'
8364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8366ac_compiler_gnu=$ac_cv_c_compiler_gnu
8367
8368 oldcflags="$CFLAGS"
8369 CFLAGS="$CFLAGS -Wl,-R."
8370 cat >conftest.$ac_ext <<_ACEOF
8371/* confdefs.h. */
8372_ACEOF
8373cat confdefs.h >>conftest.$ac_ext
8374cat >>conftest.$ac_ext <<_ACEOF
8375/* end confdefs.h. */
8376
8377int
8378main ()
8379{
8380int main() { return 0; }
8381 ;
8382 return 0;
8383}
8384_ACEOF
8385rm -f conftest.$ac_objext conftest$ac_exeext
8386if { (ac_try="$ac_link"
8387case "(($ac_try" in
8388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389 *) ac_try_echo=$ac_try;;
8390esac
8391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8392 (eval "$ac_link") 2>conftest.er1
8393 ac_status=$?
8394 grep -v '^ *+' conftest.er1 >conftest.err
8395 rm -f conftest.er1
8396 cat conftest.err >&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008398 (exit $ac_status); } &&
8399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8400 { (case "(($ac_try" in
8401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402 *) ac_try_echo=$ac_try;;
8403esac
8404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405 (eval "$ac_try") 2>&5
8406 ac_status=$?
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; } &&
8409 { ac_try='test -s conftest$ac_exeext'
8410 { (case "(($ac_try" in
8411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412 *) ac_try_echo=$ac_try;;
8413esac
8414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8415 (eval "$ac_try") 2>&5
8416 ac_status=$?
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008419 llvm_cv_link_use_r=yes
8420else
8421 echo "$as_me: failed program was:" >&5
8422sed 's/^/| /' conftest.$ac_ext >&5
8423
8424 llvm_cv_link_use_r=no
8425fi
8426
Bill Wendlingebcceee2009-04-18 11:20:33 +00008427rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008428 conftest$ac_exeext conftest.$ac_ext
8429 CFLAGS="$oldcflags"
8430 ac_ext=c
8431ac_cpp='$CPP $CPPFLAGS'
8432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8434ac_compiler_gnu=$ac_cv_c_compiler_gnu
8435
8436
8437fi
8438{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8439echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8440if test "$llvm_cv_link_use_r" = yes ; then
8441
8442cat >>confdefs.h <<\_ACEOF
8443#define HAVE_LINK_R 1
8444_ACEOF
8445
8446 fi
8447
8448
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008449{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8450echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8451if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8452 echo $ECHO_N "(cached) $ECHO_C" >&6
8453else
8454 ac_ext=c
8455ac_cpp='$CPP $CPPFLAGS'
8456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8458ac_compiler_gnu=$ac_cv_c_compiler_gnu
8459
8460 oldcflags="$CFLAGS"
8461 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8462 cat >conftest.$ac_ext <<_ACEOF
8463/* confdefs.h. */
8464_ACEOF
8465cat confdefs.h >>conftest.$ac_ext
8466cat >>conftest.$ac_ext <<_ACEOF
8467/* end confdefs.h. */
8468
8469int
8470main ()
8471{
8472int main() { return 0; }
8473 ;
8474 return 0;
8475}
8476_ACEOF
8477rm -f conftest.$ac_objext conftest$ac_exeext
8478if { (ac_try="$ac_link"
8479case "(($ac_try" in
8480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481 *) ac_try_echo=$ac_try;;
8482esac
8483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8484 (eval "$ac_link") 2>conftest.er1
8485 ac_status=$?
8486 grep -v '^ *+' conftest.er1 >conftest.err
8487 rm -f conftest.er1
8488 cat conftest.err >&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008490 (exit $ac_status); } &&
8491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8492 { (case "(($ac_try" in
8493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8494 *) ac_try_echo=$ac_try;;
8495esac
8496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8497 (eval "$ac_try") 2>&5
8498 ac_status=$?
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); }; } &&
8501 { ac_try='test -s conftest$ac_exeext'
8502 { (case "(($ac_try" in
8503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8504 *) ac_try_echo=$ac_try;;
8505esac
8506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8507 (eval "$ac_try") 2>&5
8508 ac_status=$?
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008511 llvm_cv_link_use_export_dynamic=yes
8512else
8513 echo "$as_me: failed program was:" >&5
8514sed 's/^/| /' conftest.$ac_ext >&5
8515
8516 llvm_cv_link_use_export_dynamic=no
8517fi
8518
Bill Wendlingebcceee2009-04-18 11:20:33 +00008519rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008520 conftest$ac_exeext conftest.$ac_ext
8521 CFLAGS="$oldcflags"
8522 ac_ext=c
8523ac_cpp='$CPP $CPPFLAGS'
8524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8526ac_compiler_gnu=$ac_cv_c_compiler_gnu
8527
8528
8529fi
8530{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8531echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8532if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8533
8534cat >>confdefs.h <<\_ACEOF
8535#define HAVE_LINK_EXPORT_DYNAMIC 1
8536_ACEOF
8537
8538 fi
8539
8540
Reid Spencera773bd52006-08-04 18:18:08 +00008541
8542
8543{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8544echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8545if test "${ac_cv_c_const+set}" = set; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8547else
8548 cat >conftest.$ac_ext <<_ACEOF
8549/* confdefs.h. */
8550_ACEOF
8551cat confdefs.h >>conftest.$ac_ext
8552cat >>conftest.$ac_ext <<_ACEOF
8553/* end confdefs.h. */
8554
8555int
8556main ()
8557{
8558/* FIXME: Include the comments suggested by Paul. */
8559#ifndef __cplusplus
8560 /* Ultrix mips cc rejects this. */
8561 typedef int charset[2];
Bill Wendlingebcceee2009-04-18 11:20:33 +00008562 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008563 /* SunOS 4.1.1 cc rejects this. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008564 char const *const *ccp;
8565 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008566 /* NEC SVR4.0.2 mips cc rejects this. */
8567 struct point {int x, y;};
8568 static struct point const zero = {0,0};
8569 /* AIX XL C 1.02.0.0 rejects this.
8570 It does not let you subtract one const X* pointer from another in
8571 an arm of an if-expression whose if-part is not a constant
8572 expression */
8573 const char *g = "string";
Bill Wendlingebcceee2009-04-18 11:20:33 +00008574 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008575 /* HPUX 7.0 cc rejects these. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008576 ++ccp;
8577 p = (char**) ccp;
8578 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008579 { /* SCO 3.2v4 cc rejects this. */
8580 char *t;
8581 char const *s = 0 ? (char *) 0 : (char const *) 0;
8582
8583 *t++ = 0;
8584 if (s) return 0;
8585 }
8586 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8587 int x[] = {25, 17};
8588 const int *foo = &x[0];
8589 ++foo;
8590 }
8591 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8592 typedef const int *iptr;
8593 iptr p = 0;
8594 ++p;
8595 }
8596 { /* AIX XL C 1.02.0.0 rejects this saying
8597 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8598 struct s { int j; const int *ap[3]; };
8599 struct s *b; b->j = 5;
8600 }
8601 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8602 const int foo = 10;
8603 if (!foo) return 0;
8604 }
Bill Wendlingebcceee2009-04-18 11:20:33 +00008605 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008606#endif
8607
8608 ;
8609 return 0;
8610}
8611_ACEOF
8612rm -f conftest.$ac_objext
8613if { (ac_try="$ac_compile"
8614case "(($ac_try" in
8615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8616 *) ac_try_echo=$ac_try;;
8617esac
8618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8619 (eval "$ac_compile") 2>conftest.er1
8620 ac_status=$?
8621 grep -v '^ *+' conftest.er1 >conftest.err
8622 rm -f conftest.er1
8623 cat conftest.err >&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008625 (exit $ac_status); } &&
8626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8627 { (case "(($ac_try" in
8628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8629 *) ac_try_echo=$ac_try;;
8630esac
8631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8632 (eval "$ac_try") 2>&5
8633 ac_status=$?
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); }; } &&
8636 { ac_try='test -s conftest.$ac_objext'
8637 { (case "(($ac_try" in
8638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639 *) ac_try_echo=$ac_try;;
8640esac
8641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8642 (eval "$ac_try") 2>&5
8643 ac_status=$?
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008646 ac_cv_c_const=yes
8647else
8648 echo "$as_me: failed program was:" >&5
8649sed 's/^/| /' conftest.$ac_ext >&5
8650
8651 ac_cv_c_const=no
8652fi
8653
8654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8655fi
8656{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8657echo "${ECHO_T}$ac_cv_c_const" >&6; }
8658if test $ac_cv_c_const = no; then
8659
8660cat >>confdefs.h <<\_ACEOF
8661#define const
8662_ACEOF
8663
8664fi
8665
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008666
8667
8668
8669
8670
8671ac_header_dirent=no
8672for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8673 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008674{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8675echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8676if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008677 echo $ECHO_N "(cached) $ECHO_C" >&6
8678else
8679 cat >conftest.$ac_ext <<_ACEOF
8680/* confdefs.h. */
8681_ACEOF
8682cat confdefs.h >>conftest.$ac_ext
8683cat >>conftest.$ac_ext <<_ACEOF
8684/* end confdefs.h. */
8685#include <sys/types.h>
8686#include <$ac_hdr>
8687
8688int
8689main ()
8690{
8691if ((DIR *) 0)
8692return 0;
8693 ;
8694 return 0;
8695}
8696_ACEOF
8697rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008698if { (ac_try="$ac_compile"
8699case "(($ac_try" in
8700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8701 *) ac_try_echo=$ac_try;;
8702esac
8703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8704 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008705 ac_status=$?
8706 grep -v '^ *+' conftest.er1 >conftest.err
8707 rm -f conftest.er1
8708 cat conftest.err >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008710 (exit $ac_status); } &&
8711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8712 { (case "(($ac_try" in
8713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8714 *) ac_try_echo=$ac_try;;
8715esac
8716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8717 (eval "$ac_try") 2>&5
8718 ac_status=$?
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); }; } &&
8721 { ac_try='test -s conftest.$ac_objext'
8722 { (case "(($ac_try" in
8723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8724 *) ac_try_echo=$ac_try;;
8725esac
8726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8727 (eval "$ac_try") 2>&5
8728 ac_status=$?
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008731 eval "$as_ac_Header=yes"
8732else
8733 echo "$as_me: failed program was:" >&5
8734sed 's/^/| /' conftest.$ac_ext >&5
8735
Reid Spencera773bd52006-08-04 18:18:08 +00008736 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008737fi
Reid Spencera773bd52006-08-04 18:18:08 +00008738
8739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008740fi
Reid Spencera773bd52006-08-04 18:18:08 +00008741ac_res=`eval echo '${'$as_ac_Header'}'`
8742 { echo "$as_me:$LINENO: result: $ac_res" >&5
8743echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008744if test `eval echo '${'$as_ac_Header'}'` = yes; then
8745 cat >>confdefs.h <<_ACEOF
8746#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8747_ACEOF
8748
8749ac_header_dirent=$ac_hdr; break
8750fi
8751
8752done
8753# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8754if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008755 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8756echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008757if test "${ac_cv_search_opendir+set}" = set; then
8758 echo $ECHO_N "(cached) $ECHO_C" >&6
8759else
8760 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008761cat >conftest.$ac_ext <<_ACEOF
8762/* confdefs.h. */
8763_ACEOF
8764cat confdefs.h >>conftest.$ac_ext
8765cat >>conftest.$ac_ext <<_ACEOF
8766/* end confdefs.h. */
8767
Reid Spencera773bd52006-08-04 18:18:08 +00008768/* Override any GCC internal prototype to avoid an error.
8769 Use char because int might match the return type of a GCC
8770 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008771#ifdef __cplusplus
8772extern "C"
8773#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008774char opendir ();
8775int
8776main ()
8777{
Reid Spencera773bd52006-08-04 18:18:08 +00008778return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008779 ;
8780 return 0;
8781}
8782_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008783for ac_lib in '' dir; do
8784 if test -z "$ac_lib"; then
8785 ac_res="none required"
8786 else
8787 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008788 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008789 fi
8790 rm -f conftest.$ac_objext conftest$ac_exeext
8791if { (ac_try="$ac_link"
8792case "(($ac_try" in
8793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8794 *) ac_try_echo=$ac_try;;
8795esac
8796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8797 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008798 ac_status=$?
8799 grep -v '^ *+' conftest.er1 >conftest.err
8800 rm -f conftest.er1
8801 cat conftest.err >&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008803 (exit $ac_status); } &&
8804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8805 { (case "(($ac_try" in
8806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8807 *) ac_try_echo=$ac_try;;
8808esac
8809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8810 (eval "$ac_try") 2>&5
8811 ac_status=$?
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); }; } &&
8814 { ac_try='test -s conftest$ac_exeext'
8815 { (case "(($ac_try" in
8816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8817 *) ac_try_echo=$ac_try;;
8818esac
8819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8820 (eval "$ac_try") 2>&5
8821 ac_status=$?
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008824 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008825else
8826 echo "$as_me: failed program was:" >&5
8827sed 's/^/| /' conftest.$ac_ext >&5
8828
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008829
8830fi
8831
Bill Wendlingebcceee2009-04-18 11:20:33 +00008832rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008833 conftest$ac_exeext
8834 if test "${ac_cv_search_opendir+set}" = set; then
8835 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008836fi
John Criswell7a73b802003-06-30 21:59:07 +00008837done
Reid Spencera773bd52006-08-04 18:18:08 +00008838if test "${ac_cv_search_opendir+set}" = set; then
8839 :
8840else
8841 ac_cv_search_opendir=no
8842fi
8843rm conftest.$ac_ext
8844LIBS=$ac_func_search_save_LIBS
8845fi
8846{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8847echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8848ac_res=$ac_cv_search_opendir
8849if test "$ac_res" != no; then
8850 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008851
Reid Spencera773bd52006-08-04 18:18:08 +00008852fi
8853
8854else
8855 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8856echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8857if test "${ac_cv_search_opendir+set}" = set; then
8858 echo $ECHO_N "(cached) $ECHO_C" >&6
8859else
8860 ac_func_search_save_LIBS=$LIBS
8861cat >conftest.$ac_ext <<_ACEOF
8862/* confdefs.h. */
8863_ACEOF
8864cat confdefs.h >>conftest.$ac_ext
8865cat >>conftest.$ac_ext <<_ACEOF
8866/* end confdefs.h. */
8867
8868/* Override any GCC internal prototype to avoid an error.
8869 Use char because int might match the return type of a GCC
8870 builtin and then its argument prototype would still apply. */
8871#ifdef __cplusplus
8872extern "C"
8873#endif
8874char opendir ();
8875int
8876main ()
8877{
8878return opendir ();
8879 ;
8880 return 0;
8881}
8882_ACEOF
8883for ac_lib in '' x; do
8884 if test -z "$ac_lib"; then
8885 ac_res="none required"
8886 else
8887 ac_res=-l$ac_lib
8888 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8889 fi
8890 rm -f conftest.$ac_objext conftest$ac_exeext
8891if { (ac_try="$ac_link"
8892case "(($ac_try" in
8893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8894 *) ac_try_echo=$ac_try;;
8895esac
8896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8897 (eval "$ac_link") 2>conftest.er1
8898 ac_status=$?
8899 grep -v '^ *+' conftest.er1 >conftest.err
8900 rm -f conftest.er1
8901 cat conftest.err >&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008903 (exit $ac_status); } &&
8904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8905 { (case "(($ac_try" in
8906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8907 *) ac_try_echo=$ac_try;;
8908esac
8909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8910 (eval "$ac_try") 2>&5
8911 ac_status=$?
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); }; } &&
8914 { ac_try='test -s conftest$ac_exeext'
8915 { (case "(($ac_try" in
8916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8917 *) ac_try_echo=$ac_try;;
8918esac
8919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8920 (eval "$ac_try") 2>&5
8921 ac_status=$?
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008924 ac_cv_search_opendir=$ac_res
8925else
8926 echo "$as_me: failed program was:" >&5
8927sed 's/^/| /' conftest.$ac_ext >&5
8928
8929
8930fi
8931
Bill Wendlingebcceee2009-04-18 11:20:33 +00008932rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008933 conftest$ac_exeext
8934 if test "${ac_cv_search_opendir+set}" = set; then
8935 break
8936fi
8937done
8938if test "${ac_cv_search_opendir+set}" = set; then
8939 :
8940else
8941 ac_cv_search_opendir=no
8942fi
8943rm conftest.$ac_ext
8944LIBS=$ac_func_search_save_LIBS
8945fi
8946{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8947echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8948ac_res=$ac_cv_search_opendir
8949if test "$ac_res" != no; then
8950 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8951
8952fi
8953
8954fi
John Criswell7a73b802003-06-30 21:59:07 +00008955
8956
8957for ac_header in dlfcn.h
8958do
8959as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008960if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8961 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8963if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008964 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008965fi
Reid Spencera773bd52006-08-04 18:18:08 +00008966ac_res=`eval echo '${'$as_ac_Header'}'`
8967 { echo "$as_me:$LINENO: result: $ac_res" >&5
8968echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008969else
Brian Gaeke0a621332004-09-08 20:38:05 +00008970 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008971{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8972echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008973cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008974/* confdefs.h. */
8975_ACEOF
8976cat confdefs.h >>conftest.$ac_ext
8977cat >>conftest.$ac_ext <<_ACEOF
8978/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008979$ac_includes_default
8980#include <$ac_header>
8981_ACEOF
8982rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008983if { (ac_try="$ac_compile"
8984case "(($ac_try" in
8985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8986 *) ac_try_echo=$ac_try;;
8987esac
8988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8989 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008990 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008991 grep -v '^ *+' conftest.er1 >conftest.err
8992 rm -f conftest.er1
8993 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008995 (exit $ac_status); } &&
8996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8997 { (case "(($ac_try" in
8998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8999 *) ac_try_echo=$ac_try;;
9000esac
9001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9002 (eval "$ac_try") 2>&5
9003 ac_status=$?
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); }; } &&
9006 { ac_try='test -s conftest.$ac_objext'
9007 { (case "(($ac_try" in
9008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9009 *) ac_try_echo=$ac_try;;
9010esac
9011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9012 (eval "$ac_try") 2>&5
9013 ac_status=$?
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009016 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00009017else
9018 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009019sed 's/^/| /' conftest.$ac_ext >&5
9020
Reid Spencera773bd52006-08-04 18:18:08 +00009021 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00009022fi
Reid Spencera773bd52006-08-04 18:18:08 +00009023
9024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9025{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9026echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009027
9028# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00009029{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9030echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009031cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00009032/* confdefs.h. */
9033_ACEOF
9034cat confdefs.h >>conftest.$ac_ext
9035cat >>conftest.$ac_ext <<_ACEOF
9036/* end confdefs.h. */
9037#include <$ac_header>
9038_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009039if { (ac_try="$ac_cpp conftest.$ac_ext"
9040case "(($ac_try" in
9041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9042 *) ac_try_echo=$ac_try;;
9043esac
9044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00009046 ac_status=$?
9047 grep -v '^ *+' conftest.er1 >conftest.err
9048 rm -f conftest.er1
9049 cat conftest.err >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009051 (exit $ac_status); } >/dev/null; then
9052 if test -s conftest.err; then
9053 ac_cpp_err=$ac_c_preproc_warn_flag
9054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9055 else
9056 ac_cpp_err=
9057 fi
9058else
9059 ac_cpp_err=yes
9060fi
9061if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009062 ac_header_preproc=yes
9063else
9064 echo "$as_me: failed program was:" >&5
9065sed 's/^/| /' conftest.$ac_ext >&5
9066
9067 ac_header_preproc=no
9068fi
Reid Spencera773bd52006-08-04 18:18:08 +00009069
Brian Gaeke0a621332004-09-08 20:38:05 +00009070rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00009071{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9072echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009073
9074# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009075case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9076 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00009077 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9078echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9080echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9081 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00009082 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009083 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00009084 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9085echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009086 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9087echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9088 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9089echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9090 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9091echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00009092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9093echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009094 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9095echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00009096 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00009097## ----------------------------------- ##
9098## Report this to llvmbugs@cs.uiuc.edu ##
9099## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00009100_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00009101 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00009102 ;;
9103esac
Reid Spencera773bd52006-08-04 18:18:08 +00009104{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9105echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9106if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009107 echo $ECHO_N "(cached) $ECHO_C" >&6
9108else
Reid Spencer2706f8c2004-09-19 23:53:36 +00009109 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00009110fi
Reid Spencera773bd52006-08-04 18:18:08 +00009111ac_res=`eval echo '${'$as_ac_Header'}'`
9112 { echo "$as_me:$LINENO: result: $ac_res" >&5
9113echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009114
9115fi
John Criswell7a73b802003-06-30 21:59:07 +00009116if test `eval echo '${'$as_ac_Header'}'` = yes; then
9117 cat >>confdefs.h <<_ACEOF
9118#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9119_ACEOF
9120
9121fi
9122
9123done
9124
Reid Spencera773bd52006-08-04 18:18:08 +00009125# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009126if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009127 enableval=$enable_ltdl_install;
9128fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009129
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009130
Bill Wendlingebcceee2009-04-18 11:20:33 +00009131
9132
9133if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009134 INSTALL_LTDL_TRUE=
9135 INSTALL_LTDL_FALSE='#'
9136else
9137 INSTALL_LTDL_TRUE='#'
9138 INSTALL_LTDL_FALSE=
9139fi
9140
Bill Wendlingebcceee2009-04-18 11:20:33 +00009141
9142
9143if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009144 CONVENIENCE_LTDL_TRUE=
9145 CONVENIENCE_LTDL_FALSE='#'
9146else
9147 CONVENIENCE_LTDL_TRUE='#'
9148 CONVENIENCE_LTDL_FALSE=
9149fi
9150
9151
Reid Spencera773bd52006-08-04 18:18:08 +00009152{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9153echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009154library_names_spec=
9155libname_spec='lib$name'
9156soname_spec=
9157shrext_cmds=".so"
9158postinstall_cmds=
9159postuninstall_cmds=
9160finish_cmds=
9161finish_eval=
9162shlibpath_var=
9163shlibpath_overrides_runpath=unknown
9164version_type=none
9165dynamic_linker="$host_os ld.so"
9166sys_lib_dlsearch_path_spec="/lib /usr/lib"
9167if test "$GCC" = yes; then
9168 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9169 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9170 # if the path contains ";" then we assume it to be the separator
9171 # otherwise default to the standard path separator (i.e. ":") - it is
9172 # assumed that no part of a normal pathname contains ";" but that should
9173 # okay in the real world where ";" in dirpaths is itself problematic.
9174 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9175 else
9176 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9177 fi
9178else
9179 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9180fi
9181need_lib_prefix=unknown
9182hardcode_into_libs=no
9183
9184# when you set need_version to no, make sure it does not cause -set_version
9185# flags to be left without arguments
9186need_version=unknown
9187
9188case $host_os in
9189aix3*)
9190 version_type=linux
9191 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9192 shlibpath_var=LIBPATH
9193
9194 # AIX 3 has no versioning support, so we append a major version to the name.
9195 soname_spec='${libname}${release}${shared_ext}$major'
9196 ;;
9197
9198aix4* | aix5*)
9199 version_type=linux
9200 need_lib_prefix=no
9201 need_version=no
9202 hardcode_into_libs=yes
9203 if test "$host_cpu" = ia64; then
9204 # AIX 5 supports IA64
9205 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9206 shlibpath_var=LD_LIBRARY_PATH
9207 else
9208 # With GCC up to 2.95.x, collect2 would create an import file
9209 # for dependence libraries. The import file would start with
9210 # the line `#! .'. This would cause the generated library to
9211 # depend on `.', always an invalid library. This was fixed in
9212 # development snapshots of GCC prior to 3.0.
9213 case $host_os in
9214 aix4 | aix4.[01] | aix4.[01].*)
9215 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9216 echo ' yes '
9217 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9218 :
9219 else
9220 can_build_shared=no
9221 fi
9222 ;;
9223 esac
9224 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9225 # soname into executable. Probably we can add versioning support to
9226 # collect2, so additional links can be useful in future.
9227 if test "$aix_use_runtimelinking" = yes; then
9228 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9229 # instead of lib<name>.a to let people know that these are not
9230 # typical AIX shared libraries.
9231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9232 else
9233 # We preserve .a as extension for shared libraries through AIX4.2
9234 # and later when we are not doing run time linking.
9235 library_names_spec='${libname}${release}.a $libname.a'
9236 soname_spec='${libname}${release}${shared_ext}$major'
9237 fi
9238 shlibpath_var=LIBPATH
9239 fi
9240 ;;
9241
9242amigaos*)
9243 library_names_spec='$libname.ixlibrary $libname.a'
9244 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9245 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'
9246 ;;
9247
9248beos*)
9249 library_names_spec='${libname}${shared_ext}'
9250 dynamic_linker="$host_os ld.so"
9251 shlibpath_var=LIBRARY_PATH
9252 ;;
9253
9254bsdi[45]*)
9255 version_type=linux
9256 need_version=no
9257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9258 soname_spec='${libname}${release}${shared_ext}$major'
9259 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9260 shlibpath_var=LD_LIBRARY_PATH
9261 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9262 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9263 # the default ld.so.conf also contains /usr/contrib/lib and
9264 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9265 # libtool to hard-code these into programs
9266 ;;
9267
9268cygwin* | mingw* | pw32*)
9269 version_type=windows
9270 shrext_cmds=".dll"
9271 need_version=no
9272 need_lib_prefix=no
9273
9274 case $GCC,$host_os in
9275 yes,cygwin* | yes,mingw* | yes,pw32*)
9276 library_names_spec='$libname.dll.a'
9277 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9278 postinstall_cmds='base_file=`basename \${file}`~
9279 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9280 dldir=$destdir/`dirname \$dlpath`~
9281 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009282 $install_prog $dir/$dlname \$dldir/$dlname~
9283 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009284 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9285 dlpath=$dir/\$dldll~
9286 $rm \$dlpath'
9287 shlibpath_overrides_runpath=yes
9288
9289 case $host_os in
9290 cygwin*)
9291 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9292 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9293 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9294 ;;
9295 mingw*)
9296 # MinGW DLLs use traditional 'lib' prefix
9297 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9298 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9299 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9300 # It is most probably a Windows format PATH printed by
9301 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9302 # path with ; separators, and with drive letters. We can handle the
9303 # drive letters (cygwin fileutils understands them), so leave them,
9304 # especially as we might pass files found there to a mingw objdump,
9305 # which wouldn't understand a cygwinified path. Ahh.
9306 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9307 else
9308 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9309 fi
9310 ;;
9311 pw32*)
9312 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009313 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 +00009314 ;;
9315 esac
9316 ;;
9317
9318 *)
9319 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9320 ;;
9321 esac
9322 dynamic_linker='Win32 ld.exe'
9323 # FIXME: first we should search . and the directory the executable is in
9324 shlibpath_var=PATH
9325 ;;
9326
9327darwin* | rhapsody*)
9328 dynamic_linker="$host_os dyld"
9329 version_type=darwin
9330 need_lib_prefix=no
9331 need_version=no
9332 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9333 soname_spec='${libname}${release}${major}$shared_ext'
9334 shlibpath_overrides_runpath=yes
9335 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009336 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009337 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9338 if test "$GCC" = yes; then
9339 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"`
9340 else
9341 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9342 fi
9343 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9344 ;;
9345
9346dgux*)
9347 version_type=linux
9348 need_lib_prefix=no
9349 need_version=no
9350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9351 soname_spec='${libname}${release}${shared_ext}$major'
9352 shlibpath_var=LD_LIBRARY_PATH
9353 ;;
9354
9355freebsd1*)
9356 dynamic_linker=no
9357 ;;
9358
9359kfreebsd*-gnu)
9360 version_type=linux
9361 need_lib_prefix=no
9362 need_version=no
9363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9364 soname_spec='${libname}${release}${shared_ext}$major'
9365 shlibpath_var=LD_LIBRARY_PATH
9366 shlibpath_overrides_runpath=no
9367 hardcode_into_libs=yes
9368 dynamic_linker='GNU ld.so'
9369 ;;
9370
Reid Spencera773bd52006-08-04 18:18:08 +00009371freebsd* | dragonfly*)
9372 # DragonFly does not have aout. When/if they implement a new
9373 # versioning mechanism, adjust this.
9374 if test -x /usr/bin/objformat; then
9375 objformat=`/usr/bin/objformat`
9376 else
9377 case $host_os in
9378 freebsd[123]*) objformat=aout ;;
9379 *) objformat=elf ;;
9380 esac
9381 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009382 version_type=freebsd-$objformat
9383 case $version_type in
9384 freebsd-elf*)
9385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9386 need_version=no
9387 need_lib_prefix=no
9388 ;;
9389 freebsd-*)
9390 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9391 need_version=yes
9392 ;;
9393 esac
9394 shlibpath_var=LD_LIBRARY_PATH
9395 case $host_os in
9396 freebsd2*)
9397 shlibpath_overrides_runpath=yes
9398 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009399 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009400 shlibpath_overrides_runpath=yes
9401 hardcode_into_libs=yes
9402 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009403 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9404 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009405 shlibpath_overrides_runpath=no
9406 hardcode_into_libs=yes
9407 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009408 freebsd*) # from 4.6 on
9409 shlibpath_overrides_runpath=yes
9410 hardcode_into_libs=yes
9411 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009412 esac
9413 ;;
9414
9415gnu*)
9416 version_type=linux
9417 need_lib_prefix=no
9418 need_version=no
9419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9420 soname_spec='${libname}${release}${shared_ext}$major'
9421 shlibpath_var=LD_LIBRARY_PATH
9422 hardcode_into_libs=yes
9423 ;;
9424
9425hpux9* | hpux10* | hpux11*)
9426 # Give a soname corresponding to the major version so that dld.sl refuses to
9427 # link against other versions.
9428 version_type=sunos
9429 need_lib_prefix=no
9430 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009431 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009432 ia64*)
9433 shrext_cmds='.so'
9434 hardcode_into_libs=yes
9435 dynamic_linker="$host_os dld.so"
9436 shlibpath_var=LD_LIBRARY_PATH
9437 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9439 soname_spec='${libname}${release}${shared_ext}$major'
9440 if test "X$HPUX_IA64_MODE" = X32; then
9441 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9442 else
9443 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9444 fi
9445 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9446 ;;
9447 hppa*64*)
9448 shrext_cmds='.sl'
9449 hardcode_into_libs=yes
9450 dynamic_linker="$host_os dld.sl"
9451 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9452 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9454 soname_spec='${libname}${release}${shared_ext}$major'
9455 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9456 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9457 ;;
9458 *)
9459 shrext_cmds='.sl'
9460 dynamic_linker="$host_os dld.sl"
9461 shlibpath_var=SHLIB_PATH
9462 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9464 soname_spec='${libname}${release}${shared_ext}$major'
9465 ;;
9466 esac
9467 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9468 postinstall_cmds='chmod 555 $lib'
9469 ;;
9470
Reid Spencera773bd52006-08-04 18:18:08 +00009471interix3*)
9472 version_type=linux
9473 need_lib_prefix=no
9474 need_version=no
9475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9476 soname_spec='${libname}${release}${shared_ext}$major'
9477 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9478 shlibpath_var=LD_LIBRARY_PATH
9479 shlibpath_overrides_runpath=no
9480 hardcode_into_libs=yes
9481 ;;
9482
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009483irix5* | irix6* | nonstopux*)
9484 case $host_os in
9485 nonstopux*) version_type=nonstopux ;;
9486 *)
9487 if test "$lt_cv_prog_gnu_ld" = yes; then
9488 version_type=linux
9489 else
9490 version_type=irix
9491 fi ;;
9492 esac
9493 need_lib_prefix=no
9494 need_version=no
9495 soname_spec='${libname}${release}${shared_ext}$major'
9496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9497 case $host_os in
9498 irix5* | nonstopux*)
9499 libsuff= shlibsuff=
9500 ;;
9501 *)
9502 case $LD in # libtool.m4 will add one of these switches to LD
9503 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9504 libsuff= shlibsuff= libmagic=32-bit;;
9505 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9506 libsuff=32 shlibsuff=N32 libmagic=N32;;
9507 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9508 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9509 *) libsuff= shlibsuff= libmagic=never-match;;
9510 esac
9511 ;;
9512 esac
9513 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9514 shlibpath_overrides_runpath=no
9515 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9516 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9517 hardcode_into_libs=yes
9518 ;;
9519
9520# No shared lib support for Linux oldld, aout, or coff.
9521linux*oldld* | linux*aout* | linux*coff*)
9522 dynamic_linker=no
9523 ;;
9524
9525# This must be Linux ELF.
9526linux*)
9527 version_type=linux
9528 need_lib_prefix=no
9529 need_version=no
9530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9531 soname_spec='${libname}${release}${shared_ext}$major'
9532 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9533 shlibpath_var=LD_LIBRARY_PATH
9534 shlibpath_overrides_runpath=no
9535 # This implies no fast_install, which is unacceptable.
9536 # Some rework will be needed to allow for fast_install
9537 # before this can be enabled.
9538 hardcode_into_libs=yes
9539
9540 # Append ld.so.conf contents to the search path
9541 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009542 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 +00009543 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9544 fi
9545
9546 # We used to test for /lib/ld.so.1 and disable shared libraries on
9547 # powerpc, because MkLinux only supported shared libraries with the
9548 # GNU dynamic linker. Since this was broken with cross compilers,
9549 # most powerpc-linux boxes support dynamic linking these days and
9550 # people can always --disable-shared, the test was removed, and we
9551 # assume the GNU/Linux dynamic linker is in use.
9552 dynamic_linker='GNU/Linux ld.so'
9553 ;;
9554
9555knetbsd*-gnu)
9556 version_type=linux
9557 need_lib_prefix=no
9558 need_version=no
9559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9560 soname_spec='${libname}${release}${shared_ext}$major'
9561 shlibpath_var=LD_LIBRARY_PATH
9562 shlibpath_overrides_runpath=no
9563 hardcode_into_libs=yes
9564 dynamic_linker='GNU ld.so'
9565 ;;
9566
9567netbsd*)
9568 version_type=sunos
9569 need_lib_prefix=no
9570 need_version=no
9571 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9573 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9574 dynamic_linker='NetBSD (a.out) ld.so'
9575 else
9576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9577 soname_spec='${libname}${release}${shared_ext}$major'
9578 dynamic_linker='NetBSD ld.elf_so'
9579 fi
9580 shlibpath_var=LD_LIBRARY_PATH
9581 shlibpath_overrides_runpath=yes
9582 hardcode_into_libs=yes
9583 ;;
9584
9585newsos6)
9586 version_type=linux
9587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9588 shlibpath_var=LD_LIBRARY_PATH
9589 shlibpath_overrides_runpath=yes
9590 ;;
9591
9592nto-qnx*)
9593 version_type=linux
9594 need_lib_prefix=no
9595 need_version=no
9596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9597 soname_spec='${libname}${release}${shared_ext}$major'
9598 shlibpath_var=LD_LIBRARY_PATH
9599 shlibpath_overrides_runpath=yes
9600 ;;
9601
9602openbsd*)
9603 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009604 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009605 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009606 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9607 case $host_os in
9608 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9609 *) need_version=no ;;
9610 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9612 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9613 shlibpath_var=LD_LIBRARY_PATH
9614 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9615 case $host_os in
9616 openbsd2.[89] | openbsd2.[89].*)
9617 shlibpath_overrides_runpath=no
9618 ;;
9619 *)
9620 shlibpath_overrides_runpath=yes
9621 ;;
9622 esac
9623 else
9624 shlibpath_overrides_runpath=yes
9625 fi
9626 ;;
9627
9628os2*)
9629 libname_spec='$name'
9630 shrext_cmds=".dll"
9631 need_lib_prefix=no
9632 library_names_spec='$libname${shared_ext} $libname.a'
9633 dynamic_linker='OS/2 ld.exe'
9634 shlibpath_var=LIBPATH
9635 ;;
9636
9637osf3* | osf4* | osf5*)
9638 version_type=osf
9639 need_lib_prefix=no
9640 need_version=no
9641 soname_spec='${libname}${release}${shared_ext}$major'
9642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9643 shlibpath_var=LD_LIBRARY_PATH
9644 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9645 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9646 ;;
9647
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009648solaris*)
9649 version_type=linux
9650 need_lib_prefix=no
9651 need_version=no
9652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9653 soname_spec='${libname}${release}${shared_ext}$major'
9654 shlibpath_var=LD_LIBRARY_PATH
9655 shlibpath_overrides_runpath=yes
9656 hardcode_into_libs=yes
9657 # ldd complains unless libraries are executable
9658 postinstall_cmds='chmod +x $lib'
9659 ;;
9660
9661sunos4*)
9662 version_type=sunos
9663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9664 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9665 shlibpath_var=LD_LIBRARY_PATH
9666 shlibpath_overrides_runpath=yes
9667 if test "$with_gnu_ld" = yes; then
9668 need_lib_prefix=no
9669 fi
9670 need_version=yes
9671 ;;
9672
Reid Spencera773bd52006-08-04 18:18:08 +00009673sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009674 version_type=linux
9675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9676 soname_spec='${libname}${release}${shared_ext}$major'
9677 shlibpath_var=LD_LIBRARY_PATH
9678 case $host_vendor in
9679 sni)
9680 shlibpath_overrides_runpath=no
9681 need_lib_prefix=no
9682 export_dynamic_flag_spec='${wl}-Blargedynsym'
9683 runpath_var=LD_RUN_PATH
9684 ;;
9685 siemens)
9686 need_lib_prefix=no
9687 ;;
9688 motorola)
9689 need_lib_prefix=no
9690 need_version=no
9691 shlibpath_overrides_runpath=no
9692 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9693 ;;
9694 esac
9695 ;;
9696
9697sysv4*MP*)
9698 if test -d /usr/nec ;then
9699 version_type=linux
9700 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9701 soname_spec='$libname${shared_ext}.$major'
9702 shlibpath_var=LD_LIBRARY_PATH
9703 fi
9704 ;;
9705
Reid Spencera773bd52006-08-04 18:18:08 +00009706sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9707 version_type=freebsd-elf
9708 need_lib_prefix=no
9709 need_version=no
9710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9711 soname_spec='${libname}${release}${shared_ext}$major'
9712 shlibpath_var=LD_LIBRARY_PATH
9713 hardcode_into_libs=yes
9714 if test "$with_gnu_ld" = yes; then
9715 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9716 shlibpath_overrides_runpath=no
9717 else
9718 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9719 shlibpath_overrides_runpath=yes
9720 case $host_os in
9721 sco3.2v5*)
9722 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9723 ;;
9724 esac
9725 fi
9726 sys_lib_dlsearch_path_spec='/usr/lib'
9727 ;;
9728
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009729uts4*)
9730 version_type=linux
9731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9732 soname_spec='${libname}${release}${shared_ext}$major'
9733 shlibpath_var=LD_LIBRARY_PATH
9734 ;;
9735
9736*)
9737 dynamic_linker=no
9738 ;;
9739esac
Reid Spencera773bd52006-08-04 18:18:08 +00009740{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9741echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009742test "$dynamic_linker" = no && can_build_shared=no
9743
Reid Spencera773bd52006-08-04 18:18:08 +00009744variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9745if test "$GCC" = yes; then
9746 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9747fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009748
Reid Spencera773bd52006-08-04 18:18:08 +00009749
9750{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9751echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009752if test "${libltdl_cv_shlibext+set}" = set; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
9754else
9755
9756module=yes
9757eval libltdl_cv_shlibext=$shrext_cmds
9758
9759fi
Reid Spencera773bd52006-08-04 18:18:08 +00009760{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9761echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009762if test -n "$libltdl_cv_shlibext"; then
9763
9764cat >>confdefs.h <<_ACEOF
9765#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9766_ACEOF
9767
9768fi
9769
9770
Reid Spencera773bd52006-08-04 18:18:08 +00009771{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9772echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009773if test "${libltdl_cv_shlibpath_var+set}" = set; then
9774 echo $ECHO_N "(cached) $ECHO_C" >&6
9775else
9776 libltdl_cv_shlibpath_var="$shlibpath_var"
9777fi
Reid Spencera773bd52006-08-04 18:18:08 +00009778{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9779echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009780if test -n "$libltdl_cv_shlibpath_var"; then
9781
9782cat >>confdefs.h <<_ACEOF
9783#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9784_ACEOF
9785
9786fi
9787
9788
Reid Spencera773bd52006-08-04 18:18:08 +00009789{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9790echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009791if test "${libltdl_cv_sys_search_path+set}" = set; then
9792 echo $ECHO_N "(cached) $ECHO_C" >&6
9793else
9794 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9795fi
Reid Spencera773bd52006-08-04 18:18:08 +00009796{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9797echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009798if test -n "$libltdl_cv_sys_search_path"; then
9799 sys_search_path=
9800 for dir in $libltdl_cv_sys_search_path; do
9801 if test -z "$sys_search_path"; then
9802 sys_search_path="$dir"
9803 else
9804 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9805 fi
9806 done
9807
9808cat >>confdefs.h <<_ACEOF
9809#define LTDL_SYSSEARCHPATH "$sys_search_path"
9810_ACEOF
9811
9812fi
9813
Reid Spencera773bd52006-08-04 18:18:08 +00009814{ echo "$as_me:$LINENO: checking for objdir" >&5
9815echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009816if test "${libltdl_cv_objdir+set}" = set; then
9817 echo $ECHO_N "(cached) $ECHO_C" >&6
9818else
9819 libltdl_cv_objdir="$objdir"
9820 if test -n "$objdir"; then
9821 :
9822 else
9823 rm -f .libs 2>/dev/null
9824 mkdir .libs 2>/dev/null
9825 if test -d .libs; then
9826 libltdl_cv_objdir=.libs
9827 else
9828 # MS-DOS does not allow filenames that begin with a dot.
9829 libltdl_cv_objdir=_libs
9830 fi
9831 rmdir .libs 2>/dev/null
9832 fi
9833
9834fi
Reid Spencera773bd52006-08-04 18:18:08 +00009835{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9836echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009837
9838cat >>confdefs.h <<_ACEOF
9839#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9840_ACEOF
9841
9842
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009843
9844
9845
9846
9847# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009848{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9849echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009850if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9851 echo $ECHO_N "(cached) $ECHO_C" >&6
9852else
9853
9854# These are sane defaults that work on at least a few old systems.
9855# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9856
9857# Character class describing NM global symbol codes.
9858symcode='[BCDEGRST]'
9859
9860# Regexp to match symbols that can be accessed directly from C.
9861sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9862
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009863# Transform an extracted symbol line into a proper C declaration
9864lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9865
9866# Transform an extracted symbol line into symbol name and symbol address
9867lt_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'"
9868
9869# Define system-specific variables.
9870case $host_os in
9871aix*)
9872 symcode='[BCDT]'
9873 ;;
9874cygwin* | mingw* | pw32*)
9875 symcode='[ABCDGISTW]'
9876 ;;
9877hpux*) # Its linker distinguishes data from code symbols
9878 if test "$host_cpu" = ia64; then
9879 symcode='[ABCDEGRST]'
9880 fi
9881 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9882 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'"
9883 ;;
9884linux*)
9885 if test "$host_cpu" = ia64; then
9886 symcode='[ABCDGIRSTW]'
9887 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9888 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'"
9889 fi
9890 ;;
9891irix* | nonstopux*)
9892 symcode='[BCDEGRST]'
9893 ;;
9894osf*)
9895 symcode='[BCDEGQRST]'
9896 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009897solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009898 symcode='[BDRT]'
9899 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009900sco3.2v5*)
9901 symcode='[DT]'
9902 ;;
9903sysv4.2uw2*)
9904 symcode='[DT]'
9905 ;;
9906sysv5* | sco5v6* | unixware* | OpenUNIX*)
9907 symcode='[ABDT]'
9908 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009909sysv4)
9910 symcode='[DFNSTU]'
9911 ;;
9912esac
9913
9914# Handle CRLF in mingw tool chain
9915opt_cr=
9916case $build_os in
9917mingw*)
9918 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9919 ;;
9920esac
9921
9922# If we're using GNU nm, then use its standard symbol codes.
9923case `$NM -V 2>&1` in
9924*GNU* | *'with BFD'*)
9925 symcode='[ABCDGIRSTW]' ;;
9926esac
9927
9928# Try without a prefix undercore, then with it.
9929for ac_symprfx in "" "_"; do
9930
Reid Spencera773bd52006-08-04 18:18:08 +00009931 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9932 symxfrm="\\1 $ac_symprfx\\2 \\2"
9933
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009934 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009935 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 +00009936
9937 # Check to see that the pipe works correctly.
9938 pipe_works=no
9939
9940 rm -f conftest*
9941 cat > conftest.$ac_ext <<EOF
9942#ifdef __cplusplus
9943extern "C" {
9944#endif
9945char nm_test_var;
9946void nm_test_func(){}
9947#ifdef __cplusplus
9948}
9949#endif
9950int main(){nm_test_var='a';nm_test_func();return(0);}
9951EOF
9952
9953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9954 (eval $ac_compile) 2>&5
9955 ac_status=$?
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); }; then
9958 # Now try to grab the symbols.
9959 nlist=conftest.nm
9960 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9961 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9962 ac_status=$?
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } && test -s "$nlist"; then
9965 # Try sorting and uniquifying the output.
9966 if sort "$nlist" | uniq > "$nlist"T; then
9967 mv -f "$nlist"T "$nlist"
9968 else
9969 rm -f "$nlist"T
9970 fi
9971
9972 # Make sure that we snagged all the symbols we need.
9973 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9974 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9975 cat <<EOF > conftest.$ac_ext
9976#ifdef __cplusplus
9977extern "C" {
9978#endif
9979
9980EOF
9981 # Now generate the symbol file.
9982 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9983
9984 cat <<EOF >> conftest.$ac_ext
9985#if defined (__STDC__) && __STDC__
9986# define lt_ptr_t void *
9987#else
9988# define lt_ptr_t char *
9989# define const
9990#endif
9991
9992/* The mapping between symbol names and symbols. */
9993const struct {
9994 const char *name;
9995 lt_ptr_t address;
9996}
9997lt_preloaded_symbols[] =
9998{
9999EOF
10000 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10001 cat <<\EOF >> conftest.$ac_ext
10002 {0, (lt_ptr_t) 0}
10003};
10004
10005#ifdef __cplusplus
10006}
10007#endif
10008EOF
10009 # Now try linking the two files.
10010 mv conftest.$ac_objext conftstm.$ac_objext
10011 lt_save_LIBS="$LIBS"
10012 lt_save_CFLAGS="$CFLAGS"
10013 LIBS="conftstm.$ac_objext"
10014 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10016 (eval $ac_link) 2>&5
10017 ac_status=$?
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10020 pipe_works=yes
10021 fi
10022 LIBS="$lt_save_LIBS"
10023 CFLAGS="$lt_save_CFLAGS"
10024 else
10025 echo "cannot find nm_test_func in $nlist" >&5
10026 fi
10027 else
10028 echo "cannot find nm_test_var in $nlist" >&5
10029 fi
10030 else
10031 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10032 fi
10033 else
10034 echo "$progname: failed program was:" >&5
10035 cat conftest.$ac_ext >&5
10036 fi
10037 rm -f conftest* conftst*
10038
10039 # Do not use the global_symbol_pipe unless it works.
10040 if test "$pipe_works" = yes; then
10041 break
10042 else
10043 lt_cv_sys_global_symbol_pipe=
10044 fi
10045done
10046
10047fi
10048
10049if test -z "$lt_cv_sys_global_symbol_pipe"; then
10050 lt_cv_sys_global_symbol_to_cdecl=
10051fi
10052if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000010053 { echo "$as_me:$LINENO: result: failed" >&5
10054echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010055else
Reid Spencera773bd52006-08-04 18:18:08 +000010056 { echo "$as_me:$LINENO: result: ok" >&5
10057echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010058fi
10059
10060
Reid Spencera773bd52006-08-04 18:18:08 +000010061{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10062echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010063if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10064 echo $ECHO_N "(cached) $ECHO_C" >&6
10065else
10066 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10067 libltdl_cv_preloaded_symbols=yes
10068 else
10069 libltdl_cv_preloaded_symbols=no
10070 fi
10071
10072fi
Reid Spencera773bd52006-08-04 18:18:08 +000010073{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10074echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010075if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10076
10077cat >>confdefs.h <<\_ACEOF
10078#define HAVE_PRELOADED_SYMBOLS 1
10079_ACEOF
10080
10081fi
10082
10083LIBADD_DL=
10084
10085ac_ext=c
10086ac_cpp='$CPP $CPPFLAGS'
10087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10089ac_compiler_gnu=$ac_cv_c_compiler_gnu
10090
10091
Reid Spencera773bd52006-08-04 18:18:08 +000010092{ echo "$as_me:$LINENO: checking for shl_load" >&5
10093echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010094if test "${ac_cv_func_shl_load+set}" = set; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
10096else
10097 cat >conftest.$ac_ext <<_ACEOF
10098/* confdefs.h. */
10099_ACEOF
10100cat confdefs.h >>conftest.$ac_ext
10101cat >>conftest.$ac_ext <<_ACEOF
10102/* end confdefs.h. */
10103/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10105#define shl_load innocuous_shl_load
10106
10107/* System header to define __stub macros and hopefully few prototypes,
10108 which can conflict with char shl_load (); below.
10109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10110 <limits.h> exists even on freestanding compilers. */
10111
10112#ifdef __STDC__
10113# include <limits.h>
10114#else
10115# include <assert.h>
10116#endif
10117
10118#undef shl_load
10119
Reid Spencera773bd52006-08-04 18:18:08 +000010120/* Override any GCC internal prototype to avoid an error.
10121 Use char because int might match the return type of a GCC
10122 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010123#ifdef __cplusplus
10124extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010125#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010126char shl_load ();
10127/* The GNU C library defines this for functions which it implements
10128 to always fail with ENOSYS. Some functions are actually named
10129 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010130#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010131choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010132#endif
10133
10134int
10135main ()
10136{
Reid Spencera773bd52006-08-04 18:18:08 +000010137return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010138 ;
10139 return 0;
10140}
10141_ACEOF
10142rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010143if { (ac_try="$ac_link"
10144case "(($ac_try" in
10145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146 *) ac_try_echo=$ac_try;;
10147esac
10148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010150 ac_status=$?
10151 grep -v '^ *+' conftest.er1 >conftest.err
10152 rm -f conftest.er1
10153 cat conftest.err >&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010155 (exit $ac_status); } &&
10156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10157 { (case "(($ac_try" in
10158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159 *) ac_try_echo=$ac_try;;
10160esac
10161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10162 (eval "$ac_try") 2>&5
10163 ac_status=$?
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); }; } &&
10166 { ac_try='test -s conftest$ac_exeext'
10167 { (case "(($ac_try" in
10168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169 *) ac_try_echo=$ac_try;;
10170esac
10171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10172 (eval "$ac_try") 2>&5
10173 ac_status=$?
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010176 ac_cv_func_shl_load=yes
10177else
10178 echo "$as_me: failed program was:" >&5
10179sed 's/^/| /' conftest.$ac_ext >&5
10180
Reid Spencera773bd52006-08-04 18:18:08 +000010181 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010182fi
Reid Spencera773bd52006-08-04 18:18:08 +000010183
Bill Wendlingebcceee2009-04-18 11:20:33 +000010184rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010185 conftest$ac_exeext conftest.$ac_ext
10186fi
Reid Spencera773bd52006-08-04 18:18:08 +000010187{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10188echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010189if test $ac_cv_func_shl_load = yes; then
10190
10191cat >>confdefs.h <<\_ACEOF
10192#define HAVE_SHL_LOAD 1
10193_ACEOF
10194
10195else
Reid Spencera773bd52006-08-04 18:18:08 +000010196 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10197echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010198if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10199 echo $ECHO_N "(cached) $ECHO_C" >&6
10200else
10201 ac_check_lib_save_LIBS=$LIBS
10202LIBS="-ldld $LIBS"
10203cat >conftest.$ac_ext <<_ACEOF
10204/* confdefs.h. */
10205_ACEOF
10206cat confdefs.h >>conftest.$ac_ext
10207cat >>conftest.$ac_ext <<_ACEOF
10208/* end confdefs.h. */
10209
Reid Spencera773bd52006-08-04 18:18:08 +000010210/* Override any GCC internal prototype to avoid an error.
10211 Use char because int might match the return type of a GCC
10212 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010213#ifdef __cplusplus
10214extern "C"
10215#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010216char shl_load ();
10217int
10218main ()
10219{
Reid Spencera773bd52006-08-04 18:18:08 +000010220return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010221 ;
10222 return 0;
10223}
10224_ACEOF
10225rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010226if { (ac_try="$ac_link"
10227case "(($ac_try" in
10228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10229 *) ac_try_echo=$ac_try;;
10230esac
10231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10232 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010233 ac_status=$?
10234 grep -v '^ *+' conftest.er1 >conftest.err
10235 rm -f conftest.er1
10236 cat conftest.err >&5
10237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010238 (exit $ac_status); } &&
10239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10240 { (case "(($ac_try" in
10241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10242 *) ac_try_echo=$ac_try;;
10243esac
10244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10245 (eval "$ac_try") 2>&5
10246 ac_status=$?
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); }; } &&
10249 { ac_try='test -s conftest$ac_exeext'
10250 { (case "(($ac_try" in
10251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252 *) ac_try_echo=$ac_try;;
10253esac
10254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10255 (eval "$ac_try") 2>&5
10256 ac_status=$?
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010259 ac_cv_lib_dld_shl_load=yes
10260else
10261 echo "$as_me: failed program was:" >&5
10262sed 's/^/| /' conftest.$ac_ext >&5
10263
Reid Spencera773bd52006-08-04 18:18:08 +000010264 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010265fi
Reid Spencera773bd52006-08-04 18:18:08 +000010266
Bill Wendlingebcceee2009-04-18 11:20:33 +000010267rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010268 conftest$ac_exeext conftest.$ac_ext
10269LIBS=$ac_check_lib_save_LIBS
10270fi
Reid Spencera773bd52006-08-04 18:18:08 +000010271{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10272echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010273if test $ac_cv_lib_dld_shl_load = yes; then
10274
10275cat >>confdefs.h <<\_ACEOF
10276#define HAVE_SHL_LOAD 1
10277_ACEOF
10278
10279 LIBADD_DL="$LIBADD_DL -ldld"
10280else
Reid Spencera773bd52006-08-04 18:18:08 +000010281 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10282echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010283if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10284 echo $ECHO_N "(cached) $ECHO_C" >&6
10285else
10286 ac_check_lib_save_LIBS=$LIBS
10287LIBS="-ldl $LIBS"
10288cat >conftest.$ac_ext <<_ACEOF
10289/* confdefs.h. */
10290_ACEOF
10291cat confdefs.h >>conftest.$ac_ext
10292cat >>conftest.$ac_ext <<_ACEOF
10293/* end confdefs.h. */
10294
Reid Spencera773bd52006-08-04 18:18:08 +000010295/* Override any GCC internal prototype to avoid an error.
10296 Use char because int might match the return type of a GCC
10297 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010298#ifdef __cplusplus
10299extern "C"
10300#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010301char dlopen ();
10302int
10303main ()
10304{
Reid Spencera773bd52006-08-04 18:18:08 +000010305return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010306 ;
10307 return 0;
10308}
10309_ACEOF
10310rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010311if { (ac_try="$ac_link"
10312case "(($ac_try" in
10313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10314 *) ac_try_echo=$ac_try;;
10315esac
10316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10317 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010318 ac_status=$?
10319 grep -v '^ *+' conftest.er1 >conftest.err
10320 rm -f conftest.er1
10321 cat conftest.err >&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010323 (exit $ac_status); } &&
10324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10325 { (case "(($ac_try" in
10326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327 *) ac_try_echo=$ac_try;;
10328esac
10329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10330 (eval "$ac_try") 2>&5
10331 ac_status=$?
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); }; } &&
10334 { ac_try='test -s conftest$ac_exeext'
10335 { (case "(($ac_try" in
10336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10337 *) ac_try_echo=$ac_try;;
10338esac
10339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10340 (eval "$ac_try") 2>&5
10341 ac_status=$?
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010344 ac_cv_lib_dl_dlopen=yes
10345else
10346 echo "$as_me: failed program was:" >&5
10347sed 's/^/| /' conftest.$ac_ext >&5
10348
Reid Spencera773bd52006-08-04 18:18:08 +000010349 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010350fi
Reid Spencera773bd52006-08-04 18:18:08 +000010351
Bill Wendlingebcceee2009-04-18 11:20:33 +000010352rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010353 conftest$ac_exeext conftest.$ac_ext
10354LIBS=$ac_check_lib_save_LIBS
10355fi
Reid Spencera773bd52006-08-04 18:18:08 +000010356{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10357echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010358if test $ac_cv_lib_dl_dlopen = yes; then
10359
10360cat >>confdefs.h <<\_ACEOF
10361#define HAVE_LIBDL 1
10362_ACEOF
10363
10364 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10365else
10366 cat >conftest.$ac_ext <<_ACEOF
10367/* confdefs.h. */
10368_ACEOF
10369cat confdefs.h >>conftest.$ac_ext
10370cat >>conftest.$ac_ext <<_ACEOF
10371/* end confdefs.h. */
10372#if HAVE_DLFCN_H
10373# include <dlfcn.h>
10374#endif
10375
10376int
10377main ()
10378{
10379dlopen(0, 0);
10380 ;
10381 return 0;
10382}
10383_ACEOF
10384rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010385if { (ac_try="$ac_link"
10386case "(($ac_try" in
10387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388 *) ac_try_echo=$ac_try;;
10389esac
10390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010392 ac_status=$?
10393 grep -v '^ *+' conftest.er1 >conftest.err
10394 rm -f conftest.er1
10395 cat conftest.err >&5
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010397 (exit $ac_status); } &&
10398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10399 { (case "(($ac_try" in
10400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10401 *) ac_try_echo=$ac_try;;
10402esac
10403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10404 (eval "$ac_try") 2>&5
10405 ac_status=$?
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); }; } &&
10408 { ac_try='test -s conftest$ac_exeext'
10409 { (case "(($ac_try" in
10410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10411 *) ac_try_echo=$ac_try;;
10412esac
10413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10414 (eval "$ac_try") 2>&5
10415 ac_status=$?
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010418
10419cat >>confdefs.h <<\_ACEOF
10420#define HAVE_LIBDL 1
10421_ACEOF
10422 libltdl_cv_func_dlopen="yes"
10423else
10424 echo "$as_me: failed program was:" >&5
10425sed 's/^/| /' conftest.$ac_ext >&5
10426
Reid Spencera773bd52006-08-04 18:18:08 +000010427 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10428echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010429if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10430 echo $ECHO_N "(cached) $ECHO_C" >&6
10431else
10432 ac_check_lib_save_LIBS=$LIBS
10433LIBS="-lsvld $LIBS"
10434cat >conftest.$ac_ext <<_ACEOF
10435/* confdefs.h. */
10436_ACEOF
10437cat confdefs.h >>conftest.$ac_ext
10438cat >>conftest.$ac_ext <<_ACEOF
10439/* end confdefs.h. */
10440
Reid Spencera773bd52006-08-04 18:18:08 +000010441/* Override any GCC internal prototype to avoid an error.
10442 Use char because int might match the return type of a GCC
10443 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010444#ifdef __cplusplus
10445extern "C"
10446#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010447char dlopen ();
10448int
10449main ()
10450{
Reid Spencera773bd52006-08-04 18:18:08 +000010451return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010452 ;
10453 return 0;
10454}
10455_ACEOF
10456rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010457if { (ac_try="$ac_link"
10458case "(($ac_try" in
10459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10460 *) ac_try_echo=$ac_try;;
10461esac
10462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10463 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010464 ac_status=$?
10465 grep -v '^ *+' conftest.er1 >conftest.err
10466 rm -f conftest.er1
10467 cat conftest.err >&5
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010469 (exit $ac_status); } &&
10470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10471 { (case "(($ac_try" in
10472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10473 *) ac_try_echo=$ac_try;;
10474esac
10475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10476 (eval "$ac_try") 2>&5
10477 ac_status=$?
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); }; } &&
10480 { ac_try='test -s conftest$ac_exeext'
10481 { (case "(($ac_try" in
10482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10483 *) ac_try_echo=$ac_try;;
10484esac
10485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10486 (eval "$ac_try") 2>&5
10487 ac_status=$?
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010490 ac_cv_lib_svld_dlopen=yes
10491else
10492 echo "$as_me: failed program was:" >&5
10493sed 's/^/| /' conftest.$ac_ext >&5
10494
Reid Spencera773bd52006-08-04 18:18:08 +000010495 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010496fi
Reid Spencera773bd52006-08-04 18:18:08 +000010497
Bill Wendlingebcceee2009-04-18 11:20:33 +000010498rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010499 conftest$ac_exeext conftest.$ac_ext
10500LIBS=$ac_check_lib_save_LIBS
10501fi
Reid Spencera773bd52006-08-04 18:18:08 +000010502{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10503echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010504if test $ac_cv_lib_svld_dlopen = yes; then
10505
10506cat >>confdefs.h <<\_ACEOF
10507#define HAVE_LIBDL 1
10508_ACEOF
10509
10510 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10511else
Reid Spencera773bd52006-08-04 18:18:08 +000010512 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10513echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010514if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10515 echo $ECHO_N "(cached) $ECHO_C" >&6
10516else
10517 ac_check_lib_save_LIBS=$LIBS
10518LIBS="-ldld $LIBS"
10519cat >conftest.$ac_ext <<_ACEOF
10520/* confdefs.h. */
10521_ACEOF
10522cat confdefs.h >>conftest.$ac_ext
10523cat >>conftest.$ac_ext <<_ACEOF
10524/* end confdefs.h. */
10525
Reid Spencera773bd52006-08-04 18:18:08 +000010526/* Override any GCC internal prototype to avoid an error.
10527 Use char because int might match the return type of a GCC
10528 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010529#ifdef __cplusplus
10530extern "C"
10531#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010532char dld_link ();
10533int
10534main ()
10535{
Reid Spencera773bd52006-08-04 18:18:08 +000010536return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010537 ;
10538 return 0;
10539}
10540_ACEOF
10541rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010542if { (ac_try="$ac_link"
10543case "(($ac_try" in
10544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10545 *) ac_try_echo=$ac_try;;
10546esac
10547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10548 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010549 ac_status=$?
10550 grep -v '^ *+' conftest.er1 >conftest.err
10551 rm -f conftest.er1
10552 cat conftest.err >&5
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010554 (exit $ac_status); } &&
10555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10556 { (case "(($ac_try" in
10557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10558 *) ac_try_echo=$ac_try;;
10559esac
10560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10561 (eval "$ac_try") 2>&5
10562 ac_status=$?
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); }; } &&
10565 { ac_try='test -s conftest$ac_exeext'
10566 { (case "(($ac_try" in
10567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10568 *) ac_try_echo=$ac_try;;
10569esac
10570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10571 (eval "$ac_try") 2>&5
10572 ac_status=$?
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010575 ac_cv_lib_dld_dld_link=yes
10576else
10577 echo "$as_me: failed program was:" >&5
10578sed 's/^/| /' conftest.$ac_ext >&5
10579
Reid Spencera773bd52006-08-04 18:18:08 +000010580 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010581fi
Reid Spencera773bd52006-08-04 18:18:08 +000010582
Bill Wendlingebcceee2009-04-18 11:20:33 +000010583rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010584 conftest$ac_exeext conftest.$ac_ext
10585LIBS=$ac_check_lib_save_LIBS
10586fi
Reid Spencera773bd52006-08-04 18:18:08 +000010587{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10588echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010589if test $ac_cv_lib_dld_dld_link = yes; then
10590
10591cat >>confdefs.h <<\_ACEOF
10592#define HAVE_DLD 1
10593_ACEOF
10594
10595 LIBADD_DL="$LIBADD_DL -ldld"
10596else
Reid Spencera773bd52006-08-04 18:18:08 +000010597 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10598echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010599if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10600 echo $ECHO_N "(cached) $ECHO_C" >&6
10601else
10602 cat >conftest.$ac_ext <<_ACEOF
10603/* confdefs.h. */
10604_ACEOF
10605cat confdefs.h >>conftest.$ac_ext
10606cat >>conftest.$ac_ext <<_ACEOF
10607/* end confdefs.h. */
10608/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10610#define _dyld_func_lookup innocuous__dyld_func_lookup
10611
10612/* System header to define __stub macros and hopefully few prototypes,
10613 which can conflict with char _dyld_func_lookup (); below.
10614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10615 <limits.h> exists even on freestanding compilers. */
10616
10617#ifdef __STDC__
10618# include <limits.h>
10619#else
10620# include <assert.h>
10621#endif
10622
10623#undef _dyld_func_lookup
10624
Reid Spencera773bd52006-08-04 18:18:08 +000010625/* Override any GCC internal prototype to avoid an error.
10626 Use char because int might match the return type of a GCC
10627 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010628#ifdef __cplusplus
10629extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010630#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010631char _dyld_func_lookup ();
10632/* The GNU C library defines this for functions which it implements
10633 to always fail with ENOSYS. Some functions are actually named
10634 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010635#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010636choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010637#endif
10638
10639int
10640main ()
10641{
Reid Spencera773bd52006-08-04 18:18:08 +000010642return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010643 ;
10644 return 0;
10645}
10646_ACEOF
10647rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010648if { (ac_try="$ac_link"
10649case "(($ac_try" in
10650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10651 *) ac_try_echo=$ac_try;;
10652esac
10653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10654 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010655 ac_status=$?
10656 grep -v '^ *+' conftest.er1 >conftest.err
10657 rm -f conftest.er1
10658 cat conftest.err >&5
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010660 (exit $ac_status); } &&
10661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10662 { (case "(($ac_try" in
10663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10664 *) ac_try_echo=$ac_try;;
10665esac
10666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10667 (eval "$ac_try") 2>&5
10668 ac_status=$?
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); }; } &&
10671 { ac_try='test -s conftest$ac_exeext'
10672 { (case "(($ac_try" in
10673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10674 *) ac_try_echo=$ac_try;;
10675esac
10676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10677 (eval "$ac_try") 2>&5
10678 ac_status=$?
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010681 ac_cv_func__dyld_func_lookup=yes
10682else
10683 echo "$as_me: failed program was:" >&5
10684sed 's/^/| /' conftest.$ac_ext >&5
10685
Reid Spencera773bd52006-08-04 18:18:08 +000010686 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010687fi
Reid Spencera773bd52006-08-04 18:18:08 +000010688
Bill Wendlingebcceee2009-04-18 11:20:33 +000010689rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010690 conftest$ac_exeext conftest.$ac_ext
10691fi
Reid Spencera773bd52006-08-04 18:18:08 +000010692{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10693echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010694if test $ac_cv_func__dyld_func_lookup = yes; then
10695
10696cat >>confdefs.h <<\_ACEOF
10697#define HAVE_DYLD 1
10698_ACEOF
10699
10700fi
10701
10702
10703fi
10704
10705
10706fi
10707
10708
10709fi
Reid Spencera773bd52006-08-04 18:18:08 +000010710
Bill Wendlingebcceee2009-04-18 11:20:33 +000010711rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010712 conftest$ac_exeext conftest.$ac_ext
10713
10714fi
10715
10716
10717fi
10718
10719
10720fi
10721
10722
10723if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10724then
10725 lt_save_LIBS="$LIBS"
10726 LIBS="$LIBS $LIBADD_DL"
10727
10728for ac_func in dlerror
10729do
10730as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010731{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10732echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10733if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010734 echo $ECHO_N "(cached) $ECHO_C" >&6
10735else
10736 cat >conftest.$ac_ext <<_ACEOF
10737/* confdefs.h. */
10738_ACEOF
10739cat confdefs.h >>conftest.$ac_ext
10740cat >>conftest.$ac_ext <<_ACEOF
10741/* end confdefs.h. */
10742/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10744#define $ac_func innocuous_$ac_func
10745
10746/* System header to define __stub macros and hopefully few prototypes,
10747 which can conflict with char $ac_func (); below.
10748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10749 <limits.h> exists even on freestanding compilers. */
10750
10751#ifdef __STDC__
10752# include <limits.h>
10753#else
10754# include <assert.h>
10755#endif
10756
10757#undef $ac_func
10758
Reid Spencera773bd52006-08-04 18:18:08 +000010759/* Override any GCC internal prototype to avoid an error.
10760 Use char because int might match the return type of a GCC
10761 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010762#ifdef __cplusplus
10763extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010764#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010765char $ac_func ();
10766/* The GNU C library defines this for functions which it implements
10767 to always fail with ENOSYS. Some functions are actually named
10768 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010769#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010770choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010771#endif
10772
10773int
10774main ()
10775{
Reid Spencera773bd52006-08-04 18:18:08 +000010776return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010777 ;
10778 return 0;
10779}
10780_ACEOF
10781rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010782if { (ac_try="$ac_link"
10783case "(($ac_try" in
10784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10785 *) ac_try_echo=$ac_try;;
10786esac
10787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10788 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010789 ac_status=$?
10790 grep -v '^ *+' conftest.er1 >conftest.err
10791 rm -f conftest.er1
10792 cat conftest.err >&5
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010794 (exit $ac_status); } &&
10795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10796 { (case "(($ac_try" in
10797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10798 *) ac_try_echo=$ac_try;;
10799esac
10800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10801 (eval "$ac_try") 2>&5
10802 ac_status=$?
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); }; } &&
10805 { ac_try='test -s conftest$ac_exeext'
10806 { (case "(($ac_try" in
10807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10808 *) ac_try_echo=$ac_try;;
10809esac
10810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10811 (eval "$ac_try") 2>&5
10812 ac_status=$?
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010815 eval "$as_ac_var=yes"
10816else
10817 echo "$as_me: failed program was:" >&5
10818sed 's/^/| /' conftest.$ac_ext >&5
10819
Reid Spencera773bd52006-08-04 18:18:08 +000010820 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010821fi
Reid Spencera773bd52006-08-04 18:18:08 +000010822
Bill Wendlingebcceee2009-04-18 11:20:33 +000010823rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010824 conftest$ac_exeext conftest.$ac_ext
10825fi
Reid Spencera773bd52006-08-04 18:18:08 +000010826ac_res=`eval echo '${'$as_ac_var'}'`
10827 { echo "$as_me:$LINENO: result: $ac_res" >&5
10828echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010829if test `eval echo '${'$as_ac_var'}'` = yes; then
10830 cat >>confdefs.h <<_ACEOF
10831#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10832_ACEOF
10833
10834fi
10835done
10836
10837 LIBS="$lt_save_LIBS"
10838fi
10839ac_ext=c
10840ac_cpp='$CPP $CPPFLAGS'
10841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10843ac_compiler_gnu=$ac_cv_c_compiler_gnu
10844
10845
10846
Reid Spencera773bd52006-08-04 18:18:08 +000010847{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10848echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010849if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10850 echo $ECHO_N "(cached) $ECHO_C" >&6
10851else
10852 ac_cv_sys_symbol_underscore=no
10853 cat > conftest.$ac_ext <<EOF
10854void nm_test_func(){}
10855int main(){nm_test_func;return 0;}
10856EOF
10857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10858 (eval $ac_compile) 2>&5
10859 ac_status=$?
10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); }; then
10862 # Now try to grab the symbols.
10863 ac_nlist=conftest.nm
10864 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10865 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10866 ac_status=$?
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); } && test -s "$ac_nlist"; then
10869 # See whether the symbols have a leading underscore.
10870 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10871 ac_cv_sys_symbol_underscore=yes
10872 else
10873 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10874 :
10875 else
10876 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10877 fi
10878 fi
10879 else
10880 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10881 fi
10882 else
10883 echo "configure: failed program was:" >&5
10884 cat conftest.c >&5
10885 fi
10886 rm -rf conftest*
10887
10888fi
Reid Spencera773bd52006-08-04 18:18:08 +000010889{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10890echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010891
10892
10893if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10894 if test x"$libltdl_cv_func_dlopen" = xyes ||
10895 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010896 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10897echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010898if test "${libltdl_cv_need_uscore+set}" = set; then
10899 echo $ECHO_N "(cached) $ECHO_C" >&6
10900else
10901 libltdl_cv_need_uscore=unknown
10902 save_LIBS="$LIBS"
10903 LIBS="$LIBS $LIBADD_DL"
10904 if test "$cross_compiling" = yes; then :
10905 libltdl_cv_need_uscore=cross
10906else
10907 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10908 lt_status=$lt_dlunknown
10909 cat > conftest.$ac_ext <<EOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000010910#line 10905 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010911#include "confdefs.h"
10912
10913#if HAVE_DLFCN_H
10914#include <dlfcn.h>
10915#endif
10916
10917#include <stdio.h>
10918
10919#ifdef RTLD_GLOBAL
10920# define LT_DLGLOBAL RTLD_GLOBAL
10921#else
10922# ifdef DL_GLOBAL
10923# define LT_DLGLOBAL DL_GLOBAL
10924# else
10925# define LT_DLGLOBAL 0
10926# endif
10927#endif
10928
10929/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10930 find out it does not work in some platform. */
10931#ifndef LT_DLLAZY_OR_NOW
10932# ifdef RTLD_LAZY
10933# define LT_DLLAZY_OR_NOW RTLD_LAZY
10934# else
10935# ifdef DL_LAZY
10936# define LT_DLLAZY_OR_NOW DL_LAZY
10937# else
10938# ifdef RTLD_NOW
10939# define LT_DLLAZY_OR_NOW RTLD_NOW
10940# else
10941# ifdef DL_NOW
10942# define LT_DLLAZY_OR_NOW DL_NOW
10943# else
10944# define LT_DLLAZY_OR_NOW 0
10945# endif
10946# endif
10947# endif
10948# endif
10949#endif
10950
10951#ifdef __cplusplus
10952extern "C" void exit (int);
10953#endif
10954
10955void fnord() { int i=42;}
10956int main ()
10957{
10958 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10959 int status = $lt_dlunknown;
10960
10961 if (self)
10962 {
10963 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10964 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10965 /* dlclose (self); */
10966 }
Reid Spencera773bd52006-08-04 18:18:08 +000010967 else
10968 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010969
10970 exit (status);
10971}
10972EOF
10973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10974 (eval $ac_link) 2>&5
10975 ac_status=$?
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010978 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010979 lt_status=$?
10980 case x$lt_status in
10981 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10982 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010983 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010984 esac
10985 else :
10986 # compilation failed
10987
10988 fi
10989fi
10990rm -fr conftest*
10991
10992 LIBS="$save_LIBS"
10993
10994fi
Reid Spencera773bd52006-08-04 18:18:08 +000010995{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10996echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010997 fi
10998fi
10999
11000if test x"$libltdl_cv_need_uscore" = xyes; then
11001
11002cat >>confdefs.h <<\_ACEOF
11003#define NEED_USCORE 1
11004_ACEOF
11005
11006fi
11007
11008
Reid Spencera773bd52006-08-04 18:18:08 +000011009{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11010echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011011if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11012 echo $ECHO_N "(cached) $ECHO_C" >&6
11013else
11014 # PORTME does your system automatically load deplibs for dlopen?
11015 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11016 # For now, we just catch OSes we know something about -- in the
11017 # future, we'll try test this programmatically.
11018 libltdl_cv_sys_dlopen_deplibs=unknown
11019 case "$host_os" in
11020 aix3*|aix4.1.*|aix4.2.*)
11021 # Unknown whether this is true for these versions of AIX, but
11022 # we want this `case' here to explicitly catch those versions.
11023 libltdl_cv_sys_dlopen_deplibs=unknown
11024 ;;
11025 aix[45]*)
11026 libltdl_cv_sys_dlopen_deplibs=yes
11027 ;;
11028 darwin*)
11029 # Assuming the user has installed a libdl from somewhere, this is true
11030 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11031 libltdl_cv_sys_dlopen_deplibs=yes
11032 ;;
11033 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11034 # GNU and its variants, using gnu ld.so (Glibc)
11035 libltdl_cv_sys_dlopen_deplibs=yes
11036 ;;
11037 hpux10*|hpux11*)
11038 libltdl_cv_sys_dlopen_deplibs=yes
11039 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011040 interix*)
11041 libltdl_cv_sys_dlopen_deplibs=yes
11042 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011043 irix[12345]*|irix6.[01]*)
11044 # Catch all versions of IRIX before 6.2, and indicate that we don't
11045 # know how it worked for any of those versions.
11046 libltdl_cv_sys_dlopen_deplibs=unknown
11047 ;;
11048 irix*)
11049 # The case above catches anything before 6.2, and it's known that
11050 # at 6.2 and later dlopen does load deplibs.
11051 libltdl_cv_sys_dlopen_deplibs=yes
11052 ;;
11053 netbsd*)
11054 libltdl_cv_sys_dlopen_deplibs=yes
11055 ;;
11056 openbsd*)
11057 libltdl_cv_sys_dlopen_deplibs=yes
11058 ;;
11059 osf[1234]*)
11060 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11061 # it did *not* use an RPATH in a shared library to find objects the
11062 # library depends on, so we explictly say `no'.
11063 libltdl_cv_sys_dlopen_deplibs=no
11064 ;;
11065 osf5.0|osf5.0a|osf5.1)
11066 # dlopen *does* load deplibs and with the right loader patch applied
11067 # it even uses RPATH in a shared library to search for shared objects
11068 # that the library depends on, but there's no easy way to know if that
11069 # patch is installed. Since this is the case, all we can really
11070 # say is unknown -- it depends on the patch being installed. If
11071 # it is, this changes to `yes'. Without it, it would be `no'.
11072 libltdl_cv_sys_dlopen_deplibs=unknown
11073 ;;
11074 osf*)
11075 # the two cases above should catch all versions of osf <= 5.1. Read
11076 # the comments above for what we know about them.
11077 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11078 # is used to find them so we can finally say `yes'.
11079 libltdl_cv_sys_dlopen_deplibs=yes
11080 ;;
11081 solaris*)
11082 libltdl_cv_sys_dlopen_deplibs=yes
11083 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011084 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11085 libltdl_cv_sys_dlopen_deplibs=yes
11086 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011087 esac
11088
11089fi
Reid Spencera773bd52006-08-04 18:18:08 +000011090{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11091echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011092if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11093
11094cat >>confdefs.h <<\_ACEOF
11095#define LTDL_DLOPEN_DEPLIBS 1
11096_ACEOF
11097
11098fi
11099
11100
11101for ac_header in argz.h
11102do
11103as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011104if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11105 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11106echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11107if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011108 echo $ECHO_N "(cached) $ECHO_C" >&6
11109fi
Reid Spencera773bd52006-08-04 18:18:08 +000011110ac_res=`eval echo '${'$as_ac_Header'}'`
11111 { echo "$as_me:$LINENO: result: $ac_res" >&5
11112echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011113else
11114 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011115{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11116echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011117cat >conftest.$ac_ext <<_ACEOF
11118/* confdefs.h. */
11119_ACEOF
11120cat confdefs.h >>conftest.$ac_ext
11121cat >>conftest.$ac_ext <<_ACEOF
11122/* end confdefs.h. */
11123$ac_includes_default
11124#include <$ac_header>
11125_ACEOF
11126rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011127if { (ac_try="$ac_compile"
11128case "(($ac_try" in
11129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11130 *) ac_try_echo=$ac_try;;
11131esac
11132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11133 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011134 ac_status=$?
11135 grep -v '^ *+' conftest.er1 >conftest.err
11136 rm -f conftest.er1
11137 cat conftest.err >&5
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011139 (exit $ac_status); } &&
11140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11141 { (case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11144esac
11145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146 (eval "$ac_try") 2>&5
11147 ac_status=$?
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); }; } &&
11150 { ac_try='test -s conftest.$ac_objext'
11151 { (case "(($ac_try" in
11152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11153 *) ac_try_echo=$ac_try;;
11154esac
11155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11156 (eval "$ac_try") 2>&5
11157 ac_status=$?
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011160 ac_header_compiler=yes
11161else
11162 echo "$as_me: failed program was:" >&5
11163sed 's/^/| /' conftest.$ac_ext >&5
11164
Reid Spencera773bd52006-08-04 18:18:08 +000011165 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011166fi
Reid Spencera773bd52006-08-04 18:18:08 +000011167
11168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11169{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11170echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011171
11172# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011173{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11174echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011175cat >conftest.$ac_ext <<_ACEOF
11176/* confdefs.h. */
11177_ACEOF
11178cat confdefs.h >>conftest.$ac_ext
11179cat >>conftest.$ac_ext <<_ACEOF
11180/* end confdefs.h. */
11181#include <$ac_header>
11182_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011183if { (ac_try="$ac_cpp conftest.$ac_ext"
11184case "(($ac_try" in
11185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11186 *) ac_try_echo=$ac_try;;
11187esac
11188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011190 ac_status=$?
11191 grep -v '^ *+' conftest.er1 >conftest.err
11192 rm -f conftest.er1
11193 cat conftest.err >&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011195 (exit $ac_status); } >/dev/null; then
11196 if test -s conftest.err; then
11197 ac_cpp_err=$ac_c_preproc_warn_flag
11198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11199 else
11200 ac_cpp_err=
11201 fi
11202else
11203 ac_cpp_err=yes
11204fi
11205if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011206 ac_header_preproc=yes
11207else
11208 echo "$as_me: failed program was:" >&5
11209sed 's/^/| /' conftest.$ac_ext >&5
11210
11211 ac_header_preproc=no
11212fi
Reid Spencera773bd52006-08-04 18:18:08 +000011213
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011214rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011215{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11216echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011217
11218# So? What about this header?
11219case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11220 yes:no: )
11221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11222echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11224echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11225 ac_header_preproc=yes
11226 ;;
11227 no:yes:* )
11228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11229echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11231echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11233echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11234 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11235echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11237echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11238 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11239echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011240 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011241## ----------------------------------- ##
11242## Report this to llvmbugs@cs.uiuc.edu ##
11243## ----------------------------------- ##
11244_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011245 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011246 ;;
11247esac
Reid Spencera773bd52006-08-04 18:18:08 +000011248{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11249echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11250if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011251 echo $ECHO_N "(cached) $ECHO_C" >&6
11252else
11253 eval "$as_ac_Header=\$ac_header_preproc"
11254fi
Reid Spencera773bd52006-08-04 18:18:08 +000011255ac_res=`eval echo '${'$as_ac_Header'}'`
11256 { echo "$as_me:$LINENO: result: $ac_res" >&5
11257echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011258
11259fi
11260if test `eval echo '${'$as_ac_Header'}'` = yes; then
11261 cat >>confdefs.h <<_ACEOF
11262#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11263_ACEOF
11264
11265fi
11266
11267done
11268
11269
Reid Spencera773bd52006-08-04 18:18:08 +000011270{ echo "$as_me:$LINENO: checking for error_t" >&5
11271echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011272if test "${ac_cv_type_error_t+set}" = set; then
11273 echo $ECHO_N "(cached) $ECHO_C" >&6
11274else
11275 cat >conftest.$ac_ext <<_ACEOF
11276/* confdefs.h. */
11277_ACEOF
11278cat confdefs.h >>conftest.$ac_ext
11279cat >>conftest.$ac_ext <<_ACEOF
11280/* end confdefs.h. */
11281#if HAVE_ARGZ_H
11282# include <argz.h>
11283#endif
11284
Reid Spencera773bd52006-08-04 18:18:08 +000011285typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011286int
11287main ()
11288{
Reid Spencera773bd52006-08-04 18:18:08 +000011289if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011290 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000011291if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011292 return 0;
11293 ;
11294 return 0;
11295}
11296_ACEOF
11297rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011298if { (ac_try="$ac_compile"
11299case "(($ac_try" in
11300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11301 *) ac_try_echo=$ac_try;;
11302esac
11303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11304 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011305 ac_status=$?
11306 grep -v '^ *+' conftest.er1 >conftest.err
11307 rm -f conftest.er1
11308 cat conftest.err >&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011310 (exit $ac_status); } &&
11311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11312 { (case "(($ac_try" in
11313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11314 *) ac_try_echo=$ac_try;;
11315esac
11316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11317 (eval "$ac_try") 2>&5
11318 ac_status=$?
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); }; } &&
11321 { ac_try='test -s conftest.$ac_objext'
11322 { (case "(($ac_try" in
11323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11324 *) ac_try_echo=$ac_try;;
11325esac
11326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11327 (eval "$ac_try") 2>&5
11328 ac_status=$?
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011331 ac_cv_type_error_t=yes
11332else
11333 echo "$as_me: failed program was:" >&5
11334sed 's/^/| /' conftest.$ac_ext >&5
11335
Reid Spencera773bd52006-08-04 18:18:08 +000011336 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011337fi
Reid Spencera773bd52006-08-04 18:18:08 +000011338
11339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011340fi
Reid Spencera773bd52006-08-04 18:18:08 +000011341{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11342echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011343if test $ac_cv_type_error_t = yes; then
11344
11345cat >>confdefs.h <<_ACEOF
11346#define HAVE_ERROR_T 1
11347_ACEOF
11348
11349
11350else
11351
11352cat >>confdefs.h <<\_ACEOF
11353#define error_t int
11354_ACEOF
11355
11356fi
11357
11358
11359
11360
11361
11362
11363
11364for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11365do
11366as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011367{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11368echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11369if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011370 echo $ECHO_N "(cached) $ECHO_C" >&6
11371else
11372 cat >conftest.$ac_ext <<_ACEOF
11373/* confdefs.h. */
11374_ACEOF
11375cat confdefs.h >>conftest.$ac_ext
11376cat >>conftest.$ac_ext <<_ACEOF
11377/* end confdefs.h. */
11378/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11380#define $ac_func innocuous_$ac_func
11381
11382/* System header to define __stub macros and hopefully few prototypes,
11383 which can conflict with char $ac_func (); below.
11384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11385 <limits.h> exists even on freestanding compilers. */
11386
11387#ifdef __STDC__
11388# include <limits.h>
11389#else
11390# include <assert.h>
11391#endif
11392
11393#undef $ac_func
11394
Reid Spencera773bd52006-08-04 18:18:08 +000011395/* Override any GCC internal prototype to avoid an error.
11396 Use char because int might match the return type of a GCC
11397 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011398#ifdef __cplusplus
11399extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011400#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011401char $ac_func ();
11402/* The GNU C library defines this for functions which it implements
11403 to always fail with ENOSYS. Some functions are actually named
11404 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011405#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011406choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011407#endif
11408
11409int
11410main ()
11411{
Reid Spencera773bd52006-08-04 18:18:08 +000011412return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011413 ;
11414 return 0;
11415}
11416_ACEOF
11417rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011418if { (ac_try="$ac_link"
11419case "(($ac_try" in
11420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11421 *) ac_try_echo=$ac_try;;
11422esac
11423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11424 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011425 ac_status=$?
11426 grep -v '^ *+' conftest.er1 >conftest.err
11427 rm -f conftest.er1
11428 cat conftest.err >&5
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011430 (exit $ac_status); } &&
11431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11432 { (case "(($ac_try" in
11433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11434 *) ac_try_echo=$ac_try;;
11435esac
11436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11437 (eval "$ac_try") 2>&5
11438 ac_status=$?
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); }; } &&
11441 { ac_try='test -s conftest$ac_exeext'
11442 { (case "(($ac_try" in
11443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11444 *) ac_try_echo=$ac_try;;
11445esac
11446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11447 (eval "$ac_try") 2>&5
11448 ac_status=$?
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011451 eval "$as_ac_var=yes"
11452else
11453 echo "$as_me: failed program was:" >&5
11454sed 's/^/| /' conftest.$ac_ext >&5
11455
Reid Spencera773bd52006-08-04 18:18:08 +000011456 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011457fi
Reid Spencera773bd52006-08-04 18:18:08 +000011458
Bill Wendlingebcceee2009-04-18 11:20:33 +000011459rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011460 conftest$ac_exeext conftest.$ac_ext
11461fi
Reid Spencera773bd52006-08-04 18:18:08 +000011462ac_res=`eval echo '${'$as_ac_var'}'`
11463 { echo "$as_me:$LINENO: result: $ac_res" >&5
11464echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011465if test `eval echo '${'$as_ac_var'}'` = yes; then
11466 cat >>confdefs.h <<_ACEOF
11467#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11468_ACEOF
11469
11470fi
11471done
11472
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
11500for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11501 stdio.h unistd.h
11502do
11503as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011504if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11507if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011508 echo $ECHO_N "(cached) $ECHO_C" >&6
11509fi
Reid Spencera773bd52006-08-04 18:18:08 +000011510ac_res=`eval echo '${'$as_ac_Header'}'`
11511 { echo "$as_me:$LINENO: result: $ac_res" >&5
11512echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011513else
11514 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011515{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11516echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011517cat >conftest.$ac_ext <<_ACEOF
11518/* confdefs.h. */
11519_ACEOF
11520cat confdefs.h >>conftest.$ac_ext
11521cat >>conftest.$ac_ext <<_ACEOF
11522/* end confdefs.h. */
11523$ac_includes_default
11524#include <$ac_header>
11525_ACEOF
11526rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011527if { (ac_try="$ac_compile"
11528case "(($ac_try" in
11529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530 *) ac_try_echo=$ac_try;;
11531esac
11532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11533 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011534 ac_status=$?
11535 grep -v '^ *+' conftest.er1 >conftest.err
11536 rm -f conftest.er1
11537 cat conftest.err >&5
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011539 (exit $ac_status); } &&
11540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11541 { (case "(($ac_try" in
11542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11543 *) ac_try_echo=$ac_try;;
11544esac
11545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11546 (eval "$ac_try") 2>&5
11547 ac_status=$?
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); }; } &&
11550 { ac_try='test -s conftest.$ac_objext'
11551 { (case "(($ac_try" in
11552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553 *) ac_try_echo=$ac_try;;
11554esac
11555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556 (eval "$ac_try") 2>&5
11557 ac_status=$?
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011560 ac_header_compiler=yes
11561else
11562 echo "$as_me: failed program was:" >&5
11563sed 's/^/| /' conftest.$ac_ext >&5
11564
Reid Spencera773bd52006-08-04 18:18:08 +000011565 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011566fi
Reid Spencera773bd52006-08-04 18:18:08 +000011567
11568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11569{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11570echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011571
11572# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011573{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11574echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011575cat >conftest.$ac_ext <<_ACEOF
11576/* confdefs.h. */
11577_ACEOF
11578cat confdefs.h >>conftest.$ac_ext
11579cat >>conftest.$ac_ext <<_ACEOF
11580/* end confdefs.h. */
11581#include <$ac_header>
11582_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011583if { (ac_try="$ac_cpp conftest.$ac_ext"
11584case "(($ac_try" in
11585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11586 *) ac_try_echo=$ac_try;;
11587esac
11588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011590 ac_status=$?
11591 grep -v '^ *+' conftest.er1 >conftest.err
11592 rm -f conftest.er1
11593 cat conftest.err >&5
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011595 (exit $ac_status); } >/dev/null; then
11596 if test -s conftest.err; then
11597 ac_cpp_err=$ac_c_preproc_warn_flag
11598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11599 else
11600 ac_cpp_err=
11601 fi
11602else
11603 ac_cpp_err=yes
11604fi
11605if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011606 ac_header_preproc=yes
11607else
11608 echo "$as_me: failed program was:" >&5
11609sed 's/^/| /' conftest.$ac_ext >&5
11610
11611 ac_header_preproc=no
11612fi
Reid Spencera773bd52006-08-04 18:18:08 +000011613
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011614rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011615{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11616echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011617
11618# So? What about this header?
11619case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11620 yes:no: )
11621 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11622echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11624echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11625 ac_header_preproc=yes
11626 ;;
11627 no:yes:* )
11628 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11629echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11630 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11631echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11632 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11633echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11634 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11635echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11637echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11638 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11639echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011640 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011641## ----------------------------------- ##
11642## Report this to llvmbugs@cs.uiuc.edu ##
11643## ----------------------------------- ##
11644_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011645 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011646 ;;
11647esac
Reid Spencera773bd52006-08-04 18:18:08 +000011648{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11650if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011651 echo $ECHO_N "(cached) $ECHO_C" >&6
11652else
11653 eval "$as_ac_Header=\$ac_header_preproc"
11654fi
Reid Spencera773bd52006-08-04 18:18:08 +000011655ac_res=`eval echo '${'$as_ac_Header'}'`
11656 { echo "$as_me:$LINENO: result: $ac_res" >&5
11657echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011658
11659fi
11660if test `eval echo '${'$as_ac_Header'}'` = yes; then
11661 cat >>confdefs.h <<_ACEOF
11662#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11663_ACEOF
11664
11665fi
11666
11667done
11668
11669
11670
11671
11672
11673for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11674do
11675as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011676if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11678echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11679if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011680 echo $ECHO_N "(cached) $ECHO_C" >&6
11681fi
Reid Spencera773bd52006-08-04 18:18:08 +000011682ac_res=`eval echo '${'$as_ac_Header'}'`
11683 { echo "$as_me:$LINENO: result: $ac_res" >&5
11684echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011685else
11686 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011687{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11688echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011689cat >conftest.$ac_ext <<_ACEOF
11690/* confdefs.h. */
11691_ACEOF
11692cat confdefs.h >>conftest.$ac_ext
11693cat >>conftest.$ac_ext <<_ACEOF
11694/* end confdefs.h. */
11695$ac_includes_default
11696#include <$ac_header>
11697_ACEOF
11698rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011699if { (ac_try="$ac_compile"
11700case "(($ac_try" in
11701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11702 *) ac_try_echo=$ac_try;;
11703esac
11704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11705 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011706 ac_status=$?
11707 grep -v '^ *+' conftest.er1 >conftest.err
11708 rm -f conftest.er1
11709 cat conftest.err >&5
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011711 (exit $ac_status); } &&
11712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11713 { (case "(($ac_try" in
11714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11715 *) ac_try_echo=$ac_try;;
11716esac
11717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11718 (eval "$ac_try") 2>&5
11719 ac_status=$?
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; } &&
11722 { ac_try='test -s conftest.$ac_objext'
11723 { (case "(($ac_try" in
11724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725 *) ac_try_echo=$ac_try;;
11726esac
11727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11728 (eval "$ac_try") 2>&5
11729 ac_status=$?
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011732 ac_header_compiler=yes
11733else
11734 echo "$as_me: failed program was:" >&5
11735sed 's/^/| /' conftest.$ac_ext >&5
11736
Reid Spencera773bd52006-08-04 18:18:08 +000011737 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011738fi
Reid Spencera773bd52006-08-04 18:18:08 +000011739
11740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11741{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11742echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011743
11744# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011745{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11746echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011747cat >conftest.$ac_ext <<_ACEOF
11748/* confdefs.h. */
11749_ACEOF
11750cat confdefs.h >>conftest.$ac_ext
11751cat >>conftest.$ac_ext <<_ACEOF
11752/* end confdefs.h. */
11753#include <$ac_header>
11754_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011755if { (ac_try="$ac_cpp conftest.$ac_ext"
11756case "(($ac_try" in
11757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11758 *) ac_try_echo=$ac_try;;
11759esac
11760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011762 ac_status=$?
11763 grep -v '^ *+' conftest.er1 >conftest.err
11764 rm -f conftest.er1
11765 cat conftest.err >&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011767 (exit $ac_status); } >/dev/null; then
11768 if test -s conftest.err; then
11769 ac_cpp_err=$ac_c_preproc_warn_flag
11770 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11771 else
11772 ac_cpp_err=
11773 fi
11774else
11775 ac_cpp_err=yes
11776fi
11777if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011778 ac_header_preproc=yes
11779else
11780 echo "$as_me: failed program was:" >&5
11781sed 's/^/| /' conftest.$ac_ext >&5
11782
11783 ac_header_preproc=no
11784fi
Reid Spencera773bd52006-08-04 18:18:08 +000011785
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011786rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011787{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11788echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011789
11790# So? What about this header?
11791case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11792 yes:no: )
11793 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11794echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11796echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11797 ac_header_preproc=yes
11798 ;;
11799 no:yes:* )
11800 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11801echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11802 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11803echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11804 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11805echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11806 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11807echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11809echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11810 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11811echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011812 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011813## ----------------------------------- ##
11814## Report this to llvmbugs@cs.uiuc.edu ##
11815## ----------------------------------- ##
11816_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011817 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011818 ;;
11819esac
Reid Spencera773bd52006-08-04 18:18:08 +000011820{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11821echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11822if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011823 echo $ECHO_N "(cached) $ECHO_C" >&6
11824else
11825 eval "$as_ac_Header=\$ac_header_preproc"
11826fi
Reid Spencera773bd52006-08-04 18:18:08 +000011827ac_res=`eval echo '${'$as_ac_Header'}'`
11828 { echo "$as_me:$LINENO: result: $ac_res" >&5
11829echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011830
11831fi
11832if test `eval echo '${'$as_ac_Header'}'` = yes; then
11833 cat >>confdefs.h <<_ACEOF
11834#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11835_ACEOF
11836
11837fi
11838
11839done
11840
11841
11842
11843for ac_header in string.h strings.h
11844do
11845as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011846if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11848echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11849if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011850 echo $ECHO_N "(cached) $ECHO_C" >&6
11851fi
Reid Spencera773bd52006-08-04 18:18:08 +000011852ac_res=`eval echo '${'$as_ac_Header'}'`
11853 { echo "$as_me:$LINENO: result: $ac_res" >&5
11854echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011855else
11856 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011857{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11858echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011859cat >conftest.$ac_ext <<_ACEOF
11860/* confdefs.h. */
11861_ACEOF
11862cat confdefs.h >>conftest.$ac_ext
11863cat >>conftest.$ac_ext <<_ACEOF
11864/* end confdefs.h. */
11865$ac_includes_default
11866#include <$ac_header>
11867_ACEOF
11868rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011869if { (ac_try="$ac_compile"
11870case "(($ac_try" in
11871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11872 *) ac_try_echo=$ac_try;;
11873esac
11874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11875 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011876 ac_status=$?
11877 grep -v '^ *+' conftest.er1 >conftest.err
11878 rm -f conftest.er1
11879 cat conftest.err >&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011881 (exit $ac_status); } &&
11882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11883 { (case "(($ac_try" in
11884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11885 *) ac_try_echo=$ac_try;;
11886esac
11887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11888 (eval "$ac_try") 2>&5
11889 ac_status=$?
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); }; } &&
11892 { ac_try='test -s conftest.$ac_objext'
11893 { (case "(($ac_try" in
11894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11895 *) ac_try_echo=$ac_try;;
11896esac
11897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11898 (eval "$ac_try") 2>&5
11899 ac_status=$?
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011902 ac_header_compiler=yes
11903else
11904 echo "$as_me: failed program was:" >&5
11905sed 's/^/| /' conftest.$ac_ext >&5
11906
Reid Spencera773bd52006-08-04 18:18:08 +000011907 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011908fi
Reid Spencera773bd52006-08-04 18:18:08 +000011909
11910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11911{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11912echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011913
11914# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011915{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11916echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011917cat >conftest.$ac_ext <<_ACEOF
11918/* confdefs.h. */
11919_ACEOF
11920cat confdefs.h >>conftest.$ac_ext
11921cat >>conftest.$ac_ext <<_ACEOF
11922/* end confdefs.h. */
11923#include <$ac_header>
11924_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011925if { (ac_try="$ac_cpp conftest.$ac_ext"
11926case "(($ac_try" in
11927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11928 *) ac_try_echo=$ac_try;;
11929esac
11930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011932 ac_status=$?
11933 grep -v '^ *+' conftest.er1 >conftest.err
11934 rm -f conftest.er1
11935 cat conftest.err >&5
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011937 (exit $ac_status); } >/dev/null; then
11938 if test -s conftest.err; then
11939 ac_cpp_err=$ac_c_preproc_warn_flag
11940 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11941 else
11942 ac_cpp_err=
11943 fi
11944else
11945 ac_cpp_err=yes
11946fi
11947if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011948 ac_header_preproc=yes
11949else
11950 echo "$as_me: failed program was:" >&5
11951sed 's/^/| /' conftest.$ac_ext >&5
11952
11953 ac_header_preproc=no
11954fi
Reid Spencera773bd52006-08-04 18:18:08 +000011955
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011956rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011957{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11958echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011959
11960# So? What about this header?
11961case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11962 yes:no: )
11963 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11964echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11966echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11967 ac_header_preproc=yes
11968 ;;
11969 no:yes:* )
11970 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11971echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11972 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11973echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11974 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11975echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11976 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11977echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11979echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11980 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11981echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011982 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011983## ----------------------------------- ##
11984## Report this to llvmbugs@cs.uiuc.edu ##
11985## ----------------------------------- ##
11986_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011987 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011988 ;;
11989esac
Reid Spencera773bd52006-08-04 18:18:08 +000011990{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11991echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11992if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011993 echo $ECHO_N "(cached) $ECHO_C" >&6
11994else
11995 eval "$as_ac_Header=\$ac_header_preproc"
11996fi
Reid Spencera773bd52006-08-04 18:18:08 +000011997ac_res=`eval echo '${'$as_ac_Header'}'`
11998 { echo "$as_me:$LINENO: result: $ac_res" >&5
11999echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012000
12001fi
12002if test `eval echo '${'$as_ac_Header'}'` = yes; then
12003 cat >>confdefs.h <<_ACEOF
12004#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12005_ACEOF
12006 break
12007fi
12008
12009done
12010
12011
12012
12013
12014for ac_func in strchr index
12015do
12016as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012017{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12018echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12019if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012020 echo $ECHO_N "(cached) $ECHO_C" >&6
12021else
12022 cat >conftest.$ac_ext <<_ACEOF
12023/* confdefs.h. */
12024_ACEOF
12025cat confdefs.h >>conftest.$ac_ext
12026cat >>conftest.$ac_ext <<_ACEOF
12027/* end confdefs.h. */
12028/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12030#define $ac_func innocuous_$ac_func
12031
12032/* System header to define __stub macros and hopefully few prototypes,
12033 which can conflict with char $ac_func (); below.
12034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12035 <limits.h> exists even on freestanding compilers. */
12036
12037#ifdef __STDC__
12038# include <limits.h>
12039#else
12040# include <assert.h>
12041#endif
12042
12043#undef $ac_func
12044
Reid Spencera773bd52006-08-04 18:18:08 +000012045/* Override any GCC internal prototype to avoid an error.
12046 Use char because int might match the return type of a GCC
12047 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012048#ifdef __cplusplus
12049extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012050#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012051char $ac_func ();
12052/* The GNU C library defines this for functions which it implements
12053 to always fail with ENOSYS. Some functions are actually named
12054 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012055#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012056choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012057#endif
12058
12059int
12060main ()
12061{
Reid Spencera773bd52006-08-04 18:18:08 +000012062return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012063 ;
12064 return 0;
12065}
12066_ACEOF
12067rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012068if { (ac_try="$ac_link"
12069case "(($ac_try" in
12070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12071 *) ac_try_echo=$ac_try;;
12072esac
12073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12074 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012075 ac_status=$?
12076 grep -v '^ *+' conftest.er1 >conftest.err
12077 rm -f conftest.er1
12078 cat conftest.err >&5
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012080 (exit $ac_status); } &&
12081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12082 { (case "(($ac_try" in
12083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12084 *) ac_try_echo=$ac_try;;
12085esac
12086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12087 (eval "$ac_try") 2>&5
12088 ac_status=$?
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 (exit $ac_status); }; } &&
12091 { ac_try='test -s conftest$ac_exeext'
12092 { (case "(($ac_try" in
12093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094 *) ac_try_echo=$ac_try;;
12095esac
12096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12097 (eval "$ac_try") 2>&5
12098 ac_status=$?
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012101 eval "$as_ac_var=yes"
12102else
12103 echo "$as_me: failed program was:" >&5
12104sed 's/^/| /' conftest.$ac_ext >&5
12105
Reid Spencera773bd52006-08-04 18:18:08 +000012106 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012107fi
Reid Spencera773bd52006-08-04 18:18:08 +000012108
Bill Wendlingebcceee2009-04-18 11:20:33 +000012109rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012110 conftest$ac_exeext conftest.$ac_ext
12111fi
Reid Spencera773bd52006-08-04 18:18:08 +000012112ac_res=`eval echo '${'$as_ac_var'}'`
12113 { echo "$as_me:$LINENO: result: $ac_res" >&5
12114echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012115if test `eval echo '${'$as_ac_var'}'` = yes; then
12116 cat >>confdefs.h <<_ACEOF
12117#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12118_ACEOF
12119 break
12120fi
12121done
12122
12123
12124
12125for ac_func in strrchr rindex
12126do
12127as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012128{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12129echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12130if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012131 echo $ECHO_N "(cached) $ECHO_C" >&6
12132else
12133 cat >conftest.$ac_ext <<_ACEOF
12134/* confdefs.h. */
12135_ACEOF
12136cat confdefs.h >>conftest.$ac_ext
12137cat >>conftest.$ac_ext <<_ACEOF
12138/* end confdefs.h. */
12139/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12141#define $ac_func innocuous_$ac_func
12142
12143/* System header to define __stub macros and hopefully few prototypes,
12144 which can conflict with char $ac_func (); below.
12145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12146 <limits.h> exists even on freestanding compilers. */
12147
12148#ifdef __STDC__
12149# include <limits.h>
12150#else
12151# include <assert.h>
12152#endif
12153
12154#undef $ac_func
12155
Reid Spencera773bd52006-08-04 18:18:08 +000012156/* Override any GCC internal prototype to avoid an error.
12157 Use char because int might match the return type of a GCC
12158 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012159#ifdef __cplusplus
12160extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012161#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012162char $ac_func ();
12163/* The GNU C library defines this for functions which it implements
12164 to always fail with ENOSYS. Some functions are actually named
12165 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012166#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012167choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012168#endif
12169
12170int
12171main ()
12172{
Reid Spencera773bd52006-08-04 18:18:08 +000012173return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012174 ;
12175 return 0;
12176}
12177_ACEOF
12178rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012179if { (ac_try="$ac_link"
12180case "(($ac_try" in
12181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12182 *) ac_try_echo=$ac_try;;
12183esac
12184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12185 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012186 ac_status=$?
12187 grep -v '^ *+' conftest.er1 >conftest.err
12188 rm -f conftest.er1
12189 cat conftest.err >&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012191 (exit $ac_status); } &&
12192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12193 { (case "(($ac_try" in
12194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12195 *) ac_try_echo=$ac_try;;
12196esac
12197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12198 (eval "$ac_try") 2>&5
12199 ac_status=$?
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); }; } &&
12202 { ac_try='test -s conftest$ac_exeext'
12203 { (case "(($ac_try" in
12204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205 *) ac_try_echo=$ac_try;;
12206esac
12207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12208 (eval "$ac_try") 2>&5
12209 ac_status=$?
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012212 eval "$as_ac_var=yes"
12213else
12214 echo "$as_me: failed program was:" >&5
12215sed 's/^/| /' conftest.$ac_ext >&5
12216
Reid Spencera773bd52006-08-04 18:18:08 +000012217 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012218fi
Reid Spencera773bd52006-08-04 18:18:08 +000012219
Bill Wendlingebcceee2009-04-18 11:20:33 +000012220rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012221 conftest$ac_exeext conftest.$ac_ext
12222fi
Reid Spencera773bd52006-08-04 18:18:08 +000012223ac_res=`eval echo '${'$as_ac_var'}'`
12224 { echo "$as_me:$LINENO: result: $ac_res" >&5
12225echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012226if test `eval echo '${'$as_ac_var'}'` = yes; then
12227 cat >>confdefs.h <<_ACEOF
12228#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12229_ACEOF
12230 break
12231fi
12232done
12233
12234
12235
12236for ac_func in memcpy bcopy
12237do
12238as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012239{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12240echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12241if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012242 echo $ECHO_N "(cached) $ECHO_C" >&6
12243else
12244 cat >conftest.$ac_ext <<_ACEOF
12245/* confdefs.h. */
12246_ACEOF
12247cat confdefs.h >>conftest.$ac_ext
12248cat >>conftest.$ac_ext <<_ACEOF
12249/* end confdefs.h. */
12250/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12252#define $ac_func innocuous_$ac_func
12253
12254/* System header to define __stub macros and hopefully few prototypes,
12255 which can conflict with char $ac_func (); below.
12256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12257 <limits.h> exists even on freestanding compilers. */
12258
12259#ifdef __STDC__
12260# include <limits.h>
12261#else
12262# include <assert.h>
12263#endif
12264
12265#undef $ac_func
12266
Reid Spencera773bd52006-08-04 18:18:08 +000012267/* Override any GCC internal prototype to avoid an error.
12268 Use char because int might match the return type of a GCC
12269 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012270#ifdef __cplusplus
12271extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012272#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012273char $ac_func ();
12274/* The GNU C library defines this for functions which it implements
12275 to always fail with ENOSYS. Some functions are actually named
12276 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012277#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012278choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012279#endif
12280
12281int
12282main ()
12283{
Reid Spencera773bd52006-08-04 18:18:08 +000012284return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012285 ;
12286 return 0;
12287}
12288_ACEOF
12289rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012290if { (ac_try="$ac_link"
12291case "(($ac_try" in
12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293 *) ac_try_echo=$ac_try;;
12294esac
12295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012297 ac_status=$?
12298 grep -v '^ *+' conftest.er1 >conftest.err
12299 rm -f conftest.er1
12300 cat conftest.err >&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012302 (exit $ac_status); } &&
12303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12304 { (case "(($ac_try" in
12305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12306 *) ac_try_echo=$ac_try;;
12307esac
12308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12309 (eval "$ac_try") 2>&5
12310 ac_status=$?
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; } &&
12313 { ac_try='test -s conftest$ac_exeext'
12314 { (case "(($ac_try" in
12315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12316 *) ac_try_echo=$ac_try;;
12317esac
12318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12319 (eval "$ac_try") 2>&5
12320 ac_status=$?
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012323 eval "$as_ac_var=yes"
12324else
12325 echo "$as_me: failed program was:" >&5
12326sed 's/^/| /' conftest.$ac_ext >&5
12327
Reid Spencera773bd52006-08-04 18:18:08 +000012328 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012329fi
Reid Spencera773bd52006-08-04 18:18:08 +000012330
Bill Wendlingebcceee2009-04-18 11:20:33 +000012331rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012332 conftest$ac_exeext conftest.$ac_ext
12333fi
Reid Spencera773bd52006-08-04 18:18:08 +000012334ac_res=`eval echo '${'$as_ac_var'}'`
12335 { echo "$as_me:$LINENO: result: $ac_res" >&5
12336echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012337if test `eval echo '${'$as_ac_var'}'` = yes; then
12338 cat >>confdefs.h <<_ACEOF
12339#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12340_ACEOF
12341 break
12342fi
12343done
12344
12345
12346
12347for ac_func in memmove strcmp
12348do
12349as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012350{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12351echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12352if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012353 echo $ECHO_N "(cached) $ECHO_C" >&6
12354else
12355 cat >conftest.$ac_ext <<_ACEOF
12356/* confdefs.h. */
12357_ACEOF
12358cat confdefs.h >>conftest.$ac_ext
12359cat >>conftest.$ac_ext <<_ACEOF
12360/* end confdefs.h. */
12361/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12363#define $ac_func innocuous_$ac_func
12364
12365/* System header to define __stub macros and hopefully few prototypes,
12366 which can conflict with char $ac_func (); below.
12367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12368 <limits.h> exists even on freestanding compilers. */
12369
12370#ifdef __STDC__
12371# include <limits.h>
12372#else
12373# include <assert.h>
12374#endif
12375
12376#undef $ac_func
12377
Reid Spencera773bd52006-08-04 18:18:08 +000012378/* Override any GCC internal prototype to avoid an error.
12379 Use char because int might match the return type of a GCC
12380 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012381#ifdef __cplusplus
12382extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012383#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012384char $ac_func ();
12385/* The GNU C library defines this for functions which it implements
12386 to always fail with ENOSYS. Some functions are actually named
12387 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012388#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012389choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012390#endif
12391
12392int
12393main ()
12394{
Reid Spencera773bd52006-08-04 18:18:08 +000012395return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012396 ;
12397 return 0;
12398}
12399_ACEOF
12400rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012401if { (ac_try="$ac_link"
12402case "(($ac_try" in
12403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12404 *) ac_try_echo=$ac_try;;
12405esac
12406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12407 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012408 ac_status=$?
12409 grep -v '^ *+' conftest.er1 >conftest.err
12410 rm -f conftest.er1
12411 cat conftest.err >&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012413 (exit $ac_status); } &&
12414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12415 { (case "(($ac_try" in
12416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12417 *) ac_try_echo=$ac_try;;
12418esac
12419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12420 (eval "$ac_try") 2>&5
12421 ac_status=$?
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; } &&
12424 { ac_try='test -s conftest$ac_exeext'
12425 { (case "(($ac_try" in
12426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12427 *) ac_try_echo=$ac_try;;
12428esac
12429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12430 (eval "$ac_try") 2>&5
12431 ac_status=$?
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012434 eval "$as_ac_var=yes"
12435else
12436 echo "$as_me: failed program was:" >&5
12437sed 's/^/| /' conftest.$ac_ext >&5
12438
Reid Spencera773bd52006-08-04 18:18:08 +000012439 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012440fi
Reid Spencera773bd52006-08-04 18:18:08 +000012441
Bill Wendlingebcceee2009-04-18 11:20:33 +000012442rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012443 conftest$ac_exeext conftest.$ac_ext
12444fi
Reid Spencera773bd52006-08-04 18:18:08 +000012445ac_res=`eval echo '${'$as_ac_var'}'`
12446 { echo "$as_me:$LINENO: result: $ac_res" >&5
12447echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012448if test `eval echo '${'$as_ac_var'}'` = yes; then
12449 cat >>confdefs.h <<_ACEOF
12450#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12451_ACEOF
12452
12453fi
12454done
12455
12456
12457
12458
12459for ac_func in closedir opendir readdir
12460do
12461as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012462{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12463echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12464if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012465 echo $ECHO_N "(cached) $ECHO_C" >&6
12466else
12467 cat >conftest.$ac_ext <<_ACEOF
12468/* confdefs.h. */
12469_ACEOF
12470cat confdefs.h >>conftest.$ac_ext
12471cat >>conftest.$ac_ext <<_ACEOF
12472/* end confdefs.h. */
12473/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12475#define $ac_func innocuous_$ac_func
12476
12477/* System header to define __stub macros and hopefully few prototypes,
12478 which can conflict with char $ac_func (); below.
12479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12480 <limits.h> exists even on freestanding compilers. */
12481
12482#ifdef __STDC__
12483# include <limits.h>
12484#else
12485# include <assert.h>
12486#endif
12487
12488#undef $ac_func
12489
Reid Spencera773bd52006-08-04 18:18:08 +000012490/* Override any GCC internal prototype to avoid an error.
12491 Use char because int might match the return type of a GCC
12492 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012493#ifdef __cplusplus
12494extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012495#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012496char $ac_func ();
12497/* The GNU C library defines this for functions which it implements
12498 to always fail with ENOSYS. Some functions are actually named
12499 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012500#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012501choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012502#endif
12503
12504int
12505main ()
12506{
Reid Spencera773bd52006-08-04 18:18:08 +000012507return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012508 ;
12509 return 0;
12510}
12511_ACEOF
12512rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012513if { (ac_try="$ac_link"
12514case "(($ac_try" in
12515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516 *) ac_try_echo=$ac_try;;
12517esac
12518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12519 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012520 ac_status=$?
12521 grep -v '^ *+' conftest.er1 >conftest.err
12522 rm -f conftest.er1
12523 cat conftest.err >&5
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012525 (exit $ac_status); } &&
12526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12527 { (case "(($ac_try" in
12528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12529 *) ac_try_echo=$ac_try;;
12530esac
12531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12532 (eval "$ac_try") 2>&5
12533 ac_status=$?
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }; } &&
12536 { ac_try='test -s conftest$ac_exeext'
12537 { (case "(($ac_try" in
12538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12539 *) ac_try_echo=$ac_try;;
12540esac
12541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12542 (eval "$ac_try") 2>&5
12543 ac_status=$?
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012546 eval "$as_ac_var=yes"
12547else
12548 echo "$as_me: failed program was:" >&5
12549sed 's/^/| /' conftest.$ac_ext >&5
12550
Reid Spencera773bd52006-08-04 18:18:08 +000012551 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012552fi
Reid Spencera773bd52006-08-04 18:18:08 +000012553
Bill Wendlingebcceee2009-04-18 11:20:33 +000012554rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012555 conftest$ac_exeext conftest.$ac_ext
12556fi
Reid Spencera773bd52006-08-04 18:18:08 +000012557ac_res=`eval echo '${'$as_ac_var'}'`
12558 { echo "$as_me:$LINENO: result: $ac_res" >&5
12559echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012560if test `eval echo '${'$as_ac_var'}'` = yes; then
12561 cat >>confdefs.h <<_ACEOF
12562#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12563_ACEOF
12564
12565fi
12566done
12567
12568
Reid Spencera773bd52006-08-04 18:18:08 +000012569# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012570if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012571 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012572 case $enableval in
12573 yes) enable_shared=yes ;;
12574 no) enable_shared=no ;;
12575 *)
12576 enable_shared=no
12577 # Look at the argument we got. We use all the common list separators.
12578 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12579 for pkg in $enableval; do
12580 IFS="$lt_save_ifs"
12581 if test "X$pkg" = "X$p"; then
12582 enable_shared=yes
12583 fi
12584 done
12585 IFS="$lt_save_ifs"
12586 ;;
12587 esac
12588else
12589 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012590fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012591
Reid Spencera773bd52006-08-04 18:18:08 +000012592
12593# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012594if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012595 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012596 case $enableval in
12597 yes) enable_static=yes ;;
12598 no) enable_static=no ;;
12599 *)
12600 enable_static=no
12601 # Look at the argument we got. We use all the common list separators.
12602 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12603 for pkg in $enableval; do
12604 IFS="$lt_save_ifs"
12605 if test "X$pkg" = "X$p"; then
12606 enable_static=yes
12607 fi
12608 done
12609 IFS="$lt_save_ifs"
12610 ;;
12611 esac
12612else
12613 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012614fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012615
Reid Spencera773bd52006-08-04 18:18:08 +000012616
12617# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012618if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012619 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012620 case $enableval in
12621 yes) enable_fast_install=yes ;;
12622 no) enable_fast_install=no ;;
12623 *)
12624 enable_fast_install=no
12625 # Look at the argument we got. We use all the common list separators.
12626 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12627 for pkg in $enableval; do
12628 IFS="$lt_save_ifs"
12629 if test "X$pkg" = "X$p"; then
12630 enable_fast_install=yes
12631 fi
12632 done
12633 IFS="$lt_save_ifs"
12634 ;;
12635 esac
12636else
12637 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012638fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012639
Reid Spencera773bd52006-08-04 18:18:08 +000012640
12641{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12642echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012643if test "${lt_cv_path_SED+set}" = set; then
12644 echo $ECHO_N "(cached) $ECHO_C" >&6
12645else
12646 # Loop through the user's path and test for sed and gsed.
12647# Then use that list of sed's as ones to test for truncation.
12648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12649for as_dir in $PATH
12650do
12651 IFS=$as_save_IFS
12652 test -z "$as_dir" && as_dir=.
12653 for lt_ac_prog in sed gsed; do
12654 for ac_exec_ext in '' $ac_executable_extensions; do
12655 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12656 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12657 fi
12658 done
12659 done
12660done
12661lt_ac_max=0
12662lt_ac_count=0
12663# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12664# along with /bin/sed that truncates output.
12665for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012666 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012667 cat /dev/null > conftest.in
12668 lt_ac_count=0
12669 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12670 # Check for GNU sed and select it if it is found.
12671 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12672 lt_cv_path_SED=$lt_ac_sed
12673 break
12674 fi
12675 while true; do
12676 cat conftest.in conftest.in >conftest.tmp
12677 mv conftest.tmp conftest.in
12678 cp conftest.in conftest.nl
12679 echo >>conftest.nl
12680 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12681 cmp -s conftest.out conftest.nl || break
12682 # 10000 chars as input seems more than enough
12683 test $lt_ac_count -gt 10 && break
12684 lt_ac_count=`expr $lt_ac_count + 1`
12685 if test $lt_ac_count -gt $lt_ac_max; then
12686 lt_ac_max=$lt_ac_count
12687 lt_cv_path_SED=$lt_ac_sed
12688 fi
12689 done
12690done
12691
12692fi
12693
12694SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012695{ echo "$as_me:$LINENO: result: $SED" >&5
12696echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012697
12698
Reid Spencera773bd52006-08-04 18:18:08 +000012699# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012700if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012701 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012702else
12703 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012704fi
12705
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012706ac_prog=ld
12707if test "$GCC" = yes; then
12708 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012709 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12710echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012711 case $host in
12712 *-*-mingw*)
12713 # gcc leaves a trailing carriage return which upsets mingw
12714 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12715 *)
12716 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12717 esac
12718 case $ac_prog in
12719 # Accept absolute paths.
12720 [\\/]* | ?:[\\/]*)
12721 re_direlt='/[^/][^/]*/\.\./'
12722 # Canonicalize the pathname of ld
12723 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12724 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12725 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12726 done
12727 test -z "$LD" && LD="$ac_prog"
12728 ;;
12729 "")
12730 # If it fails, then pretend we aren't using GCC.
12731 ac_prog=ld
12732 ;;
12733 *)
12734 # If it is relative, then search for the first ld in PATH.
12735 with_gnu_ld=unknown
12736 ;;
12737 esac
12738elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012739 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12740echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012741else
Reid Spencera773bd52006-08-04 18:18:08 +000012742 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12743echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012744fi
12745if test "${lt_cv_path_LD+set}" = set; then
12746 echo $ECHO_N "(cached) $ECHO_C" >&6
12747else
12748 if test -z "$LD"; then
12749 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12750 for ac_dir in $PATH; do
12751 IFS="$lt_save_ifs"
12752 test -z "$ac_dir" && ac_dir=.
12753 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12754 lt_cv_path_LD="$ac_dir/$ac_prog"
12755 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012756 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012757 # Break only if it was the GNU/non-GNU ld that we prefer.
12758 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12759 *GNU* | *'with BFD'*)
12760 test "$with_gnu_ld" != no && break
12761 ;;
12762 *)
12763 test "$with_gnu_ld" != yes && break
12764 ;;
12765 esac
12766 fi
12767 done
12768 IFS="$lt_save_ifs"
12769else
12770 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12771fi
12772fi
12773
12774LD="$lt_cv_path_LD"
12775if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012776 { echo "$as_me:$LINENO: result: $LD" >&5
12777echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012778else
Reid Spencera773bd52006-08-04 18:18:08 +000012779 { echo "$as_me:$LINENO: result: no" >&5
12780echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012781fi
12782test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12783echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12784 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012785{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12786echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012787if test "${lt_cv_prog_gnu_ld+set}" = set; then
12788 echo $ECHO_N "(cached) $ECHO_C" >&6
12789else
Reid Spencera773bd52006-08-04 18:18:08 +000012790 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012791case `$LD -v 2>&1 </dev/null` in
12792*GNU* | *'with BFD'*)
12793 lt_cv_prog_gnu_ld=yes
12794 ;;
12795*)
12796 lt_cv_prog_gnu_ld=no
12797 ;;
12798esac
12799fi
Reid Spencera773bd52006-08-04 18:18:08 +000012800{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12801echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012802with_gnu_ld=$lt_cv_prog_gnu_ld
12803
12804
Reid Spencera773bd52006-08-04 18:18:08 +000012805{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12806echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012807if test "${lt_cv_ld_reload_flag+set}" = set; then
12808 echo $ECHO_N "(cached) $ECHO_C" >&6
12809else
12810 lt_cv_ld_reload_flag='-r'
12811fi
Reid Spencera773bd52006-08-04 18:18:08 +000012812{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12813echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012814reload_flag=$lt_cv_ld_reload_flag
12815case $reload_flag in
12816"" | " "*) ;;
12817*) reload_flag=" $reload_flag" ;;
12818esac
12819reload_cmds='$LD$reload_flag -o $output$reload_objs'
12820case $host_os in
12821 darwin*)
12822 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012823 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012824 else
12825 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12826 fi
12827 ;;
12828esac
12829
Reid Spencera773bd52006-08-04 18:18:08 +000012830{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12831echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012832if test "${lt_cv_deplibs_check_method+set}" = set; then
12833 echo $ECHO_N "(cached) $ECHO_C" >&6
12834else
12835 lt_cv_file_magic_cmd='$MAGIC_CMD'
12836lt_cv_file_magic_test_file=
12837lt_cv_deplibs_check_method='unknown'
12838# Need to set the preceding variable on all platforms that support
12839# interlibrary dependencies.
12840# 'none' -- dependencies not supported.
12841# `unknown' -- same as none, but documents that we really don't know.
12842# 'pass_all' -- all dependencies passed with no checks.
12843# 'test_compile' -- check by making test program.
12844# 'file_magic [[regex]]' -- check by looking for files in library path
12845# which responds to the $file_magic_cmd with a given extended regex.
12846# If you have `file' or equivalent on your system and you're not sure
12847# whether `pass_all' will *always* work, you probably want this one.
12848
12849case $host_os in
12850aix4* | aix5*)
12851 lt_cv_deplibs_check_method=pass_all
12852 ;;
12853
12854beos*)
12855 lt_cv_deplibs_check_method=pass_all
12856 ;;
12857
12858bsdi[45]*)
12859 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12860 lt_cv_file_magic_cmd='/usr/bin/file -L'
12861 lt_cv_file_magic_test_file=/shlib/libc.so
12862 ;;
12863
12864cygwin*)
12865 # func_win32_libid is a shell function defined in ltmain.sh
12866 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12867 lt_cv_file_magic_cmd='func_win32_libid'
12868 ;;
12869
12870mingw* | pw32*)
12871 # Base MSYS/MinGW do not provide the 'file' command needed by
12872 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12873 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12874 lt_cv_file_magic_cmd='$OBJDUMP -f'
12875 ;;
12876
12877darwin* | rhapsody*)
12878 lt_cv_deplibs_check_method=pass_all
12879 ;;
12880
Reid Spencera773bd52006-08-04 18:18:08 +000012881freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012882 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12883 case $host_cpu in
12884 i*86 )
12885 # Not sure whether the presence of OpenBSD here was a mistake.
12886 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012887 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 +000012888 lt_cv_file_magic_cmd=/usr/bin/file
12889 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12890 ;;
12891 esac
12892 else
12893 lt_cv_deplibs_check_method=pass_all
12894 fi
12895 ;;
12896
12897gnu*)
12898 lt_cv_deplibs_check_method=pass_all
12899 ;;
12900
12901hpux10.20* | hpux11*)
12902 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012903 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012904 ia64*)
12905 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12906 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12907 ;;
12908 hppa*64*)
12909 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]'
12910 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12911 ;;
12912 *)
12913 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12914 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12915 ;;
12916 esac
12917 ;;
12918
Reid Spencera773bd52006-08-04 18:18:08 +000012919interix3*)
12920 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12921 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12922 ;;
12923
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012924irix5* | irix6* | nonstopux*)
12925 case $LD in
12926 *-32|*"-32 ") libmagic=32-bit;;
12927 *-n32|*"-n32 ") libmagic=N32;;
12928 *-64|*"-64 ") libmagic=64-bit;;
12929 *) libmagic=never-match;;
12930 esac
12931 lt_cv_deplibs_check_method=pass_all
12932 ;;
12933
12934# This must be Linux ELF.
12935linux*)
12936 lt_cv_deplibs_check_method=pass_all
12937 ;;
12938
12939netbsd*)
12940 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12941 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12942 else
12943 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12944 fi
12945 ;;
12946
12947newos6*)
12948 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12949 lt_cv_file_magic_cmd=/usr/bin/file
12950 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12951 ;;
12952
12953nto-qnx*)
12954 lt_cv_deplibs_check_method=unknown
12955 ;;
12956
12957openbsd*)
12958 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12959 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12960 else
12961 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12962 fi
12963 ;;
12964
12965osf3* | osf4* | osf5*)
12966 lt_cv_deplibs_check_method=pass_all
12967 ;;
12968
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012969solaris*)
12970 lt_cv_deplibs_check_method=pass_all
12971 ;;
12972
Reid Spencera773bd52006-08-04 18:18:08 +000012973sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012974 case $host_vendor in
12975 motorola)
12976 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]'
12977 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12978 ;;
12979 ncr)
12980 lt_cv_deplibs_check_method=pass_all
12981 ;;
12982 sequent)
12983 lt_cv_file_magic_cmd='/bin/file'
12984 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12985 ;;
12986 sni)
12987 lt_cv_file_magic_cmd='/bin/file'
12988 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12989 lt_cv_file_magic_test_file=/lib/libc.so
12990 ;;
12991 siemens)
12992 lt_cv_deplibs_check_method=pass_all
12993 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012994 pc)
12995 lt_cv_deplibs_check_method=pass_all
12996 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012997 esac
12998 ;;
12999
Reid Spencera773bd52006-08-04 18:18:08 +000013000sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013001 lt_cv_deplibs_check_method=pass_all
13002 ;;
13003esac
13004
13005fi
Reid Spencera773bd52006-08-04 18:18:08 +000013006{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13007echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013008file_magic_cmd=$lt_cv_file_magic_cmd
13009deplibs_check_method=$lt_cv_deplibs_check_method
13010test -z "$deplibs_check_method" && deplibs_check_method=unknown
13011
13012
13013
13014# If no C compiler was specified, use CC.
13015LTCC=${LTCC-"$CC"}
13016
Reid Spencera773bd52006-08-04 18:18:08 +000013017# If no C compiler flags were specified, use CFLAGS.
13018LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13019
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013020# Allow CC to be a program name with arguments.
13021compiler=$CC
13022
Reid Spencera773bd52006-08-04 18:18:08 +000013023# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013024if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013025 enableval=$enable_libtool_lock;
13026fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013027
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013028test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13029
13030# Some flags need to be propagated to the compiler or linker for good
13031# libtool support.
13032case $host in
13033ia64-*-hpux*)
13034 # Find out which ABI we are using.
13035 echo 'int i;' > conftest.$ac_ext
13036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13037 (eval $ac_compile) 2>&5
13038 ac_status=$?
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); }; then
13041 case `/usr/bin/file conftest.$ac_objext` in
13042 *ELF-32*)
13043 HPUX_IA64_MODE="32"
13044 ;;
13045 *ELF-64*)
13046 HPUX_IA64_MODE="64"
13047 ;;
13048 esac
13049 fi
13050 rm -rf conftest*
13051 ;;
13052*-*-irix6*)
13053 # Find out which ABI we are using.
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013054 echo '#line 13049 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13056 (eval $ac_compile) 2>&5
13057 ac_status=$?
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); }; then
13060 if test "$lt_cv_prog_gnu_ld" = yes; then
13061 case `/usr/bin/file conftest.$ac_objext` in
13062 *32-bit*)
13063 LD="${LD-ld} -melf32bsmip"
13064 ;;
13065 *N32*)
13066 LD="${LD-ld} -melf32bmipn32"
13067 ;;
13068 *64-bit*)
13069 LD="${LD-ld} -melf64bmip"
13070 ;;
13071 esac
13072 else
13073 case `/usr/bin/file conftest.$ac_objext` in
13074 *32-bit*)
13075 LD="${LD-ld} -32"
13076 ;;
13077 *N32*)
13078 LD="${LD-ld} -n32"
13079 ;;
13080 *64-bit*)
13081 LD="${LD-ld} -64"
13082 ;;
13083 esac
13084 fi
13085 fi
13086 rm -rf conftest*
13087 ;;
13088
13089x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13090 # Find out which ABI we are using.
13091 echo 'int i;' > conftest.$ac_ext
13092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13093 (eval $ac_compile) 2>&5
13094 ac_status=$?
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013097 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013098 *32-bit*)
13099 case $host in
13100 x86_64-*linux*)
13101 LD="${LD-ld} -m elf_i386"
13102 ;;
13103 ppc64-*linux*|powerpc64-*linux*)
13104 LD="${LD-ld} -m elf32ppclinux"
13105 ;;
13106 s390x-*linux*)
13107 LD="${LD-ld} -m elf_s390"
13108 ;;
13109 sparc64-*linux*)
13110 LD="${LD-ld} -m elf32_sparc"
13111 ;;
13112 esac
13113 ;;
13114 *64-bit*)
13115 case $host in
13116 x86_64-*linux*)
13117 LD="${LD-ld} -m elf_x86_64"
13118 ;;
13119 ppc*-*linux*|powerpc*-*linux*)
13120 LD="${LD-ld} -m elf64ppc"
13121 ;;
13122 s390*-*linux*)
13123 LD="${LD-ld} -m elf64_s390"
13124 ;;
13125 sparc*-*linux*)
13126 LD="${LD-ld} -m elf64_sparc"
13127 ;;
13128 esac
13129 ;;
13130 esac
13131 fi
13132 rm -rf conftest*
13133 ;;
13134
13135*-*-sco3.2v5*)
13136 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13137 SAVE_CFLAGS="$CFLAGS"
13138 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000013139 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13140echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013141if test "${lt_cv_cc_needs_belf+set}" = set; then
13142 echo $ECHO_N "(cached) $ECHO_C" >&6
13143else
13144 ac_ext=c
13145ac_cpp='$CPP $CPPFLAGS'
13146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13148ac_compiler_gnu=$ac_cv_c_compiler_gnu
13149
13150 cat >conftest.$ac_ext <<_ACEOF
13151/* confdefs.h. */
13152_ACEOF
13153cat confdefs.h >>conftest.$ac_ext
13154cat >>conftest.$ac_ext <<_ACEOF
13155/* end confdefs.h. */
13156
Reid Spencera773bd52006-08-04 18:18:08 +000013157int
13158main ()
13159{
13160
13161 ;
13162 return 0;
13163}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013164_ACEOF
13165rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000013166if { (ac_try="$ac_link"
13167case "(($ac_try" in
13168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13169 *) ac_try_echo=$ac_try;;
13170esac
13171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13172 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013173 ac_status=$?
13174 grep -v '^ *+' conftest.er1 >conftest.err
13175 rm -f conftest.er1
13176 cat conftest.err >&5
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013178 (exit $ac_status); } &&
13179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13180 { (case "(($ac_try" in
13181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13182 *) ac_try_echo=$ac_try;;
13183esac
13184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13185 (eval "$ac_try") 2>&5
13186 ac_status=$?
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); }; } &&
13189 { ac_try='test -s conftest$ac_exeext'
13190 { (case "(($ac_try" in
13191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13192 *) ac_try_echo=$ac_try;;
13193esac
13194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13195 (eval "$ac_try") 2>&5
13196 ac_status=$?
13197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013199 lt_cv_cc_needs_belf=yes
13200else
13201 echo "$as_me: failed program was:" >&5
13202sed 's/^/| /' conftest.$ac_ext >&5
13203
Reid Spencera773bd52006-08-04 18:18:08 +000013204 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013205fi
Reid Spencera773bd52006-08-04 18:18:08 +000013206
Bill Wendlingebcceee2009-04-18 11:20:33 +000013207rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013208 conftest$ac_exeext conftest.$ac_ext
13209 ac_ext=c
13210ac_cpp='$CPP $CPPFLAGS'
13211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13213ac_compiler_gnu=$ac_cv_c_compiler_gnu
13214
13215fi
Reid Spencera773bd52006-08-04 18:18:08 +000013216{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13217echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013218 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13219 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13220 CFLAGS="$SAVE_CFLAGS"
13221 fi
13222 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013223sparc*-*solaris*)
13224 # Find out which ABI we are using.
13225 echo 'int i;' > conftest.$ac_ext
13226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13227 (eval $ac_compile) 2>&5
13228 ac_status=$?
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); }; then
13231 case `/usr/bin/file conftest.o` in
13232 *64-bit*)
13233 case $lt_cv_prog_gnu_ld in
13234 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13235 *) LD="${LD-ld} -64" ;;
13236 esac
13237 ;;
13238 esac
13239 fi
13240 rm -rf conftest*
13241 ;;
13242
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013243
13244esac
13245
13246need_locks="$enable_libtool_lock"
13247
13248
Reid Spencer2706f8c2004-09-19 23:53:36 +000013249
13250
13251if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13252 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13253 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013254 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013255ac_cpp='$CXXCPP $CPPFLAGS'
13256ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13257ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13258ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000013259{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13260echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013261if test -z "$CXXCPP"; then
13262 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013263 echo $ECHO_N "(cached) $ECHO_C" >&6
13264else
John Criswell47fdd832003-07-14 16:52:07 +000013265 # Double quotes because CXXCPP needs to be expanded
13266 for CXXCPP in "$CXX -E" "/lib/cpp"
13267 do
13268 ac_preproc_ok=false
13269for ac_cxx_preproc_warn_flag in '' yes
13270do
13271 # Use a header file that comes with gcc, so configuring glibc
13272 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013273 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13274 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013275 # On the NeXT, cc -E runs the code through the compiler's parser,
13276 # not just through cpp. "Syntax error" is here to catch this case.
13277 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013278/* confdefs.h. */
13279_ACEOF
13280cat confdefs.h >>conftest.$ac_ext
13281cat >>conftest.$ac_ext <<_ACEOF
13282/* end confdefs.h. */
13283#ifdef __STDC__
13284# include <limits.h>
13285#else
13286# include <assert.h>
13287#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013288 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013289_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013290if { (ac_try="$ac_cpp conftest.$ac_ext"
13291case "(($ac_try" in
13292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13293 *) ac_try_echo=$ac_try;;
13294esac
13295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013297 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013298 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013299 rm -f conftest.er1
13300 cat conftest.err >&5
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013302 (exit $ac_status); } >/dev/null; then
13303 if test -s conftest.err; then
13304 ac_cpp_err=$ac_cxx_preproc_warn_flag
13305 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13306 else
13307 ac_cpp_err=
13308 fi
13309else
13310 ac_cpp_err=yes
13311fi
13312if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013313 :
13314else
13315 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013316sed 's/^/| /' conftest.$ac_ext >&5
13317
John Criswell47fdd832003-07-14 16:52:07 +000013318 # Broken: fails on valid input.
13319continue
13320fi
Reid Spencera773bd52006-08-04 18:18:08 +000013321
John Criswell47fdd832003-07-14 16:52:07 +000013322rm -f conftest.err conftest.$ac_ext
13323
Reid Spencera773bd52006-08-04 18:18:08 +000013324 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013325 # can be detected and how.
13326 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013327/* confdefs.h. */
13328_ACEOF
13329cat confdefs.h >>conftest.$ac_ext
13330cat >>conftest.$ac_ext <<_ACEOF
13331/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013332#include <ac_nonexistent.h>
13333_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013334if { (ac_try="$ac_cpp conftest.$ac_ext"
13335case "(($ac_try" in
13336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337 *) ac_try_echo=$ac_try;;
13338esac
13339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013341 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013342 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013343 rm -f conftest.er1
13344 cat conftest.err >&5
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013346 (exit $ac_status); } >/dev/null; then
13347 if test -s conftest.err; then
13348 ac_cpp_err=$ac_cxx_preproc_warn_flag
13349 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13350 else
13351 ac_cpp_err=
13352 fi
13353else
13354 ac_cpp_err=yes
13355fi
13356if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013357 # Broken: success on invalid input.
13358continue
13359else
13360 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013361sed 's/^/| /' conftest.$ac_ext >&5
13362
John Criswell47fdd832003-07-14 16:52:07 +000013363 # Passes both tests.
13364ac_preproc_ok=:
13365break
13366fi
Reid Spencera773bd52006-08-04 18:18:08 +000013367
John Criswell47fdd832003-07-14 16:52:07 +000013368rm -f conftest.err conftest.$ac_ext
13369
13370done
13371# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13372rm -f conftest.err conftest.$ac_ext
13373if $ac_preproc_ok; then
13374 break
John Criswell7a73b802003-06-30 21:59:07 +000013375fi
13376
John Criswell47fdd832003-07-14 16:52:07 +000013377 done
13378 ac_cv_prog_CXXCPP=$CXXCPP
13379
13380fi
13381 CXXCPP=$ac_cv_prog_CXXCPP
13382else
13383 ac_cv_prog_CXXCPP=$CXXCPP
13384fi
Reid Spencera773bd52006-08-04 18:18:08 +000013385{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13386echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013387ac_preproc_ok=false
13388for ac_cxx_preproc_warn_flag in '' yes
13389do
13390 # Use a header file that comes with gcc, so configuring glibc
13391 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013392 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13393 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013394 # On the NeXT, cc -E runs the code through the compiler's parser,
13395 # not just through cpp. "Syntax error" is here to catch this case.
13396 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013397/* confdefs.h. */
13398_ACEOF
13399cat confdefs.h >>conftest.$ac_ext
13400cat >>conftest.$ac_ext <<_ACEOF
13401/* end confdefs.h. */
13402#ifdef __STDC__
13403# include <limits.h>
13404#else
13405# include <assert.h>
13406#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013407 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013408_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013409if { (ac_try="$ac_cpp conftest.$ac_ext"
13410case "(($ac_try" in
13411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412 *) ac_try_echo=$ac_try;;
13413esac
13414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013416 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013417 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013418 rm -f conftest.er1
13419 cat conftest.err >&5
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013421 (exit $ac_status); } >/dev/null; then
13422 if test -s conftest.err; then
13423 ac_cpp_err=$ac_cxx_preproc_warn_flag
13424 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13425 else
13426 ac_cpp_err=
13427 fi
13428else
13429 ac_cpp_err=yes
13430fi
13431if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013432 :
13433else
13434 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013435sed 's/^/| /' conftest.$ac_ext >&5
13436
John Criswell47fdd832003-07-14 16:52:07 +000013437 # Broken: fails on valid input.
13438continue
13439fi
Reid Spencera773bd52006-08-04 18:18:08 +000013440
John Criswell47fdd832003-07-14 16:52:07 +000013441rm -f conftest.err conftest.$ac_ext
13442
Reid Spencera773bd52006-08-04 18:18:08 +000013443 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013444 # can be detected and how.
13445 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013446/* confdefs.h. */
13447_ACEOF
13448cat confdefs.h >>conftest.$ac_ext
13449cat >>conftest.$ac_ext <<_ACEOF
13450/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013451#include <ac_nonexistent.h>
13452_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013453if { (ac_try="$ac_cpp conftest.$ac_ext"
13454case "(($ac_try" in
13455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13456 *) ac_try_echo=$ac_try;;
13457esac
13458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013460 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013461 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013462 rm -f conftest.er1
13463 cat conftest.err >&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013465 (exit $ac_status); } >/dev/null; then
13466 if test -s conftest.err; then
13467 ac_cpp_err=$ac_cxx_preproc_warn_flag
13468 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13469 else
13470 ac_cpp_err=
13471 fi
13472else
13473 ac_cpp_err=yes
13474fi
13475if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013476 # Broken: success on invalid input.
13477continue
13478else
13479 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013480sed 's/^/| /' conftest.$ac_ext >&5
13481
John Criswell47fdd832003-07-14 16:52:07 +000013482 # Passes both tests.
13483ac_preproc_ok=:
13484break
13485fi
Reid Spencera773bd52006-08-04 18:18:08 +000013486
John Criswell47fdd832003-07-14 16:52:07 +000013487rm -f conftest.err conftest.$ac_ext
13488
13489done
13490# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13491rm -f conftest.err conftest.$ac_ext
13492if $ac_preproc_ok; then
13493 :
13494else
John Criswell0c38eaf2003-09-10 15:17:25 +000013495 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13496See \`config.log' for more details." >&5
13497echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13498See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013499 { (exit 1); exit 1; }; }
13500fi
13501
Reid Spencera773bd52006-08-04 18:18:08 +000013502ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013503ac_cpp='$CXXCPP $CPPFLAGS'
13504ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13505ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13506ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13507
Reid Spencer2706f8c2004-09-19 23:53:36 +000013508fi
13509
John Criswell47fdd832003-07-14 16:52:07 +000013510
13511ac_ext=f
13512ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13513ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13514ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13515if test -n "$ac_tool_prefix"; then
Bill Wendlingebcceee2009-04-18 11:20:33 +000013516 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 +000013517 do
13518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13519set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013520{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013522if test "${ac_cv_prog_F77+set}" = set; then
13523 echo $ECHO_N "(cached) $ECHO_C" >&6
13524else
13525 if test -n "$F77"; then
13526 ac_cv_prog_F77="$F77" # Let the user override the test.
13527else
13528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13529for as_dir in $PATH
13530do
13531 IFS=$as_save_IFS
13532 test -z "$as_dir" && as_dir=.
13533 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013534 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 +000013535 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13537 break 2
13538 fi
13539done
13540done
Reid Spencera773bd52006-08-04 18:18:08 +000013541IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013542
13543fi
13544fi
13545F77=$ac_cv_prog_F77
13546if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013547 { echo "$as_me:$LINENO: result: $F77" >&5
13548echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013549else
Reid Spencera773bd52006-08-04 18:18:08 +000013550 { echo "$as_me:$LINENO: result: no" >&5
13551echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013552fi
13553
Reid Spencera773bd52006-08-04 18:18:08 +000013554
John Criswell47fdd832003-07-14 16:52:07 +000013555 test -n "$F77" && break
13556 done
13557fi
13558if test -z "$F77"; then
13559 ac_ct_F77=$F77
Bill Wendlingebcceee2009-04-18 11:20:33 +000013560 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 +000013561do
13562 # Extract the first word of "$ac_prog", so it can be a program name with args.
13563set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013564{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013566if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13567 echo $ECHO_N "(cached) $ECHO_C" >&6
13568else
13569 if test -n "$ac_ct_F77"; then
13570 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13571else
13572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13573for as_dir in $PATH
13574do
13575 IFS=$as_save_IFS
13576 test -z "$as_dir" && as_dir=.
13577 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013578 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 +000013579 ac_cv_prog_ac_ct_F77="$ac_prog"
13580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13581 break 2
13582 fi
13583done
13584done
Reid Spencera773bd52006-08-04 18:18:08 +000013585IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013586
13587fi
13588fi
13589ac_ct_F77=$ac_cv_prog_ac_ct_F77
13590if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013591 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13592echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013593else
Reid Spencera773bd52006-08-04 18:18:08 +000013594 { echo "$as_me:$LINENO: result: no" >&5
13595echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013596fi
13597
Reid Spencera773bd52006-08-04 18:18:08 +000013598
John Criswell47fdd832003-07-14 16:52:07 +000013599 test -n "$ac_ct_F77" && break
13600done
13601
Reid Spencera773bd52006-08-04 18:18:08 +000013602 if test "x$ac_ct_F77" = x; then
13603 F77=""
13604 else
13605 case $cross_compiling:$ac_tool_warned in
13606yes:)
13607{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13608whose name does not start with the host triplet. If you think this
13609configuration is useful to you, please write to autoconf@gnu.org." >&5
13610echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13611whose name does not start with the host triplet. If you think this
13612configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13613ac_tool_warned=yes ;;
13614esac
13615 F77=$ac_ct_F77
13616 fi
John Criswell47fdd832003-07-14 16:52:07 +000013617fi
13618
13619
13620# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013621echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013622ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013623{ (ac_try="$ac_compiler --version >&5"
13624case "(($ac_try" in
13625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13626 *) ac_try_echo=$ac_try;;
13627esac
13628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13629 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013630 ac_status=$?
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013633{ (ac_try="$ac_compiler -v >&5"
13634case "(($ac_try" in
13635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13636 *) ac_try_echo=$ac_try;;
13637esac
13638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13639 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013640 ac_status=$?
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013643{ (ac_try="$ac_compiler -V >&5"
13644case "(($ac_try" in
13645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13646 *) ac_try_echo=$ac_try;;
13647esac
13648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13649 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013650 ac_status=$?
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013653rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013654
13655# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013656# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013657ac_save_ext=$ac_ext
13658ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013659{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13660echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013661if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13662 echo $ECHO_N "(cached) $ECHO_C" >&6
13663else
13664 cat >conftest.$ac_ext <<_ACEOF
13665 program main
13666#ifndef __GNUC__
13667 choke me
13668#endif
13669
13670 end
13671_ACEOF
13672rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013673if { (ac_try="$ac_compile"
13674case "(($ac_try" in
13675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13676 *) ac_try_echo=$ac_try;;
13677esac
13678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13679 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013680 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013681 grep -v '^ *+' conftest.er1 >conftest.err
13682 rm -f conftest.er1
13683 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013685 (exit $ac_status); } &&
13686 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13687 { (case "(($ac_try" in
13688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13689 *) ac_try_echo=$ac_try;;
13690esac
13691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13692 (eval "$ac_try") 2>&5
13693 ac_status=$?
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); }; } &&
13696 { ac_try='test -s conftest.$ac_objext'
13697 { (case "(($ac_try" in
13698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13699 *) ac_try_echo=$ac_try;;
13700esac
13701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13702 (eval "$ac_try") 2>&5
13703 ac_status=$?
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013706 ac_compiler_gnu=yes
13707else
13708 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013709sed 's/^/| /' conftest.$ac_ext >&5
13710
Reid Spencera773bd52006-08-04 18:18:08 +000013711 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013712fi
Reid Spencera773bd52006-08-04 18:18:08 +000013713
13714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013715ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13716
13717fi
Reid Spencera773bd52006-08-04 18:18:08 +000013718{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13719echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013720ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013721ac_test_FFLAGS=${FFLAGS+set}
13722ac_save_FFLAGS=$FFLAGS
13723FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013724{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13725echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013726if test "${ac_cv_prog_f77_g+set}" = set; then
13727 echo $ECHO_N "(cached) $ECHO_C" >&6
13728else
13729 FFLAGS=-g
13730cat >conftest.$ac_ext <<_ACEOF
13731 program main
13732
13733 end
13734_ACEOF
13735rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013736if { (ac_try="$ac_compile"
13737case "(($ac_try" in
13738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739 *) ac_try_echo=$ac_try;;
13740esac
13741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13742 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013743 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013744 grep -v '^ *+' conftest.er1 >conftest.err
13745 rm -f conftest.er1
13746 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013748 (exit $ac_status); } &&
13749 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13750 { (case "(($ac_try" in
13751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752 *) ac_try_echo=$ac_try;;
13753esac
13754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755 (eval "$ac_try") 2>&5
13756 ac_status=$?
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); }; } &&
13759 { ac_try='test -s conftest.$ac_objext'
13760 { (case "(($ac_try" in
13761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13762 *) ac_try_echo=$ac_try;;
13763esac
13764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13765 (eval "$ac_try") 2>&5
13766 ac_status=$?
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013769 ac_cv_prog_f77_g=yes
13770else
13771 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013772sed 's/^/| /' conftest.$ac_ext >&5
13773
Reid Spencera773bd52006-08-04 18:18:08 +000013774 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013775fi
Reid Spencera773bd52006-08-04 18:18:08 +000013776
13777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013778
13779fi
Reid Spencera773bd52006-08-04 18:18:08 +000013780{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13781echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013782if test "$ac_test_FFLAGS" = set; then
13783 FFLAGS=$ac_save_FFLAGS
13784elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013785 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013786 FFLAGS="-g -O2"
13787 else
13788 FFLAGS="-g"
13789 fi
13790else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013791 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013792 FFLAGS="-O2"
13793 else
13794 FFLAGS=
13795 fi
13796fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013797
13798G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013799ac_ext=c
13800ac_cpp='$CPP $CPPFLAGS'
13801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13803ac_compiler_gnu=$ac_cv_c_compiler_gnu
13804
13805
13806
13807# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13808
13809# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013810{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13811echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013812if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13813 echo $ECHO_N "(cached) $ECHO_C" >&6
13814else
13815 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013816 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013817
13818 case $build_os in
13819 msdosdjgpp*)
13820 # On DJGPP, this test can blow up pretty badly due to problems in libc
13821 # (any single argument exceeding 2000 bytes causes a buffer overrun
13822 # during glob expansion). Even if it were fixed, the result of this
13823 # check would be larger than it should be.
13824 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13825 ;;
13826
13827 gnu*)
13828 # Under GNU Hurd, this test is not required because there is
13829 # no limit to the length of command line arguments.
13830 # Libtool will interpret -1 as no limit whatsoever
13831 lt_cv_sys_max_cmd_len=-1;
13832 ;;
13833
13834 cygwin* | mingw*)
13835 # On Win9x/ME, this test blows up -- it succeeds, but takes
13836 # about 5 minutes as the teststring grows exponentially.
13837 # Worse, since 9x/ME are not pre-emptively multitasking,
13838 # you end up with a "frozen" computer, even though with patience
13839 # the test eventually succeeds (with a max line length of 256k).
13840 # Instead, let's just punt: use the minimum linelength reported by
13841 # all of the supported platforms: 8192 (on NT/2K/XP).
13842 lt_cv_sys_max_cmd_len=8192;
13843 ;;
13844
Reid Spencer2706f8c2004-09-19 23:53:36 +000013845 amigaos*)
13846 # On AmigaOS with pdksh, this test takes hours, literally.
13847 # So we just punt and use a minimum line length of 8192.
13848 lt_cv_sys_max_cmd_len=8192;
13849 ;;
13850
Reid Spencera773bd52006-08-04 18:18:08 +000013851 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013852 # This has been around since 386BSD, at least. Likely further.
13853 if test -x /sbin/sysctl; then
13854 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13855 elif test -x /usr/sbin/sysctl; then
13856 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13857 else
Reid Spencera773bd52006-08-04 18:18:08 +000013858 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013859 fi
13860 # And add a safety zone
13861 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013862 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013863 ;;
13864
Reid Spencera773bd52006-08-04 18:18:08 +000013865 interix*)
13866 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13867 lt_cv_sys_max_cmd_len=196608
13868 ;;
13869
13870 osf*)
13871 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13872 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13873 # nice to cause kernel panics so lets avoid the loop below.
13874 # First set a reasonable default.
13875 lt_cv_sys_max_cmd_len=16384
13876 #
13877 if test -x /sbin/sysconfig; then
13878 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13879 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13880 esac
13881 fi
13882 ;;
13883 sco3.2v5*)
13884 lt_cv_sys_max_cmd_len=102400
13885 ;;
13886 sysv5* | sco5v6* | sysv4.2uw2*)
13887 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13888 if test -n "$kargmax"; then
13889 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13890 else
13891 lt_cv_sys_max_cmd_len=32768
13892 fi
13893 ;;
13894 *)
John Criswell47fdd832003-07-14 16:52:07 +000013895 # If test is not a shell built-in, we'll probably end up computing a
13896 # maximum length that is only half of the actual maximum length, but
13897 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013898 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13899 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13900 = "XX$teststring") >/dev/null 2>&1 &&
13901 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013902 lt_cv_sys_max_cmd_len=$new_result &&
13903 test $i != 17 # 1/2 MB should be enough
13904 do
13905 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013906 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013907 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013908 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013909 # Add a significant safety factor because C++ compilers can tack on massive
13910 # amounts of additional arguments before passing them to the linker.
13911 # It appears as though 1/2 is a usable value.
13912 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13913 ;;
13914 esac
13915
13916fi
13917
13918if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013919 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13920echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013921else
Reid Spencera773bd52006-08-04 18:18:08 +000013922 { echo "$as_me:$LINENO: result: none" >&5
13923echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013924fi
13925
13926
13927
13928
13929# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013930{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13931echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013932if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13933 echo $ECHO_N "(cached) $ECHO_C" >&6
13934else
13935
13936# These are sane defaults that work on at least a few old systems.
13937# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13938
13939# Character class describing NM global symbol codes.
13940symcode='[BCDEGRST]'
13941
13942# Regexp to match symbols that can be accessed directly from C.
13943sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13944
John Criswell47fdd832003-07-14 16:52:07 +000013945# Transform an extracted symbol line into a proper C declaration
13946lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13947
13948# Transform an extracted symbol line into symbol name and symbol address
13949lt_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'"
13950
13951# Define system-specific variables.
13952case $host_os in
13953aix*)
13954 symcode='[BCDT]'
13955 ;;
13956cygwin* | mingw* | pw32*)
13957 symcode='[ABCDGISTW]'
13958 ;;
13959hpux*) # Its linker distinguishes data from code symbols
13960 if test "$host_cpu" = ia64; then
13961 symcode='[ABCDEGRST]'
13962 fi
13963 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13964 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'"
13965 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013966linux*)
13967 if test "$host_cpu" = ia64; then
13968 symcode='[ABCDGIRSTW]'
13969 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13970 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'"
13971 fi
13972 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013973irix* | nonstopux*)
13974 symcode='[BCDEGRST]'
13975 ;;
13976osf*)
13977 symcode='[BCDEGQRST]'
13978 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013979solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013980 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013981 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013982sco3.2v5*)
13983 symcode='[DT]'
13984 ;;
13985sysv4.2uw2*)
13986 symcode='[DT]'
13987 ;;
13988sysv5* | sco5v6* | unixware* | OpenUNIX*)
13989 symcode='[ABDT]'
13990 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013991sysv4)
13992 symcode='[DFNSTU]'
13993 ;;
13994esac
13995
13996# Handle CRLF in mingw tool chain
13997opt_cr=
13998case $build_os in
13999mingw*)
14000 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14001 ;;
14002esac
14003
14004# If we're using GNU nm, then use its standard symbol codes.
14005case `$NM -V 2>&1` in
14006*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014007 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000014008esac
14009
14010# Try without a prefix undercore, then with it.
14011for ac_symprfx in "" "_"; do
14012
Reid Spencera773bd52006-08-04 18:18:08 +000014013 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14014 symxfrm="\\1 $ac_symprfx\\2 \\2"
14015
John Criswell47fdd832003-07-14 16:52:07 +000014016 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000014017 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 +000014018
14019 # Check to see that the pipe works correctly.
14020 pipe_works=no
14021
14022 rm -f conftest*
14023 cat > conftest.$ac_ext <<EOF
14024#ifdef __cplusplus
14025extern "C" {
14026#endif
14027char nm_test_var;
14028void nm_test_func(){}
14029#ifdef __cplusplus
14030}
14031#endif
14032int main(){nm_test_var='a';nm_test_func();return(0);}
14033EOF
14034
14035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14036 (eval $ac_compile) 2>&5
14037 ac_status=$?
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; then
14040 # Now try to grab the symbols.
14041 nlist=conftest.nm
14042 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14043 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14044 ac_status=$?
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); } && test -s "$nlist"; then
14047 # Try sorting and uniquifying the output.
14048 if sort "$nlist" | uniq > "$nlist"T; then
14049 mv -f "$nlist"T "$nlist"
14050 else
14051 rm -f "$nlist"T
14052 fi
14053
14054 # Make sure that we snagged all the symbols we need.
14055 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14056 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14057 cat <<EOF > conftest.$ac_ext
14058#ifdef __cplusplus
14059extern "C" {
14060#endif
14061
14062EOF
14063 # Now generate the symbol file.
14064 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14065
14066 cat <<EOF >> conftest.$ac_ext
14067#if defined (__STDC__) && __STDC__
14068# define lt_ptr_t void *
14069#else
14070# define lt_ptr_t char *
14071# define const
14072#endif
14073
14074/* The mapping between symbol names and symbols. */
14075const struct {
14076 const char *name;
14077 lt_ptr_t address;
14078}
14079lt_preloaded_symbols[] =
14080{
14081EOF
14082 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14083 cat <<\EOF >> conftest.$ac_ext
14084 {0, (lt_ptr_t) 0}
14085};
14086
14087#ifdef __cplusplus
14088}
14089#endif
14090EOF
14091 # Now try linking the two files.
14092 mv conftest.$ac_objext conftstm.$ac_objext
14093 lt_save_LIBS="$LIBS"
14094 lt_save_CFLAGS="$CFLAGS"
14095 LIBS="conftstm.$ac_objext"
14096 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14098 (eval $ac_link) 2>&5
14099 ac_status=$?
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14102 pipe_works=yes
14103 fi
14104 LIBS="$lt_save_LIBS"
14105 CFLAGS="$lt_save_CFLAGS"
14106 else
14107 echo "cannot find nm_test_func in $nlist" >&5
14108 fi
14109 else
14110 echo "cannot find nm_test_var in $nlist" >&5
14111 fi
14112 else
14113 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14114 fi
14115 else
14116 echo "$progname: failed program was:" >&5
14117 cat conftest.$ac_ext >&5
14118 fi
14119 rm -f conftest* conftst*
14120
14121 # Do not use the global_symbol_pipe unless it works.
14122 if test "$pipe_works" = yes; then
14123 break
14124 else
14125 lt_cv_sys_global_symbol_pipe=
14126 fi
14127done
14128
14129fi
14130
14131if test -z "$lt_cv_sys_global_symbol_pipe"; then
14132 lt_cv_sys_global_symbol_to_cdecl=
14133fi
14134if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014135 { echo "$as_me:$LINENO: result: failed" >&5
14136echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014137else
Reid Spencera773bd52006-08-04 18:18:08 +000014138 { echo "$as_me:$LINENO: result: ok" >&5
14139echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014140fi
14141
Reid Spencera773bd52006-08-04 18:18:08 +000014142{ echo "$as_me:$LINENO: checking for objdir" >&5
14143echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014144if test "${lt_cv_objdir+set}" = set; then
14145 echo $ECHO_N "(cached) $ECHO_C" >&6
14146else
14147 rm -f .libs 2>/dev/null
14148mkdir .libs 2>/dev/null
14149if test -d .libs; then
14150 lt_cv_objdir=.libs
14151else
14152 # MS-DOS does not allow filenames that begin with a dot.
14153 lt_cv_objdir=_libs
14154fi
14155rmdir .libs 2>/dev/null
14156fi
Reid Spencera773bd52006-08-04 18:18:08 +000014157{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14158echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014159objdir=$lt_cv_objdir
14160
14161
14162
14163
14164
14165case $host_os in
14166aix3*)
14167 # AIX sometimes has problems with the GCC collect2 program. For some
14168 # reason, if we set the COLLECT_NAMES environment variable, the problems
14169 # vanish in a puff of smoke.
14170 if test "X${COLLECT_NAMES+set}" != Xset; then
14171 COLLECT_NAMES=
14172 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000014173 fi
14174 ;;
14175esac
14176
John Criswell47fdd832003-07-14 16:52:07 +000014177# Sed substitution that helps us do robust quoting. It backslashifies
14178# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000014179Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000014180sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14181
14182# Same as above, but do not quote variable references.
14183double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14184
14185# Sed substitution to delay expansion of an escaped shell variable in a
14186# double_quote_subst'ed string.
14187delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14188
14189# Sed substitution to avoid accidental globbing in evaled expressions
14190no_glob_subst='s/\*/\\\*/g'
14191
14192# Constants:
14193rm="rm -f"
14194
14195# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000014196default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000014197can_build_shared=yes
14198
Reid Spencera773bd52006-08-04 18:18:08 +000014199# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000014200# which needs '.lib').
14201libext=a
14202ltmain="$ac_aux_dir/ltmain.sh"
14203ofile="$default_ofile"
14204with_gnu_ld="$lt_cv_prog_gnu_ld"
14205
14206if test -n "$ac_tool_prefix"; then
14207 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14208set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014209{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014211if test "${ac_cv_prog_AR+set}" = set; then
14212 echo $ECHO_N "(cached) $ECHO_C" >&6
14213else
14214 if test -n "$AR"; then
14215 ac_cv_prog_AR="$AR" # Let the user override the test.
14216else
14217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14218for as_dir in $PATH
14219do
14220 IFS=$as_save_IFS
14221 test -z "$as_dir" && as_dir=.
14222 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014223 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 +000014224 ac_cv_prog_AR="${ac_tool_prefix}ar"
14225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14226 break 2
14227 fi
14228done
14229done
Reid Spencera773bd52006-08-04 18:18:08 +000014230IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014231
14232fi
14233fi
14234AR=$ac_cv_prog_AR
14235if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014236 { echo "$as_me:$LINENO: result: $AR" >&5
14237echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014238else
Reid Spencera773bd52006-08-04 18:18:08 +000014239 { echo "$as_me:$LINENO: result: no" >&5
14240echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014241fi
14242
Reid Spencera773bd52006-08-04 18:18:08 +000014243
John Criswell47fdd832003-07-14 16:52:07 +000014244fi
14245if test -z "$ac_cv_prog_AR"; then
14246 ac_ct_AR=$AR
14247 # Extract the first word of "ar", so it can be a program name with args.
14248set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014249{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014251if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14252 echo $ECHO_N "(cached) $ECHO_C" >&6
14253else
14254 if test -n "$ac_ct_AR"; then
14255 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14256else
14257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14258for as_dir in $PATH
14259do
14260 IFS=$as_save_IFS
14261 test -z "$as_dir" && as_dir=.
14262 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014263 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 +000014264 ac_cv_prog_ac_ct_AR="ar"
14265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14266 break 2
14267 fi
14268done
14269done
Reid Spencera773bd52006-08-04 18:18:08 +000014270IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014271
John Criswell47fdd832003-07-14 16:52:07 +000014272fi
14273fi
14274ac_ct_AR=$ac_cv_prog_ac_ct_AR
14275if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014276 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14277echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014278else
Reid Spencera773bd52006-08-04 18:18:08 +000014279 { echo "$as_me:$LINENO: result: no" >&5
14280echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014281fi
14282
Reid Spencera773bd52006-08-04 18:18:08 +000014283 if test "x$ac_ct_AR" = x; then
14284 AR="false"
14285 else
14286 case $cross_compiling:$ac_tool_warned in
14287yes:)
14288{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14289whose name does not start with the host triplet. If you think this
14290configuration is useful to you, please write to autoconf@gnu.org." >&5
14291echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14292whose name does not start with the host triplet. If you think this
14293configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14294ac_tool_warned=yes ;;
14295esac
14296 AR=$ac_ct_AR
14297 fi
John Criswell47fdd832003-07-14 16:52:07 +000014298else
14299 AR="$ac_cv_prog_AR"
14300fi
14301
John Criswell7a73b802003-06-30 21:59:07 +000014302if test -n "$ac_tool_prefix"; then
14303 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14304set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014305{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014307if test "${ac_cv_prog_RANLIB+set}" = set; then
14308 echo $ECHO_N "(cached) $ECHO_C" >&6
14309else
14310 if test -n "$RANLIB"; then
14311 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14312else
14313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14314for as_dir in $PATH
14315do
14316 IFS=$as_save_IFS
14317 test -z "$as_dir" && as_dir=.
14318 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014319 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 +000014320 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14322 break 2
14323 fi
14324done
14325done
Reid Spencera773bd52006-08-04 18:18:08 +000014326IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014327
14328fi
14329fi
14330RANLIB=$ac_cv_prog_RANLIB
14331if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014332 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14333echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014334else
Reid Spencera773bd52006-08-04 18:18:08 +000014335 { echo "$as_me:$LINENO: result: no" >&5
14336echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014337fi
14338
Reid Spencera773bd52006-08-04 18:18:08 +000014339
John Criswell7a73b802003-06-30 21:59:07 +000014340fi
14341if test -z "$ac_cv_prog_RANLIB"; then
14342 ac_ct_RANLIB=$RANLIB
14343 # Extract the first word of "ranlib", so it can be a program name with args.
14344set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014345{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014347if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14348 echo $ECHO_N "(cached) $ECHO_C" >&6
14349else
14350 if test -n "$ac_ct_RANLIB"; then
14351 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14352else
14353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14354for as_dir in $PATH
14355do
14356 IFS=$as_save_IFS
14357 test -z "$as_dir" && as_dir=.
14358 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014359 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 +000014360 ac_cv_prog_ac_ct_RANLIB="ranlib"
14361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14362 break 2
14363 fi
14364done
14365done
Reid Spencera773bd52006-08-04 18:18:08 +000014366IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014367
John Criswell7a73b802003-06-30 21:59:07 +000014368fi
14369fi
14370ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14371if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014372 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14373echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014374else
Reid Spencera773bd52006-08-04 18:18:08 +000014375 { echo "$as_me:$LINENO: result: no" >&5
14376echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014377fi
14378
Reid Spencera773bd52006-08-04 18:18:08 +000014379 if test "x$ac_ct_RANLIB" = x; then
14380 RANLIB=":"
14381 else
14382 case $cross_compiling:$ac_tool_warned in
14383yes:)
14384{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14385whose name does not start with the host triplet. If you think this
14386configuration is useful to you, please write to autoconf@gnu.org." >&5
14387echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14388whose name does not start with the host triplet. If you think this
14389configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14390ac_tool_warned=yes ;;
14391esac
14392 RANLIB=$ac_ct_RANLIB
14393 fi
John Criswell7a73b802003-06-30 21:59:07 +000014394else
14395 RANLIB="$ac_cv_prog_RANLIB"
14396fi
14397
14398if test -n "$ac_tool_prefix"; then
14399 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14400set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014401{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014403if test "${ac_cv_prog_STRIP+set}" = set; then
14404 echo $ECHO_N "(cached) $ECHO_C" >&6
14405else
14406 if test -n "$STRIP"; then
14407 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14408else
14409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14410for as_dir in $PATH
14411do
14412 IFS=$as_save_IFS
14413 test -z "$as_dir" && as_dir=.
14414 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014415 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 +000014416 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14418 break 2
14419 fi
14420done
14421done
Reid Spencera773bd52006-08-04 18:18:08 +000014422IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014423
14424fi
14425fi
14426STRIP=$ac_cv_prog_STRIP
14427if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014428 { echo "$as_me:$LINENO: result: $STRIP" >&5
14429echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014430else
Reid Spencera773bd52006-08-04 18:18:08 +000014431 { echo "$as_me:$LINENO: result: no" >&5
14432echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014433fi
14434
Reid Spencera773bd52006-08-04 18:18:08 +000014435
John Criswell7a73b802003-06-30 21:59:07 +000014436fi
14437if test -z "$ac_cv_prog_STRIP"; then
14438 ac_ct_STRIP=$STRIP
14439 # Extract the first word of "strip", so it can be a program name with args.
14440set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014441{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014443if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14444 echo $ECHO_N "(cached) $ECHO_C" >&6
14445else
14446 if test -n "$ac_ct_STRIP"; then
14447 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14448else
14449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14450for as_dir in $PATH
14451do
14452 IFS=$as_save_IFS
14453 test -z "$as_dir" && as_dir=.
14454 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014455 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 +000014456 ac_cv_prog_ac_ct_STRIP="strip"
14457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14458 break 2
14459 fi
14460done
14461done
Reid Spencera773bd52006-08-04 18:18:08 +000014462IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014463
John Criswell7a73b802003-06-30 21:59:07 +000014464fi
14465fi
14466ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14467if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014468 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14469echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014470else
Reid Spencera773bd52006-08-04 18:18:08 +000014471 { echo "$as_me:$LINENO: result: no" >&5
14472echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014473fi
14474
Reid Spencera773bd52006-08-04 18:18:08 +000014475 if test "x$ac_ct_STRIP" = x; then
14476 STRIP=":"
14477 else
14478 case $cross_compiling:$ac_tool_warned in
14479yes:)
14480{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14481whose name does not start with the host triplet. If you think this
14482configuration is useful to you, please write to autoconf@gnu.org." >&5
14483echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14484whose name does not start with the host triplet. If you think this
14485configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14486ac_tool_warned=yes ;;
14487esac
14488 STRIP=$ac_ct_STRIP
14489 fi
John Criswell7a73b802003-06-30 21:59:07 +000014490else
14491 STRIP="$ac_cv_prog_STRIP"
14492fi
14493
14494
John Criswell7a73b802003-06-30 21:59:07 +000014495old_CC="$CC"
14496old_CFLAGS="$CFLAGS"
14497
14498# Set sane defaults for various variables
14499test -z "$AR" && AR=ar
14500test -z "$AR_FLAGS" && AR_FLAGS=cru
14501test -z "$AS" && AS=as
14502test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014503test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014504test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014505test -z "$DLLTOOL" && DLLTOOL=dlltool
14506test -z "$LD" && LD=ld
14507test -z "$LN_S" && LN_S="ln -s"
14508test -z "$MAGIC_CMD" && MAGIC_CMD=file
14509test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014510test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014511test -z "$OBJDUMP" && OBJDUMP=objdump
14512test -z "$RANLIB" && RANLIB=:
14513test -z "$STRIP" && STRIP=:
14514test -z "$ac_objext" && ac_objext=o
14515
John Criswell7a73b802003-06-30 21:59:07 +000014516# Determine commands to create old-style static archives.
14517old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14518old_postinstall_cmds='chmod 644 $oldlib'
14519old_postuninstall_cmds=
14520
14521if test -n "$RANLIB"; then
14522 case $host_os in
14523 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014524 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014525 ;;
14526 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014527 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014528 ;;
14529 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014530 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014531fi
14532
Reid Spencera773bd52006-08-04 18:18:08 +000014533for cc_temp in $compiler""; do
14534 case $cc_temp in
14535 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14536 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14537 \-*) ;;
14538 *) break;;
14539 esac
14540done
14541cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14542
Reid Spencer2706f8c2004-09-19 23:53:36 +000014543
John Criswell47fdd832003-07-14 16:52:07 +000014544# Only perform the check for file, if the check method requires it
14545case $deplibs_check_method in
14546file_magic*)
14547 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014548 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14549echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014550if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14551 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014552else
John Criswell47fdd832003-07-14 16:52:07 +000014553 case $MAGIC_CMD in
14554[\\/*] | ?:[\\/]*)
14555 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14556 ;;
14557*)
14558 lt_save_MAGIC_CMD="$MAGIC_CMD"
14559 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14560 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14561 for ac_dir in $ac_dummy; do
14562 IFS="$lt_save_ifs"
14563 test -z "$ac_dir" && ac_dir=.
14564 if test -f $ac_dir/${ac_tool_prefix}file; then
14565 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14566 if test -n "$file_magic_test_file"; then
14567 case $deplibs_check_method in
14568 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014569 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014570 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14571 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14572 $EGREP "$file_magic_regex" > /dev/null; then
14573 :
14574 else
14575 cat <<EOF 1>&2
14576
14577*** Warning: the command libtool uses to detect shared libraries,
14578*** $file_magic_cmd, produces output that libtool cannot recognize.
14579*** The result is that libtool may fail to recognize shared libraries
14580*** as such. This will affect the creation of libtool libraries that
14581*** depend on shared libraries, but programs linked with such libtool
14582*** libraries will work regardless of this problem. Nevertheless, you
14583*** may want to report the problem to your system manager and/or to
14584*** bug-libtool@gnu.org
14585
14586EOF
14587 fi ;;
14588 esac
14589 fi
14590 break
14591 fi
14592 done
14593 IFS="$lt_save_ifs"
14594 MAGIC_CMD="$lt_save_MAGIC_CMD"
14595 ;;
14596esac
John Criswell7a73b802003-06-30 21:59:07 +000014597fi
John Criswell7a73b802003-06-30 21:59:07 +000014598
John Criswell47fdd832003-07-14 16:52:07 +000014599MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14600if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014601 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14602echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014603else
Reid Spencera773bd52006-08-04 18:18:08 +000014604 { echo "$as_me:$LINENO: result: no" >&5
14605echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014606fi
John Criswell7a73b802003-06-30 21:59:07 +000014607
John Criswell47fdd832003-07-14 16:52:07 +000014608if test -z "$lt_cv_path_MAGIC_CMD"; then
14609 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014610 { echo "$as_me:$LINENO: checking for file" >&5
14611echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014612if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14613 echo $ECHO_N "(cached) $ECHO_C" >&6
14614else
14615 case $MAGIC_CMD in
14616[\\/*] | ?:[\\/]*)
14617 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14618 ;;
14619*)
14620 lt_save_MAGIC_CMD="$MAGIC_CMD"
14621 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14622 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14623 for ac_dir in $ac_dummy; do
14624 IFS="$lt_save_ifs"
14625 test -z "$ac_dir" && ac_dir=.
14626 if test -f $ac_dir/file; then
14627 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14628 if test -n "$file_magic_test_file"; then
14629 case $deplibs_check_method in
14630 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014631 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014632 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14633 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14634 $EGREP "$file_magic_regex" > /dev/null; then
14635 :
14636 else
14637 cat <<EOF 1>&2
14638
14639*** Warning: the command libtool uses to detect shared libraries,
14640*** $file_magic_cmd, produces output that libtool cannot recognize.
14641*** The result is that libtool may fail to recognize shared libraries
14642*** as such. This will affect the creation of libtool libraries that
14643*** depend on shared libraries, but programs linked with such libtool
14644*** libraries will work regardless of this problem. Nevertheless, you
14645*** may want to report the problem to your system manager and/or to
14646*** bug-libtool@gnu.org
14647
14648EOF
14649 fi ;;
14650 esac
14651 fi
14652 break
14653 fi
14654 done
14655 IFS="$lt_save_ifs"
14656 MAGIC_CMD="$lt_save_MAGIC_CMD"
14657 ;;
14658esac
14659fi
14660
14661MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14662if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014663 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14664echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014665else
Reid Spencera773bd52006-08-04 18:18:08 +000014666 { echo "$as_me:$LINENO: result: no" >&5
14667echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014668fi
14669
14670 else
14671 MAGIC_CMD=:
14672 fi
14673fi
14674
14675 fi
14676 ;;
14677esac
14678
Reid Spencer17795972004-11-18 09:47:37 +000014679enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014680enable_win32_dll=no
14681
Reid Spencera773bd52006-08-04 18:18:08 +000014682# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014683if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014684 enableval=$enable_libtool_lock;
14685fi
John Criswell47fdd832003-07-14 16:52:07 +000014686
John Criswell47fdd832003-07-14 16:52:07 +000014687test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14688
John Criswell7a73b802003-06-30 21:59:07 +000014689
Reid Spencera773bd52006-08-04 18:18:08 +000014690# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014691if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014692 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014693else
14694 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014695fi
14696
John Criswell7a73b802003-06-30 21:59:07 +000014697test -z "$pic_mode" && pic_mode=default
14698
John Criswell47fdd832003-07-14 16:52:07 +000014699# Use C for the default configuration in the libtool script
14700tagname=
14701lt_save_CC="$CC"
14702ac_ext=c
14703ac_cpp='$CPP $CPPFLAGS'
14704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14706ac_compiler_gnu=$ac_cv_c_compiler_gnu
14707
14708
14709# Source file extension for C test sources.
14710ac_ext=c
14711
14712# Object file extension for compiled C test sources.
14713objext=o
14714objext=$objext
14715
14716# Code to be used in simple compile tests
14717lt_simple_compile_test_code="int some_variable = 0;\n"
14718
14719# Code to be used in simple link tests
14720lt_simple_link_test_code='int main(){return(0);}\n'
14721
14722
14723# If no C compiler was specified, use CC.
14724LTCC=${LTCC-"$CC"}
14725
Reid Spencera773bd52006-08-04 18:18:08 +000014726# If no C compiler flags were specified, use CFLAGS.
14727LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14728
John Criswell47fdd832003-07-14 16:52:07 +000014729# Allow CC to be a program name with arguments.
14730compiler=$CC
14731
14732
Reid Spencera773bd52006-08-04 18:18:08 +000014733# save warnings/boilerplate of simple test code
14734ac_outfile=conftest.$ac_objext
14735printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14736eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14737_lt_compiler_boilerplate=`cat conftest.err`
14738$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014739
Reid Spencera773bd52006-08-04 18:18:08 +000014740ac_outfile=conftest.$ac_objext
14741printf "$lt_simple_link_test_code" >conftest.$ac_ext
14742eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14743_lt_linker_boilerplate=`cat conftest.err`
14744$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014745
14746
John Criswell47fdd832003-07-14 16:52:07 +000014747
14748lt_prog_compiler_no_builtin_flag=
14749
14750if test "$GCC" = yes; then
14751 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14752
Reid Spencer2706f8c2004-09-19 23:53:36 +000014753
Reid Spencera773bd52006-08-04 18:18:08 +000014754{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14755echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014756if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14757 echo $ECHO_N "(cached) $ECHO_C" >&6
14758else
14759 lt_cv_prog_compiler_rtti_exceptions=no
14760 ac_outfile=conftest.$ac_objext
14761 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14762 lt_compiler_flag="-fno-rtti -fno-exceptions"
14763 # Insert the option either (1) after the last *FLAGS variable, or
14764 # (2) before a word containing "conftest.", or (3) at the end.
14765 # Note that $ac_compile itself does not contain backslashes and begins
14766 # with a dollar sign (not a hyphen), so the echo should work correctly.
14767 # The option is referenced via a variable to avoid confusing sed.
14768 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014769 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14771 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014772 (eval echo "\"\$as_me:14767: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014773 (eval "$lt_compile" 2>conftest.err)
14774 ac_status=$?
14775 cat conftest.err >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014776 echo "$as_me:14771: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014777 if (exit $ac_status) && test -s "$ac_outfile"; then
14778 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014779 # So say no if there are warnings other than the usual output.
14780 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14781 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14782 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014783 lt_cv_prog_compiler_rtti_exceptions=yes
14784 fi
14785 fi
14786 $rm conftest*
14787
14788fi
Reid Spencera773bd52006-08-04 18:18:08 +000014789{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14790echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014791
14792if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14793 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14794else
14795 :
14796fi
14797
14798fi
14799
14800lt_prog_compiler_wl=
14801lt_prog_compiler_pic=
14802lt_prog_compiler_static=
14803
Reid Spencera773bd52006-08-04 18:18:08 +000014804{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14805echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014806
14807 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014808 lt_prog_compiler_wl='-Wl,'
14809 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014810
14811 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014812 aix*)
14813 # All AIX code is PIC.
14814 if test "$host_cpu" = ia64; then
14815 # AIX 5 now supports IA64 processor
14816 lt_prog_compiler_static='-Bstatic'
14817 fi
John Criswell7a73b802003-06-30 21:59:07 +000014818 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014819
John Criswell7a73b802003-06-30 21:59:07 +000014820 amigaos*)
14821 # FIXME: we need at least 68020 code to build shared libraries, but
14822 # adding the `-m68020' flag to GCC prevents building anything better,
14823 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014824 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014825 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014826
14827 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014828 # PIC is the default for these OSes.
14829 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014830
14831 mingw* | pw32* | os2*)
14832 # This hack is so that the source file can tell whether it is being
14833 # built for inclusion in a dll (and should export symbols for example).
14834 lt_prog_compiler_pic='-DDLL_EXPORT'
14835 ;;
14836
John Criswell7a73b802003-06-30 21:59:07 +000014837 darwin* | rhapsody*)
14838 # PIC is the default on this platform
14839 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014840 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014841 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014842
Reid Spencera773bd52006-08-04 18:18:08 +000014843 interix3*)
14844 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14845 # Instead, we relocate shared libraries at runtime.
14846 ;;
14847
John Criswell47fdd832003-07-14 16:52:07 +000014848 msdosdjgpp*)
14849 # Just because we use GCC doesn't mean we suddenly get shared libraries
14850 # on systems that don't support them.
14851 lt_prog_compiler_can_build_shared=no
14852 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014853 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014854
John Criswell7a73b802003-06-30 21:59:07 +000014855 sysv4*MP*)
14856 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014857 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014858 fi
14859 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014860
14861 hpux*)
14862 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14863 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014864 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014865 hppa*64*|ia64*)
14866 # +Z the default
14867 ;;
14868 *)
14869 lt_prog_compiler_pic='-fPIC'
14870 ;;
14871 esac
14872 ;;
14873
John Criswell7a73b802003-06-30 21:59:07 +000014874 *)
John Criswell47fdd832003-07-14 16:52:07 +000014875 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014876 ;;
14877 esac
14878 else
John Criswell47fdd832003-07-14 16:52:07 +000014879 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014880 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014881 aix*)
14882 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014883 if test "$host_cpu" = ia64; then
14884 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014885 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014886 else
John Criswell47fdd832003-07-14 16:52:07 +000014887 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014888 fi
14889 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014890 darwin*)
14891 # PIC is the default on this platform
14892 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014893 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014894 xlc*)
14895 lt_prog_compiler_pic='-qnocommon'
14896 lt_prog_compiler_wl='-Wl,'
14897 ;;
14898 esac
14899 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014900
John Criswell47fdd832003-07-14 16:52:07 +000014901 mingw* | pw32* | os2*)
14902 # This hack is so that the source file can tell whether it is being
14903 # built for inclusion in a dll (and should export symbols for example).
14904 lt_prog_compiler_pic='-DDLL_EXPORT'
14905 ;;
14906
John Criswell7a73b802003-06-30 21:59:07 +000014907 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014908 lt_prog_compiler_wl='-Wl,'
14909 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14910 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014911 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014912 hppa*64*|ia64*)
14913 # +Z the default
14914 ;;
14915 *)
14916 lt_prog_compiler_pic='+Z'
14917 ;;
14918 esac
14919 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14920 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014921 ;;
14922
John Criswell47fdd832003-07-14 16:52:07 +000014923 irix5* | irix6* | nonstopux*)
14924 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014925 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014926 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014927 ;;
14928
14929 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014930 lt_prog_compiler_pic='-KPIC'
14931 lt_prog_compiler_static='-Bstatic'
14932 ;;
14933
14934 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014935 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014936 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014937 lt_prog_compiler_wl='-Wl,'
14938 lt_prog_compiler_pic='-KPIC'
14939 lt_prog_compiler_static='-static'
14940 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014941 pgcc* | pgf77* | pgf90* | pgf95*)
14942 # Portland Group compilers (*not* the Pentium gcc compiler,
14943 # which looks to be a dead project)
14944 lt_prog_compiler_wl='-Wl,'
14945 lt_prog_compiler_pic='-fpic'
14946 lt_prog_compiler_static='-Bstatic'
14947 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014948 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014949 lt_prog_compiler_wl='-Wl,'
14950 # All Alpha code is PIC.
14951 lt_prog_compiler_static='-non_shared'
14952 ;;
14953 esac
John Criswell7a73b802003-06-30 21:59:07 +000014954 ;;
14955
14956 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014957 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014958 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014959 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014960 ;;
14961
John Criswell7a73b802003-06-30 21:59:07 +000014962 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014963 lt_prog_compiler_pic='-KPIC'
14964 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014965 case $cc_basename in
14966 f77* | f90* | f95*)
14967 lt_prog_compiler_wl='-Qoption ld ';;
14968 *)
14969 lt_prog_compiler_wl='-Wl,';;
14970 esac
John Criswell7a73b802003-06-30 21:59:07 +000014971 ;;
14972
14973 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014974 lt_prog_compiler_wl='-Qoption ld '
14975 lt_prog_compiler_pic='-PIC'
14976 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014977 ;;
14978
Reid Spencera773bd52006-08-04 18:18:08 +000014979 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014980 lt_prog_compiler_wl='-Wl,'
14981 lt_prog_compiler_pic='-KPIC'
14982 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014983 ;;
14984
14985 sysv4*MP*)
14986 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014987 lt_prog_compiler_pic='-Kconform_pic'
14988 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014989 fi
14990 ;;
14991
Reid Spencera773bd52006-08-04 18:18:08 +000014992 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14993 lt_prog_compiler_wl='-Wl,'
14994 lt_prog_compiler_pic='-KPIC'
14995 lt_prog_compiler_static='-Bstatic'
14996 ;;
14997
14998 unicos*)
14999 lt_prog_compiler_wl='-Wl,'
15000 lt_prog_compiler_can_build_shared=no
15001 ;;
15002
John Criswell47fdd832003-07-14 16:52:07 +000015003 uts4*)
15004 lt_prog_compiler_pic='-pic'
15005 lt_prog_compiler_static='-Bstatic'
15006 ;;
15007
John Criswell7a73b802003-06-30 21:59:07 +000015008 *)
John Criswell47fdd832003-07-14 16:52:07 +000015009 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015010 ;;
15011 esac
15012 fi
15013
Reid Spencera773bd52006-08-04 18:18:08 +000015014{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15015echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015016
John Criswell47fdd832003-07-14 16:52:07 +000015017#
15018# Check to make sure the PIC flag actually works.
15019#
15020if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015021
Reid Spencera773bd52006-08-04 18:18:08 +000015022{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15023echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015024if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015025 echo $ECHO_N "(cached) $ECHO_C" >&6
15026else
John Criswell47fdd832003-07-14 16:52:07 +000015027 lt_prog_compiler_pic_works=no
15028 ac_outfile=conftest.$ac_objext
15029 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15030 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15031 # Insert the option either (1) after the last *FLAGS variable, or
15032 # (2) before a word containing "conftest.", or (3) at the end.
15033 # Note that $ac_compile itself does not contain backslashes and begins
15034 # with a dollar sign (not a hyphen), so the echo should work correctly.
15035 # The option is referenced via a variable to avoid confusing sed.
15036 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015037 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015038 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15039 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000015040 (eval echo "\"\$as_me:15035: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015041 (eval "$lt_compile" 2>conftest.err)
15042 ac_status=$?
15043 cat conftest.err >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000015044 echo "$as_me:15039: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015045 if (exit $ac_status) && test -s "$ac_outfile"; then
15046 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000015047 # So say no if there are warnings other than the usual output.
15048 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15049 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15050 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015051 lt_prog_compiler_pic_works=yes
15052 fi
15053 fi
15054 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015055
John Criswell47fdd832003-07-14 16:52:07 +000015056fi
Reid Spencera773bd52006-08-04 18:18:08 +000015057{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15058echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015059
John Criswell47fdd832003-07-14 16:52:07 +000015060if test x"$lt_prog_compiler_pic_works" = xyes; then
15061 case $lt_prog_compiler_pic in
15062 "" | " "*) ;;
15063 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15064 esac
John Criswell7a73b802003-06-30 21:59:07 +000015065else
John Criswell47fdd832003-07-14 16:52:07 +000015066 lt_prog_compiler_pic=
15067 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015068fi
15069
John Criswell7a73b802003-06-30 21:59:07 +000015070fi
Reid Spencera773bd52006-08-04 18:18:08 +000015071case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015072 # For platforms which do not support PIC, -DPIC is meaningless:
15073 *djgpp*)
15074 lt_prog_compiler_pic=
15075 ;;
15076 *)
15077 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15078 ;;
15079esac
John Criswell7a73b802003-06-30 21:59:07 +000015080
Reid Spencera773bd52006-08-04 18:18:08 +000015081#
15082# Check to make sure the static flag actually works.
15083#
15084wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15085{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15086echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15087if test "${lt_prog_compiler_static_works+set}" = set; then
15088 echo $ECHO_N "(cached) $ECHO_C" >&6
15089else
15090 lt_prog_compiler_static_works=no
15091 save_LDFLAGS="$LDFLAGS"
15092 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15093 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15094 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15095 # The linker can only warn and ignore the option if not recognized
15096 # So say no if there are warnings
15097 if test -s conftest.err; then
15098 # Append any errors to the config.log.
15099 cat conftest.err 1>&5
15100 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15101 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15102 if diff conftest.exp conftest.er2 >/dev/null; then
15103 lt_prog_compiler_static_works=yes
15104 fi
15105 else
15106 lt_prog_compiler_static_works=yes
15107 fi
15108 fi
15109 $rm conftest*
15110 LDFLAGS="$save_LDFLAGS"
15111
15112fi
15113{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15114echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15115
15116if test x"$lt_prog_compiler_static_works" = xyes; then
15117 :
15118else
15119 lt_prog_compiler_static=
15120fi
15121
15122
15123{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15124echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015125if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015126 echo $ECHO_N "(cached) $ECHO_C" >&6
15127else
John Criswell47fdd832003-07-14 16:52:07 +000015128 lt_cv_prog_compiler_c_o=no
15129 $rm -r conftest 2>/dev/null
15130 mkdir conftest
15131 cd conftest
15132 mkdir out
15133 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015134
John Criswell47fdd832003-07-14 16:52:07 +000015135 lt_compiler_flag="-o out/conftest2.$ac_objext"
15136 # Insert the option either (1) after the last *FLAGS variable, or
15137 # (2) before a word containing "conftest.", or (3) at the end.
15138 # Note that $ac_compile itself does not contain backslashes and begins
15139 # with a dollar sign (not a hyphen), so the echo should work correctly.
15140 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015141 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015142 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15143 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000015144 (eval echo "\"\$as_me:15139: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015145 (eval "$lt_compile" 2>out/conftest.err)
15146 ac_status=$?
15147 cat out/conftest.err >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000015148 echo "$as_me:15143: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015149 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15150 then
15151 # The compiler can only warn and ignore the option if not recognized
15152 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000015153 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15154 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15155 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015156 lt_cv_prog_compiler_c_o=yes
15157 fi
15158 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015159 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015160 $rm conftest*
15161 # SGI C++ compiler will create directory out/ii_files/ for
15162 # template instantiation
15163 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15164 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000015165 cd ..
15166 rmdir conftest
15167 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015168
15169fi
Reid Spencera773bd52006-08-04 18:18:08 +000015170{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15171echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015172
John Criswell7a73b802003-06-30 21:59:07 +000015173
John Criswell7a73b802003-06-30 21:59:07 +000015174hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000015175if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000015176 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000015177 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15178echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015179 hard_links=yes
15180 $rm conftest*
15181 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15182 touch conftest.a
15183 ln conftest.a conftest.b 2>&5 || hard_links=no
15184 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000015185 { echo "$as_me:$LINENO: result: $hard_links" >&5
15186echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015187 if test "$hard_links" = no; then
15188 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15189echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15190 need_locks=warn
15191 fi
15192else
15193 need_locks=no
15194fi
John Criswell7a73b802003-06-30 21:59:07 +000015195
Reid Spencera773bd52006-08-04 18:18:08 +000015196{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15197echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015198
15199 runpath_var=
15200 allow_undefined_flag=
15201 enable_shared_with_static_runtimes=no
15202 archive_cmds=
15203 archive_expsym_cmds=
15204 old_archive_From_new_cmds=
15205 old_archive_from_expsyms_cmds=
15206 export_dynamic_flag_spec=
15207 whole_archive_flag_spec=
15208 thread_safe_flag_spec=
15209 hardcode_libdir_flag_spec=
15210 hardcode_libdir_flag_spec_ld=
15211 hardcode_libdir_separator=
15212 hardcode_direct=no
15213 hardcode_minus_L=no
15214 hardcode_shlibpath_var=unsupported
15215 link_all_deplibs=unknown
15216 hardcode_automatic=no
15217 module_cmds=
15218 module_expsym_cmds=
15219 always_export_symbols=no
15220 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15221 # include_expsyms should be a list of space-separated symbols to be *always*
15222 # included in the symbol list
15223 include_expsyms=
15224 # exclude_expsyms can be an extended regexp of symbols to exclude
15225 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15226 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15227 # as well as any symbol that contains `d'.
15228 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15229 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15230 # platforms (ab)use it in PIC code, but their linkers get confused if
15231 # the symbol is explicitly referenced. Since portable code cannot
15232 # rely on this symbol name, it's probably fine to never include it in
15233 # preloaded symbol tables.
15234 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000015235 # Just being paranoid about ensuring that cc_basename is set.
15236 for cc_temp in $compiler""; do
15237 case $cc_temp in
15238 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15239 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15240 \-*) ;;
15241 *) break;;
15242 esac
15243done
15244cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000015245
15246 case $host_os in
15247 cygwin* | mingw* | pw32*)
15248 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15249 # When not using gcc, we currently assume that we are using
15250 # Microsoft Visual C++.
15251 if test "$GCC" != yes; then
15252 with_gnu_ld=no
15253 fi
15254 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015255 interix*)
15256 # we just hope/assume this is gcc and not c89 (= MSVC++)
15257 with_gnu_ld=yes
15258 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015259 openbsd*)
15260 with_gnu_ld=no
15261 ;;
15262 esac
15263
15264 ld_shlibs=yes
15265 if test "$with_gnu_ld" = yes; then
15266 # If archive_cmds runs LD, not CC, wlarc should be empty
15267 wlarc='${wl}'
15268
Reid Spencera773bd52006-08-04 18:18:08 +000015269 # Set some defaults for GNU ld with shared library support. These
15270 # are reset later if shared libraries are not supported. Putting them
15271 # here allows them to be overridden if necessary.
15272 runpath_var=LD_RUN_PATH
15273 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15274 export_dynamic_flag_spec='${wl}--export-dynamic'
15275 # ancient GNU ld didn't support --whole-archive et. al.
15276 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15277 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15278 else
15279 whole_archive_flag_spec=
15280 fi
15281 supports_anon_versioning=no
15282 case `$LD -v 2>/dev/null` in
15283 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15284 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15285 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15286 *\ 2.11.*) ;; # other 2.11 versions
15287 *) supports_anon_versioning=yes ;;
15288 esac
15289
John Criswell47fdd832003-07-14 16:52:07 +000015290 # See if GNU ld supports shared libraries.
15291 case $host_os in
15292 aix3* | aix4* | aix5*)
15293 # On AIX/PPC, the GNU linker is very broken
15294 if test "$host_cpu" != ia64; then
15295 ld_shlibs=no
15296 cat <<EOF 1>&2
15297
15298*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15299*** to be unable to reliably create shared libraries on AIX.
15300*** Therefore, libtool is disabling shared libraries support. If you
15301*** really care for shared libraries, you may want to modify your PATH
15302*** so that a non-GNU linker is found, and then restart.
15303
15304EOF
15305 fi
15306 ;;
15307
15308 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015309 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 +000015310 hardcode_libdir_flag_spec='-L$libdir'
15311 hardcode_minus_L=yes
15312
15313 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15314 # that the semantics of dynamic libraries on AmigaOS, at least up
15315 # to version 4, is to share data among multiple programs linked
15316 # with the same dynamic library. Since this doesn't match the
15317 # behavior of shared libraries on other platforms, we can't use
15318 # them.
15319 ld_shlibs=no
15320 ;;
15321
15322 beos*)
15323 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15324 allow_undefined_flag=unsupported
15325 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15326 # support --undefined. This deserves some investigation. FIXME
15327 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15328 else
15329 ld_shlibs=no
15330 fi
15331 ;;
15332
15333 cygwin* | mingw* | pw32*)
15334 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15335 # as there is no search path for DLLs.
15336 hardcode_libdir_flag_spec='-L$libdir'
15337 allow_undefined_flag=unsupported
15338 always_export_symbols=no
15339 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015340 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 +000015341
15342 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015343 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 +000015344 # If the export-symbols file already is a .def file (1st line
15345 # is EXPORTS), use it as is; otherwise, prepend...
15346 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15347 cp $export_symbols $output_objdir/$soname.def;
15348 else
15349 echo EXPORTS > $output_objdir/$soname.def;
15350 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015351 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015352 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15353 else
15354 ld_shlibs=no
15355 fi
15356 ;;
15357
15358 interix3*)
15359 hardcode_direct=no
15360 hardcode_shlibpath_var=no
15361 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15362 export_dynamic_flag_spec='${wl}-E'
15363 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15364 # Instead, shared libraries are loaded at an image base (0x10000000 by
15365 # default) and relocated if they conflict, which is a slow very memory
15366 # consuming and fragmenting process. To avoid this, we pick a random,
15367 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15368 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15369 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15370 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'
15371 ;;
15372
15373 linux*)
15374 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15375 tmp_addflag=
15376 case $cc_basename,$host_cpu in
15377 pgcc*) # Portland Group C compiler
15378 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'
15379 tmp_addflag=' $pic_flag'
15380 ;;
15381 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15382 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'
15383 tmp_addflag=' $pic_flag -Mnomain' ;;
15384 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15385 tmp_addflag=' -i_dynamic' ;;
15386 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15387 tmp_addflag=' -i_dynamic -nofor_main' ;;
15388 ifc* | ifort*) # Intel Fortran compiler
15389 tmp_addflag=' -nofor_main' ;;
15390 esac
15391 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15392
15393 if test $supports_anon_versioning = yes; then
15394 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15395 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15396 $echo "local: *; };" >> $output_objdir/$libname.ver~
15397 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15398 fi
John Criswell47fdd832003-07-14 16:52:07 +000015399 else
15400 ld_shlibs=no
15401 fi
15402 ;;
15403
15404 netbsd*)
15405 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15406 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15407 wlarc=
15408 else
15409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15410 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15411 fi
15412 ;;
15413
Reid Spencera773bd52006-08-04 18:18:08 +000015414 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015415 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15416 ld_shlibs=no
15417 cat <<EOF 1>&2
15418
15419*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15420*** create shared libraries on Solaris systems. Therefore, libtool
15421*** is disabling shared libraries support. We urge you to upgrade GNU
15422*** binutils to release 2.9.1 or newer. Another option is to modify
15423*** your PATH or compiler configuration so that the native linker is
15424*** used, and then restart.
15425
15426EOF
15427 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15428 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15429 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15430 else
15431 ld_shlibs=no
15432 fi
15433 ;;
15434
Reid Spencera773bd52006-08-04 18:18:08 +000015435 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15436 case `$LD -v 2>&1` in
15437 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15438 ld_shlibs=no
15439 cat <<_LT_EOF 1>&2
15440
15441*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15442*** reliably create shared libraries on SCO systems. Therefore, libtool
15443*** is disabling shared libraries support. We urge you to upgrade GNU
15444*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15445*** your PATH or compiler configuration so that the native linker is
15446*** used, and then restart.
15447
15448_LT_EOF
15449 ;;
15450 *)
15451 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15452 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15453 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15454 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15455 else
15456 ld_shlibs=no
15457 fi
15458 ;;
15459 esac
15460 ;;
15461
John Criswell47fdd832003-07-14 16:52:07 +000015462 sunos4*)
15463 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15464 wlarc=
15465 hardcode_direct=yes
15466 hardcode_shlibpath_var=no
15467 ;;
15468
15469 *)
15470 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15471 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15472 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15473 else
15474 ld_shlibs=no
15475 fi
15476 ;;
15477 esac
15478
Reid Spencera773bd52006-08-04 18:18:08 +000015479 if test "$ld_shlibs" = no; then
15480 runpath_var=
15481 hardcode_libdir_flag_spec=
15482 export_dynamic_flag_spec=
15483 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015484 fi
15485 else
15486 # PORTME fill in a description of your system's linker (not GNU ld)
15487 case $host_os in
15488 aix3*)
15489 allow_undefined_flag=unsupported
15490 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015491 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 +000015492 # Note: this linker hardcodes the directories in LIBPATH if there
15493 # are no directories specified by -L.
15494 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015495 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015496 # Neither direct hardcoding nor static linking is supported with a
15497 # broken collect2.
15498 hardcode_direct=unsupported
15499 fi
15500 ;;
15501
15502 aix4* | aix5*)
15503 if test "$host_cpu" = ia64; then
15504 # On IA64, the linker does run time linking by default, so we don't
15505 # have to do anything special.
15506 aix_use_runtimelinking=no
15507 exp_sym_flag='-Bexport'
15508 no_entry_flag=""
15509 else
15510 # If we're using GNU nm, then we don't want the "-C" option.
15511 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15512 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15513 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'
15514 else
15515 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'
15516 fi
15517 aix_use_runtimelinking=no
15518
15519 # Test if we are trying to use run time linking or normal
15520 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15521 # need to do runtime linking.
15522 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15523 for ld_flag in $LDFLAGS; do
15524 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15525 aix_use_runtimelinking=yes
15526 break
15527 fi
15528 done
Reid Spencera773bd52006-08-04 18:18:08 +000015529 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015530 esac
15531
15532 exp_sym_flag='-bexport'
15533 no_entry_flag='-bnoentry'
15534 fi
15535
15536 # When large executables or shared objects are built, AIX ld can
15537 # have problems creating the table of contents. If linking a library
15538 # or program results in "error TOC overflow" add -mminimal-toc to
15539 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15540 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15541
15542 archive_cmds=''
15543 hardcode_direct=yes
15544 hardcode_libdir_separator=':'
15545 link_all_deplibs=yes
15546
15547 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015548 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015549 # We only want to do this on AIX 4.2 and lower, the check
15550 # below for broken collect2 doesn't work under 4.3+
15551 collect2name=`${CC} -print-prog-name=collect2`
15552 if test -f "$collect2name" && \
15553 strings "$collect2name" | grep resolve_lib_name >/dev/null
15554 then
15555 # We have reworked collect2
15556 hardcode_direct=yes
15557 else
15558 # We have old collect2
15559 hardcode_direct=unsupported
15560 # It fails to find uninstalled libraries when the uninstalled
15561 # path is not listed in the libpath. Setting hardcode_minus_L
15562 # to unsupported forces relinking
15563 hardcode_minus_L=yes
15564 hardcode_libdir_flag_spec='-L$libdir'
15565 hardcode_libdir_separator=
15566 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015567 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015568 esac
15569 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015570 if test "$aix_use_runtimelinking" = yes; then
15571 shared_flag="$shared_flag "'${wl}-G'
15572 fi
John Criswell47fdd832003-07-14 16:52:07 +000015573 else
15574 # not using gcc
15575 if test "$host_cpu" = ia64; then
15576 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15577 # chokes on -Wl,-G. The following line is correct:
15578 shared_flag='-G'
15579 else
Reid Spencera773bd52006-08-04 18:18:08 +000015580 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015581 shared_flag='${wl}-G'
15582 else
15583 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015584 fi
John Criswell47fdd832003-07-14 16:52:07 +000015585 fi
15586 fi
15587
15588 # It seems that -bexpall does not export symbols beginning with
15589 # underscore (_), so it is better to generate a list of symbols to export.
15590 always_export_symbols=yes
15591 if test "$aix_use_runtimelinking" = yes; then
15592 # Warning - without using the other runtime loading flags (-brtl),
15593 # -berok will link without error, but may produce a broken library.
15594 allow_undefined_flag='-berok'
15595 # Determine the default libpath from the value encoded in an empty executable.
15596 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015597/* confdefs.h. */
15598_ACEOF
15599cat confdefs.h >>conftest.$ac_ext
15600cat >>conftest.$ac_ext <<_ACEOF
15601/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015602
John Criswell7a73b802003-06-30 21:59:07 +000015603int
15604main ()
15605{
John Criswell47fdd832003-07-14 16:52:07 +000015606
John Criswell7a73b802003-06-30 21:59:07 +000015607 ;
15608 return 0;
15609}
15610_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015611rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015612if { (ac_try="$ac_link"
15613case "(($ac_try" in
15614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15615 *) ac_try_echo=$ac_try;;
15616esac
15617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15618 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015619 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015620 grep -v '^ *+' conftest.er1 >conftest.err
15621 rm -f conftest.er1
15622 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015624 (exit $ac_status); } &&
15625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15626 { (case "(($ac_try" in
15627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15628 *) ac_try_echo=$ac_try;;
15629esac
15630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15631 (eval "$ac_try") 2>&5
15632 ac_status=$?
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); }; } &&
15635 { ac_try='test -s conftest$ac_exeext'
15636 { (case "(($ac_try" in
15637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15638 *) ac_try_echo=$ac_try;;
15639esac
15640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15641 (eval "$ac_try") 2>&5
15642 ac_status=$?
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015645
John Criswell47fdd832003-07-14 16:52:07 +000015646aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15647}'`
15648# Check for a 64-bit object if we didn't find anything.
15649if 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; }
15650}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015651else
15652 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015653sed 's/^/| /' conftest.$ac_ext >&5
15654
Reid Spencera773bd52006-08-04 18:18:08 +000015655
John Criswell7a73b802003-06-30 21:59:07 +000015656fi
Reid Spencera773bd52006-08-04 18:18:08 +000015657
Bill Wendlingebcceee2009-04-18 11:20:33 +000015658rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015659 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015660if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015661
John Criswell47fdd832003-07-14 16:52:07 +000015662 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015663 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 +000015664 else
15665 if test "$host_cpu" = ia64; then
15666 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15667 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015668 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 +000015669 else
15670 # Determine the default libpath from the value encoded in an empty executable.
15671 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015672/* confdefs.h. */
15673_ACEOF
15674cat confdefs.h >>conftest.$ac_ext
15675cat >>conftest.$ac_ext <<_ACEOF
15676/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015677
John Criswell47fdd832003-07-14 16:52:07 +000015678int
15679main ()
15680{
John Criswell7a73b802003-06-30 21:59:07 +000015681
John Criswell47fdd832003-07-14 16:52:07 +000015682 ;
15683 return 0;
15684}
15685_ACEOF
15686rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015687if { (ac_try="$ac_link"
15688case "(($ac_try" in
15689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15690 *) ac_try_echo=$ac_try;;
15691esac
15692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15693 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015694 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015695 grep -v '^ *+' conftest.er1 >conftest.err
15696 rm -f conftest.er1
15697 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015699 (exit $ac_status); } &&
15700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15701 { (case "(($ac_try" in
15702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703 *) ac_try_echo=$ac_try;;
15704esac
15705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706 (eval "$ac_try") 2>&5
15707 ac_status=$?
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); }; } &&
15710 { ac_try='test -s conftest$ac_exeext'
15711 { (case "(($ac_try" in
15712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15713 *) ac_try_echo=$ac_try;;
15714esac
15715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15716 (eval "$ac_try") 2>&5
15717 ac_status=$?
15718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015720
John Criswell47fdd832003-07-14 16:52:07 +000015721aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15722}'`
15723# Check for a 64-bit object if we didn't find anything.
15724if 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; }
15725}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015726else
John Criswell47fdd832003-07-14 16:52:07 +000015727 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015728sed 's/^/| /' conftest.$ac_ext >&5
15729
Reid Spencera773bd52006-08-04 18:18:08 +000015730
John Criswell47fdd832003-07-14 16:52:07 +000015731fi
Reid Spencera773bd52006-08-04 18:18:08 +000015732
Bill Wendlingebcceee2009-04-18 11:20:33 +000015733rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015734 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015735if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015736
John Criswell47fdd832003-07-14 16:52:07 +000015737 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15738 # Warning - without using the other run time loading flags,
15739 # -berok will link without error, but may produce a broken library.
15740 no_undefined_flag=' ${wl}-bernotok'
15741 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015742 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015743 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015744 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015745 # This is similar to how AIX traditionally builds its shared libraries.
15746 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 +000015747 fi
15748 fi
John Criswell7a73b802003-06-30 21:59:07 +000015749 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015750
15751 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015752 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 +000015753 hardcode_libdir_flag_spec='-L$libdir'
15754 hardcode_minus_L=yes
15755 # see comment about different semantics on the GNU ld section
15756 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015757 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015758
Reid Spencer2706f8c2004-09-19 23:53:36 +000015759 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015760 export_dynamic_flag_spec=-rdynamic
15761 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015762
John Criswell47fdd832003-07-14 16:52:07 +000015763 cygwin* | mingw* | pw32*)
15764 # When not using gcc, we currently assume that we are using
15765 # Microsoft Visual C++.
15766 # hardcode_libdir_flag_spec is actually meaningless, as there is
15767 # no search path for DLLs.
15768 hardcode_libdir_flag_spec=' '
15769 allow_undefined_flag=unsupported
15770 # Tell ltmain to make .lib files, not .a files.
15771 libext=lib
15772 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015773 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015774 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015775 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015776 # The linker will automatically build a .lib file if we build a DLL.
15777 old_archive_From_new_cmds='true'
15778 # FIXME: Should let the user specify the lib program.
15779 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15780 fix_srcfile_path='`cygpath -w "$srcfile"`'
15781 enable_shared_with_static_runtimes=yes
15782 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015783
John Criswell47fdd832003-07-14 16:52:07 +000015784 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015785 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015786 rhapsody* | darwin1.[012])
15787 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15788 ;;
15789 *) # Darwin 1.3 on
15790 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15791 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15792 else
15793 case ${MACOSX_DEPLOYMENT_TARGET} in
15794 10.[012])
15795 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15796 ;;
15797 10.*)
15798 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15799 ;;
15800 esac
15801 fi
15802 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015803 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015804 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015805 hardcode_direct=no
15806 hardcode_automatic=yes
15807 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015808 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015809 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015810 if test "$GCC" = yes ; then
15811 output_verbose_link_cmd='echo'
15812 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15813 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015814 # 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 +000015815 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}'
15816 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 +000015817 else
Reid Spencera773bd52006-08-04 18:18:08 +000015818 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015819 xlc*)
15820 output_verbose_link_cmd='echo'
15821 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15822 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015823 # 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 +000015824 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}'
15825 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 +000015826 ;;
15827 *)
15828 ld_shlibs=no
15829 ;;
15830 esac
John Criswell7a73b802003-06-30 21:59:07 +000015831 fi
John Criswell47fdd832003-07-14 16:52:07 +000015832 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015833
John Criswell47fdd832003-07-14 16:52:07 +000015834 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015835 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015836 hardcode_libdir_flag_spec='-L$libdir'
15837 hardcode_shlibpath_var=no
15838 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015839
John Criswell47fdd832003-07-14 16:52:07 +000015840 freebsd1*)
15841 ld_shlibs=no
15842 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015843
John Criswell47fdd832003-07-14 16:52:07 +000015844 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15845 # support. Future versions do this automatically, but an explicit c++rt0.o
15846 # does not break anything, and helps significantly (at the cost of a little
15847 # extra space).
15848 freebsd2.2*)
15849 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15850 hardcode_libdir_flag_spec='-R$libdir'
15851 hardcode_direct=yes
15852 hardcode_shlibpath_var=no
15853 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015854
John Criswell47fdd832003-07-14 16:52:07 +000015855 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15856 freebsd2*)
15857 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15858 hardcode_direct=yes
15859 hardcode_minus_L=yes
15860 hardcode_shlibpath_var=no
15861 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015862
John Criswell47fdd832003-07-14 16:52:07 +000015863 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015864 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015865 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15866 hardcode_libdir_flag_spec='-R$libdir'
15867 hardcode_direct=yes
15868 hardcode_shlibpath_var=no
15869 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015870
John Criswell47fdd832003-07-14 16:52:07 +000015871 hpux9*)
15872 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015873 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 +000015874 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015875 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 +000015876 fi
15877 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15878 hardcode_libdir_separator=:
15879 hardcode_direct=yes
15880
15881 # hardcode_minus_L: Not really in the search PATH,
15882 # but as the default location of the library.
15883 hardcode_minus_L=yes
15884 export_dynamic_flag_spec='${wl}-E'
15885 ;;
15886
Reid Spencera773bd52006-08-04 18:18:08 +000015887 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015888 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015889 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15890 else
15891 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15892 fi
15893 if test "$with_gnu_ld" = no; then
15894 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15895 hardcode_libdir_separator=:
15896
15897 hardcode_direct=yes
15898 export_dynamic_flag_spec='${wl}-E'
15899
15900 # hardcode_minus_L: Not really in the search PATH,
15901 # but as the default location of the library.
15902 hardcode_minus_L=yes
15903 fi
15904 ;;
15905
15906 hpux11*)
15907 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15908 case $host_cpu in
15909 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015910 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15911 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015912 ia64*)
15913 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15914 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015915 *)
15916 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15917 ;;
15918 esac
15919 else
Reid Spencera773bd52006-08-04 18:18:08 +000015920 case $host_cpu in
15921 hppa*64*)
15922 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15923 ;;
15924 ia64*)
15925 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015926 ;;
15927 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015928 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 +000015929 ;;
15930 esac
15931 fi
15932 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015933 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15934 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015935
Reid Spencera773bd52006-08-04 18:18:08 +000015936 case $host_cpu in
15937 hppa*64*|ia64*)
15938 hardcode_libdir_flag_spec_ld='+b $libdir'
15939 hardcode_direct=no
15940 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015941 ;;
15942 *)
John Criswell47fdd832003-07-14 16:52:07 +000015943 hardcode_direct=yes
15944 export_dynamic_flag_spec='${wl}-E'
15945
15946 # hardcode_minus_L: Not really in the search PATH,
15947 # but as the default location of the library.
15948 hardcode_minus_L=yes
15949 ;;
15950 esac
15951 fi
15952 ;;
15953
15954 irix5* | irix6* | nonstopux*)
15955 if test "$GCC" = yes; then
15956 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'
15957 else
15958 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'
15959 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15960 fi
15961 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15962 hardcode_libdir_separator=:
15963 link_all_deplibs=yes
15964 ;;
15965
15966 netbsd*)
15967 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15968 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15969 else
15970 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15971 fi
15972 hardcode_libdir_flag_spec='-R$libdir'
15973 hardcode_direct=yes
15974 hardcode_shlibpath_var=no
15975 ;;
15976
15977 newsos6)
15978 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15979 hardcode_direct=yes
15980 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15981 hardcode_libdir_separator=:
15982 hardcode_shlibpath_var=no
15983 ;;
15984
15985 openbsd*)
15986 hardcode_direct=yes
15987 hardcode_shlibpath_var=no
15988 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15989 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015990 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 +000015991 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15992 export_dynamic_flag_spec='${wl}-E'
15993 else
15994 case $host_os in
15995 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15996 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15997 hardcode_libdir_flag_spec='-R$libdir'
15998 ;;
15999 *)
16000 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16001 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16002 ;;
16003 esac
16004 fi
16005 ;;
16006
16007 os2*)
16008 hardcode_libdir_flag_spec='-L$libdir'
16009 hardcode_minus_L=yes
16010 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000016011 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 +000016012 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16013 ;;
16014
16015 osf3*)
16016 if test "$GCC" = yes; then
16017 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16018 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'
16019 else
16020 allow_undefined_flag=' -expect_unresolved \*'
16021 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'
16022 fi
16023 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16024 hardcode_libdir_separator=:
16025 ;;
16026
16027 osf4* | osf5*) # as osf3* with the addition of -msym flag
16028 if test "$GCC" = yes; then
16029 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16030 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'
16031 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16032 else
16033 allow_undefined_flag=' -expect_unresolved \*'
16034 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 +000016035 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 +000016036 $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 +000016037
John Criswell47fdd832003-07-14 16:52:07 +000016038 # Both c and cxx compiler support -rpath directly
16039 hardcode_libdir_flag_spec='-rpath $libdir'
16040 fi
16041 hardcode_libdir_separator=:
16042 ;;
16043
John Criswell47fdd832003-07-14 16:52:07 +000016044 solaris*)
16045 no_undefined_flag=' -z text'
16046 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016047 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000016048 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016049 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16050 $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 +000016051 else
Reid Spencera773bd52006-08-04 18:18:08 +000016052 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000016053 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016054 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16055 $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 +000016056 fi
16057 hardcode_libdir_flag_spec='-R$libdir'
16058 hardcode_shlibpath_var=no
16059 case $host_os in
16060 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016061 *)
16062 # The compiler driver will combine linker options so we
16063 # cannot just pass the convience library names through
16064 # without $wl, iff we do not link with $LD.
16065 # Luckily, gcc supports the same syntax we need for Sun Studio.
16066 # Supported since Solaris 2.6 (maybe 2.5.1?)
16067 case $wlarc in
16068 '')
16069 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16070 *)
16071 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' ;;
16072 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000016073 esac
16074 link_all_deplibs=yes
16075 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016076
John Criswell47fdd832003-07-14 16:52:07 +000016077 sunos4*)
16078 if test "x$host_vendor" = xsequent; then
16079 # Use $CC to link under sequent, because it throws in some extra .o
16080 # files that make .init and .fini sections work.
16081 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16082 else
16083 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16084 fi
16085 hardcode_libdir_flag_spec='-L$libdir'
16086 hardcode_direct=yes
16087 hardcode_minus_L=yes
16088 hardcode_shlibpath_var=no
16089 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016090
John Criswell47fdd832003-07-14 16:52:07 +000016091 sysv4)
16092 case $host_vendor in
16093 sni)
16094 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16095 hardcode_direct=yes # is this really true???
16096 ;;
16097 siemens)
16098 ## LD is ld it makes a PLAMLIB
16099 ## CC just makes a GrossModule.
16100 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16101 reload_cmds='$CC -r -o $output$reload_objs'
16102 hardcode_direct=no
16103 ;;
16104 motorola)
16105 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16106 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16107 ;;
16108 esac
16109 runpath_var='LD_RUN_PATH'
16110 hardcode_shlibpath_var=no
16111 ;;
16112
16113 sysv4.3*)
16114 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16115 hardcode_shlibpath_var=no
16116 export_dynamic_flag_spec='-Bexport'
16117 ;;
16118
16119 sysv4*MP*)
16120 if test -d /usr/nec; then
16121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16122 hardcode_shlibpath_var=no
16123 runpath_var=LD_RUN_PATH
16124 hardcode_runpath_var=yes
16125 ld_shlibs=yes
16126 fi
16127 ;;
16128
Reid Spencera773bd52006-08-04 18:18:08 +000016129 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16130 no_undefined_flag='${wl}-z,text'
16131 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016132 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016133 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000016134
John Criswell47fdd832003-07-14 16:52:07 +000016135 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016136 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16137 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 +000016138 else
Reid Spencera773bd52006-08-04 18:18:08 +000016139 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16140 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 +000016141 fi
John Criswell47fdd832003-07-14 16:52:07 +000016142 ;;
16143
Reid Spencera773bd52006-08-04 18:18:08 +000016144 sysv5* | sco3.2v5* | sco5v6*)
16145 # Note: We can NOT use -z defs as we might desire, because we do not
16146 # link with -lc, and that would cause any symbols used from libc to
16147 # always be unresolved, which means just about no library would
16148 # ever link correctly. If we're not using GNU ld we use -z text
16149 # though, which does catch some bad symbols but isn't as heavy-handed
16150 # as -z defs.
16151 no_undefined_flag='${wl}-z,text'
16152 allow_undefined_flag='${wl}-z,nodefs'
16153 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016154 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016155 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16156 hardcode_libdir_separator=':'
16157 link_all_deplibs=yes
16158 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000016159 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000016160
16161 if test "$GCC" = yes; then
16162 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16163 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16164 else
16165 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16166 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16167 fi
John Criswell47fdd832003-07-14 16:52:07 +000016168 ;;
16169
16170 uts4*)
16171 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16172 hardcode_libdir_flag_spec='-L$libdir'
16173 hardcode_shlibpath_var=no
16174 ;;
16175
16176 *)
16177 ld_shlibs=no
16178 ;;
16179 esac
16180 fi
16181
Reid Spencera773bd52006-08-04 18:18:08 +000016182{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16183echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016184test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016185
John Criswell47fdd832003-07-14 16:52:07 +000016186#
16187# Do we need to explicitly link libc?
16188#
16189case "x$archive_cmds_need_lc" in
16190x|xyes)
16191 # Assume -lc should be added
16192 archive_cmds_need_lc=yes
16193
16194 if test "$enable_shared" = yes && test "$GCC" = yes; then
16195 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016196 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016197 # FIXME: we may have to deal with multi-command sequences.
16198 ;;
16199 '$CC '*)
16200 # Test whether the compiler implicitly links with -lc since on some
16201 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16202 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000016203 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16204echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016205 $rm conftest*
16206 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16207
16208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16209 (eval $ac_compile) 2>&5
16210 ac_status=$?
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); } 2>conftest.err; then
16213 soname=conftest
16214 lib=conftest
16215 libobjs=conftest.$ac_objext
16216 deplibs=
16217 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000016218 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000016219 compiler_flags=-v
16220 linker_flags=-v
16221 verstring=
16222 output_objdir=.
16223 libname=conftest
16224 lt_save_allow_undefined_flag=$allow_undefined_flag
16225 allow_undefined_flag=
16226 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16227 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16228 ac_status=$?
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); }
16231 then
16232 archive_cmds_need_lc=no
16233 else
16234 archive_cmds_need_lc=yes
16235 fi
16236 allow_undefined_flag=$lt_save_allow_undefined_flag
16237 else
16238 cat conftest.err 1>&5
16239 fi
16240 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000016241 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16242echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016243 ;;
16244 esac
16245 fi
16246 ;;
16247esac
16248
Reid Spencera773bd52006-08-04 18:18:08 +000016249{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16250echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016251library_names_spec=
16252libname_spec='lib$name'
16253soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016254shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000016255postinstall_cmds=
16256postuninstall_cmds=
16257finish_cmds=
16258finish_eval=
16259shlibpath_var=
16260shlibpath_overrides_runpath=unknown
16261version_type=none
16262dynamic_linker="$host_os ld.so"
16263sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016264if test "$GCC" = yes; then
16265 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16266 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16267 # if the path contains ";" then we assume it to be the separator
16268 # otherwise default to the standard path separator (i.e. ":") - it is
16269 # assumed that no part of a normal pathname contains ";" but that should
16270 # okay in the real world where ";" in dirpaths is itself problematic.
16271 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16272 else
16273 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16274 fi
16275else
16276 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16277fi
16278need_lib_prefix=unknown
16279hardcode_into_libs=no
16280
16281# when you set need_version to no, make sure it does not cause -set_version
16282# flags to be left without arguments
16283need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000016284
16285case $host_os in
16286aix3*)
16287 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016288 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016289 shlibpath_var=LIBPATH
16290
John Criswell47fdd832003-07-14 16:52:07 +000016291 # AIX 3 has no versioning support, so we append a major version to the name.
16292 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016293 ;;
16294
16295aix4* | aix5*)
16296 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016297 need_lib_prefix=no
16298 need_version=no
16299 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016300 if test "$host_cpu" = ia64; then
16301 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000016302 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016303 shlibpath_var=LD_LIBRARY_PATH
16304 else
16305 # With GCC up to 2.95.x, collect2 would create an import file
16306 # for dependence libraries. The import file would start with
16307 # the line `#! .'. This would cause the generated library to
16308 # depend on `.', always an invalid library. This was fixed in
16309 # development snapshots of GCC prior to 3.0.
16310 case $host_os in
16311 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000016312 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16313 echo ' yes '
16314 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16315 :
16316 else
16317 can_build_shared=no
16318 fi
16319 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016320 esac
John Criswell47fdd832003-07-14 16:52:07 +000016321 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16322 # soname into executable. Probably we can add versioning support to
16323 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000016324 if test "$aix_use_runtimelinking" = yes; then
16325 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16326 # instead of lib<name>.a to let people know that these are not
16327 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016329 else
16330 # We preserve .a as extension for shared libraries through AIX4.2
16331 # and later when we are not doing run time linking.
16332 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016333 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016334 fi
16335 shlibpath_var=LIBPATH
16336 fi
16337 ;;
16338
16339amigaos*)
16340 library_names_spec='$libname.ixlibrary $libname.a'
16341 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016342 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 +000016343 ;;
16344
16345beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016346 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016347 dynamic_linker="$host_os ld.so"
16348 shlibpath_var=LIBRARY_PATH
16349 ;;
16350
Reid Spencer2706f8c2004-09-19 23:53:36 +000016351bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016352 version_type=linux
16353 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16355 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016356 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16357 shlibpath_var=LD_LIBRARY_PATH
16358 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16359 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016360 # the default ld.so.conf also contains /usr/contrib/lib and
16361 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16362 # libtool to hard-code these into programs
16363 ;;
16364
16365cygwin* | mingw* | pw32*)
16366 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016367 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016368 need_version=no
16369 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016370
John Criswell7a73b802003-06-30 21:59:07 +000016371 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016372 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016373 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016374 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016375 postinstall_cmds='base_file=`basename \${file}`~
16376 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16377 dldir=$destdir/`dirname \$dlpath`~
16378 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016379 $install_prog $dir/$dlname \$dldir/$dlname~
16380 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016381 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16382 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016383 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016384 shlibpath_overrides_runpath=yes
16385
16386 case $host_os in
16387 cygwin*)
16388 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16389 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 +000016390 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016391 ;;
16392 mingw*)
16393 # MinGW DLLs use traditional 'lib' prefix
16394 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16395 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16396 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16397 # It is most probably a Windows format PATH printed by
16398 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16399 # path with ; separators, and with drive letters. We can handle the
16400 # drive letters (cygwin fileutils understands them), so leave them,
16401 # especially as we might pass files found there to a mingw objdump,
16402 # which wouldn't understand a cygwinified path. Ahh.
16403 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16404 else
16405 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16406 fi
16407 ;;
16408 pw32*)
16409 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016410 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 +000016411 ;;
16412 esac
John Criswell7a73b802003-06-30 21:59:07 +000016413 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016414
John Criswell7a73b802003-06-30 21:59:07 +000016415 *)
John Criswell47fdd832003-07-14 16:52:07 +000016416 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016417 ;;
16418 esac
16419 dynamic_linker='Win32 ld.exe'
16420 # FIXME: first we should search . and the directory the executable is in
16421 shlibpath_var=PATH
16422 ;;
16423
16424darwin* | rhapsody*)
16425 dynamic_linker="$host_os dyld"
16426 version_type=darwin
16427 need_lib_prefix=no
16428 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016429 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016430 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016431 shlibpath_overrides_runpath=yes
16432 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016433 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016434 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016435 if test "$GCC" = yes; then
16436 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"`
16437 else
16438 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016439 fi
16440 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16441 ;;
16442
16443dgux*)
16444 version_type=linux
16445 need_lib_prefix=no
16446 need_version=no
16447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16448 soname_spec='${libname}${release}${shared_ext}$major'
16449 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016450 ;;
16451
16452freebsd1*)
16453 dynamic_linker=no
16454 ;;
16455
Reid Spencer2706f8c2004-09-19 23:53:36 +000016456kfreebsd*-gnu)
16457 version_type=linux
16458 need_lib_prefix=no
16459 need_version=no
16460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16461 soname_spec='${libname}${release}${shared_ext}$major'
16462 shlibpath_var=LD_LIBRARY_PATH
16463 shlibpath_overrides_runpath=no
16464 hardcode_into_libs=yes
16465 dynamic_linker='GNU ld.so'
16466 ;;
16467
Reid Spencera773bd52006-08-04 18:18:08 +000016468freebsd* | dragonfly*)
16469 # DragonFly does not have aout. When/if they implement a new
16470 # versioning mechanism, adjust this.
16471 if test -x /usr/bin/objformat; then
16472 objformat=`/usr/bin/objformat`
16473 else
16474 case $host_os in
16475 freebsd[123]*) objformat=aout ;;
16476 *) objformat=elf ;;
16477 esac
16478 fi
John Criswell7a73b802003-06-30 21:59:07 +000016479 version_type=freebsd-$objformat
16480 case $version_type in
16481 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016483 need_version=no
16484 need_lib_prefix=no
16485 ;;
16486 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016487 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016488 need_version=yes
16489 ;;
16490 esac
16491 shlibpath_var=LD_LIBRARY_PATH
16492 case $host_os in
16493 freebsd2*)
16494 shlibpath_overrides_runpath=yes
16495 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016496 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016497 shlibpath_overrides_runpath=yes
16498 hardcode_into_libs=yes
16499 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016500 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16501 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016502 shlibpath_overrides_runpath=no
16503 hardcode_into_libs=yes
16504 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016505 freebsd*) # from 4.6 on
16506 shlibpath_overrides_runpath=yes
16507 hardcode_into_libs=yes
16508 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016509 esac
16510 ;;
16511
16512gnu*)
16513 version_type=linux
16514 need_lib_prefix=no
16515 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16517 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016518 shlibpath_var=LD_LIBRARY_PATH
16519 hardcode_into_libs=yes
16520 ;;
16521
16522hpux9* | hpux10* | hpux11*)
16523 # Give a soname corresponding to the major version so that dld.sl refuses to
16524 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016525 version_type=sunos
16526 need_lib_prefix=no
16527 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016528 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016529 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016530 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016531 hardcode_into_libs=yes
16532 dynamic_linker="$host_os dld.so"
16533 shlibpath_var=LD_LIBRARY_PATH
16534 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16536 soname_spec='${libname}${release}${shared_ext}$major'
16537 if test "X$HPUX_IA64_MODE" = X32; then
16538 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16539 else
16540 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16541 fi
16542 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16543 ;;
16544 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016545 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016546 hardcode_into_libs=yes
16547 dynamic_linker="$host_os dld.sl"
16548 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16549 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16551 soname_spec='${libname}${release}${shared_ext}$major'
16552 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16553 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16554 ;;
16555 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016556 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016557 dynamic_linker="$host_os dld.sl"
16558 shlibpath_var=SHLIB_PATH
16559 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16561 soname_spec='${libname}${release}${shared_ext}$major'
16562 ;;
16563 esac
John Criswell7a73b802003-06-30 21:59:07 +000016564 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16565 postinstall_cmds='chmod 555 $lib'
16566 ;;
16567
Reid Spencera773bd52006-08-04 18:18:08 +000016568interix3*)
16569 version_type=linux
16570 need_lib_prefix=no
16571 need_version=no
16572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16573 soname_spec='${libname}${release}${shared_ext}$major'
16574 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16575 shlibpath_var=LD_LIBRARY_PATH
16576 shlibpath_overrides_runpath=no
16577 hardcode_into_libs=yes
16578 ;;
16579
John Criswell47fdd832003-07-14 16:52:07 +000016580irix5* | irix6* | nonstopux*)
16581 case $host_os in
16582 nonstopux*) version_type=nonstopux ;;
16583 *)
16584 if test "$lt_cv_prog_gnu_ld" = yes; then
16585 version_type=linux
16586 else
16587 version_type=irix
16588 fi ;;
16589 esac
John Criswell7a73b802003-06-30 21:59:07 +000016590 need_lib_prefix=no
16591 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016592 soname_spec='${libname}${release}${shared_ext}$major'
16593 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 +000016594 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016595 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016596 libsuff= shlibsuff=
16597 ;;
16598 *)
16599 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016600 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16601 libsuff= shlibsuff= libmagic=32-bit;;
16602 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16603 libsuff=32 shlibsuff=N32 libmagic=N32;;
16604 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16605 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016606 *) libsuff= shlibsuff= libmagic=never-match;;
16607 esac
16608 ;;
16609 esac
16610 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16611 shlibpath_overrides_runpath=no
16612 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16613 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016614 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016615 ;;
16616
16617# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016618linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016619 dynamic_linker=no
16620 ;;
16621
16622# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016623linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016624 version_type=linux
16625 need_lib_prefix=no
16626 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16628 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016629 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16630 shlibpath_var=LD_LIBRARY_PATH
16631 shlibpath_overrides_runpath=no
16632 # This implies no fast_install, which is unacceptable.
16633 # Some rework will be needed to allow for fast_install
16634 # before this can be enabled.
16635 hardcode_into_libs=yes
16636
Reid Spencer2706f8c2004-09-19 23:53:36 +000016637 # Append ld.so.conf contents to the search path
16638 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016639 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 +000016640 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16641 fi
16642
John Criswell7a73b802003-06-30 21:59:07 +000016643 # We used to test for /lib/ld.so.1 and disable shared libraries on
16644 # powerpc, because MkLinux only supported shared libraries with the
16645 # GNU dynamic linker. Since this was broken with cross compilers,
16646 # most powerpc-linux boxes support dynamic linking these days and
16647 # people can always --disable-shared, the test was removed, and we
16648 # assume the GNU/Linux dynamic linker is in use.
16649 dynamic_linker='GNU/Linux ld.so'
16650 ;;
16651
Reid Spencer2706f8c2004-09-19 23:53:36 +000016652knetbsd*-gnu)
16653 version_type=linux
16654 need_lib_prefix=no
16655 need_version=no
16656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16657 soname_spec='${libname}${release}${shared_ext}$major'
16658 shlibpath_var=LD_LIBRARY_PATH
16659 shlibpath_overrides_runpath=no
16660 hardcode_into_libs=yes
16661 dynamic_linker='GNU ld.so'
16662 ;;
16663
John Criswell7a73b802003-06-30 21:59:07 +000016664netbsd*)
16665 version_type=sunos
16666 need_lib_prefix=no
16667 need_version=no
16668 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016670 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16671 dynamic_linker='NetBSD (a.out) ld.so'
16672 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016674 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016675 dynamic_linker='NetBSD ld.elf_so'
16676 fi
16677 shlibpath_var=LD_LIBRARY_PATH
16678 shlibpath_overrides_runpath=yes
16679 hardcode_into_libs=yes
16680 ;;
16681
16682newsos6)
16683 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16685 shlibpath_var=LD_LIBRARY_PATH
16686 shlibpath_overrides_runpath=yes
16687 ;;
16688
Reid Spencer2706f8c2004-09-19 23:53:36 +000016689nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016690 version_type=linux
16691 need_lib_prefix=no
16692 need_version=no
16693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16694 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016695 shlibpath_var=LD_LIBRARY_PATH
16696 shlibpath_overrides_runpath=yes
16697 ;;
16698
16699openbsd*)
16700 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016701 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016702 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016703 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16704 case $host_os in
16705 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16706 *) need_version=no ;;
16707 esac
John Criswell47fdd832003-07-14 16:52:07 +000016708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16709 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16710 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016711 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 +000016712 case $host_os in
16713 openbsd2.[89] | openbsd2.[89].*)
16714 shlibpath_overrides_runpath=no
16715 ;;
16716 *)
16717 shlibpath_overrides_runpath=yes
16718 ;;
16719 esac
John Criswell7a73b802003-06-30 21:59:07 +000016720 else
16721 shlibpath_overrides_runpath=yes
16722 fi
John Criswell7a73b802003-06-30 21:59:07 +000016723 ;;
16724
16725os2*)
16726 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016727 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016728 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016729 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016730 dynamic_linker='OS/2 ld.exe'
16731 shlibpath_var=LIBPATH
16732 ;;
16733
16734osf3* | osf4* | osf5*)
16735 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016736 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016737 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016738 soname_spec='${libname}${release}${shared_ext}$major'
16739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016740 shlibpath_var=LD_LIBRARY_PATH
16741 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16742 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16743 ;;
16744
John Criswell7a73b802003-06-30 21:59:07 +000016745solaris*)
16746 version_type=linux
16747 need_lib_prefix=no
16748 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16750 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016751 shlibpath_var=LD_LIBRARY_PATH
16752 shlibpath_overrides_runpath=yes
16753 hardcode_into_libs=yes
16754 # ldd complains unless libraries are executable
16755 postinstall_cmds='chmod +x $lib'
16756 ;;
16757
16758sunos4*)
16759 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016761 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16762 shlibpath_var=LD_LIBRARY_PATH
16763 shlibpath_overrides_runpath=yes
16764 if test "$with_gnu_ld" = yes; then
16765 need_lib_prefix=no
16766 fi
16767 need_version=yes
16768 ;;
16769
Reid Spencera773bd52006-08-04 18:18:08 +000016770sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016771 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16773 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016774 shlibpath_var=LD_LIBRARY_PATH
16775 case $host_vendor in
16776 sni)
16777 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016778 need_lib_prefix=no
16779 export_dynamic_flag_spec='${wl}-Blargedynsym'
16780 runpath_var=LD_RUN_PATH
16781 ;;
16782 siemens)
16783 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016784 ;;
16785 motorola)
16786 need_lib_prefix=no
16787 need_version=no
16788 shlibpath_overrides_runpath=no
16789 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16790 ;;
16791 esac
16792 ;;
16793
John Criswell7a73b802003-06-30 21:59:07 +000016794sysv4*MP*)
16795 if test -d /usr/nec ;then
16796 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016797 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16798 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016799 shlibpath_var=LD_LIBRARY_PATH
16800 fi
16801 ;;
16802
Reid Spencera773bd52006-08-04 18:18:08 +000016803sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16804 version_type=freebsd-elf
16805 need_lib_prefix=no
16806 need_version=no
16807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16808 soname_spec='${libname}${release}${shared_ext}$major'
16809 shlibpath_var=LD_LIBRARY_PATH
16810 hardcode_into_libs=yes
16811 if test "$with_gnu_ld" = yes; then
16812 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16813 shlibpath_overrides_runpath=no
16814 else
16815 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16816 shlibpath_overrides_runpath=yes
16817 case $host_os in
16818 sco3.2v5*)
16819 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16820 ;;
16821 esac
16822 fi
16823 sys_lib_dlsearch_path_spec='/usr/lib'
16824 ;;
16825
John Criswell47fdd832003-07-14 16:52:07 +000016826uts4*)
16827 version_type=linux
16828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16829 soname_spec='${libname}${release}${shared_ext}$major'
16830 shlibpath_var=LD_LIBRARY_PATH
16831 ;;
16832
John Criswell7a73b802003-06-30 21:59:07 +000016833*)
16834 dynamic_linker=no
16835 ;;
16836esac
Reid Spencera773bd52006-08-04 18:18:08 +000016837{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16838echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016839test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016840
Reid Spencera773bd52006-08-04 18:18:08 +000016841variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16842if test "$GCC" = yes; then
16843 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16844fi
16845
16846{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16847echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016848hardcode_action=
16849if test -n "$hardcode_libdir_flag_spec" || \
16850 test -n "$runpath_var" || \
16851 test "X$hardcode_automatic" = "Xyes" ; then
16852
16853 # We can hardcode non-existant directories.
16854 if test "$hardcode_direct" != no &&
16855 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16856 # have to relink, otherwise we might link with an installed library
16857 # when we should be linking with a yet-to-be-installed one
16858 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16859 test "$hardcode_minus_L" != no; then
16860 # Linking always hardcodes the temporary library directory.
16861 hardcode_action=relink
16862 else
16863 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16864 hardcode_action=immediate
16865 fi
16866else
16867 # We cannot hardcode anything, or else we can only hardcode existing
16868 # directories.
16869 hardcode_action=unsupported
16870fi
Reid Spencera773bd52006-08-04 18:18:08 +000016871{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16872echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016873
16874if test "$hardcode_action" = relink; then
16875 # Fast installation is not supported
16876 enable_fast_install=no
16877elif test "$shlibpath_overrides_runpath" = yes ||
16878 test "$enable_shared" = no; then
16879 # Fast installation is not necessary
16880 enable_fast_install=needless
16881fi
16882
16883striplib=
16884old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016885{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16886echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016887if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16888 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16889 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016890 { echo "$as_me:$LINENO: result: yes" >&5
16891echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016892else
16893# FIXME - insert some real tests, host_os isn't really good enough
16894 case $host_os in
16895 darwin*)
16896 if test -n "$STRIP" ; then
16897 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016898 { echo "$as_me:$LINENO: result: yes" >&5
16899echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016900 else
Reid Spencera773bd52006-08-04 18:18:08 +000016901 { echo "$as_me:$LINENO: result: no" >&5
16902echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016903fi
16904 ;;
16905 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016906 { echo "$as_me:$LINENO: result: no" >&5
16907echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016908 ;;
16909 esac
16910fi
16911
John Criswell7a73b802003-06-30 21:59:07 +000016912if test "x$enable_dlopen" != xyes; then
16913 enable_dlopen=unknown
16914 enable_dlopen_self=unknown
16915 enable_dlopen_self_static=unknown
16916else
16917 lt_cv_dlopen=no
16918 lt_cv_dlopen_libs=
16919
16920 case $host_os in
16921 beos*)
16922 lt_cv_dlopen="load_add_on"
16923 lt_cv_dlopen_libs=
16924 lt_cv_dlopen_self=yes
16925 ;;
16926
John Criswell47fdd832003-07-14 16:52:07 +000016927 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016928 lt_cv_dlopen="LoadLibrary"
16929 lt_cv_dlopen_libs=
16930 ;;
16931
John Criswell47fdd832003-07-14 16:52:07 +000016932 cygwin*)
16933 lt_cv_dlopen="dlopen"
16934 lt_cv_dlopen_libs=
16935 ;;
16936
16937 darwin*)
16938 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016939 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16940echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016941if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16942 echo $ECHO_N "(cached) $ECHO_C" >&6
16943else
16944 ac_check_lib_save_LIBS=$LIBS
16945LIBS="-ldl $LIBS"
16946cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016947/* confdefs.h. */
16948_ACEOF
16949cat confdefs.h >>conftest.$ac_ext
16950cat >>conftest.$ac_ext <<_ACEOF
16951/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016952
Reid Spencera773bd52006-08-04 18:18:08 +000016953/* Override any GCC internal prototype to avoid an error.
16954 Use char because int might match the return type of a GCC
16955 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016956#ifdef __cplusplus
16957extern "C"
16958#endif
John Criswell47fdd832003-07-14 16:52:07 +000016959char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016960int
16961main ()
16962{
Reid Spencera773bd52006-08-04 18:18:08 +000016963return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016964 ;
16965 return 0;
16966}
16967_ACEOF
16968rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016969if { (ac_try="$ac_link"
16970case "(($ac_try" in
16971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16972 *) ac_try_echo=$ac_try;;
16973esac
16974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16975 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016976 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016977 grep -v '^ *+' conftest.er1 >conftest.err
16978 rm -f conftest.er1
16979 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016981 (exit $ac_status); } &&
16982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16983 { (case "(($ac_try" in
16984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16985 *) ac_try_echo=$ac_try;;
16986esac
16987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16988 (eval "$ac_try") 2>&5
16989 ac_status=$?
16990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); }; } &&
16992 { ac_try='test -s conftest$ac_exeext'
16993 { (case "(($ac_try" in
16994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16995 *) ac_try_echo=$ac_try;;
16996esac
16997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16998 (eval "$ac_try") 2>&5
16999 ac_status=$?
17000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000017002 ac_cv_lib_dl_dlopen=yes
17003else
17004 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017005sed 's/^/| /' conftest.$ac_ext >&5
17006
Reid Spencera773bd52006-08-04 18:18:08 +000017007 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000017008fi
Reid Spencera773bd52006-08-04 18:18:08 +000017009
Bill Wendlingebcceee2009-04-18 11:20:33 +000017010rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017011 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017012LIBS=$ac_check_lib_save_LIBS
17013fi
Reid Spencera773bd52006-08-04 18:18:08 +000017014{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17015echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017016if test $ac_cv_lib_dl_dlopen = yes; then
17017 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17018else
17019
17020 lt_cv_dlopen="dyld"
17021 lt_cv_dlopen_libs=
17022 lt_cv_dlopen_self=yes
17023
17024fi
17025
17026 ;;
17027
John Criswell7a73b802003-06-30 21:59:07 +000017028 *)
Reid Spencera773bd52006-08-04 18:18:08 +000017029 { echo "$as_me:$LINENO: checking for shl_load" >&5
17030echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017031if test "${ac_cv_func_shl_load+set}" = set; then
17032 echo $ECHO_N "(cached) $ECHO_C" >&6
17033else
17034 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017035/* confdefs.h. */
17036_ACEOF
17037cat confdefs.h >>conftest.$ac_ext
17038cat >>conftest.$ac_ext <<_ACEOF
17039/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017040/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17042#define shl_load innocuous_shl_load
17043
John Criswell7a73b802003-06-30 21:59:07 +000017044/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017045 which can conflict with char shl_load (); below.
17046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17047 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017048
John Criswell0c38eaf2003-09-10 15:17:25 +000017049#ifdef __STDC__
17050# include <limits.h>
17051#else
17052# include <assert.h>
17053#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017054
17055#undef shl_load
17056
Reid Spencera773bd52006-08-04 18:18:08 +000017057/* Override any GCC internal prototype to avoid an error.
17058 Use char because int might match the return type of a GCC
17059 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017060#ifdef __cplusplus
17061extern "C"
17062#endif
John Criswell7a73b802003-06-30 21:59:07 +000017063char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017064/* The GNU C library defines this for functions which it implements
17065 to always fail with ENOSYS. Some functions are actually named
17066 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017067#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000017068choke me
John Criswell7a73b802003-06-30 21:59:07 +000017069#endif
17070
John Criswell0c38eaf2003-09-10 15:17:25 +000017071int
17072main ()
17073{
Reid Spencera773bd52006-08-04 18:18:08 +000017074return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017075 ;
17076 return 0;
17077}
17078_ACEOF
17079rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017080if { (ac_try="$ac_link"
17081case "(($ac_try" in
17082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17083 *) ac_try_echo=$ac_try;;
17084esac
17085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17086 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017087 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017088 grep -v '^ *+' conftest.er1 >conftest.err
17089 rm -f conftest.er1
17090 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017092 (exit $ac_status); } &&
17093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17094 { (case "(($ac_try" in
17095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096 *) ac_try_echo=$ac_try;;
17097esac
17098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099 (eval "$ac_try") 2>&5
17100 ac_status=$?
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); }; } &&
17103 { ac_try='test -s conftest$ac_exeext'
17104 { (case "(($ac_try" in
17105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17106 *) ac_try_echo=$ac_try;;
17107esac
17108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17109 (eval "$ac_try") 2>&5
17110 ac_status=$?
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017113 ac_cv_func_shl_load=yes
17114else
17115 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017116sed 's/^/| /' conftest.$ac_ext >&5
17117
Reid Spencera773bd52006-08-04 18:18:08 +000017118 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017119fi
Reid Spencera773bd52006-08-04 18:18:08 +000017120
Bill Wendlingebcceee2009-04-18 11:20:33 +000017121rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017122 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017123fi
Reid Spencera773bd52006-08-04 18:18:08 +000017124{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17125echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017126if test $ac_cv_func_shl_load = yes; then
17127 lt_cv_dlopen="shl_load"
17128else
Reid Spencera773bd52006-08-04 18:18:08 +000017129 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17130echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017131if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17132 echo $ECHO_N "(cached) $ECHO_C" >&6
17133else
17134 ac_check_lib_save_LIBS=$LIBS
17135LIBS="-ldld $LIBS"
17136cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017137/* confdefs.h. */
17138_ACEOF
17139cat confdefs.h >>conftest.$ac_ext
17140cat >>conftest.$ac_ext <<_ACEOF
17141/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017142
Reid Spencera773bd52006-08-04 18:18:08 +000017143/* Override any GCC internal prototype to avoid an error.
17144 Use char because int might match the return type of a GCC
17145 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017146#ifdef __cplusplus
17147extern "C"
17148#endif
John Criswell7a73b802003-06-30 21:59:07 +000017149char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017150int
17151main ()
17152{
Reid Spencera773bd52006-08-04 18:18:08 +000017153return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017154 ;
17155 return 0;
17156}
17157_ACEOF
17158rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017159if { (ac_try="$ac_link"
17160case "(($ac_try" in
17161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162 *) ac_try_echo=$ac_try;;
17163esac
17164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017166 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017167 grep -v '^ *+' conftest.er1 >conftest.err
17168 rm -f conftest.er1
17169 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017171 (exit $ac_status); } &&
17172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17173 { (case "(($ac_try" in
17174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17175 *) ac_try_echo=$ac_try;;
17176esac
17177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17178 (eval "$ac_try") 2>&5
17179 ac_status=$?
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); }; } &&
17182 { ac_try='test -s conftest$ac_exeext'
17183 { (case "(($ac_try" in
17184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185 *) ac_try_echo=$ac_try;;
17186esac
17187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188 (eval "$ac_try") 2>&5
17189 ac_status=$?
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017192 ac_cv_lib_dld_shl_load=yes
17193else
17194 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017195sed 's/^/| /' conftest.$ac_ext >&5
17196
Reid Spencera773bd52006-08-04 18:18:08 +000017197 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017198fi
Reid Spencera773bd52006-08-04 18:18:08 +000017199
Bill Wendlingebcceee2009-04-18 11:20:33 +000017200rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017201 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017202LIBS=$ac_check_lib_save_LIBS
17203fi
Reid Spencera773bd52006-08-04 18:18:08 +000017204{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17205echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017206if test $ac_cv_lib_dld_shl_load = yes; then
17207 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17208else
Reid Spencera773bd52006-08-04 18:18:08 +000017209 { echo "$as_me:$LINENO: checking for dlopen" >&5
17210echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017211if test "${ac_cv_func_dlopen+set}" = set; then
17212 echo $ECHO_N "(cached) $ECHO_C" >&6
17213else
17214 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017215/* confdefs.h. */
17216_ACEOF
17217cat confdefs.h >>conftest.$ac_ext
17218cat >>conftest.$ac_ext <<_ACEOF
17219/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017220/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17222#define dlopen innocuous_dlopen
17223
John Criswell7a73b802003-06-30 21:59:07 +000017224/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017225 which can conflict with char dlopen (); below.
17226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17227 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017228
John Criswell0c38eaf2003-09-10 15:17:25 +000017229#ifdef __STDC__
17230# include <limits.h>
17231#else
17232# include <assert.h>
17233#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017234
17235#undef dlopen
17236
Reid Spencera773bd52006-08-04 18:18:08 +000017237/* Override any GCC internal prototype to avoid an error.
17238 Use char because int might match the return type of a GCC
17239 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017240#ifdef __cplusplus
17241extern "C"
17242#endif
John Criswell7a73b802003-06-30 21:59:07 +000017243char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017244/* The GNU C library defines this for functions which it implements
17245 to always fail with ENOSYS. Some functions are actually named
17246 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017247#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000017248choke me
John Criswell7a73b802003-06-30 21:59:07 +000017249#endif
17250
John Criswell0c38eaf2003-09-10 15:17:25 +000017251int
17252main ()
17253{
Reid Spencera773bd52006-08-04 18:18:08 +000017254return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017255 ;
17256 return 0;
17257}
17258_ACEOF
17259rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017260if { (ac_try="$ac_link"
17261case "(($ac_try" in
17262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17263 *) ac_try_echo=$ac_try;;
17264esac
17265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17266 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017267 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017268 grep -v '^ *+' conftest.er1 >conftest.err
17269 rm -f conftest.er1
17270 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017272 (exit $ac_status); } &&
17273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17274 { (case "(($ac_try" in
17275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17276 *) ac_try_echo=$ac_try;;
17277esac
17278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17279 (eval "$ac_try") 2>&5
17280 ac_status=$?
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); }; } &&
17283 { ac_try='test -s conftest$ac_exeext'
17284 { (case "(($ac_try" in
17285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17286 *) ac_try_echo=$ac_try;;
17287esac
17288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17289 (eval "$ac_try") 2>&5
17290 ac_status=$?
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017293 ac_cv_func_dlopen=yes
17294else
17295 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017296sed 's/^/| /' conftest.$ac_ext >&5
17297
Reid Spencera773bd52006-08-04 18:18:08 +000017298 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017299fi
Reid Spencera773bd52006-08-04 18:18:08 +000017300
Bill Wendlingebcceee2009-04-18 11:20:33 +000017301rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017302 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017303fi
Reid Spencera773bd52006-08-04 18:18:08 +000017304{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17305echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017306if test $ac_cv_func_dlopen = yes; then
17307 lt_cv_dlopen="dlopen"
17308else
Reid Spencera773bd52006-08-04 18:18:08 +000017309 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17310echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017311if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17312 echo $ECHO_N "(cached) $ECHO_C" >&6
17313else
17314 ac_check_lib_save_LIBS=$LIBS
17315LIBS="-ldl $LIBS"
17316cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017317/* confdefs.h. */
17318_ACEOF
17319cat confdefs.h >>conftest.$ac_ext
17320cat >>conftest.$ac_ext <<_ACEOF
17321/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017322
Reid Spencera773bd52006-08-04 18:18:08 +000017323/* Override any GCC internal prototype to avoid an error.
17324 Use char because int might match the return type of a GCC
17325 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017326#ifdef __cplusplus
17327extern "C"
17328#endif
John Criswell7a73b802003-06-30 21:59:07 +000017329char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017330int
17331main ()
17332{
Reid Spencera773bd52006-08-04 18:18:08 +000017333return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017334 ;
17335 return 0;
17336}
17337_ACEOF
17338rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017339if { (ac_try="$ac_link"
17340case "(($ac_try" in
17341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17342 *) ac_try_echo=$ac_try;;
17343esac
17344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17345 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017346 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017347 grep -v '^ *+' conftest.er1 >conftest.err
17348 rm -f conftest.er1
17349 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017351 (exit $ac_status); } &&
17352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17353 { (case "(($ac_try" in
17354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355 *) ac_try_echo=$ac_try;;
17356esac
17357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17358 (eval "$ac_try") 2>&5
17359 ac_status=$?
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); }; } &&
17362 { ac_try='test -s conftest$ac_exeext'
17363 { (case "(($ac_try" in
17364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17365 *) ac_try_echo=$ac_try;;
17366esac
17367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17368 (eval "$ac_try") 2>&5
17369 ac_status=$?
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017372 ac_cv_lib_dl_dlopen=yes
17373else
17374 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017375sed 's/^/| /' conftest.$ac_ext >&5
17376
Reid Spencera773bd52006-08-04 18:18:08 +000017377 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017378fi
Reid Spencera773bd52006-08-04 18:18:08 +000017379
Bill Wendlingebcceee2009-04-18 11:20:33 +000017380rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017381 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017382LIBS=$ac_check_lib_save_LIBS
17383fi
Reid Spencera773bd52006-08-04 18:18:08 +000017384{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17385echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017386if test $ac_cv_lib_dl_dlopen = yes; then
17387 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17388else
Reid Spencera773bd52006-08-04 18:18:08 +000017389 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17390echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017391if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17392 echo $ECHO_N "(cached) $ECHO_C" >&6
17393else
17394 ac_check_lib_save_LIBS=$LIBS
17395LIBS="-lsvld $LIBS"
17396cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017397/* confdefs.h. */
17398_ACEOF
17399cat confdefs.h >>conftest.$ac_ext
17400cat >>conftest.$ac_ext <<_ACEOF
17401/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017402
Reid Spencera773bd52006-08-04 18:18:08 +000017403/* Override any GCC internal prototype to avoid an error.
17404 Use char because int might match the return type of a GCC
17405 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017406#ifdef __cplusplus
17407extern "C"
17408#endif
John Criswell7a73b802003-06-30 21:59:07 +000017409char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017410int
17411main ()
17412{
Reid Spencera773bd52006-08-04 18:18:08 +000017413return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017414 ;
17415 return 0;
17416}
17417_ACEOF
17418rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017419if { (ac_try="$ac_link"
17420case "(($ac_try" in
17421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17422 *) ac_try_echo=$ac_try;;
17423esac
17424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17425 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017426 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017427 grep -v '^ *+' conftest.er1 >conftest.err
17428 rm -f conftest.er1
17429 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017431 (exit $ac_status); } &&
17432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17433 { (case "(($ac_try" in
17434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17435 *) ac_try_echo=$ac_try;;
17436esac
17437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17438 (eval "$ac_try") 2>&5
17439 ac_status=$?
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); }; } &&
17442 { ac_try='test -s conftest$ac_exeext'
17443 { (case "(($ac_try" in
17444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17445 *) ac_try_echo=$ac_try;;
17446esac
17447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17448 (eval "$ac_try") 2>&5
17449 ac_status=$?
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017452 ac_cv_lib_svld_dlopen=yes
17453else
17454 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017455sed 's/^/| /' conftest.$ac_ext >&5
17456
Reid Spencera773bd52006-08-04 18:18:08 +000017457 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017458fi
Reid Spencera773bd52006-08-04 18:18:08 +000017459
Bill Wendlingebcceee2009-04-18 11:20:33 +000017460rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017461 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017462LIBS=$ac_check_lib_save_LIBS
17463fi
Reid Spencera773bd52006-08-04 18:18:08 +000017464{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17465echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017466if test $ac_cv_lib_svld_dlopen = yes; then
17467 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17468else
Reid Spencera773bd52006-08-04 18:18:08 +000017469 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17470echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017471if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17472 echo $ECHO_N "(cached) $ECHO_C" >&6
17473else
17474 ac_check_lib_save_LIBS=$LIBS
17475LIBS="-ldld $LIBS"
17476cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017477/* confdefs.h. */
17478_ACEOF
17479cat confdefs.h >>conftest.$ac_ext
17480cat >>conftest.$ac_ext <<_ACEOF
17481/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017482
Reid Spencera773bd52006-08-04 18:18:08 +000017483/* Override any GCC internal prototype to avoid an error.
17484 Use char because int might match the return type of a GCC
17485 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017486#ifdef __cplusplus
17487extern "C"
17488#endif
John Criswell7a73b802003-06-30 21:59:07 +000017489char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017490int
17491main ()
17492{
Reid Spencera773bd52006-08-04 18:18:08 +000017493return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017494 ;
17495 return 0;
17496}
17497_ACEOF
17498rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017499if { (ac_try="$ac_link"
17500case "(($ac_try" in
17501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17502 *) ac_try_echo=$ac_try;;
17503esac
17504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17505 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017506 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017507 grep -v '^ *+' conftest.er1 >conftest.err
17508 rm -f conftest.er1
17509 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017511 (exit $ac_status); } &&
17512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17513 { (case "(($ac_try" in
17514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17515 *) ac_try_echo=$ac_try;;
17516esac
17517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17518 (eval "$ac_try") 2>&5
17519 ac_status=$?
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); }; } &&
17522 { ac_try='test -s conftest$ac_exeext'
17523 { (case "(($ac_try" in
17524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17525 *) ac_try_echo=$ac_try;;
17526esac
17527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17528 (eval "$ac_try") 2>&5
17529 ac_status=$?
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017532 ac_cv_lib_dld_dld_link=yes
17533else
17534 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017535sed 's/^/| /' conftest.$ac_ext >&5
17536
Reid Spencera773bd52006-08-04 18:18:08 +000017537 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017538fi
Reid Spencera773bd52006-08-04 18:18:08 +000017539
Bill Wendlingebcceee2009-04-18 11:20:33 +000017540rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017541 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017542LIBS=$ac_check_lib_save_LIBS
17543fi
Reid Spencera773bd52006-08-04 18:18:08 +000017544{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17545echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017546if test $ac_cv_lib_dld_dld_link = yes; then
17547 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17548fi
17549
17550
17551fi
17552
17553
17554fi
17555
17556
17557fi
17558
17559
17560fi
17561
17562
17563fi
17564
17565 ;;
17566 esac
17567
17568 if test "x$lt_cv_dlopen" != xno; then
17569 enable_dlopen=yes
17570 else
17571 enable_dlopen=no
17572 fi
17573
17574 case $lt_cv_dlopen in
17575 dlopen)
17576 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017577 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017578
17579 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017580 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017581
17582 save_LIBS="$LIBS"
17583 LIBS="$lt_cv_dlopen_libs $LIBS"
17584
Reid Spencera773bd52006-08-04 18:18:08 +000017585 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17586echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017587if test "${lt_cv_dlopen_self+set}" = set; then
17588 echo $ECHO_N "(cached) $ECHO_C" >&6
17589else
17590 if test "$cross_compiling" = yes; then :
17591 lt_cv_dlopen_self=cross
17592else
John Criswell47fdd832003-07-14 16:52:07 +000017593 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017594 lt_status=$lt_dlunknown
17595 cat > conftest.$ac_ext <<EOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000017596#line 17591 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017597#include "confdefs.h"
17598
17599#if HAVE_DLFCN_H
17600#include <dlfcn.h>
17601#endif
17602
17603#include <stdio.h>
17604
17605#ifdef RTLD_GLOBAL
17606# define LT_DLGLOBAL RTLD_GLOBAL
17607#else
17608# ifdef DL_GLOBAL
17609# define LT_DLGLOBAL DL_GLOBAL
17610# else
17611# define LT_DLGLOBAL 0
17612# endif
17613#endif
17614
17615/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17616 find out it does not work in some platform. */
17617#ifndef LT_DLLAZY_OR_NOW
17618# ifdef RTLD_LAZY
17619# define LT_DLLAZY_OR_NOW RTLD_LAZY
17620# else
17621# ifdef DL_LAZY
17622# define LT_DLLAZY_OR_NOW DL_LAZY
17623# else
17624# ifdef RTLD_NOW
17625# define LT_DLLAZY_OR_NOW RTLD_NOW
17626# else
17627# ifdef DL_NOW
17628# define LT_DLLAZY_OR_NOW DL_NOW
17629# else
17630# define LT_DLLAZY_OR_NOW 0
17631# endif
17632# endif
17633# endif
17634# endif
17635#endif
17636
17637#ifdef __cplusplus
17638extern "C" void exit (int);
17639#endif
17640
17641void fnord() { int i=42;}
17642int main ()
17643{
17644 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17645 int status = $lt_dlunknown;
17646
17647 if (self)
17648 {
17649 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17650 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17651 /* dlclose (self); */
17652 }
Reid Spencera773bd52006-08-04 18:18:08 +000017653 else
17654 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017655
17656 exit (status);
17657}
17658EOF
17659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17660 (eval $ac_link) 2>&5
17661 ac_status=$?
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017664 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017665 lt_status=$?
17666 case x$lt_status in
17667 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17668 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017669 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017670 esac
17671 else :
17672 # compilation failed
17673 lt_cv_dlopen_self=no
17674 fi
17675fi
17676rm -fr conftest*
17677
17678
17679fi
Reid Spencera773bd52006-08-04 18:18:08 +000017680{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17681echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017682
17683 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017684 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17685 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17686echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017687if test "${lt_cv_dlopen_self_static+set}" = set; then
17688 echo $ECHO_N "(cached) $ECHO_C" >&6
17689else
17690 if test "$cross_compiling" = yes; then :
17691 lt_cv_dlopen_self_static=cross
17692else
John Criswell47fdd832003-07-14 16:52:07 +000017693 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017694 lt_status=$lt_dlunknown
17695 cat > conftest.$ac_ext <<EOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000017696#line 17691 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017697#include "confdefs.h"
17698
17699#if HAVE_DLFCN_H
17700#include <dlfcn.h>
17701#endif
17702
17703#include <stdio.h>
17704
17705#ifdef RTLD_GLOBAL
17706# define LT_DLGLOBAL RTLD_GLOBAL
17707#else
17708# ifdef DL_GLOBAL
17709# define LT_DLGLOBAL DL_GLOBAL
17710# else
17711# define LT_DLGLOBAL 0
17712# endif
17713#endif
17714
17715/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17716 find out it does not work in some platform. */
17717#ifndef LT_DLLAZY_OR_NOW
17718# ifdef RTLD_LAZY
17719# define LT_DLLAZY_OR_NOW RTLD_LAZY
17720# else
17721# ifdef DL_LAZY
17722# define LT_DLLAZY_OR_NOW DL_LAZY
17723# else
17724# ifdef RTLD_NOW
17725# define LT_DLLAZY_OR_NOW RTLD_NOW
17726# else
17727# ifdef DL_NOW
17728# define LT_DLLAZY_OR_NOW DL_NOW
17729# else
17730# define LT_DLLAZY_OR_NOW 0
17731# endif
17732# endif
17733# endif
17734# endif
17735#endif
17736
17737#ifdef __cplusplus
17738extern "C" void exit (int);
17739#endif
17740
17741void fnord() { int i=42;}
17742int main ()
17743{
17744 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17745 int status = $lt_dlunknown;
17746
17747 if (self)
17748 {
17749 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17750 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17751 /* dlclose (self); */
17752 }
Reid Spencera773bd52006-08-04 18:18:08 +000017753 else
17754 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017755
17756 exit (status);
17757}
17758EOF
17759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17760 (eval $ac_link) 2>&5
17761 ac_status=$?
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017764 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017765 lt_status=$?
17766 case x$lt_status in
17767 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17768 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017769 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017770 esac
17771 else :
17772 # compilation failed
17773 lt_cv_dlopen_self_static=no
17774 fi
17775fi
17776rm -fr conftest*
17777
17778
17779fi
Reid Spencera773bd52006-08-04 18:18:08 +000017780{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17781echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017782 fi
17783
17784 CPPFLAGS="$save_CPPFLAGS"
17785 LDFLAGS="$save_LDFLAGS"
17786 LIBS="$save_LIBS"
17787 ;;
17788 esac
17789
17790 case $lt_cv_dlopen_self in
17791 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17792 *) enable_dlopen_self=unknown ;;
17793 esac
17794
17795 case $lt_cv_dlopen_self_static in
17796 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17797 *) enable_dlopen_self_static=unknown ;;
17798 esac
17799fi
17800
17801
Reid Spencera773bd52006-08-04 18:18:08 +000017802# Report which library types will actually be built
17803{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17804echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17805{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17806echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017807
Reid Spencera773bd52006-08-04 18:18:08 +000017808{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17809echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017810test "$can_build_shared" = "no" && enable_shared=no
17811
17812# On AIX, shared libraries and static libraries use the same namespace, and
17813# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017814case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017815aix3*)
17816 test "$enable_shared" = yes && enable_static=no
17817 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017818 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017819 postinstall_cmds='$RANLIB $lib'
17820 fi
17821 ;;
17822
Reid Spencer2706f8c2004-09-19 23:53:36 +000017823aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017824 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17825 test "$enable_shared" = yes && enable_static=no
17826 fi
John Criswell7a73b802003-06-30 21:59:07 +000017827 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017828esac
Reid Spencera773bd52006-08-04 18:18:08 +000017829{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17830echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017831
Reid Spencera773bd52006-08-04 18:18:08 +000017832{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17833echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017834# Make sure either enable_shared or enable_static is yes.
17835test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017836{ echo "$as_me:$LINENO: result: $enable_static" >&5
17837echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017838
17839# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017840# libtool distribution, otherwise you forgot to ship ltmain.sh
17841# with your package, and you will get complaints that there are
17842# no rules to generate ltmain.sh.
17843if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017844 # See if we are running on zsh, and set the options which allow our commands through
17845 # without removal of \ escapes.
17846 if test -n "${ZSH_VERSION+set}" ; then
17847 setopt NO_GLOB_SUBST
17848 fi
John Criswell7a73b802003-06-30 21:59:07 +000017849 # Now quote all the things that may contain metacharacters while being
17850 # careful not to overquote the AC_SUBSTed values. We take copies of the
17851 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017852 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 +000017853 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017854 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17855 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17856 deplibs_check_method reload_flag reload_cmds need_locks \
17857 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17858 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017859 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017860 old_postinstall_cmds old_postuninstall_cmds \
17861 compiler \
17862 CC \
17863 LD \
17864 lt_prog_compiler_wl \
17865 lt_prog_compiler_pic \
17866 lt_prog_compiler_static \
17867 lt_prog_compiler_no_builtin_flag \
17868 export_dynamic_flag_spec \
17869 thread_safe_flag_spec \
17870 whole_archive_flag_spec \
17871 enable_shared_with_static_runtimes \
17872 old_archive_cmds \
17873 old_archive_from_new_cmds \
17874 predep_objects \
17875 postdep_objects \
17876 predeps \
17877 postdeps \
17878 compiler_lib_search_path \
17879 archive_cmds \
17880 archive_expsym_cmds \
17881 postinstall_cmds \
17882 postuninstall_cmds \
17883 old_archive_from_expsyms_cmds \
17884 allow_undefined_flag \
17885 no_undefined_flag \
17886 export_symbols_cmds \
17887 hardcode_libdir_flag_spec \
17888 hardcode_libdir_flag_spec_ld \
17889 hardcode_libdir_separator \
17890 hardcode_automatic \
17891 module_cmds \
17892 module_expsym_cmds \
17893 lt_cv_prog_compiler_c_o \
17894 exclude_expsyms \
17895 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017896
17897 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017898 old_archive_cmds | \
17899 old_archive_from_new_cmds | \
17900 archive_cmds | \
17901 archive_expsym_cmds | \
17902 module_cmds | \
17903 module_expsym_cmds | \
17904 old_archive_from_expsyms_cmds | \
17905 export_symbols_cmds | \
17906 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017907 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017908 old_postinstall_cmds | old_postuninstall_cmds | \
17909 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017910 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017911 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 +000017912 ;;
17913 *)
17914 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17915 ;;
17916 esac
17917 done
17918
John Criswell47fdd832003-07-14 16:52:07 +000017919 case $lt_echo in
17920 *'\$0 --fallback-echo"')
17921 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17922 ;;
17923 esac
17924
17925cfgfile="${ofile}T"
17926 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17927 $rm -f "$cfgfile"
17928 { echo "$as_me:$LINENO: creating $ofile" >&5
17929echo "$as_me: creating $ofile" >&6;}
17930
17931 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017932#! $SHELL
17933
John Criswell47fdd832003-07-14 16:52:07 +000017934# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017935# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17936# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17937#
John Criswell47fdd832003-07-14 16:52:07 +000017938# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17939# Free Software Foundation, Inc.
17940#
17941# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017942# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17943#
17944# This program is free software; you can redistribute it and/or modify
17945# it under the terms of the GNU General Public License as published by
17946# the Free Software Foundation; either version 2 of the License, or
17947# (at your option) any later version.
17948#
17949# This program is distributed in the hope that it will be useful, but
17950# WITHOUT ANY WARRANTY; without even the implied warranty of
17951# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17952# General Public License for more details.
17953#
17954# You should have received a copy of the GNU General Public License
17955# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017956# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017957#
17958# As a special exception to the GNU General Public License, if you
17959# distribute this file as part of a program that contains a
17960# configuration script generated by Autoconf, you may include it under
17961# the same distribution terms that you use for the rest of that program.
17962
John Criswell47fdd832003-07-14 16:52:07 +000017963# A sed program that does not truncate output.
17964SED=$lt_SED
17965
John Criswell7a73b802003-06-30 21:59:07 +000017966# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017967Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017968
17969# The HP-UX ksh and POSIX shell print the target directory to stdout
17970# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017971(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017972
John Criswell47fdd832003-07-14 16:52:07 +000017973# The names of the tagged configurations supported by this script.
17974available_tags=
17975
John Criswell7a73b802003-06-30 21:59:07 +000017976# ### BEGIN LIBTOOL CONFIG
17977
17978# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17979
17980# Shell to use when invoking shell scripts.
17981SHELL=$lt_SHELL
17982
17983# Whether or not to build shared libraries.
17984build_libtool_libs=$enable_shared
17985
17986# Whether or not to build static libraries.
17987build_old_libs=$enable_static
17988
17989# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017990build_libtool_need_lc=$archive_cmds_need_lc
17991
17992# Whether or not to disallow shared libs when runtime libs are static
17993allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017994
17995# Whether or not to optimize for fast installation.
17996fast_install=$enable_fast_install
17997
17998# The host system.
17999host_alias=$host_alias
18000host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000018001host_os=$host_os
18002
18003# The build system.
18004build_alias=$build_alias
18005build=$build
18006build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000018007
18008# An echo program that does not interpret backslashes.
18009echo=$lt_echo
18010
18011# The archiver.
18012AR=$lt_AR
18013AR_FLAGS=$lt_AR_FLAGS
18014
John Criswell47fdd832003-07-14 16:52:07 +000018015# A C compiler.
18016LTCC=$lt_LTCC
18017
Reid Spencera773bd52006-08-04 18:18:08 +000018018# LTCC compiler flags.
18019LTCFLAGS=$lt_LTCFLAGS
18020
John Criswell47fdd832003-07-14 16:52:07 +000018021# A language-specific compiler.
18022CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000018023
18024# Is the compiler the GNU C compiler?
18025with_gcc=$GCC
18026
John Criswell47fdd832003-07-14 16:52:07 +000018027# An ERE matcher.
18028EGREP=$lt_EGREP
18029
John Criswell7a73b802003-06-30 21:59:07 +000018030# The linker used to build libraries.
18031LD=$lt_LD
18032
18033# Whether we need hard or soft links.
18034LN_S=$lt_LN_S
18035
18036# A BSD-compatible nm program.
18037NM=$lt_NM
18038
18039# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018040STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000018041
18042# Used to examine libraries when file_magic_cmd begins "file"
18043MAGIC_CMD=$MAGIC_CMD
18044
18045# Used on cygwin: DLL creation program.
18046DLLTOOL="$DLLTOOL"
18047
18048# Used on cygwin: object dumper.
18049OBJDUMP="$OBJDUMP"
18050
18051# Used on cygwin: assembler.
18052AS="$AS"
18053
18054# The name of the directory that contains temporary libtool files.
18055objdir=$objdir
18056
18057# How to create reloadable object files.
18058reload_flag=$lt_reload_flag
18059reload_cmds=$lt_reload_cmds
18060
18061# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000018062wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000018063
18064# Object file suffix (normally "o").
18065objext="$ac_objext"
18066
18067# Old archive suffix (normally "a").
18068libext="$libext"
18069
John Criswell47fdd832003-07-14 16:52:07 +000018070# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018071shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018072
John Criswell7a73b802003-06-30 21:59:07 +000018073# Executable file suffix (normally "").
18074exeext="$exeext"
18075
18076# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000018077pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000018078pic_mode=$pic_mode
18079
John Criswell47fdd832003-07-14 16:52:07 +000018080# What is the maximum length of a command?
18081max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000018082
John Criswell47fdd832003-07-14 16:52:07 +000018083# Does compiler simultaneously support -c and -o options?
18084compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000018085
Reid Spencera773bd52006-08-04 18:18:08 +000018086# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000018087need_locks=$lt_need_locks
18088
18089# Do we need the lib prefix for modules?
18090need_lib_prefix=$need_lib_prefix
18091
18092# Do we need a version for libraries?
18093need_version=$need_version
18094
18095# Whether dlopen is supported.
18096dlopen_support=$enable_dlopen
18097
18098# Whether dlopen of programs is supported.
18099dlopen_self=$enable_dlopen_self
18100
18101# Whether dlopen of statically linked programs is supported.
18102dlopen_self_static=$enable_dlopen_self_static
18103
18104# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000018105link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000018106
18107# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000018108no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000018109
18110# Compiler flag to allow reflexive dlopens.
18111export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18112
18113# Compiler flag to generate shared objects directly from archives.
18114whole_archive_flag_spec=$lt_whole_archive_flag_spec
18115
18116# Compiler flag to generate thread-safe objects.
18117thread_safe_flag_spec=$lt_thread_safe_flag_spec
18118
18119# Library versioning type.
18120version_type=$version_type
18121
18122# Format of library name prefix.
18123libname_spec=$lt_libname_spec
18124
18125# List of archive names. First name is the real one, the rest are links.
18126# The last name is the one that the linker finds with -lNAME.
18127library_names_spec=$lt_library_names_spec
18128
18129# The coded name of the library, if different from the real name.
18130soname_spec=$lt_soname_spec
18131
18132# Commands used to build and install an old-style archive.
18133RANLIB=$lt_RANLIB
18134old_archive_cmds=$lt_old_archive_cmds
18135old_postinstall_cmds=$lt_old_postinstall_cmds
18136old_postuninstall_cmds=$lt_old_postuninstall_cmds
18137
18138# Create an old-style archive from a shared archive.
18139old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18140
18141# Create a temporary old-style archive to link instead of a shared archive.
18142old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18143
18144# Commands used to build and install a shared archive.
18145archive_cmds=$lt_archive_cmds
18146archive_expsym_cmds=$lt_archive_expsym_cmds
18147postinstall_cmds=$lt_postinstall_cmds
18148postuninstall_cmds=$lt_postuninstall_cmds
18149
John Criswell47fdd832003-07-14 16:52:07 +000018150# Commands used to build a loadable module (assumed same as above if empty)
18151module_cmds=$lt_module_cmds
18152module_expsym_cmds=$lt_module_expsym_cmds
18153
John Criswell7a73b802003-06-30 21:59:07 +000018154# Commands to strip libraries.
18155old_striplib=$lt_old_striplib
18156striplib=$lt_striplib
18157
John Criswell47fdd832003-07-14 16:52:07 +000018158# Dependencies to place before the objects being linked to create a
18159# shared library.
18160predep_objects=$lt_predep_objects
18161
18162# Dependencies to place after the objects being linked to create a
18163# shared library.
18164postdep_objects=$lt_postdep_objects
18165
18166# Dependencies to place before the objects being linked to create a
18167# shared library.
18168predeps=$lt_predeps
18169
18170# Dependencies to place after the objects being linked to create a
18171# shared library.
18172postdeps=$lt_postdeps
18173
18174# The library search path used internally by the compiler when linking
18175# a shared library.
18176compiler_lib_search_path=$lt_compiler_lib_search_path
18177
John Criswell7a73b802003-06-30 21:59:07 +000018178# Method to check whether dependent libraries are shared objects.
18179deplibs_check_method=$lt_deplibs_check_method
18180
18181# Command to use when deplibs_check_method == file_magic.
18182file_magic_cmd=$lt_file_magic_cmd
18183
18184# Flag that allows shared libraries with undefined symbols to be built.
18185allow_undefined_flag=$lt_allow_undefined_flag
18186
18187# Flag that forces no undefined symbols.
18188no_undefined_flag=$lt_no_undefined_flag
18189
18190# Commands used to finish a libtool library installation in a directory.
18191finish_cmds=$lt_finish_cmds
18192
18193# Same as above, but a single script fragment to be evaled but not shown.
18194finish_eval=$lt_finish_eval
18195
18196# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000018197global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000018198
18199# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000018200global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000018201
18202# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000018203global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000018204
18205# This is the shared library runtime path variable.
18206runpath_var=$runpath_var
18207
18208# This is the shared library path variable.
18209shlibpath_var=$shlibpath_var
18210
18211# Is shlibpath searched before the hard-coded library search path?
18212shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18213
18214# How to hardcode a shared library path into an executable.
18215hardcode_action=$hardcode_action
18216
18217# Whether we should hardcode library paths into libraries.
18218hardcode_into_libs=$hardcode_into_libs
18219
18220# Flag to hardcode \$libdir into a binary during linking.
18221# This must work even if \$libdir does not exist.
18222hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18223
John Criswell47fdd832003-07-14 16:52:07 +000018224# If ld is used when linking, flag to hardcode \$libdir into
18225# a binary during linking. This must work even if \$libdir does
18226# not exist.
18227hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18228
John Criswell7a73b802003-06-30 21:59:07 +000018229# Whether we need a single -rpath flag with a separated argument.
18230hardcode_libdir_separator=$lt_hardcode_libdir_separator
18231
John Criswell47fdd832003-07-14 16:52:07 +000018232# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000018233# resulting binary.
18234hardcode_direct=$hardcode_direct
18235
18236# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18237# resulting binary.
18238hardcode_minus_L=$hardcode_minus_L
18239
18240# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18241# the resulting binary.
18242hardcode_shlibpath_var=$hardcode_shlibpath_var
18243
John Criswell47fdd832003-07-14 16:52:07 +000018244# Set to yes if building a shared library automatically hardcodes DIR into the library
18245# and all subsequent libraries and executables linked against it.
18246hardcode_automatic=$hardcode_automatic
18247
John Criswell7a73b802003-06-30 21:59:07 +000018248# Variables whose values should be saved in libtool wrapper scripts and
18249# restored at relink time.
18250variables_saved_for_relink="$variables_saved_for_relink"
18251
18252# Whether libtool must link a program against all its dependency libraries.
18253link_all_deplibs=$link_all_deplibs
18254
18255# Compile-time system search path for libraries
18256sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18257
18258# Run-time system search path for libraries
18259sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18260
18261# Fix the shell variable \$srcfile for the compiler.
18262fix_srcfile_path="$fix_srcfile_path"
18263
18264# Set to yes if exported symbols are required.
18265always_export_symbols=$always_export_symbols
18266
18267# The commands to list exported symbols.
18268export_symbols_cmds=$lt_export_symbols_cmds
18269
18270# The commands to extract the exported symbol list from a shared archive.
18271extract_expsyms_cmds=$lt_extract_expsyms_cmds
18272
18273# Symbols that should not be listed in the preloaded symbols.
18274exclude_expsyms=$lt_exclude_expsyms
18275
18276# Symbols that must always be exported.
18277include_expsyms=$lt_include_expsyms
18278
18279# ### END LIBTOOL CONFIG
18280
18281__EOF__
18282
John Criswell47fdd832003-07-14 16:52:07 +000018283
John Criswell7a73b802003-06-30 21:59:07 +000018284 case $host_os in
18285 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000018286 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018287
18288# AIX sometimes has problems with the GCC collect2 program. For some
18289# reason, if we set the COLLECT_NAMES environment variable, the problems
18290# vanish in a puff of smoke.
18291if test "X${COLLECT_NAMES+set}" != Xset; then
18292 COLLECT_NAMES=
18293 export COLLECT_NAMES
18294fi
18295EOF
18296 ;;
18297 esac
18298
John Criswell7a73b802003-06-30 21:59:07 +000018299 # We use sed instead of cat because bash on DJGPP gets confused if
18300 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18301 # text mode, it properly converts lines to CR/LF. This bash problem
18302 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000018303 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000018304
John Criswell47fdd832003-07-14 16:52:07 +000018305 mv -f "$cfgfile" "$ofile" || \
18306 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000018307 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000018308
18309else
18310 # If there is no Makefile yet, we rely on a make rule to execute
18311 # `config.status --recheck' to rerun these tests and create the
18312 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018313 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18314 if test -f "$ltmain_in"; then
18315 test -f Makefile && make "$ltmain"
18316 fi
John Criswell7a73b802003-06-30 21:59:07 +000018317fi
John Criswell7a73b802003-06-30 21:59:07 +000018318
18319
John Criswell47fdd832003-07-14 16:52:07 +000018320ac_ext=c
18321ac_cpp='$CPP $CPPFLAGS'
18322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18324ac_compiler_gnu=$ac_cv_c_compiler_gnu
18325
18326CC="$lt_save_CC"
18327
18328
Reid Spencera773bd52006-08-04 18:18:08 +000018329# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018330if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018331 withval=$with_tags; tagnames="$withval"
18332fi
18333
John Criswell47fdd832003-07-14 16:52:07 +000018334
18335if test -f "$ltmain" && test -n "$tagnames"; then
18336 if test ! -f "${ofile}"; then
18337 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18338echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18339 fi
18340
18341 if test -z "$LTCC"; then
18342 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18343 if test -z "$LTCC"; then
18344 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18345echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18346 else
18347 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18348echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18349 fi
18350 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018351 if test -z "$LTCFLAGS"; then
18352 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18353 fi
John Criswell47fdd832003-07-14 16:52:07 +000018354
18355 # Extract list of available tagged configurations in $ofile.
18356 # Note that this assumes the entire list is on one line.
18357 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18358
18359 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18360 for tagname in $tagnames; do
18361 IFS="$lt_save_ifs"
18362 # Check whether tagname contains only valid characters
18363 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18364 "") ;;
18365 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18366echo "$as_me: error: invalid tag name: $tagname" >&2;}
18367 { (exit 1); exit 1; }; }
18368 ;;
18369 esac
18370
18371 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18372 then
18373 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18374echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18375 { (exit 1); exit 1; }; }
18376 fi
18377
18378 # Update the list of available tags.
18379 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018380 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018381
18382 case $tagname in
18383 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018384 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18385 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18386 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018387 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018388ac_cpp='$CXXCPP $CPPFLAGS'
18389ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18390ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18391ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18392
18393
18394
18395
18396archive_cmds_need_lc_CXX=no
18397allow_undefined_flag_CXX=
18398always_export_symbols_CXX=no
18399archive_expsym_cmds_CXX=
18400export_dynamic_flag_spec_CXX=
18401hardcode_direct_CXX=no
18402hardcode_libdir_flag_spec_CXX=
18403hardcode_libdir_flag_spec_ld_CXX=
18404hardcode_libdir_separator_CXX=
18405hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018406hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018407hardcode_automatic_CXX=no
18408module_cmds_CXX=
18409module_expsym_cmds_CXX=
18410link_all_deplibs_CXX=unknown
18411old_archive_cmds_CXX=$old_archive_cmds
18412no_undefined_flag_CXX=
18413whole_archive_flag_spec_CXX=
18414enable_shared_with_static_runtimes_CXX=no
18415
18416# Dependencies to place before and after the object being linked:
18417predep_objects_CXX=
18418postdep_objects_CXX=
18419predeps_CXX=
18420postdeps_CXX=
18421compiler_lib_search_path_CXX=
18422
18423# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018424ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018425
18426# Object file extension for compiled C++ test sources.
18427objext=o
18428objext_CXX=$objext
18429
18430# Code to be used in simple compile tests
18431lt_simple_compile_test_code="int some_variable = 0;\n"
18432
18433# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018434lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018435
18436# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18437
18438# If no C compiler was specified, use CC.
18439LTCC=${LTCC-"$CC"}
18440
Reid Spencera773bd52006-08-04 18:18:08 +000018441# If no C compiler flags were specified, use CFLAGS.
18442LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18443
John Criswell47fdd832003-07-14 16:52:07 +000018444# Allow CC to be a program name with arguments.
18445compiler=$CC
18446
18447
Reid Spencera773bd52006-08-04 18:18:08 +000018448# save warnings/boilerplate of simple test code
18449ac_outfile=conftest.$ac_objext
18450printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18451eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18452_lt_compiler_boilerplate=`cat conftest.err`
18453$rm conftest*
18454
18455ac_outfile=conftest.$ac_objext
18456printf "$lt_simple_link_test_code" >conftest.$ac_ext
18457eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18458_lt_linker_boilerplate=`cat conftest.err`
18459$rm conftest*
18460
18461
John Criswell47fdd832003-07-14 16:52:07 +000018462# Allow CC to be a program name with arguments.
18463lt_save_CC=$CC
18464lt_save_LD=$LD
18465lt_save_GCC=$GCC
18466GCC=$GXX
18467lt_save_with_gnu_ld=$with_gnu_ld
18468lt_save_path_LD=$lt_cv_path_LD
18469if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18470 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18471else
Reid Spencera773bd52006-08-04 18:18:08 +000018472 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018473fi
18474if test -n "${lt_cv_path_LDCXX+set}"; then
18475 lt_cv_path_LD=$lt_cv_path_LDCXX
18476else
Reid Spencera773bd52006-08-04 18:18:08 +000018477 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018478fi
18479test -z "${LDCXX+set}" || LD=$LDCXX
18480CC=${CXX-"c++"}
18481compiler=$CC
18482compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018483for cc_temp in $compiler""; do
18484 case $cc_temp in
18485 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18486 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18487 \-*) ;;
18488 *) break;;
18489 esac
18490done
18491cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18492
John Criswell47fdd832003-07-14 16:52:07 +000018493
18494# We don't want -fno-exception wen compiling C++ code, so set the
18495# no_builtin_flag separately
18496if test "$GXX" = yes; then
18497 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18498else
18499 lt_prog_compiler_no_builtin_flag_CXX=
18500fi
18501
18502if test "$GXX" = yes; then
18503 # Set up default GNU C++ configuration
18504
18505
Reid Spencera773bd52006-08-04 18:18:08 +000018506# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018507if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018508 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018509else
18510 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018511fi
18512
John Criswell47fdd832003-07-14 16:52:07 +000018513ac_prog=ld
18514if test "$GCC" = yes; then
18515 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018516 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18517echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018518 case $host in
18519 *-*-mingw*)
18520 # gcc leaves a trailing carriage return which upsets mingw
18521 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18522 *)
18523 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18524 esac
18525 case $ac_prog in
18526 # Accept absolute paths.
18527 [\\/]* | ?:[\\/]*)
18528 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018529 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018530 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18531 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18532 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18533 done
18534 test -z "$LD" && LD="$ac_prog"
18535 ;;
18536 "")
18537 # If it fails, then pretend we aren't using GCC.
18538 ac_prog=ld
18539 ;;
18540 *)
18541 # If it is relative, then search for the first ld in PATH.
18542 with_gnu_ld=unknown
18543 ;;
18544 esac
18545elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018546 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18547echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018548else
Reid Spencera773bd52006-08-04 18:18:08 +000018549 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18550echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018551fi
18552if test "${lt_cv_path_LD+set}" = set; then
18553 echo $ECHO_N "(cached) $ECHO_C" >&6
18554else
18555 if test -z "$LD"; then
18556 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18557 for ac_dir in $PATH; do
18558 IFS="$lt_save_ifs"
18559 test -z "$ac_dir" && ac_dir=.
18560 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18561 lt_cv_path_LD="$ac_dir/$ac_prog"
18562 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018563 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018564 # Break only if it was the GNU/non-GNU ld that we prefer.
18565 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18566 *GNU* | *'with BFD'*)
18567 test "$with_gnu_ld" != no && break
18568 ;;
18569 *)
18570 test "$with_gnu_ld" != yes && break
18571 ;;
18572 esac
18573 fi
18574 done
18575 IFS="$lt_save_ifs"
18576else
18577 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18578fi
18579fi
18580
18581LD="$lt_cv_path_LD"
18582if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018583 { echo "$as_me:$LINENO: result: $LD" >&5
18584echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018585else
Reid Spencera773bd52006-08-04 18:18:08 +000018586 { echo "$as_me:$LINENO: result: no" >&5
18587echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018588fi
18589test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18590echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18591 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018592{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18593echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018594if test "${lt_cv_prog_gnu_ld+set}" = set; then
18595 echo $ECHO_N "(cached) $ECHO_C" >&6
18596else
Reid Spencera773bd52006-08-04 18:18:08 +000018597 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018598case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018599*GNU* | *'with BFD'*)
18600 lt_cv_prog_gnu_ld=yes
18601 ;;
18602*)
18603 lt_cv_prog_gnu_ld=no
18604 ;;
18605esac
18606fi
Reid Spencera773bd52006-08-04 18:18:08 +000018607{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18608echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018609with_gnu_ld=$lt_cv_prog_gnu_ld
18610
18611
18612
18613 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18614 # archiving commands below assume that GNU ld is being used.
18615 if test "$with_gnu_ld" = yes; then
18616 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18617 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'
18618
18619 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18620 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18621
18622 # If archive_cmds runs LD, not CC, wlarc should be empty
18623 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18624 # investigate it a little bit more. (MM)
18625 wlarc='${wl}'
18626
18627 # ancient GNU ld didn't support --whole-archive et. al.
18628 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18629 grep 'no-whole-archive' > /dev/null; then
18630 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18631 else
18632 whole_archive_flag_spec_CXX=
18633 fi
18634 else
18635 with_gnu_ld=no
18636 wlarc=
18637
18638 # A generic and very simple default shared library creation
18639 # command for GNU C++ for the case where it uses the native
18640 # linker, instead of GNU ld. If possible, this setting should
18641 # overridden to take advantage of the native linker features on
18642 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018643 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018644 fi
18645
18646 # Commands to make compiler produce verbose output that lists
18647 # what "hidden" libraries, object files and flags are used when
18648 # linking a shared library.
18649 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18650
18651else
18652 GXX=no
18653 with_gnu_ld=no
18654 wlarc=
18655fi
18656
18657# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018658{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18659echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018660ld_shlibs_CXX=yes
18661case $host_os in
18662 aix3*)
18663 # FIXME: insert proper C++ library support
18664 ld_shlibs_CXX=no
18665 ;;
18666 aix4* | aix5*)
18667 if test "$host_cpu" = ia64; then
18668 # On IA64, the linker does run time linking by default, so we don't
18669 # have to do anything special.
18670 aix_use_runtimelinking=no
18671 exp_sym_flag='-Bexport'
18672 no_entry_flag=""
18673 else
18674 aix_use_runtimelinking=no
18675
18676 # Test if we are trying to use run time linking or normal
18677 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18678 # need to do runtime linking.
18679 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18680 for ld_flag in $LDFLAGS; do
18681 case $ld_flag in
18682 *-brtl*)
18683 aix_use_runtimelinking=yes
18684 break
18685 ;;
18686 esac
18687 done
Reid Spencera773bd52006-08-04 18:18:08 +000018688 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018689 esac
18690
18691 exp_sym_flag='-bexport'
18692 no_entry_flag='-bnoentry'
18693 fi
18694
18695 # When large executables or shared objects are built, AIX ld can
18696 # have problems creating the table of contents. If linking a library
18697 # or program results in "error TOC overflow" add -mminimal-toc to
18698 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18699 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18700
18701 archive_cmds_CXX=''
18702 hardcode_direct_CXX=yes
18703 hardcode_libdir_separator_CXX=':'
18704 link_all_deplibs_CXX=yes
18705
18706 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018707 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018708 # We only want to do this on AIX 4.2 and lower, the check
18709 # below for broken collect2 doesn't work under 4.3+
18710 collect2name=`${CC} -print-prog-name=collect2`
18711 if test -f "$collect2name" && \
18712 strings "$collect2name" | grep resolve_lib_name >/dev/null
18713 then
18714 # We have reworked collect2
18715 hardcode_direct_CXX=yes
18716 else
18717 # We have old collect2
18718 hardcode_direct_CXX=unsupported
18719 # It fails to find uninstalled libraries when the uninstalled
18720 # path is not listed in the libpath. Setting hardcode_minus_L
18721 # to unsupported forces relinking
18722 hardcode_minus_L_CXX=yes
18723 hardcode_libdir_flag_spec_CXX='-L$libdir'
18724 hardcode_libdir_separator_CXX=
18725 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018726 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018727 esac
18728 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018729 if test "$aix_use_runtimelinking" = yes; then
18730 shared_flag="$shared_flag "'${wl}-G'
18731 fi
John Criswell47fdd832003-07-14 16:52:07 +000018732 else
18733 # not using gcc
18734 if test "$host_cpu" = ia64; then
18735 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18736 # chokes on -Wl,-G. The following line is correct:
18737 shared_flag='-G'
18738 else
18739 if test "$aix_use_runtimelinking" = yes; then
18740 shared_flag='${wl}-G'
18741 else
18742 shared_flag='${wl}-bM:SRE'
18743 fi
18744 fi
18745 fi
18746
18747 # It seems that -bexpall does not export symbols beginning with
18748 # underscore (_), so it is better to generate a list of symbols to export.
18749 always_export_symbols_CXX=yes
18750 if test "$aix_use_runtimelinking" = yes; then
18751 # Warning - without using the other runtime loading flags (-brtl),
18752 # -berok will link without error, but may produce a broken library.
18753 allow_undefined_flag_CXX='-berok'
18754 # Determine the default libpath from the value encoded in an empty executable.
18755 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018756/* confdefs.h. */
18757_ACEOF
18758cat confdefs.h >>conftest.$ac_ext
18759cat >>conftest.$ac_ext <<_ACEOF
18760/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018761
John Criswell47fdd832003-07-14 16:52:07 +000018762int
18763main ()
18764{
18765
18766 ;
18767 return 0;
18768}
18769_ACEOF
18770rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018771if { (ac_try="$ac_link"
18772case "(($ac_try" in
18773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18774 *) ac_try_echo=$ac_try;;
18775esac
18776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18777 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018778 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018779 grep -v '^ *+' conftest.er1 >conftest.err
18780 rm -f conftest.er1
18781 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018783 (exit $ac_status); } &&
18784 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18785 { (case "(($ac_try" in
18786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18787 *) ac_try_echo=$ac_try;;
18788esac
18789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18790 (eval "$ac_try") 2>&5
18791 ac_status=$?
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); }; } &&
18794 { ac_try='test -s conftest$ac_exeext'
18795 { (case "(($ac_try" in
18796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18797 *) ac_try_echo=$ac_try;;
18798esac
18799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18800 (eval "$ac_try") 2>&5
18801 ac_status=$?
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018804
18805aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18806}'`
18807# Check for a 64-bit object if we didn't find anything.
18808if 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; }
18809}'`; fi
18810else
18811 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018812sed 's/^/| /' conftest.$ac_ext >&5
18813
Reid Spencera773bd52006-08-04 18:18:08 +000018814
John Criswell47fdd832003-07-14 16:52:07 +000018815fi
Reid Spencera773bd52006-08-04 18:18:08 +000018816
Bill Wendlingebcceee2009-04-18 11:20:33 +000018817rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018818 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018819if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18820
18821 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18822
Reid Spencera773bd52006-08-04 18:18:08 +000018823 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 +000018824 else
18825 if test "$host_cpu" = ia64; then
18826 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18827 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018828 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 +000018829 else
18830 # Determine the default libpath from the value encoded in an empty executable.
18831 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018832/* confdefs.h. */
18833_ACEOF
18834cat confdefs.h >>conftest.$ac_ext
18835cat >>conftest.$ac_ext <<_ACEOF
18836/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018837
John Criswell47fdd832003-07-14 16:52:07 +000018838int
18839main ()
18840{
18841
18842 ;
18843 return 0;
18844}
18845_ACEOF
18846rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018847if { (ac_try="$ac_link"
18848case "(($ac_try" in
18849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18850 *) ac_try_echo=$ac_try;;
18851esac
18852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18853 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018854 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018855 grep -v '^ *+' conftest.er1 >conftest.err
18856 rm -f conftest.er1
18857 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018859 (exit $ac_status); } &&
18860 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18861 { (case "(($ac_try" in
18862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18863 *) ac_try_echo=$ac_try;;
18864esac
18865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18866 (eval "$ac_try") 2>&5
18867 ac_status=$?
18868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); }; } &&
18870 { ac_try='test -s conftest$ac_exeext'
18871 { (case "(($ac_try" in
18872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18873 *) ac_try_echo=$ac_try;;
18874esac
18875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18876 (eval "$ac_try") 2>&5
18877 ac_status=$?
18878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018880
18881aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18882}'`
18883# Check for a 64-bit object if we didn't find anything.
18884if 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; }
18885}'`; fi
18886else
18887 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018888sed 's/^/| /' conftest.$ac_ext >&5
18889
Reid Spencera773bd52006-08-04 18:18:08 +000018890
John Criswell47fdd832003-07-14 16:52:07 +000018891fi
Reid Spencera773bd52006-08-04 18:18:08 +000018892
Bill Wendlingebcceee2009-04-18 11:20:33 +000018893rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018894 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018895if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18896
18897 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18898 # Warning - without using the other run time loading flags,
18899 # -berok will link without error, but may produce a broken library.
18900 no_undefined_flag_CXX=' ${wl}-bernotok'
18901 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018902 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018903 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018904 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018905 # This is similar to how AIX traditionally builds its shared libraries.
18906 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 +000018907 fi
18908 fi
18909 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018910
18911 beos*)
18912 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18913 allow_undefined_flag_CXX=unsupported
18914 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18915 # support --undefined. This deserves some investigation. FIXME
18916 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18917 else
18918 ld_shlibs_CXX=no
18919 fi
18920 ;;
18921
John Criswell47fdd832003-07-14 16:52:07 +000018922 chorus*)
18923 case $cc_basename in
18924 *)
18925 # FIXME: insert proper C++ library support
18926 ld_shlibs_CXX=no
18927 ;;
18928 esac
18929 ;;
18930
18931 cygwin* | mingw* | pw32*)
18932 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18933 # as there is no search path for DLLs.
18934 hardcode_libdir_flag_spec_CXX='-L$libdir'
18935 allow_undefined_flag_CXX=unsupported
18936 always_export_symbols_CXX=no
18937 enable_shared_with_static_runtimes_CXX=yes
18938
18939 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018940 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 +000018941 # If the export-symbols file already is a .def file (1st line
18942 # is EXPORTS), use it as is; otherwise, prepend...
18943 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18944 cp $export_symbols $output_objdir/$soname.def;
18945 else
18946 echo EXPORTS > $output_objdir/$soname.def;
18947 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018948 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018949 $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 +000018950 else
18951 ld_shlibs_CXX=no
18952 fi
18953 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018954 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018955 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018956 rhapsody* | darwin1.[012])
18957 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18958 ;;
18959 *) # Darwin 1.3 on
18960 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18961 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18962 else
18963 case ${MACOSX_DEPLOYMENT_TARGET} in
18964 10.[012])
18965 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18966 ;;
18967 10.*)
18968 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18969 ;;
18970 esac
18971 fi
18972 ;;
18973 esac
18974 archive_cmds_need_lc_CXX=no
18975 hardcode_direct_CXX=no
18976 hardcode_automatic_CXX=yes
18977 hardcode_shlibpath_var_CXX=unsupported
18978 whole_archive_flag_spec_CXX=''
18979 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018980
Reid Spencer2706f8c2004-09-19 23:53:36 +000018981 if test "$GXX" = yes ; then
18982 lt_int_apple_cc_single_mod=no
18983 output_verbose_link_cmd='echo'
18984 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18985 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018986 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018987 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018988 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 +000018989 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018990 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 +000018991 fi
18992 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018993 # 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 +000018994 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018995 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 +000018996 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018997 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 +000018998 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018999 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 +000019000 else
Reid Spencera773bd52006-08-04 18:18:08 +000019001 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019002 xlc*)
19003 output_verbose_link_cmd='echo'
19004 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'
19005 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000019006 # 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 +000019007 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}'
19008 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 +000019009 ;;
19010 *)
19011 ld_shlibs_CXX=no
19012 ;;
19013 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000019014 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019015 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019016
19017 dgux*)
19018 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019019 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019020 # FIXME: insert proper C++ library support
19021 ld_shlibs_CXX=no
19022 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019023 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019024 # Green Hills C++ Compiler
19025 # FIXME: insert proper C++ library support
19026 ld_shlibs_CXX=no
19027 ;;
19028 *)
19029 # FIXME: insert proper C++ library support
19030 ld_shlibs_CXX=no
19031 ;;
19032 esac
19033 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019034 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000019035 # C++ shared libraries reported to be fairly broken before switch to ELF
19036 ld_shlibs_CXX=no
19037 ;;
19038 freebsd-elf*)
19039 archive_cmds_need_lc_CXX=no
19040 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019041 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019042 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19043 # conventions
19044 ld_shlibs_CXX=yes
19045 ;;
19046 gnu*)
19047 ;;
19048 hpux9*)
19049 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19050 hardcode_libdir_separator_CXX=:
19051 export_dynamic_flag_spec_CXX='${wl}-E'
19052 hardcode_direct_CXX=yes
19053 hardcode_minus_L_CXX=yes # Not in the search PATH,
19054 # but as the default
19055 # location of the library.
19056
19057 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019058 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019059 # FIXME: insert proper C++ library support
19060 ld_shlibs_CXX=no
19061 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019062 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019063 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 +000019064 # Commands to make compiler produce verbose output that lists
19065 # what "hidden" libraries, object files and flags are used when
19066 # linking a shared library.
19067 #
19068 # There doesn't appear to be a way to prevent this compiler from
19069 # explicitly linking system object files so we need to strip them
19070 # from the output so that they don't get included in the library
19071 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000019072 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 +000019073 ;;
19074 *)
19075 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019076 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 +000019077 else
19078 # FIXME: insert proper C++ library support
19079 ld_shlibs_CXX=no
19080 fi
19081 ;;
19082 esac
19083 ;;
19084 hpux10*|hpux11*)
19085 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019086 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19087 hardcode_libdir_separator_CXX=:
19088
19089 case $host_cpu in
19090 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019091 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000019092 ;;
19093 *)
John Criswell47fdd832003-07-14 16:52:07 +000019094 export_dynamic_flag_spec_CXX='${wl}-E'
19095 ;;
19096 esac
19097 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019098 case $host_cpu in
19099 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019100 hardcode_direct_CXX=no
19101 hardcode_shlibpath_var_CXX=no
19102 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019103 *)
19104 hardcode_direct_CXX=yes
19105 hardcode_minus_L_CXX=yes # Not in the search PATH,
19106 # but as the default
19107 # location of the library.
19108 ;;
19109 esac
19110
19111 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019112 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019113 # FIXME: insert proper C++ library support
19114 ld_shlibs_CXX=no
19115 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019116 aCC*)
19117 case $host_cpu in
19118 hppa*64*)
19119 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19120 ;;
19121 ia64*)
19122 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 +000019123 ;;
19124 *)
19125 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19126 ;;
19127 esac
19128 # Commands to make compiler produce verbose output that lists
19129 # what "hidden" libraries, object files and flags are used when
19130 # linking a shared library.
19131 #
19132 # There doesn't appear to be a way to prevent this compiler from
19133 # explicitly linking system object files so we need to strip them
19134 # from the output so that they don't get included in the library
19135 # dependencies.
19136 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'
19137 ;;
19138 *)
19139 if test "$GXX" = yes; then
19140 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019141 case $host_cpu in
19142 hppa*64*)
19143 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19144 ;;
19145 ia64*)
19146 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 +000019147 ;;
19148 *)
19149 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'
19150 ;;
19151 esac
19152 fi
19153 else
19154 # FIXME: insert proper C++ library support
19155 ld_shlibs_CXX=no
19156 fi
19157 ;;
19158 esac
19159 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019160 interix3*)
19161 hardcode_direct_CXX=no
19162 hardcode_shlibpath_var_CXX=no
19163 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19164 export_dynamic_flag_spec_CXX='${wl}-E'
19165 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19166 # Instead, shared libraries are loaded at an image base (0x10000000 by
19167 # default) and relocated if they conflict, which is a slow very memory
19168 # consuming and fragmenting process. To avoid this, we pick a random,
19169 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19170 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19171 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'
19172 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'
19173 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019174 irix5* | irix6*)
19175 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019176 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019177 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000019178 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 +000019179
19180 # Archives containing C++ object files must be created using
19181 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19182 # necessary to make sure instantiated templates are included
19183 # in the archive.
19184 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19185 ;;
19186 *)
19187 if test "$GXX" = yes; then
19188 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019189 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 +000019190 else
19191 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'
19192 fi
19193 fi
19194 link_all_deplibs_CXX=yes
19195 ;;
19196 esac
19197 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19198 hardcode_libdir_separator_CXX=:
19199 ;;
19200 linux*)
19201 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019202 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019203 # Kuck and Associates, Inc. (KAI) C++ Compiler
19204
19205 # KCC will only create a shared library if the output file
19206 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19207 # to its proper name (with version) after linking.
19208 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'
19209 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'
19210 # Commands to make compiler produce verbose output that lists
19211 # what "hidden" libraries, object files and flags are used when
19212 # linking a shared library.
19213 #
19214 # There doesn't appear to be a way to prevent this compiler from
19215 # explicitly linking system object files so we need to strip them
19216 # from the output so that they don't get included in the library
19217 # dependencies.
19218 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'
19219
19220 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19221 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19222
19223 # Archives containing C++ object files must be created using
19224 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19225 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19226 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019227 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019228 # Intel C++
19229 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019230 # version 8.0 and above of icpc choke on multiply defined symbols
19231 # if we add $predep_objects and $postdep_objects, however 7.1 and
19232 # earlier do not add the objects themselves.
19233 case `$CC -V 2>&1` in
19234 *"Version 7."*)
19235 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19236 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'
19237 ;;
19238 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000019239 tmp_idyn=
19240 case $host_cpu in
19241 ia64*) tmp_idyn=' -i_dynamic';;
19242 esac
19243 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19244 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 +000019245 ;;
19246 esac
John Criswell47fdd832003-07-14 16:52:07 +000019247 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000019248 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19249 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19250 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19251 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019252 pgCC*)
19253 # Portland Group C++ compiler
19254 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19255 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'
19256
19257 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19258 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19259 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'
19260 ;;
19261 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019262 # Compaq C++
19263 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19264 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'
19265
19266 runpath_var=LD_RUN_PATH
19267 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19268 hardcode_libdir_separator_CXX=:
19269
19270 # Commands to make compiler produce verbose output that lists
19271 # what "hidden" libraries, object files and flags are used when
19272 # linking a shared library.
19273 #
19274 # There doesn't appear to be a way to prevent this compiler from
19275 # explicitly linking system object files so we need to strip them
19276 # from the output so that they don't get included in the library
19277 # dependencies.
19278 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'
19279 ;;
19280 esac
19281 ;;
19282 lynxos*)
19283 # FIXME: insert proper C++ library support
19284 ld_shlibs_CXX=no
19285 ;;
19286 m88k*)
19287 # FIXME: insert proper C++ library support
19288 ld_shlibs_CXX=no
19289 ;;
19290 mvs*)
19291 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019292 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019293 # FIXME: insert proper C++ library support
19294 ld_shlibs_CXX=no
19295 ;;
19296 *)
19297 # FIXME: insert proper C++ library support
19298 ld_shlibs_CXX=no
19299 ;;
19300 esac
19301 ;;
19302 netbsd*)
19303 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19304 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19305 wlarc=
19306 hardcode_libdir_flag_spec_CXX='-R$libdir'
19307 hardcode_direct_CXX=yes
19308 hardcode_shlibpath_var_CXX=no
19309 fi
19310 # Workaround some broken pre-1.5 toolchains
19311 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19312 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019313 openbsd2*)
19314 # C++ shared libraries are fairly broken
19315 ld_shlibs_CXX=no
19316 ;;
19317 openbsd*)
19318 hardcode_direct_CXX=yes
19319 hardcode_shlibpath_var_CXX=no
19320 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19321 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19322 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19323 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19324 export_dynamic_flag_spec_CXX='${wl}-E'
19325 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19326 fi
19327 output_verbose_link_cmd='echo'
19328 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019329 osf3*)
19330 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019331 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019332 # Kuck and Associates, Inc. (KAI) C++ Compiler
19333
19334 # KCC will only create a shared library if the output file
19335 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19336 # to its proper name (with version) after linking.
19337 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'
19338
19339 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19340 hardcode_libdir_separator_CXX=:
19341
19342 # Archives containing C++ object files must be created using
19343 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19344 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19345
19346 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019347 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019348 # Rational C++ 2.4.1
19349 # FIXME: insert proper C++ library support
19350 ld_shlibs_CXX=no
19351 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019352 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019353 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019354 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 +000019355
19356 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19357 hardcode_libdir_separator_CXX=:
19358
19359 # Commands to make compiler produce verbose output that lists
19360 # what "hidden" libraries, object files and flags are used when
19361 # linking a shared library.
19362 #
19363 # There doesn't appear to be a way to prevent this compiler from
19364 # explicitly linking system object files so we need to strip them
19365 # from the output so that they don't get included in the library
19366 # dependencies.
19367 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'
19368 ;;
19369 *)
19370 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19371 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019372 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 +000019373
19374 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19375 hardcode_libdir_separator_CXX=:
19376
19377 # Commands to make compiler produce verbose output that lists
19378 # what "hidden" libraries, object files and flags are used when
19379 # linking a shared library.
19380 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19381
19382 else
19383 # FIXME: insert proper C++ library support
19384 ld_shlibs_CXX=no
19385 fi
19386 ;;
19387 esac
19388 ;;
19389 osf4* | osf5*)
19390 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019391 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019392 # Kuck and Associates, Inc. (KAI) C++ Compiler
19393
19394 # KCC will only create a shared library if the output file
19395 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19396 # to its proper name (with version) after linking.
19397 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'
19398
19399 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19400 hardcode_libdir_separator_CXX=:
19401
19402 # Archives containing C++ object files must be created using
19403 # the KAI C++ compiler.
19404 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19405 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019406 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019407 # Rational C++ 2.4.1
19408 # FIXME: insert proper C++ library support
19409 ld_shlibs_CXX=no
19410 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019411 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019412 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019413 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 +000019414 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19415 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019416 $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 +000019417 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019418
19419 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19420 hardcode_libdir_separator_CXX=:
19421
19422 # Commands to make compiler produce verbose output that lists
19423 # what "hidden" libraries, object files and flags are used when
19424 # linking a shared library.
19425 #
19426 # There doesn't appear to be a way to prevent this compiler from
19427 # explicitly linking system object files so we need to strip them
19428 # from the output so that they don't get included in the library
19429 # dependencies.
19430 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'
19431 ;;
19432 *)
19433 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19434 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019435 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 +000019436
19437 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19438 hardcode_libdir_separator_CXX=:
19439
19440 # Commands to make compiler produce verbose output that lists
19441 # what "hidden" libraries, object files and flags are used when
19442 # linking a shared library.
19443 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19444
19445 else
19446 # FIXME: insert proper C++ library support
19447 ld_shlibs_CXX=no
19448 fi
19449 ;;
19450 esac
19451 ;;
19452 psos*)
19453 # FIXME: insert proper C++ library support
19454 ld_shlibs_CXX=no
19455 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019456 sunos4*)
19457 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019458 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019459 # Sun C++ 4.x
19460 # FIXME: insert proper C++ library support
19461 ld_shlibs_CXX=no
19462 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019463 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019464 # Lucid
19465 # FIXME: insert proper C++ library support
19466 ld_shlibs_CXX=no
19467 ;;
19468 *)
19469 # FIXME: insert proper C++ library support
19470 ld_shlibs_CXX=no
19471 ;;
19472 esac
19473 ;;
19474 solaris*)
19475 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019476 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019477 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019478 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019479 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019480 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 +000019481 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 +000019482 $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 +000019483
19484 hardcode_libdir_flag_spec_CXX='-R$libdir'
19485 hardcode_shlibpath_var_CXX=no
19486 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019487 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019488 *)
19489 # The C++ compiler is used as linker so we must use $wl
19490 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019491 # linker. We must also pass each convience library through
19492 # to the system linker between allextract/defaultextract.
19493 # The C++ compiler will combine linker options so we
19494 # cannot just pass the convience library names through
19495 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019496 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019497 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 +000019498 ;;
19499 esac
19500 link_all_deplibs_CXX=yes
19501
Reid Spencera773bd52006-08-04 18:18:08 +000019502 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019503
19504 # Archives containing C++ object files must be created using
19505 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19506 # necessary to make sure instantiated templates are included
19507 # in the archive.
19508 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19509 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019510 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019511 # Green Hills C++ Compiler
19512 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19513
19514 # The C++ compiler must be used to create the archive.
19515 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19516 ;;
19517 *)
19518 # GNU C++ compiler with Solaris linker
19519 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19520 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19521 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019522 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 +000019523 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19524 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19525
John Criswell47fdd832003-07-14 16:52:07 +000019526 # Commands to make compiler produce verbose output that lists
19527 # what "hidden" libraries, object files and flags are used when
19528 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019529 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019530 else
19531 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19532 # platform.
19533 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 +000019534 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19535 $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 +000019536
19537 # Commands to make compiler produce verbose output that lists
19538 # what "hidden" libraries, object files and flags are used when
19539 # linking a shared library.
19540 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19541 fi
19542
19543 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19544 fi
19545 ;;
19546 esac
19547 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019548 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19549 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019550 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019551 hardcode_shlibpath_var_CXX=no
19552 runpath_var='LD_RUN_PATH'
19553
19554 case $cc_basename in
19555 CC*)
19556 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19557 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19558 ;;
19559 *)
19560 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19561 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19562 ;;
19563 esac
19564 ;;
19565 sysv5* | sco3.2v5* | sco5v6*)
19566 # Note: We can NOT use -z defs as we might desire, because we do not
19567 # link with -lc, and that would cause any symbols used from libc to
19568 # always be unresolved, which means just about no library would
19569 # ever link correctly. If we're not using GNU ld we use -z text
19570 # though, which does catch some bad symbols but isn't as heavy-handed
19571 # as -z defs.
19572 # For security reasons, it is highly recommended that you always
19573 # use absolute paths for naming shared libraries, and exclude the
19574 # DT_RUNPATH tag from executables and libraries. But doing so
19575 # requires that you compile everything twice, which is a pain.
19576 # So that behaviour is only enabled if SCOABSPATH is set to a
19577 # non-empty value in the environment. Most likely only useful for
19578 # creating official distributions of packages.
19579 # This is a hack until libtool officially supports absolute path
19580 # names for shared libraries.
19581 no_undefined_flag_CXX='${wl}-z,text'
19582 allow_undefined_flag_CXX='${wl}-z,nodefs'
19583 archive_cmds_need_lc_CXX=no
19584 hardcode_shlibpath_var_CXX=no
19585 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19586 hardcode_libdir_separator_CXX=':'
19587 link_all_deplibs_CXX=yes
19588 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19589 runpath_var='LD_RUN_PATH'
19590
19591 case $cc_basename in
19592 CC*)
19593 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19594 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19595 ;;
19596 *)
19597 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19598 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19599 ;;
19600 esac
John Criswell47fdd832003-07-14 16:52:07 +000019601 ;;
19602 tandem*)
19603 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019604 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019605 # NonStop-UX NCC 3.20
19606 # FIXME: insert proper C++ library support
19607 ld_shlibs_CXX=no
19608 ;;
19609 *)
19610 # FIXME: insert proper C++ library support
19611 ld_shlibs_CXX=no
19612 ;;
19613 esac
19614 ;;
19615 vxworks*)
19616 # FIXME: insert proper C++ library support
19617 ld_shlibs_CXX=no
19618 ;;
19619 *)
19620 # FIXME: insert proper C++ library support
19621 ld_shlibs_CXX=no
19622 ;;
19623esac
Reid Spencera773bd52006-08-04 18:18:08 +000019624{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19625echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019626test "$ld_shlibs_CXX" = no && can_build_shared=no
19627
19628GCC_CXX="$GXX"
19629LD_CXX="$LD"
19630
John Criswell47fdd832003-07-14 16:52:07 +000019631
19632cat > conftest.$ac_ext <<EOF
19633class Foo
19634{
19635public:
19636 Foo (void) { a = 0; }
19637private:
19638 int a;
19639};
19640EOF
19641
19642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19643 (eval $ac_compile) 2>&5
19644 ac_status=$?
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); }; then
19647 # Parse the compiler output and extract the necessary
19648 # objects, libraries and library flags.
19649
19650 # Sentinel used to keep track of whether or not we are before
19651 # the conftest object file.
19652 pre_test_object_deps_done=no
19653
19654 # The `*' in the case matches for architectures that use `case' in
19655 # $output_verbose_cmd can trigger glob expansion during the loop
19656 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019657 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019658
19659 for p in `eval $output_verbose_link_cmd`; do
19660 case $p in
19661
19662 -L* | -R* | -l*)
19663 # Some compilers place space between "-{L,R}" and the path.
19664 # Remove the space.
19665 if test $p = "-L" \
19666 || test $p = "-R"; then
19667 prev=$p
19668 continue
19669 else
19670 prev=
19671 fi
19672
19673 if test "$pre_test_object_deps_done" = no; then
19674 case $p in
19675 -L* | -R*)
19676 # Internal compiler library paths should come after those
19677 # provided the user. The postdeps already come after the
19678 # user supplied libs so there is no need to process them.
19679 if test -z "$compiler_lib_search_path_CXX"; then
19680 compiler_lib_search_path_CXX="${prev}${p}"
19681 else
19682 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19683 fi
19684 ;;
19685 # The "-l" case would never come before the object being
19686 # linked, so don't bother handling this case.
19687 esac
19688 else
19689 if test -z "$postdeps_CXX"; then
19690 postdeps_CXX="${prev}${p}"
19691 else
19692 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19693 fi
19694 fi
19695 ;;
19696
19697 *.$objext)
19698 # This assumes that the test object file only shows up
19699 # once in the compiler output.
19700 if test "$p" = "conftest.$objext"; then
19701 pre_test_object_deps_done=yes
19702 continue
19703 fi
19704
19705 if test "$pre_test_object_deps_done" = no; then
19706 if test -z "$predep_objects_CXX"; then
19707 predep_objects_CXX="$p"
19708 else
19709 predep_objects_CXX="$predep_objects_CXX $p"
19710 fi
19711 else
19712 if test -z "$postdep_objects_CXX"; then
19713 postdep_objects_CXX="$p"
19714 else
19715 postdep_objects_CXX="$postdep_objects_CXX $p"
19716 fi
19717 fi
19718 ;;
19719
19720 *) ;; # Ignore the rest.
19721
19722 esac
19723 done
19724
19725 # Clean up.
19726 rm -f a.out a.exe
19727else
19728 echo "libtool.m4: error: problem compiling CXX test program"
19729fi
19730
19731$rm -f confest.$objext
19732
Reid Spencera773bd52006-08-04 18:18:08 +000019733# PORTME: override above test on systems where it is broken
19734case $host_os in
19735interix3*)
19736 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19737 # hack all around it, let's just trust "g++" to DTRT.
19738 predep_objects_CXX=
19739 postdep_objects_CXX=
19740 postdeps_CXX=
19741 ;;
19742
19743solaris*)
19744 case $cc_basename in
19745 CC*)
19746 # Adding this requires a known-good setup of shared libraries for
19747 # Sun compiler versions before 5.6, else PIC objects from an old
19748 # archive will be linked into the output, leading to subtle bugs.
19749 postdeps_CXX='-lCstd -lCrun'
19750 ;;
19751 esac
19752 ;;
19753esac
19754
19755
John Criswell47fdd832003-07-14 16:52:07 +000019756case " $postdeps_CXX " in
19757*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19758esac
19759
19760lt_prog_compiler_wl_CXX=
19761lt_prog_compiler_pic_CXX=
19762lt_prog_compiler_static_CXX=
19763
Reid Spencera773bd52006-08-04 18:18:08 +000019764{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19765echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019766
19767 # C++ specific cases for pic, static, wl, etc.
19768 if test "$GXX" = yes; then
19769 lt_prog_compiler_wl_CXX='-Wl,'
19770 lt_prog_compiler_static_CXX='-static'
19771
19772 case $host_os in
19773 aix*)
19774 # All AIX code is PIC.
19775 if test "$host_cpu" = ia64; then
19776 # AIX 5 now supports IA64 processor
19777 lt_prog_compiler_static_CXX='-Bstatic'
19778 fi
19779 ;;
19780 amigaos*)
19781 # FIXME: we need at least 68020 code to build shared libraries, but
19782 # adding the `-m68020' flag to GCC prevents building anything better,
19783 # like `-m68040'.
19784 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19785 ;;
19786 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19787 # PIC is the default for these OSes.
19788 ;;
19789 mingw* | os2* | pw32*)
19790 # This hack is so that the source file can tell whether it is being
19791 # built for inclusion in a dll (and should export symbols for example).
19792 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19793 ;;
19794 darwin* | rhapsody*)
19795 # PIC is the default on this platform
19796 # Common symbols not allowed in MH_DYLIB files
19797 lt_prog_compiler_pic_CXX='-fno-common'
19798 ;;
19799 *djgpp*)
19800 # DJGPP does not support shared libraries at all
19801 lt_prog_compiler_pic_CXX=
19802 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019803 interix3*)
19804 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19805 # Instead, we relocate shared libraries at runtime.
19806 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019807 sysv4*MP*)
19808 if test -d /usr/nec; then
19809 lt_prog_compiler_pic_CXX=-Kconform_pic
19810 fi
19811 ;;
19812 hpux*)
19813 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19814 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019815 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019816 hppa*64*|ia64*)
19817 ;;
19818 *)
19819 lt_prog_compiler_pic_CXX='-fPIC'
19820 ;;
19821 esac
19822 ;;
19823 *)
19824 lt_prog_compiler_pic_CXX='-fPIC'
19825 ;;
19826 esac
19827 else
19828 case $host_os in
19829 aix4* | aix5*)
19830 # All AIX code is PIC.
19831 if test "$host_cpu" = ia64; then
19832 # AIX 5 now supports IA64 processor
19833 lt_prog_compiler_static_CXX='-Bstatic'
19834 else
19835 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19836 fi
19837 ;;
19838 chorus*)
19839 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019840 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019841 # Green Hills C++ Compiler
19842 # _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"
19843 ;;
19844 esac
19845 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019846 darwin*)
19847 # PIC is the default on this platform
19848 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019849 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019850 xlc*)
19851 lt_prog_compiler_pic_CXX='-qnocommon'
19852 lt_prog_compiler_wl_CXX='-Wl,'
19853 ;;
19854 esac
19855 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019856 dgux*)
19857 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019858 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019859 lt_prog_compiler_pic_CXX='-KPIC'
19860 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019861 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019862 # Green Hills C++ Compiler
19863 lt_prog_compiler_pic_CXX='-pic'
19864 ;;
19865 *)
19866 ;;
19867 esac
19868 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019869 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019870 # FreeBSD uses GNU C++
19871 ;;
19872 hpux9* | hpux10* | hpux11*)
19873 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019874 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019875 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019876 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019877 if test "$host_cpu" != ia64; then
19878 lt_prog_compiler_pic_CXX='+Z'
19879 fi
19880 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019881 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019882 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019883 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19884 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019885 hppa*64*|ia64*)
19886 # +Z the default
19887 ;;
19888 *)
19889 lt_prog_compiler_pic_CXX='+Z'
19890 ;;
19891 esac
19892 ;;
19893 *)
19894 ;;
19895 esac
19896 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019897 interix*)
19898 # This is c89, which is MS Visual C++ (no shared libs)
19899 # Anyone wants to do a port?
19900 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019901 irix5* | irix6* | nonstopux*)
19902 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019903 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019904 lt_prog_compiler_wl_CXX='-Wl,'
19905 lt_prog_compiler_static_CXX='-non_shared'
19906 # CC pic flag -KPIC is the default.
19907 ;;
19908 *)
19909 ;;
19910 esac
19911 ;;
19912 linux*)
19913 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019914 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019915 # KAI C++ Compiler
19916 lt_prog_compiler_wl_CXX='--backend -Wl,'
19917 lt_prog_compiler_pic_CXX='-fPIC'
19918 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019919 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019920 # Intel C++
19921 lt_prog_compiler_wl_CXX='-Wl,'
19922 lt_prog_compiler_pic_CXX='-KPIC'
19923 lt_prog_compiler_static_CXX='-static'
19924 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019925 pgCC*)
19926 # Portland Group C++ compiler.
19927 lt_prog_compiler_wl_CXX='-Wl,'
19928 lt_prog_compiler_pic_CXX='-fpic'
19929 lt_prog_compiler_static_CXX='-Bstatic'
19930 ;;
19931 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019932 # Compaq C++
19933 # Make sure the PIC flag is empty. It appears that all Alpha
19934 # Linux and Compaq Tru64 Unix objects are PIC.
19935 lt_prog_compiler_pic_CXX=
19936 lt_prog_compiler_static_CXX='-non_shared'
19937 ;;
19938 *)
19939 ;;
19940 esac
19941 ;;
19942 lynxos*)
19943 ;;
19944 m88k*)
19945 ;;
19946 mvs*)
19947 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019948 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019949 lt_prog_compiler_pic_CXX='-W c,exportall'
19950 ;;
19951 *)
19952 ;;
19953 esac
19954 ;;
19955 netbsd*)
19956 ;;
19957 osf3* | osf4* | osf5*)
19958 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019959 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019960 lt_prog_compiler_wl_CXX='--backend -Wl,'
19961 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019962 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019963 # Rational C++ 2.4.1
19964 lt_prog_compiler_pic_CXX='-pic'
19965 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019966 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019967 # Digital/Compaq C++
19968 lt_prog_compiler_wl_CXX='-Wl,'
19969 # Make sure the PIC flag is empty. It appears that all Alpha
19970 # Linux and Compaq Tru64 Unix objects are PIC.
19971 lt_prog_compiler_pic_CXX=
19972 lt_prog_compiler_static_CXX='-non_shared'
19973 ;;
19974 *)
19975 ;;
19976 esac
19977 ;;
19978 psos*)
19979 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019980 solaris*)
19981 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019982 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019983 # Sun C++ 4.2, 5.x and Centerline C++
19984 lt_prog_compiler_pic_CXX='-KPIC'
19985 lt_prog_compiler_static_CXX='-Bstatic'
19986 lt_prog_compiler_wl_CXX='-Qoption ld '
19987 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019988 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019989 # Green Hills C++ Compiler
19990 lt_prog_compiler_pic_CXX='-PIC'
19991 ;;
19992 *)
19993 ;;
19994 esac
19995 ;;
19996 sunos4*)
19997 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019998 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019999 # Sun C++ 4.x
20000 lt_prog_compiler_pic_CXX='-pic'
20001 lt_prog_compiler_static_CXX='-Bstatic'
20002 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020003 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000020004 # Lucid
20005 lt_prog_compiler_pic_CXX='-pic'
20006 ;;
20007 *)
20008 ;;
20009 esac
20010 ;;
20011 tandem*)
20012 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020013 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020014 # NonStop-UX NCC 3.20
20015 lt_prog_compiler_pic_CXX='-KPIC'
20016 ;;
20017 *)
20018 ;;
20019 esac
20020 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020021 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20022 case $cc_basename in
20023 CC*)
20024 lt_prog_compiler_wl_CXX='-Wl,'
20025 lt_prog_compiler_pic_CXX='-KPIC'
20026 lt_prog_compiler_static_CXX='-Bstatic'
20027 ;;
20028 esac
John Criswell47fdd832003-07-14 16:52:07 +000020029 ;;
20030 vxworks*)
20031 ;;
20032 *)
20033 lt_prog_compiler_can_build_shared_CXX=no
20034 ;;
20035 esac
20036 fi
20037
Reid Spencera773bd52006-08-04 18:18:08 +000020038{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20039echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020040
20041#
20042# Check to make sure the PIC flag actually works.
20043#
20044if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020045
Reid Spencera773bd52006-08-04 18:18:08 +000020046{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20047echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020048if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20049 echo $ECHO_N "(cached) $ECHO_C" >&6
20050else
20051 lt_prog_compiler_pic_works_CXX=no
20052 ac_outfile=conftest.$ac_objext
20053 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20054 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20055 # Insert the option either (1) after the last *FLAGS variable, or
20056 # (2) before a word containing "conftest.", or (3) at the end.
20057 # Note that $ac_compile itself does not contain backslashes and begins
20058 # with a dollar sign (not a hyphen), so the echo should work correctly.
20059 # The option is referenced via a variable to avoid confusing sed.
20060 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020061 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020062 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20063 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000020064 (eval echo "\"\$as_me:20059: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020065 (eval "$lt_compile" 2>conftest.err)
20066 ac_status=$?
20067 cat conftest.err >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000020068 echo "$as_me:20063: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020069 if (exit $ac_status) && test -s "$ac_outfile"; then
20070 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000020071 # So say no if there are warnings other than the usual output.
20072 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20073 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20074 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020075 lt_prog_compiler_pic_works_CXX=yes
20076 fi
20077 fi
20078 $rm conftest*
20079
20080fi
Reid Spencera773bd52006-08-04 18:18:08 +000020081{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20082echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020083
20084if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20085 case $lt_prog_compiler_pic_CXX in
20086 "" | " "*) ;;
20087 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20088 esac
20089else
20090 lt_prog_compiler_pic_CXX=
20091 lt_prog_compiler_can_build_shared_CXX=no
20092fi
20093
20094fi
Reid Spencera773bd52006-08-04 18:18:08 +000020095case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020096 # For platforms which do not support PIC, -DPIC is meaningless:
20097 *djgpp*)
20098 lt_prog_compiler_pic_CXX=
20099 ;;
20100 *)
20101 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20102 ;;
20103esac
20104
Reid Spencera773bd52006-08-04 18:18:08 +000020105#
20106# Check to make sure the static flag actually works.
20107#
20108wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20109{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20110echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20111if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20112 echo $ECHO_N "(cached) $ECHO_C" >&6
20113else
20114 lt_prog_compiler_static_works_CXX=no
20115 save_LDFLAGS="$LDFLAGS"
20116 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20117 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20118 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20119 # The linker can only warn and ignore the option if not recognized
20120 # So say no if there are warnings
20121 if test -s conftest.err; then
20122 # Append any errors to the config.log.
20123 cat conftest.err 1>&5
20124 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20125 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20126 if diff conftest.exp conftest.er2 >/dev/null; then
20127 lt_prog_compiler_static_works_CXX=yes
20128 fi
20129 else
20130 lt_prog_compiler_static_works_CXX=yes
20131 fi
20132 fi
20133 $rm conftest*
20134 LDFLAGS="$save_LDFLAGS"
20135
20136fi
20137{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20138echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20139
20140if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20141 :
20142else
20143 lt_prog_compiler_static_CXX=
20144fi
20145
20146
20147{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20148echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020149if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20150 echo $ECHO_N "(cached) $ECHO_C" >&6
20151else
20152 lt_cv_prog_compiler_c_o_CXX=no
20153 $rm -r conftest 2>/dev/null
20154 mkdir conftest
20155 cd conftest
20156 mkdir out
20157 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20158
John Criswell47fdd832003-07-14 16:52:07 +000020159 lt_compiler_flag="-o out/conftest2.$ac_objext"
20160 # Insert the option either (1) after the last *FLAGS variable, or
20161 # (2) before a word containing "conftest.", or (3) at the end.
20162 # Note that $ac_compile itself does not contain backslashes and begins
20163 # with a dollar sign (not a hyphen), so the echo should work correctly.
20164 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020165 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020166 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20167 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000020168 (eval echo "\"\$as_me:20163: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020169 (eval "$lt_compile" 2>out/conftest.err)
20170 ac_status=$?
20171 cat out/conftest.err >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000020172 echo "$as_me:20167: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020173 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20174 then
20175 # The compiler can only warn and ignore the option if not recognized
20176 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000020177 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20178 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20179 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020180 lt_cv_prog_compiler_c_o_CXX=yes
20181 fi
20182 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020183 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020184 $rm conftest*
20185 # SGI C++ compiler will create directory out/ii_files/ for
20186 # template instantiation
20187 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20188 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000020189 cd ..
20190 rmdir conftest
20191 $rm conftest*
20192
20193fi
Reid Spencera773bd52006-08-04 18:18:08 +000020194{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20195echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020196
20197
20198hard_links="nottested"
20199if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20200 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000020201 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20202echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020203 hard_links=yes
20204 $rm conftest*
20205 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20206 touch conftest.a
20207 ln conftest.a conftest.b 2>&5 || hard_links=no
20208 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000020209 { echo "$as_me:$LINENO: result: $hard_links" >&5
20210echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020211 if test "$hard_links" = no; then
20212 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20213echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20214 need_locks=warn
20215 fi
20216else
20217 need_locks=no
20218fi
20219
Reid Spencera773bd52006-08-04 18:18:08 +000020220{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20221echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020222
20223 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20224 case $host_os in
20225 aix4* | aix5*)
20226 # If we're using GNU nm, then we don't want the "-C" option.
20227 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20228 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20229 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'
20230 else
20231 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'
20232 fi
20233 ;;
20234 pw32*)
20235 export_symbols_cmds_CXX="$ltdll_cmds"
20236 ;;
20237 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000020238 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 +000020239 ;;
20240 *)
20241 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20242 ;;
20243 esac
20244
Reid Spencera773bd52006-08-04 18:18:08 +000020245{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20246echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020247test "$ld_shlibs_CXX" = no && can_build_shared=no
20248
John Criswell47fdd832003-07-14 16:52:07 +000020249#
20250# Do we need to explicitly link libc?
20251#
20252case "x$archive_cmds_need_lc_CXX" in
20253x|xyes)
20254 # Assume -lc should be added
20255 archive_cmds_need_lc_CXX=yes
20256
20257 if test "$enable_shared" = yes && test "$GCC" = yes; then
20258 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020259 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020260 # FIXME: we may have to deal with multi-command sequences.
20261 ;;
20262 '$CC '*)
20263 # Test whether the compiler implicitly links with -lc since on some
20264 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20265 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000020266 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20267echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020268 $rm conftest*
20269 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20270
20271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20272 (eval $ac_compile) 2>&5
20273 ac_status=$?
20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); } 2>conftest.err; then
20276 soname=conftest
20277 lib=conftest
20278 libobjs=conftest.$ac_objext
20279 deplibs=
20280 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000020281 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000020282 compiler_flags=-v
20283 linker_flags=-v
20284 verstring=
20285 output_objdir=.
20286 libname=conftest
20287 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20288 allow_undefined_flag_CXX=
20289 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20290 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20291 ac_status=$?
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); }
20294 then
20295 archive_cmds_need_lc_CXX=no
20296 else
20297 archive_cmds_need_lc_CXX=yes
20298 fi
20299 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20300 else
20301 cat conftest.err 1>&5
20302 fi
20303 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000020304 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20305echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020306 ;;
20307 esac
20308 fi
20309 ;;
20310esac
20311
Reid Spencera773bd52006-08-04 18:18:08 +000020312{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20313echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020314library_names_spec=
20315libname_spec='lib$name'
20316soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020317shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020318postinstall_cmds=
20319postuninstall_cmds=
20320finish_cmds=
20321finish_eval=
20322shlibpath_var=
20323shlibpath_overrides_runpath=unknown
20324version_type=none
20325dynamic_linker="$host_os ld.so"
20326sys_lib_dlsearch_path_spec="/lib /usr/lib"
20327if test "$GCC" = yes; then
20328 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20329 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20330 # if the path contains ";" then we assume it to be the separator
20331 # otherwise default to the standard path separator (i.e. ":") - it is
20332 # assumed that no part of a normal pathname contains ";" but that should
20333 # okay in the real world where ";" in dirpaths is itself problematic.
20334 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20335 else
20336 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20337 fi
20338else
20339 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20340fi
20341need_lib_prefix=unknown
20342hardcode_into_libs=no
20343
20344# when you set need_version to no, make sure it does not cause -set_version
20345# flags to be left without arguments
20346need_version=unknown
20347
20348case $host_os in
20349aix3*)
20350 version_type=linux
20351 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20352 shlibpath_var=LIBPATH
20353
20354 # AIX 3 has no versioning support, so we append a major version to the name.
20355 soname_spec='${libname}${release}${shared_ext}$major'
20356 ;;
20357
20358aix4* | aix5*)
20359 version_type=linux
20360 need_lib_prefix=no
20361 need_version=no
20362 hardcode_into_libs=yes
20363 if test "$host_cpu" = ia64; then
20364 # AIX 5 supports IA64
20365 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20366 shlibpath_var=LD_LIBRARY_PATH
20367 else
20368 # With GCC up to 2.95.x, collect2 would create an import file
20369 # for dependence libraries. The import file would start with
20370 # the line `#! .'. This would cause the generated library to
20371 # depend on `.', always an invalid library. This was fixed in
20372 # development snapshots of GCC prior to 3.0.
20373 case $host_os in
20374 aix4 | aix4.[01] | aix4.[01].*)
20375 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20376 echo ' yes '
20377 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20378 :
20379 else
20380 can_build_shared=no
20381 fi
20382 ;;
20383 esac
20384 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20385 # soname into executable. Probably we can add versioning support to
20386 # collect2, so additional links can be useful in future.
20387 if test "$aix_use_runtimelinking" = yes; then
20388 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20389 # instead of lib<name>.a to let people know that these are not
20390 # typical AIX shared libraries.
20391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20392 else
20393 # We preserve .a as extension for shared libraries through AIX4.2
20394 # and later when we are not doing run time linking.
20395 library_names_spec='${libname}${release}.a $libname.a'
20396 soname_spec='${libname}${release}${shared_ext}$major'
20397 fi
20398 shlibpath_var=LIBPATH
20399 fi
20400 ;;
20401
20402amigaos*)
20403 library_names_spec='$libname.ixlibrary $libname.a'
20404 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020405 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 +000020406 ;;
20407
20408beos*)
20409 library_names_spec='${libname}${shared_ext}'
20410 dynamic_linker="$host_os ld.so"
20411 shlibpath_var=LIBRARY_PATH
20412 ;;
20413
Reid Spencer2706f8c2004-09-19 23:53:36 +000020414bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020415 version_type=linux
20416 need_version=no
20417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20418 soname_spec='${libname}${release}${shared_ext}$major'
20419 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20420 shlibpath_var=LD_LIBRARY_PATH
20421 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20422 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20423 # the default ld.so.conf also contains /usr/contrib/lib and
20424 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20425 # libtool to hard-code these into programs
20426 ;;
20427
20428cygwin* | mingw* | pw32*)
20429 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020430 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020431 need_version=no
20432 need_lib_prefix=no
20433
20434 case $GCC,$host_os in
20435 yes,cygwin* | yes,mingw* | yes,pw32*)
20436 library_names_spec='$libname.dll.a'
20437 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020438 postinstall_cmds='base_file=`basename \${file}`~
20439 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20440 dldir=$destdir/`dirname \$dlpath`~
20441 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020442 $install_prog $dir/$dlname \$dldir/$dlname~
20443 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020444 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20445 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020446 $rm \$dlpath'
20447 shlibpath_overrides_runpath=yes
20448
20449 case $host_os in
20450 cygwin*)
20451 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20452 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 +000020453 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020454 ;;
20455 mingw*)
20456 # MinGW DLLs use traditional 'lib' prefix
20457 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20458 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20459 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20460 # It is most probably a Windows format PATH printed by
20461 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20462 # path with ; separators, and with drive letters. We can handle the
20463 # drive letters (cygwin fileutils understands them), so leave them,
20464 # especially as we might pass files found there to a mingw objdump,
20465 # which wouldn't understand a cygwinified path. Ahh.
20466 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20467 else
20468 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20469 fi
20470 ;;
20471 pw32*)
20472 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020473 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 +000020474 ;;
20475 esac
20476 ;;
20477
20478 *)
20479 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20480 ;;
20481 esac
20482 dynamic_linker='Win32 ld.exe'
20483 # FIXME: first we should search . and the directory the executable is in
20484 shlibpath_var=PATH
20485 ;;
20486
20487darwin* | rhapsody*)
20488 dynamic_linker="$host_os dyld"
20489 version_type=darwin
20490 need_lib_prefix=no
20491 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020492 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020493 soname_spec='${libname}${release}${major}$shared_ext'
20494 shlibpath_overrides_runpath=yes
20495 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020496 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020497 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020498 if test "$GCC" = yes; then
20499 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"`
20500 else
20501 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020502 fi
20503 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20504 ;;
20505
20506dgux*)
20507 version_type=linux
20508 need_lib_prefix=no
20509 need_version=no
20510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20511 soname_spec='${libname}${release}${shared_ext}$major'
20512 shlibpath_var=LD_LIBRARY_PATH
20513 ;;
20514
20515freebsd1*)
20516 dynamic_linker=no
20517 ;;
20518
Reid Spencer2706f8c2004-09-19 23:53:36 +000020519kfreebsd*-gnu)
20520 version_type=linux
20521 need_lib_prefix=no
20522 need_version=no
20523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20524 soname_spec='${libname}${release}${shared_ext}$major'
20525 shlibpath_var=LD_LIBRARY_PATH
20526 shlibpath_overrides_runpath=no
20527 hardcode_into_libs=yes
20528 dynamic_linker='GNU ld.so'
20529 ;;
20530
Reid Spencera773bd52006-08-04 18:18:08 +000020531freebsd* | dragonfly*)
20532 # DragonFly does not have aout. When/if they implement a new
20533 # versioning mechanism, adjust this.
20534 if test -x /usr/bin/objformat; then
20535 objformat=`/usr/bin/objformat`
20536 else
20537 case $host_os in
20538 freebsd[123]*) objformat=aout ;;
20539 *) objformat=elf ;;
20540 esac
20541 fi
John Criswell47fdd832003-07-14 16:52:07 +000020542 version_type=freebsd-$objformat
20543 case $version_type in
20544 freebsd-elf*)
20545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20546 need_version=no
20547 need_lib_prefix=no
20548 ;;
20549 freebsd-*)
20550 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20551 need_version=yes
20552 ;;
20553 esac
20554 shlibpath_var=LD_LIBRARY_PATH
20555 case $host_os in
20556 freebsd2*)
20557 shlibpath_overrides_runpath=yes
20558 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020559 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020560 shlibpath_overrides_runpath=yes
20561 hardcode_into_libs=yes
20562 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020563 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20564 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020565 shlibpath_overrides_runpath=no
20566 hardcode_into_libs=yes
20567 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020568 freebsd*) # from 4.6 on
20569 shlibpath_overrides_runpath=yes
20570 hardcode_into_libs=yes
20571 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020572 esac
20573 ;;
20574
20575gnu*)
20576 version_type=linux
20577 need_lib_prefix=no
20578 need_version=no
20579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20580 soname_spec='${libname}${release}${shared_ext}$major'
20581 shlibpath_var=LD_LIBRARY_PATH
20582 hardcode_into_libs=yes
20583 ;;
20584
20585hpux9* | hpux10* | hpux11*)
20586 # Give a soname corresponding to the major version so that dld.sl refuses to
20587 # link against other versions.
20588 version_type=sunos
20589 need_lib_prefix=no
20590 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020591 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020592 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020593 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020594 hardcode_into_libs=yes
20595 dynamic_linker="$host_os dld.so"
20596 shlibpath_var=LD_LIBRARY_PATH
20597 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20599 soname_spec='${libname}${release}${shared_ext}$major'
20600 if test "X$HPUX_IA64_MODE" = X32; then
20601 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20602 else
20603 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20604 fi
20605 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20606 ;;
20607 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020608 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020609 hardcode_into_libs=yes
20610 dynamic_linker="$host_os dld.sl"
20611 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20612 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20614 soname_spec='${libname}${release}${shared_ext}$major'
20615 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20616 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20617 ;;
20618 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020619 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020620 dynamic_linker="$host_os dld.sl"
20621 shlibpath_var=SHLIB_PATH
20622 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20624 soname_spec='${libname}${release}${shared_ext}$major'
20625 ;;
20626 esac
20627 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20628 postinstall_cmds='chmod 555 $lib'
20629 ;;
20630
Reid Spencera773bd52006-08-04 18:18:08 +000020631interix3*)
20632 version_type=linux
20633 need_lib_prefix=no
20634 need_version=no
20635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20636 soname_spec='${libname}${release}${shared_ext}$major'
20637 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20638 shlibpath_var=LD_LIBRARY_PATH
20639 shlibpath_overrides_runpath=no
20640 hardcode_into_libs=yes
20641 ;;
20642
John Criswell47fdd832003-07-14 16:52:07 +000020643irix5* | irix6* | nonstopux*)
20644 case $host_os in
20645 nonstopux*) version_type=nonstopux ;;
20646 *)
20647 if test "$lt_cv_prog_gnu_ld" = yes; then
20648 version_type=linux
20649 else
20650 version_type=irix
20651 fi ;;
20652 esac
20653 need_lib_prefix=no
20654 need_version=no
20655 soname_spec='${libname}${release}${shared_ext}$major'
20656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20657 case $host_os in
20658 irix5* | nonstopux*)
20659 libsuff= shlibsuff=
20660 ;;
20661 *)
20662 case $LD in # libtool.m4 will add one of these switches to LD
20663 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20664 libsuff= shlibsuff= libmagic=32-bit;;
20665 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20666 libsuff=32 shlibsuff=N32 libmagic=N32;;
20667 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20668 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20669 *) libsuff= shlibsuff= libmagic=never-match;;
20670 esac
20671 ;;
20672 esac
20673 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20674 shlibpath_overrides_runpath=no
20675 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20676 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20677 hardcode_into_libs=yes
20678 ;;
20679
20680# No shared lib support for Linux oldld, aout, or coff.
20681linux*oldld* | linux*aout* | linux*coff*)
20682 dynamic_linker=no
20683 ;;
20684
20685# This must be Linux ELF.
20686linux*)
20687 version_type=linux
20688 need_lib_prefix=no
20689 need_version=no
20690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20691 soname_spec='${libname}${release}${shared_ext}$major'
20692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20693 shlibpath_var=LD_LIBRARY_PATH
20694 shlibpath_overrides_runpath=no
20695 # This implies no fast_install, which is unacceptable.
20696 # Some rework will be needed to allow for fast_install
20697 # before this can be enabled.
20698 hardcode_into_libs=yes
20699
Reid Spencer2706f8c2004-09-19 23:53:36 +000020700 # Append ld.so.conf contents to the search path
20701 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020702 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 +000020703 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20704 fi
20705
John Criswell47fdd832003-07-14 16:52:07 +000020706 # We used to test for /lib/ld.so.1 and disable shared libraries on
20707 # powerpc, because MkLinux only supported shared libraries with the
20708 # GNU dynamic linker. Since this was broken with cross compilers,
20709 # most powerpc-linux boxes support dynamic linking these days and
20710 # people can always --disable-shared, the test was removed, and we
20711 # assume the GNU/Linux dynamic linker is in use.
20712 dynamic_linker='GNU/Linux ld.so'
20713 ;;
20714
Reid Spencer2706f8c2004-09-19 23:53:36 +000020715knetbsd*-gnu)
20716 version_type=linux
20717 need_lib_prefix=no
20718 need_version=no
20719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20720 soname_spec='${libname}${release}${shared_ext}$major'
20721 shlibpath_var=LD_LIBRARY_PATH
20722 shlibpath_overrides_runpath=no
20723 hardcode_into_libs=yes
20724 dynamic_linker='GNU ld.so'
20725 ;;
20726
John Criswell47fdd832003-07-14 16:52:07 +000020727netbsd*)
20728 version_type=sunos
20729 need_lib_prefix=no
20730 need_version=no
20731 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20733 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20734 dynamic_linker='NetBSD (a.out) ld.so'
20735 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020737 soname_spec='${libname}${release}${shared_ext}$major'
20738 dynamic_linker='NetBSD ld.elf_so'
20739 fi
20740 shlibpath_var=LD_LIBRARY_PATH
20741 shlibpath_overrides_runpath=yes
20742 hardcode_into_libs=yes
20743 ;;
20744
20745newsos6)
20746 version_type=linux
20747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20748 shlibpath_var=LD_LIBRARY_PATH
20749 shlibpath_overrides_runpath=yes
20750 ;;
20751
Reid Spencer2706f8c2004-09-19 23:53:36 +000020752nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020753 version_type=linux
20754 need_lib_prefix=no
20755 need_version=no
20756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20757 soname_spec='${libname}${release}${shared_ext}$major'
20758 shlibpath_var=LD_LIBRARY_PATH
20759 shlibpath_overrides_runpath=yes
20760 ;;
20761
20762openbsd*)
20763 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020764 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020765 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020766 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20767 case $host_os in
20768 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20769 *) need_version=no ;;
20770 esac
John Criswell47fdd832003-07-14 16:52:07 +000020771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20772 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20773 shlibpath_var=LD_LIBRARY_PATH
20774 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20775 case $host_os in
20776 openbsd2.[89] | openbsd2.[89].*)
20777 shlibpath_overrides_runpath=no
20778 ;;
20779 *)
20780 shlibpath_overrides_runpath=yes
20781 ;;
20782 esac
20783 else
20784 shlibpath_overrides_runpath=yes
20785 fi
20786 ;;
20787
20788os2*)
20789 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020790 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020791 need_lib_prefix=no
20792 library_names_spec='$libname${shared_ext} $libname.a'
20793 dynamic_linker='OS/2 ld.exe'
20794 shlibpath_var=LIBPATH
20795 ;;
20796
20797osf3* | osf4* | osf5*)
20798 version_type=osf
20799 need_lib_prefix=no
20800 need_version=no
20801 soname_spec='${libname}${release}${shared_ext}$major'
20802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20803 shlibpath_var=LD_LIBRARY_PATH
20804 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20805 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20806 ;;
20807
John Criswell47fdd832003-07-14 16:52:07 +000020808solaris*)
20809 version_type=linux
20810 need_lib_prefix=no
20811 need_version=no
20812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20813 soname_spec='${libname}${release}${shared_ext}$major'
20814 shlibpath_var=LD_LIBRARY_PATH
20815 shlibpath_overrides_runpath=yes
20816 hardcode_into_libs=yes
20817 # ldd complains unless libraries are executable
20818 postinstall_cmds='chmod +x $lib'
20819 ;;
20820
20821sunos4*)
20822 version_type=sunos
20823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20824 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20825 shlibpath_var=LD_LIBRARY_PATH
20826 shlibpath_overrides_runpath=yes
20827 if test "$with_gnu_ld" = yes; then
20828 need_lib_prefix=no
20829 fi
20830 need_version=yes
20831 ;;
20832
Reid Spencera773bd52006-08-04 18:18:08 +000020833sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020834 version_type=linux
20835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20836 soname_spec='${libname}${release}${shared_ext}$major'
20837 shlibpath_var=LD_LIBRARY_PATH
20838 case $host_vendor in
20839 sni)
20840 shlibpath_overrides_runpath=no
20841 need_lib_prefix=no
20842 export_dynamic_flag_spec='${wl}-Blargedynsym'
20843 runpath_var=LD_RUN_PATH
20844 ;;
20845 siemens)
20846 need_lib_prefix=no
20847 ;;
20848 motorola)
20849 need_lib_prefix=no
20850 need_version=no
20851 shlibpath_overrides_runpath=no
20852 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20853 ;;
20854 esac
20855 ;;
20856
20857sysv4*MP*)
20858 if test -d /usr/nec ;then
20859 version_type=linux
20860 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20861 soname_spec='$libname${shared_ext}.$major'
20862 shlibpath_var=LD_LIBRARY_PATH
20863 fi
20864 ;;
20865
Reid Spencera773bd52006-08-04 18:18:08 +000020866sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20867 version_type=freebsd-elf
20868 need_lib_prefix=no
20869 need_version=no
20870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20871 soname_spec='${libname}${release}${shared_ext}$major'
20872 shlibpath_var=LD_LIBRARY_PATH
20873 hardcode_into_libs=yes
20874 if test "$with_gnu_ld" = yes; then
20875 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20876 shlibpath_overrides_runpath=no
20877 else
20878 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20879 shlibpath_overrides_runpath=yes
20880 case $host_os in
20881 sco3.2v5*)
20882 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20883 ;;
20884 esac
20885 fi
20886 sys_lib_dlsearch_path_spec='/usr/lib'
20887 ;;
20888
John Criswell47fdd832003-07-14 16:52:07 +000020889uts4*)
20890 version_type=linux
20891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20892 soname_spec='${libname}${release}${shared_ext}$major'
20893 shlibpath_var=LD_LIBRARY_PATH
20894 ;;
20895
20896*)
20897 dynamic_linker=no
20898 ;;
20899esac
Reid Spencera773bd52006-08-04 18:18:08 +000020900{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20901echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020902test "$dynamic_linker" = no && can_build_shared=no
20903
Reid Spencera773bd52006-08-04 18:18:08 +000020904variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20905if test "$GCC" = yes; then
20906 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20907fi
20908
20909{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20910echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020911hardcode_action_CXX=
20912if test -n "$hardcode_libdir_flag_spec_CXX" || \
20913 test -n "$runpath_var_CXX" || \
20914 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20915
20916 # We can hardcode non-existant directories.
20917 if test "$hardcode_direct_CXX" != no &&
20918 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20919 # have to relink, otherwise we might link with an installed library
20920 # when we should be linking with a yet-to-be-installed one
20921 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20922 test "$hardcode_minus_L_CXX" != no; then
20923 # Linking always hardcodes the temporary library directory.
20924 hardcode_action_CXX=relink
20925 else
20926 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20927 hardcode_action_CXX=immediate
20928 fi
20929else
20930 # We cannot hardcode anything, or else we can only hardcode existing
20931 # directories.
20932 hardcode_action_CXX=unsupported
20933fi
Reid Spencera773bd52006-08-04 18:18:08 +000020934{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20935echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020936
20937if test "$hardcode_action_CXX" = relink; then
20938 # Fast installation is not supported
20939 enable_fast_install=no
20940elif test "$shlibpath_overrides_runpath" = yes ||
20941 test "$enable_shared" = no; then
20942 # Fast installation is not necessary
20943 enable_fast_install=needless
20944fi
20945
John Criswell47fdd832003-07-14 16:52:07 +000020946
20947# The else clause should only fire when bootstrapping the
20948# libtool distribution, otherwise you forgot to ship ltmain.sh
20949# with your package, and you will get complaints that there are
20950# no rules to generate ltmain.sh.
20951if test -f "$ltmain"; then
20952 # See if we are running on zsh, and set the options which allow our commands through
20953 # without removal of \ escapes.
20954 if test -n "${ZSH_VERSION+set}" ; then
20955 setopt NO_GLOB_SUBST
20956 fi
20957 # Now quote all the things that may contain metacharacters while being
20958 # careful not to overquote the AC_SUBSTed values. We take copies of the
20959 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020960 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 +000020961 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020962 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20963 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20964 deplibs_check_method reload_flag reload_cmds need_locks \
20965 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20966 lt_cv_sys_global_symbol_to_c_name_address \
20967 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20968 old_postinstall_cmds old_postuninstall_cmds \
20969 compiler_CXX \
20970 CC_CXX \
20971 LD_CXX \
20972 lt_prog_compiler_wl_CXX \
20973 lt_prog_compiler_pic_CXX \
20974 lt_prog_compiler_static_CXX \
20975 lt_prog_compiler_no_builtin_flag_CXX \
20976 export_dynamic_flag_spec_CXX \
20977 thread_safe_flag_spec_CXX \
20978 whole_archive_flag_spec_CXX \
20979 enable_shared_with_static_runtimes_CXX \
20980 old_archive_cmds_CXX \
20981 old_archive_from_new_cmds_CXX \
20982 predep_objects_CXX \
20983 postdep_objects_CXX \
20984 predeps_CXX \
20985 postdeps_CXX \
20986 compiler_lib_search_path_CXX \
20987 archive_cmds_CXX \
20988 archive_expsym_cmds_CXX \
20989 postinstall_cmds_CXX \
20990 postuninstall_cmds_CXX \
20991 old_archive_from_expsyms_cmds_CXX \
20992 allow_undefined_flag_CXX \
20993 no_undefined_flag_CXX \
20994 export_symbols_cmds_CXX \
20995 hardcode_libdir_flag_spec_CXX \
20996 hardcode_libdir_flag_spec_ld_CXX \
20997 hardcode_libdir_separator_CXX \
20998 hardcode_automatic_CXX \
20999 module_cmds_CXX \
21000 module_expsym_cmds_CXX \
21001 lt_cv_prog_compiler_c_o_CXX \
21002 exclude_expsyms_CXX \
21003 include_expsyms_CXX; do
21004
21005 case $var in
21006 old_archive_cmds_CXX | \
21007 old_archive_from_new_cmds_CXX | \
21008 archive_cmds_CXX | \
21009 archive_expsym_cmds_CXX | \
21010 module_cmds_CXX | \
21011 module_expsym_cmds_CXX | \
21012 old_archive_from_expsyms_cmds_CXX | \
21013 export_symbols_cmds_CXX | \
21014 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21015 postinstall_cmds | postuninstall_cmds | \
21016 old_postinstall_cmds | old_postuninstall_cmds | \
21017 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21018 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021019 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 +000021020 ;;
21021 *)
21022 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21023 ;;
21024 esac
21025 done
21026
21027 case $lt_echo in
21028 *'\$0 --fallback-echo"')
21029 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21030 ;;
21031 esac
21032
21033cfgfile="$ofile"
21034
21035 cat <<__EOF__ >> "$cfgfile"
21036# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21037
21038# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21039
21040# Shell to use when invoking shell scripts.
21041SHELL=$lt_SHELL
21042
21043# Whether or not to build shared libraries.
21044build_libtool_libs=$enable_shared
21045
21046# Whether or not to build static libraries.
21047build_old_libs=$enable_static
21048
21049# Whether or not to add -lc for building shared libraries.
21050build_libtool_need_lc=$archive_cmds_need_lc_CXX
21051
21052# Whether or not to disallow shared libs when runtime libs are static
21053allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21054
21055# Whether or not to optimize for fast installation.
21056fast_install=$enable_fast_install
21057
21058# The host system.
21059host_alias=$host_alias
21060host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000021061host_os=$host_os
21062
21063# The build system.
21064build_alias=$build_alias
21065build=$build
21066build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000021067
21068# An echo program that does not interpret backslashes.
21069echo=$lt_echo
21070
21071# The archiver.
21072AR=$lt_AR
21073AR_FLAGS=$lt_AR_FLAGS
21074
21075# A C compiler.
21076LTCC=$lt_LTCC
21077
Reid Spencera773bd52006-08-04 18:18:08 +000021078# LTCC compiler flags.
21079LTCFLAGS=$lt_LTCFLAGS
21080
John Criswell47fdd832003-07-14 16:52:07 +000021081# A language-specific compiler.
21082CC=$lt_compiler_CXX
21083
21084# Is the compiler the GNU C compiler?
21085with_gcc=$GCC_CXX
21086
21087# An ERE matcher.
21088EGREP=$lt_EGREP
21089
21090# The linker used to build libraries.
21091LD=$lt_LD_CXX
21092
21093# Whether we need hard or soft links.
21094LN_S=$lt_LN_S
21095
21096# A BSD-compatible nm program.
21097NM=$lt_NM
21098
21099# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000021100STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000021101
21102# Used to examine libraries when file_magic_cmd begins "file"
21103MAGIC_CMD=$MAGIC_CMD
21104
21105# Used on cygwin: DLL creation program.
21106DLLTOOL="$DLLTOOL"
21107
21108# Used on cygwin: object dumper.
21109OBJDUMP="$OBJDUMP"
21110
21111# Used on cygwin: assembler.
21112AS="$AS"
21113
21114# The name of the directory that contains temporary libtool files.
21115objdir=$objdir
21116
21117# How to create reloadable object files.
21118reload_flag=$lt_reload_flag
21119reload_cmds=$lt_reload_cmds
21120
21121# How to pass a linker flag through the compiler.
21122wl=$lt_lt_prog_compiler_wl_CXX
21123
21124# Object file suffix (normally "o").
21125objext="$ac_objext"
21126
21127# Old archive suffix (normally "a").
21128libext="$libext"
21129
21130# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000021131shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000021132
21133# Executable file suffix (normally "").
21134exeext="$exeext"
21135
21136# Additional compiler flags for building library objects.
21137pic_flag=$lt_lt_prog_compiler_pic_CXX
21138pic_mode=$pic_mode
21139
21140# What is the maximum length of a command?
21141max_cmd_len=$lt_cv_sys_max_cmd_len
21142
21143# Does compiler simultaneously support -c and -o options?
21144compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21145
Reid Spencera773bd52006-08-04 18:18:08 +000021146# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000021147need_locks=$lt_need_locks
21148
21149# Do we need the lib prefix for modules?
21150need_lib_prefix=$need_lib_prefix
21151
21152# Do we need a version for libraries?
21153need_version=$need_version
21154
21155# Whether dlopen is supported.
21156dlopen_support=$enable_dlopen
21157
21158# Whether dlopen of programs is supported.
21159dlopen_self=$enable_dlopen_self
21160
21161# Whether dlopen of statically linked programs is supported.
21162dlopen_self_static=$enable_dlopen_self_static
21163
21164# Compiler flag to prevent dynamic linking.
21165link_static_flag=$lt_lt_prog_compiler_static_CXX
21166
21167# Compiler flag to turn off builtin functions.
21168no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21169
21170# Compiler flag to allow reflexive dlopens.
21171export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21172
21173# Compiler flag to generate shared objects directly from archives.
21174whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21175
21176# Compiler flag to generate thread-safe objects.
21177thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21178
21179# Library versioning type.
21180version_type=$version_type
21181
21182# Format of library name prefix.
21183libname_spec=$lt_libname_spec
21184
21185# List of archive names. First name is the real one, the rest are links.
21186# The last name is the one that the linker finds with -lNAME.
21187library_names_spec=$lt_library_names_spec
21188
21189# The coded name of the library, if different from the real name.
21190soname_spec=$lt_soname_spec
21191
21192# Commands used to build and install an old-style archive.
21193RANLIB=$lt_RANLIB
21194old_archive_cmds=$lt_old_archive_cmds_CXX
21195old_postinstall_cmds=$lt_old_postinstall_cmds
21196old_postuninstall_cmds=$lt_old_postuninstall_cmds
21197
21198# Create an old-style archive from a shared archive.
21199old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21200
21201# Create a temporary old-style archive to link instead of a shared archive.
21202old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21203
21204# Commands used to build and install a shared archive.
21205archive_cmds=$lt_archive_cmds_CXX
21206archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21207postinstall_cmds=$lt_postinstall_cmds
21208postuninstall_cmds=$lt_postuninstall_cmds
21209
21210# Commands used to build a loadable module (assumed same as above if empty)
21211module_cmds=$lt_module_cmds_CXX
21212module_expsym_cmds=$lt_module_expsym_cmds_CXX
21213
21214# Commands to strip libraries.
21215old_striplib=$lt_old_striplib
21216striplib=$lt_striplib
21217
21218# Dependencies to place before the objects being linked to create a
21219# shared library.
21220predep_objects=$lt_predep_objects_CXX
21221
21222# Dependencies to place after the objects being linked to create a
21223# shared library.
21224postdep_objects=$lt_postdep_objects_CXX
21225
21226# Dependencies to place before the objects being linked to create a
21227# shared library.
21228predeps=$lt_predeps_CXX
21229
21230# Dependencies to place after the objects being linked to create a
21231# shared library.
21232postdeps=$lt_postdeps_CXX
21233
21234# The library search path used internally by the compiler when linking
21235# a shared library.
21236compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21237
21238# Method to check whether dependent libraries are shared objects.
21239deplibs_check_method=$lt_deplibs_check_method
21240
21241# Command to use when deplibs_check_method == file_magic.
21242file_magic_cmd=$lt_file_magic_cmd
21243
21244# Flag that allows shared libraries with undefined symbols to be built.
21245allow_undefined_flag=$lt_allow_undefined_flag_CXX
21246
21247# Flag that forces no undefined symbols.
21248no_undefined_flag=$lt_no_undefined_flag_CXX
21249
21250# Commands used to finish a libtool library installation in a directory.
21251finish_cmds=$lt_finish_cmds
21252
21253# Same as above, but a single script fragment to be evaled but not shown.
21254finish_eval=$lt_finish_eval
21255
21256# Take the output of nm and produce a listing of raw symbols and C names.
21257global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21258
21259# Transform the output of nm in a proper C declaration
21260global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21261
21262# Transform the output of nm in a C name address pair
21263global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21264
21265# This is the shared library runtime path variable.
21266runpath_var=$runpath_var
21267
21268# This is the shared library path variable.
21269shlibpath_var=$shlibpath_var
21270
21271# Is shlibpath searched before the hard-coded library search path?
21272shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21273
21274# How to hardcode a shared library path into an executable.
21275hardcode_action=$hardcode_action_CXX
21276
21277# Whether we should hardcode library paths into libraries.
21278hardcode_into_libs=$hardcode_into_libs
21279
21280# Flag to hardcode \$libdir into a binary during linking.
21281# This must work even if \$libdir does not exist.
21282hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21283
21284# If ld is used when linking, flag to hardcode \$libdir into
21285# a binary during linking. This must work even if \$libdir does
21286# not exist.
21287hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21288
21289# Whether we need a single -rpath flag with a separated argument.
21290hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21291
21292# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21293# resulting binary.
21294hardcode_direct=$hardcode_direct_CXX
21295
21296# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21297# resulting binary.
21298hardcode_minus_L=$hardcode_minus_L_CXX
21299
21300# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21301# the resulting binary.
21302hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21303
21304# Set to yes if building a shared library automatically hardcodes DIR into the library
21305# and all subsequent libraries and executables linked against it.
21306hardcode_automatic=$hardcode_automatic_CXX
21307
21308# Variables whose values should be saved in libtool wrapper scripts and
21309# restored at relink time.
21310variables_saved_for_relink="$variables_saved_for_relink"
21311
21312# Whether libtool must link a program against all its dependency libraries.
21313link_all_deplibs=$link_all_deplibs_CXX
21314
21315# Compile-time system search path for libraries
21316sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21317
21318# Run-time system search path for libraries
21319sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21320
21321# Fix the shell variable \$srcfile for the compiler.
21322fix_srcfile_path="$fix_srcfile_path_CXX"
21323
21324# Set to yes if exported symbols are required.
21325always_export_symbols=$always_export_symbols_CXX
21326
21327# The commands to list exported symbols.
21328export_symbols_cmds=$lt_export_symbols_cmds_CXX
21329
21330# The commands to extract the exported symbol list from a shared archive.
21331extract_expsyms_cmds=$lt_extract_expsyms_cmds
21332
21333# Symbols that should not be listed in the preloaded symbols.
21334exclude_expsyms=$lt_exclude_expsyms_CXX
21335
21336# Symbols that must always be exported.
21337include_expsyms=$lt_include_expsyms_CXX
21338
21339# ### END LIBTOOL TAG CONFIG: $tagname
21340
21341__EOF__
21342
21343
21344else
21345 # If there is no Makefile yet, we rely on a make rule to execute
21346 # `config.status --recheck' to rerun these tests and create the
21347 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021348 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21349 if test -f "$ltmain_in"; then
21350 test -f Makefile && make "$ltmain"
21351 fi
John Criswell47fdd832003-07-14 16:52:07 +000021352fi
21353
21354
21355ac_ext=c
21356ac_cpp='$CPP $CPPFLAGS'
21357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21359ac_compiler_gnu=$ac_cv_c_compiler_gnu
21360
21361CC=$lt_save_CC
21362LDCXX=$LD
21363LD=$lt_save_LD
21364GCC=$lt_save_GCC
21365with_gnu_ldcxx=$with_gnu_ld
21366with_gnu_ld=$lt_save_with_gnu_ld
21367lt_cv_path_LDCXX=$lt_cv_path_LD
21368lt_cv_path_LD=$lt_save_path_LD
21369lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21370lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21371
21372 else
21373 tagname=""
21374 fi
21375 ;;
21376
21377 F77)
21378 if test -n "$F77" && test "X$F77" != "Xno"; then
21379
21380ac_ext=f
21381ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21382ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21383ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21384
21385
21386archive_cmds_need_lc_F77=no
21387allow_undefined_flag_F77=
21388always_export_symbols_F77=no
21389archive_expsym_cmds_F77=
21390export_dynamic_flag_spec_F77=
21391hardcode_direct_F77=no
21392hardcode_libdir_flag_spec_F77=
21393hardcode_libdir_flag_spec_ld_F77=
21394hardcode_libdir_separator_F77=
21395hardcode_minus_L_F77=no
21396hardcode_automatic_F77=no
21397module_cmds_F77=
21398module_expsym_cmds_F77=
21399link_all_deplibs_F77=unknown
21400old_archive_cmds_F77=$old_archive_cmds
21401no_undefined_flag_F77=
21402whole_archive_flag_spec_F77=
21403enable_shared_with_static_runtimes_F77=no
21404
21405# Source file extension for f77 test sources.
21406ac_ext=f
21407
21408# Object file extension for compiled f77 test sources.
21409objext=o
21410objext_F77=$objext
21411
21412# Code to be used in simple compile tests
21413lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21414
21415# Code to be used in simple link tests
21416lt_simple_link_test_code=" program t\n end\n"
21417
21418# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21419
21420# If no C compiler was specified, use CC.
21421LTCC=${LTCC-"$CC"}
21422
Reid Spencera773bd52006-08-04 18:18:08 +000021423# If no C compiler flags were specified, use CFLAGS.
21424LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21425
John Criswell47fdd832003-07-14 16:52:07 +000021426# Allow CC to be a program name with arguments.
21427compiler=$CC
21428
21429
Reid Spencera773bd52006-08-04 18:18:08 +000021430# save warnings/boilerplate of simple test code
21431ac_outfile=conftest.$ac_objext
21432printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21433eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21434_lt_compiler_boilerplate=`cat conftest.err`
21435$rm conftest*
21436
21437ac_outfile=conftest.$ac_objext
21438printf "$lt_simple_link_test_code" >conftest.$ac_ext
21439eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21440_lt_linker_boilerplate=`cat conftest.err`
21441$rm conftest*
21442
21443
John Criswell47fdd832003-07-14 16:52:07 +000021444# Allow CC to be a program name with arguments.
21445lt_save_CC="$CC"
21446CC=${F77-"f77"}
21447compiler=$CC
21448compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021449for cc_temp in $compiler""; do
21450 case $cc_temp in
21451 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21452 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21453 \-*) ;;
21454 *) break;;
21455 esac
21456done
21457cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021458
John Criswell47fdd832003-07-14 16:52:07 +000021459
Reid Spencera773bd52006-08-04 18:18:08 +000021460{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21461echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21462{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21463echo "${ECHO_T}$can_build_shared" >&6; }
21464
21465{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21466echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021467test "$can_build_shared" = "no" && enable_shared=no
21468
21469# On AIX, shared libraries and static libraries use the same namespace, and
21470# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021471case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021472aix3*)
21473 test "$enable_shared" = yes && enable_static=no
21474 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021475 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021476 postinstall_cmds='$RANLIB $lib'
21477 fi
21478 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021479aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021480 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21481 test "$enable_shared" = yes && enable_static=no
21482 fi
John Criswell47fdd832003-07-14 16:52:07 +000021483 ;;
21484esac
Reid Spencera773bd52006-08-04 18:18:08 +000021485{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21486echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021487
Reid Spencera773bd52006-08-04 18:18:08 +000021488{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21489echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021490# Make sure either enable_shared or enable_static is yes.
21491test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021492{ echo "$as_me:$LINENO: result: $enable_static" >&5
21493echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021494
21495GCC_F77="$G77"
21496LD_F77="$LD"
21497
21498lt_prog_compiler_wl_F77=
21499lt_prog_compiler_pic_F77=
21500lt_prog_compiler_static_F77=
21501
Reid Spencera773bd52006-08-04 18:18:08 +000021502{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21503echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021504
21505 if test "$GCC" = yes; then
21506 lt_prog_compiler_wl_F77='-Wl,'
21507 lt_prog_compiler_static_F77='-static'
21508
21509 case $host_os in
21510 aix*)
21511 # All AIX code is PIC.
21512 if test "$host_cpu" = ia64; then
21513 # AIX 5 now supports IA64 processor
21514 lt_prog_compiler_static_F77='-Bstatic'
21515 fi
21516 ;;
21517
21518 amigaos*)
21519 # FIXME: we need at least 68020 code to build shared libraries, but
21520 # adding the `-m68020' flag to GCC prevents building anything better,
21521 # like `-m68040'.
21522 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21523 ;;
21524
21525 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21526 # PIC is the default for these OSes.
21527 ;;
21528
21529 mingw* | pw32* | os2*)
21530 # This hack is so that the source file can tell whether it is being
21531 # built for inclusion in a dll (and should export symbols for example).
21532 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21533 ;;
21534
21535 darwin* | rhapsody*)
21536 # PIC is the default on this platform
21537 # Common symbols not allowed in MH_DYLIB files
21538 lt_prog_compiler_pic_F77='-fno-common'
21539 ;;
21540
Reid Spencera773bd52006-08-04 18:18:08 +000021541 interix3*)
21542 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21543 # Instead, we relocate shared libraries at runtime.
21544 ;;
21545
John Criswell47fdd832003-07-14 16:52:07 +000021546 msdosdjgpp*)
21547 # Just because we use GCC doesn't mean we suddenly get shared libraries
21548 # on systems that don't support them.
21549 lt_prog_compiler_can_build_shared_F77=no
21550 enable_shared=no
21551 ;;
21552
21553 sysv4*MP*)
21554 if test -d /usr/nec; then
21555 lt_prog_compiler_pic_F77=-Kconform_pic
21556 fi
21557 ;;
21558
21559 hpux*)
21560 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21561 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021562 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021563 hppa*64*|ia64*)
21564 # +Z the default
21565 ;;
21566 *)
21567 lt_prog_compiler_pic_F77='-fPIC'
21568 ;;
21569 esac
21570 ;;
21571
21572 *)
21573 lt_prog_compiler_pic_F77='-fPIC'
21574 ;;
21575 esac
21576 else
21577 # PORTME Check for flag to pass linker flags through the system compiler.
21578 case $host_os in
21579 aix*)
21580 lt_prog_compiler_wl_F77='-Wl,'
21581 if test "$host_cpu" = ia64; then
21582 # AIX 5 now supports IA64 processor
21583 lt_prog_compiler_static_F77='-Bstatic'
21584 else
21585 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21586 fi
21587 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021588 darwin*)
21589 # PIC is the default on this platform
21590 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021591 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021592 xlc*)
21593 lt_prog_compiler_pic_F77='-qnocommon'
21594 lt_prog_compiler_wl_F77='-Wl,'
21595 ;;
21596 esac
21597 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021598
21599 mingw* | pw32* | os2*)
21600 # This hack is so that the source file can tell whether it is being
21601 # built for inclusion in a dll (and should export symbols for example).
21602 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21603 ;;
21604
21605 hpux9* | hpux10* | hpux11*)
21606 lt_prog_compiler_wl_F77='-Wl,'
21607 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21608 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021609 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021610 hppa*64*|ia64*)
21611 # +Z the default
21612 ;;
21613 *)
21614 lt_prog_compiler_pic_F77='+Z'
21615 ;;
21616 esac
21617 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21618 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21619 ;;
21620
21621 irix5* | irix6* | nonstopux*)
21622 lt_prog_compiler_wl_F77='-Wl,'
21623 # PIC (with -KPIC) is the default.
21624 lt_prog_compiler_static_F77='-non_shared'
21625 ;;
21626
21627 newsos6)
21628 lt_prog_compiler_pic_F77='-KPIC'
21629 lt_prog_compiler_static_F77='-Bstatic'
21630 ;;
21631
21632 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021633 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021634 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021635 lt_prog_compiler_wl_F77='-Wl,'
21636 lt_prog_compiler_pic_F77='-KPIC'
21637 lt_prog_compiler_static_F77='-static'
21638 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021639 pgcc* | pgf77* | pgf90* | pgf95*)
21640 # Portland Group compilers (*not* the Pentium gcc compiler,
21641 # which looks to be a dead project)
21642 lt_prog_compiler_wl_F77='-Wl,'
21643 lt_prog_compiler_pic_F77='-fpic'
21644 lt_prog_compiler_static_F77='-Bstatic'
21645 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021646 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021647 lt_prog_compiler_wl_F77='-Wl,'
21648 # All Alpha code is PIC.
21649 lt_prog_compiler_static_F77='-non_shared'
21650 ;;
21651 esac
21652 ;;
21653
21654 osf3* | osf4* | osf5*)
21655 lt_prog_compiler_wl_F77='-Wl,'
21656 # All OSF/1 code is PIC.
21657 lt_prog_compiler_static_F77='-non_shared'
21658 ;;
21659
John Criswell47fdd832003-07-14 16:52:07 +000021660 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021661 lt_prog_compiler_pic_F77='-KPIC'
21662 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021663 case $cc_basename in
21664 f77* | f90* | f95*)
21665 lt_prog_compiler_wl_F77='-Qoption ld ';;
21666 *)
21667 lt_prog_compiler_wl_F77='-Wl,';;
21668 esac
John Criswell47fdd832003-07-14 16:52:07 +000021669 ;;
21670
21671 sunos4*)
21672 lt_prog_compiler_wl_F77='-Qoption ld '
21673 lt_prog_compiler_pic_F77='-PIC'
21674 lt_prog_compiler_static_F77='-Bstatic'
21675 ;;
21676
Reid Spencera773bd52006-08-04 18:18:08 +000021677 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021678 lt_prog_compiler_wl_F77='-Wl,'
21679 lt_prog_compiler_pic_F77='-KPIC'
21680 lt_prog_compiler_static_F77='-Bstatic'
21681 ;;
21682
21683 sysv4*MP*)
21684 if test -d /usr/nec ;then
21685 lt_prog_compiler_pic_F77='-Kconform_pic'
21686 lt_prog_compiler_static_F77='-Bstatic'
21687 fi
21688 ;;
21689
Reid Spencera773bd52006-08-04 18:18:08 +000021690 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21691 lt_prog_compiler_wl_F77='-Wl,'
21692 lt_prog_compiler_pic_F77='-KPIC'
21693 lt_prog_compiler_static_F77='-Bstatic'
21694 ;;
21695
21696 unicos*)
21697 lt_prog_compiler_wl_F77='-Wl,'
21698 lt_prog_compiler_can_build_shared_F77=no
21699 ;;
21700
John Criswell47fdd832003-07-14 16:52:07 +000021701 uts4*)
21702 lt_prog_compiler_pic_F77='-pic'
21703 lt_prog_compiler_static_F77='-Bstatic'
21704 ;;
21705
21706 *)
21707 lt_prog_compiler_can_build_shared_F77=no
21708 ;;
21709 esac
21710 fi
21711
Reid Spencera773bd52006-08-04 18:18:08 +000021712{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21713echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021714
21715#
21716# Check to make sure the PIC flag actually works.
21717#
21718if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021719
Reid Spencera773bd52006-08-04 18:18:08 +000021720{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21721echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021722if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21723 echo $ECHO_N "(cached) $ECHO_C" >&6
21724else
21725 lt_prog_compiler_pic_works_F77=no
21726 ac_outfile=conftest.$ac_objext
21727 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21728 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21729 # Insert the option either (1) after the last *FLAGS variable, or
21730 # (2) before a word containing "conftest.", or (3) at the end.
21731 # Note that $ac_compile itself does not contain backslashes and begins
21732 # with a dollar sign (not a hyphen), so the echo should work correctly.
21733 # The option is referenced via a variable to avoid confusing sed.
21734 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021735 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021736 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21737 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000021738 (eval echo "\"\$as_me:21733: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021739 (eval "$lt_compile" 2>conftest.err)
21740 ac_status=$?
21741 cat conftest.err >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000021742 echo "$as_me:21737: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021743 if (exit $ac_status) && test -s "$ac_outfile"; then
21744 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021745 # So say no if there are warnings other than the usual output.
21746 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21747 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21748 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021749 lt_prog_compiler_pic_works_F77=yes
21750 fi
21751 fi
21752 $rm conftest*
21753
21754fi
Reid Spencera773bd52006-08-04 18:18:08 +000021755{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21756echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021757
21758if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21759 case $lt_prog_compiler_pic_F77 in
21760 "" | " "*) ;;
21761 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21762 esac
21763else
21764 lt_prog_compiler_pic_F77=
21765 lt_prog_compiler_can_build_shared_F77=no
21766fi
21767
21768fi
Reid Spencera773bd52006-08-04 18:18:08 +000021769case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021770 # For platforms which do not support PIC, -DPIC is meaningless:
21771 *djgpp*)
21772 lt_prog_compiler_pic_F77=
21773 ;;
21774 *)
21775 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21776 ;;
21777esac
21778
Reid Spencera773bd52006-08-04 18:18:08 +000021779#
21780# Check to make sure the static flag actually works.
21781#
21782wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21783{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21784echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21785if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21786 echo $ECHO_N "(cached) $ECHO_C" >&6
21787else
21788 lt_prog_compiler_static_works_F77=no
21789 save_LDFLAGS="$LDFLAGS"
21790 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21791 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21792 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21793 # The linker can only warn and ignore the option if not recognized
21794 # So say no if there are warnings
21795 if test -s conftest.err; then
21796 # Append any errors to the config.log.
21797 cat conftest.err 1>&5
21798 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21799 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21800 if diff conftest.exp conftest.er2 >/dev/null; then
21801 lt_prog_compiler_static_works_F77=yes
21802 fi
21803 else
21804 lt_prog_compiler_static_works_F77=yes
21805 fi
21806 fi
21807 $rm conftest*
21808 LDFLAGS="$save_LDFLAGS"
21809
21810fi
21811{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21812echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21813
21814if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21815 :
21816else
21817 lt_prog_compiler_static_F77=
21818fi
21819
21820
21821{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21822echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021823if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21824 echo $ECHO_N "(cached) $ECHO_C" >&6
21825else
21826 lt_cv_prog_compiler_c_o_F77=no
21827 $rm -r conftest 2>/dev/null
21828 mkdir conftest
21829 cd conftest
21830 mkdir out
21831 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21832
John Criswell47fdd832003-07-14 16:52:07 +000021833 lt_compiler_flag="-o out/conftest2.$ac_objext"
21834 # Insert the option either (1) after the last *FLAGS variable, or
21835 # (2) before a word containing "conftest.", or (3) at the end.
21836 # Note that $ac_compile itself does not contain backslashes and begins
21837 # with a dollar sign (not a hyphen), so the echo should work correctly.
21838 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021839 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021840 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21841 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000021842 (eval echo "\"\$as_me:21837: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021843 (eval "$lt_compile" 2>out/conftest.err)
21844 ac_status=$?
21845 cat out/conftest.err >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000021846 echo "$as_me:21841: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021847 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21848 then
21849 # The compiler can only warn and ignore the option if not recognized
21850 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021851 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21852 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21853 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021854 lt_cv_prog_compiler_c_o_F77=yes
21855 fi
21856 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021857 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021858 $rm conftest*
21859 # SGI C++ compiler will create directory out/ii_files/ for
21860 # template instantiation
21861 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21862 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021863 cd ..
21864 rmdir conftest
21865 $rm conftest*
21866
21867fi
Reid Spencera773bd52006-08-04 18:18:08 +000021868{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21869echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021870
21871
21872hard_links="nottested"
21873if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21874 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021875 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21876echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021877 hard_links=yes
21878 $rm conftest*
21879 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21880 touch conftest.a
21881 ln conftest.a conftest.b 2>&5 || hard_links=no
21882 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021883 { echo "$as_me:$LINENO: result: $hard_links" >&5
21884echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021885 if test "$hard_links" = no; then
21886 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21887echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21888 need_locks=warn
21889 fi
21890else
21891 need_locks=no
21892fi
21893
Reid Spencera773bd52006-08-04 18:18:08 +000021894{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21895echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021896
21897 runpath_var=
21898 allow_undefined_flag_F77=
21899 enable_shared_with_static_runtimes_F77=no
21900 archive_cmds_F77=
21901 archive_expsym_cmds_F77=
21902 old_archive_From_new_cmds_F77=
21903 old_archive_from_expsyms_cmds_F77=
21904 export_dynamic_flag_spec_F77=
21905 whole_archive_flag_spec_F77=
21906 thread_safe_flag_spec_F77=
21907 hardcode_libdir_flag_spec_F77=
21908 hardcode_libdir_flag_spec_ld_F77=
21909 hardcode_libdir_separator_F77=
21910 hardcode_direct_F77=no
21911 hardcode_minus_L_F77=no
21912 hardcode_shlibpath_var_F77=unsupported
21913 link_all_deplibs_F77=unknown
21914 hardcode_automatic_F77=no
21915 module_cmds_F77=
21916 module_expsym_cmds_F77=
21917 always_export_symbols_F77=no
21918 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21919 # include_expsyms should be a list of space-separated symbols to be *always*
21920 # included in the symbol list
21921 include_expsyms_F77=
21922 # exclude_expsyms can be an extended regexp of symbols to exclude
21923 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21924 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21925 # as well as any symbol that contains `d'.
21926 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21927 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21928 # platforms (ab)use it in PIC code, but their linkers get confused if
21929 # the symbol is explicitly referenced. Since portable code cannot
21930 # rely on this symbol name, it's probably fine to never include it in
21931 # preloaded symbol tables.
21932 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021933 # Just being paranoid about ensuring that cc_basename is set.
21934 for cc_temp in $compiler""; do
21935 case $cc_temp in
21936 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21937 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21938 \-*) ;;
21939 *) break;;
21940 esac
21941done
21942cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021943
21944 case $host_os in
21945 cygwin* | mingw* | pw32*)
21946 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21947 # When not using gcc, we currently assume that we are using
21948 # Microsoft Visual C++.
21949 if test "$GCC" != yes; then
21950 with_gnu_ld=no
21951 fi
21952 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021953 interix*)
21954 # we just hope/assume this is gcc and not c89 (= MSVC++)
21955 with_gnu_ld=yes
21956 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021957 openbsd*)
21958 with_gnu_ld=no
21959 ;;
21960 esac
21961
21962 ld_shlibs_F77=yes
21963 if test "$with_gnu_ld" = yes; then
21964 # If archive_cmds runs LD, not CC, wlarc should be empty
21965 wlarc='${wl}'
21966
Reid Spencera773bd52006-08-04 18:18:08 +000021967 # Set some defaults for GNU ld with shared library support. These
21968 # are reset later if shared libraries are not supported. Putting them
21969 # here allows them to be overridden if necessary.
21970 runpath_var=LD_RUN_PATH
21971 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21972 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21973 # ancient GNU ld didn't support --whole-archive et. al.
21974 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21975 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21976 else
21977 whole_archive_flag_spec_F77=
21978 fi
21979 supports_anon_versioning=no
21980 case `$LD -v 2>/dev/null` in
21981 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21982 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21983 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21984 *\ 2.11.*) ;; # other 2.11 versions
21985 *) supports_anon_versioning=yes ;;
21986 esac
21987
John Criswell47fdd832003-07-14 16:52:07 +000021988 # See if GNU ld supports shared libraries.
21989 case $host_os in
21990 aix3* | aix4* | aix5*)
21991 # On AIX/PPC, the GNU linker is very broken
21992 if test "$host_cpu" != ia64; then
21993 ld_shlibs_F77=no
21994 cat <<EOF 1>&2
21995
21996*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21997*** to be unable to reliably create shared libraries on AIX.
21998*** Therefore, libtool is disabling shared libraries support. If you
21999*** really care for shared libraries, you may want to modify your PATH
22000*** so that a non-GNU linker is found, and then restart.
22001
22002EOF
22003 fi
22004 ;;
22005
22006 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022007 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 +000022008 hardcode_libdir_flag_spec_F77='-L$libdir'
22009 hardcode_minus_L_F77=yes
22010
22011 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22012 # that the semantics of dynamic libraries on AmigaOS, at least up
22013 # to version 4, is to share data among multiple programs linked
22014 # with the same dynamic library. Since this doesn't match the
22015 # behavior of shared libraries on other platforms, we can't use
22016 # them.
22017 ld_shlibs_F77=no
22018 ;;
22019
22020 beos*)
22021 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22022 allow_undefined_flag_F77=unsupported
22023 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22024 # support --undefined. This deserves some investigation. FIXME
22025 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22026 else
22027 ld_shlibs_F77=no
22028 fi
22029 ;;
22030
22031 cygwin* | mingw* | pw32*)
22032 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22033 # as there is no search path for DLLs.
22034 hardcode_libdir_flag_spec_F77='-L$libdir'
22035 allow_undefined_flag_F77=unsupported
22036 always_export_symbols_F77=no
22037 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022038 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 +000022039
22040 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000022041 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 +000022042 # If the export-symbols file already is a .def file (1st line
22043 # is EXPORTS), use it as is; otherwise, prepend...
22044 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22045 cp $export_symbols $output_objdir/$soname.def;
22046 else
22047 echo EXPORTS > $output_objdir/$soname.def;
22048 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000022049 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000022050 $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 +000022051 else
Reid Spencera773bd52006-08-04 18:18:08 +000022052 ld_shlibs_F77=no
22053 fi
22054 ;;
22055
22056 interix3*)
22057 hardcode_direct_F77=no
22058 hardcode_shlibpath_var_F77=no
22059 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22060 export_dynamic_flag_spec_F77='${wl}-E'
22061 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22062 # Instead, shared libraries are loaded at an image base (0x10000000 by
22063 # default) and relocated if they conflict, which is a slow very memory
22064 # consuming and fragmenting process. To avoid this, we pick a random,
22065 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22066 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22067 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'
22068 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'
22069 ;;
22070
22071 linux*)
22072 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22073 tmp_addflag=
22074 case $cc_basename,$host_cpu in
22075 pgcc*) # Portland Group C compiler
22076 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'
22077 tmp_addflag=' $pic_flag'
22078 ;;
22079 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22080 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'
22081 tmp_addflag=' $pic_flag -Mnomain' ;;
22082 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22083 tmp_addflag=' -i_dynamic' ;;
22084 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22085 tmp_addflag=' -i_dynamic -nofor_main' ;;
22086 ifc* | ifort*) # Intel Fortran compiler
22087 tmp_addflag=' -nofor_main' ;;
22088 esac
22089 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22090
22091 if test $supports_anon_versioning = yes; then
22092 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22093 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22094 $echo "local: *; };" >> $output_objdir/$libname.ver~
22095 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22096 fi
22097 else
22098 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022099 fi
22100 ;;
22101
22102 netbsd*)
22103 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22104 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22105 wlarc=
22106 else
22107 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22108 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22109 fi
22110 ;;
22111
Reid Spencera773bd52006-08-04 18:18:08 +000022112 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000022113 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22114 ld_shlibs_F77=no
22115 cat <<EOF 1>&2
22116
22117*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22118*** create shared libraries on Solaris systems. Therefore, libtool
22119*** is disabling shared libraries support. We urge you to upgrade GNU
22120*** binutils to release 2.9.1 or newer. Another option is to modify
22121*** your PATH or compiler configuration so that the native linker is
22122*** used, and then restart.
22123
22124EOF
22125 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22126 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22127 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22128 else
22129 ld_shlibs_F77=no
22130 fi
22131 ;;
22132
Reid Spencera773bd52006-08-04 18:18:08 +000022133 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22134 case `$LD -v 2>&1` in
22135 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22136 ld_shlibs_F77=no
22137 cat <<_LT_EOF 1>&2
22138
22139*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22140*** reliably create shared libraries on SCO systems. Therefore, libtool
22141*** is disabling shared libraries support. We urge you to upgrade GNU
22142*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22143*** your PATH or compiler configuration so that the native linker is
22144*** used, and then restart.
22145
22146_LT_EOF
22147 ;;
22148 *)
22149 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22150 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22151 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22152 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22153 else
22154 ld_shlibs_F77=no
22155 fi
22156 ;;
22157 esac
22158 ;;
22159
John Criswell47fdd832003-07-14 16:52:07 +000022160 sunos4*)
22161 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22162 wlarc=
22163 hardcode_direct_F77=yes
22164 hardcode_shlibpath_var_F77=no
22165 ;;
22166
22167 *)
22168 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22169 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22170 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22171 else
22172 ld_shlibs_F77=no
22173 fi
22174 ;;
22175 esac
22176
Reid Spencera773bd52006-08-04 18:18:08 +000022177 if test "$ld_shlibs_F77" = no; then
22178 runpath_var=
22179 hardcode_libdir_flag_spec_F77=
22180 export_dynamic_flag_spec_F77=
22181 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000022182 fi
22183 else
22184 # PORTME fill in a description of your system's linker (not GNU ld)
22185 case $host_os in
22186 aix3*)
22187 allow_undefined_flag_F77=unsupported
22188 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000022189 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 +000022190 # Note: this linker hardcodes the directories in LIBPATH if there
22191 # are no directories specified by -L.
22192 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022193 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000022194 # Neither direct hardcoding nor static linking is supported with a
22195 # broken collect2.
22196 hardcode_direct_F77=unsupported
22197 fi
22198 ;;
22199
22200 aix4* | aix5*)
22201 if test "$host_cpu" = ia64; then
22202 # On IA64, the linker does run time linking by default, so we don't
22203 # have to do anything special.
22204 aix_use_runtimelinking=no
22205 exp_sym_flag='-Bexport'
22206 no_entry_flag=""
22207 else
22208 # If we're using GNU nm, then we don't want the "-C" option.
22209 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22210 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22211 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'
22212 else
22213 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'
22214 fi
22215 aix_use_runtimelinking=no
22216
22217 # Test if we are trying to use run time linking or normal
22218 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22219 # need to do runtime linking.
22220 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22221 for ld_flag in $LDFLAGS; do
22222 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22223 aix_use_runtimelinking=yes
22224 break
22225 fi
22226 done
Reid Spencera773bd52006-08-04 18:18:08 +000022227 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022228 esac
22229
22230 exp_sym_flag='-bexport'
22231 no_entry_flag='-bnoentry'
22232 fi
22233
22234 # When large executables or shared objects are built, AIX ld can
22235 # have problems creating the table of contents. If linking a library
22236 # or program results in "error TOC overflow" add -mminimal-toc to
22237 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22238 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22239
22240 archive_cmds_F77=''
22241 hardcode_direct_F77=yes
22242 hardcode_libdir_separator_F77=':'
22243 link_all_deplibs_F77=yes
22244
22245 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022246 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000022247 # We only want to do this on AIX 4.2 and lower, the check
22248 # below for broken collect2 doesn't work under 4.3+
22249 collect2name=`${CC} -print-prog-name=collect2`
22250 if test -f "$collect2name" && \
22251 strings "$collect2name" | grep resolve_lib_name >/dev/null
22252 then
22253 # We have reworked collect2
22254 hardcode_direct_F77=yes
22255 else
22256 # We have old collect2
22257 hardcode_direct_F77=unsupported
22258 # It fails to find uninstalled libraries when the uninstalled
22259 # path is not listed in the libpath. Setting hardcode_minus_L
22260 # to unsupported forces relinking
22261 hardcode_minus_L_F77=yes
22262 hardcode_libdir_flag_spec_F77='-L$libdir'
22263 hardcode_libdir_separator_F77=
22264 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022265 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022266 esac
22267 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000022268 if test "$aix_use_runtimelinking" = yes; then
22269 shared_flag="$shared_flag "'${wl}-G'
22270 fi
John Criswell47fdd832003-07-14 16:52:07 +000022271 else
22272 # not using gcc
22273 if test "$host_cpu" = ia64; then
22274 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22275 # chokes on -Wl,-G. The following line is correct:
22276 shared_flag='-G'
22277 else
Reid Spencera773bd52006-08-04 18:18:08 +000022278 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000022279 shared_flag='${wl}-G'
22280 else
22281 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000022282 fi
John Criswell47fdd832003-07-14 16:52:07 +000022283 fi
22284 fi
22285
22286 # It seems that -bexpall does not export symbols beginning with
22287 # underscore (_), so it is better to generate a list of symbols to export.
22288 always_export_symbols_F77=yes
22289 if test "$aix_use_runtimelinking" = yes; then
22290 # Warning - without using the other runtime loading flags (-brtl),
22291 # -berok will link without error, but may produce a broken library.
22292 allow_undefined_flag_F77='-berok'
22293 # Determine the default libpath from the value encoded in an empty executable.
22294 cat >conftest.$ac_ext <<_ACEOF
22295 program main
22296
22297 end
22298_ACEOF
22299rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022300if { (ac_try="$ac_link"
22301case "(($ac_try" in
22302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22303 *) ac_try_echo=$ac_try;;
22304esac
22305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22306 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022307 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022308 grep -v '^ *+' conftest.er1 >conftest.err
22309 rm -f conftest.er1
22310 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022312 (exit $ac_status); } &&
22313 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22314 { (case "(($ac_try" in
22315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22316 *) ac_try_echo=$ac_try;;
22317esac
22318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22319 (eval "$ac_try") 2>&5
22320 ac_status=$?
22321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322 (exit $ac_status); }; } &&
22323 { ac_try='test -s conftest$ac_exeext'
22324 { (case "(($ac_try" in
22325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22326 *) ac_try_echo=$ac_try;;
22327esac
22328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22329 (eval "$ac_try") 2>&5
22330 ac_status=$?
22331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022333
22334aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22335}'`
22336# Check for a 64-bit object if we didn't find anything.
22337if 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; }
22338}'`; fi
22339else
22340 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022341sed 's/^/| /' conftest.$ac_ext >&5
22342
Reid Spencera773bd52006-08-04 18:18:08 +000022343
John Criswell47fdd832003-07-14 16:52:07 +000022344fi
Reid Spencera773bd52006-08-04 18:18:08 +000022345
Bill Wendlingebcceee2009-04-18 11:20:33 +000022346rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022347 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022348if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22349
22350 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022351 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 +000022352 else
22353 if test "$host_cpu" = ia64; then
22354 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22355 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022356 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 +000022357 else
22358 # Determine the default libpath from the value encoded in an empty executable.
22359 cat >conftest.$ac_ext <<_ACEOF
22360 program main
22361
22362 end
22363_ACEOF
22364rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022365if { (ac_try="$ac_link"
22366case "(($ac_try" in
22367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22368 *) ac_try_echo=$ac_try;;
22369esac
22370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22371 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022372 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022373 grep -v '^ *+' conftest.er1 >conftest.err
22374 rm -f conftest.er1
22375 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022377 (exit $ac_status); } &&
22378 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22379 { (case "(($ac_try" in
22380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22381 *) ac_try_echo=$ac_try;;
22382esac
22383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22384 (eval "$ac_try") 2>&5
22385 ac_status=$?
22386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387 (exit $ac_status); }; } &&
22388 { ac_try='test -s conftest$ac_exeext'
22389 { (case "(($ac_try" in
22390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22391 *) ac_try_echo=$ac_try;;
22392esac
22393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22394 (eval "$ac_try") 2>&5
22395 ac_status=$?
22396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022398
22399aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22400}'`
22401# Check for a 64-bit object if we didn't find anything.
22402if 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; }
22403}'`; fi
22404else
22405 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022406sed 's/^/| /' conftest.$ac_ext >&5
22407
Reid Spencera773bd52006-08-04 18:18:08 +000022408
John Criswell47fdd832003-07-14 16:52:07 +000022409fi
Reid Spencera773bd52006-08-04 18:18:08 +000022410
Bill Wendlingebcceee2009-04-18 11:20:33 +000022411rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022412 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022413if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22414
22415 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22416 # Warning - without using the other run time loading flags,
22417 # -berok will link without error, but may produce a broken library.
22418 no_undefined_flag_F77=' ${wl}-bernotok'
22419 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022420 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022421 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022422 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022423 # This is similar to how AIX traditionally builds its shared libraries.
22424 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 +000022425 fi
22426 fi
22427 ;;
22428
22429 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022430 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 +000022431 hardcode_libdir_flag_spec_F77='-L$libdir'
22432 hardcode_minus_L_F77=yes
22433 # see comment about different semantics on the GNU ld section
22434 ld_shlibs_F77=no
22435 ;;
22436
Reid Spencer2706f8c2004-09-19 23:53:36 +000022437 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022438 export_dynamic_flag_spec_F77=-rdynamic
22439 ;;
22440
22441 cygwin* | mingw* | pw32*)
22442 # When not using gcc, we currently assume that we are using
22443 # Microsoft Visual C++.
22444 # hardcode_libdir_flag_spec is actually meaningless, as there is
22445 # no search path for DLLs.
22446 hardcode_libdir_flag_spec_F77=' '
22447 allow_undefined_flag_F77=unsupported
22448 # Tell ltmain to make .lib files, not .a files.
22449 libext=lib
22450 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022451 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022452 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022453 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 +000022454 # The linker will automatically build a .lib file if we build a DLL.
22455 old_archive_From_new_cmds_F77='true'
22456 # FIXME: Should let the user specify the lib program.
22457 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022458 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022459 enable_shared_with_static_runtimes_F77=yes
22460 ;;
22461
22462 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022463 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022464 rhapsody* | darwin1.[012])
22465 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22466 ;;
22467 *) # Darwin 1.3 on
22468 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22469 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22470 else
22471 case ${MACOSX_DEPLOYMENT_TARGET} in
22472 10.[012])
22473 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22474 ;;
22475 10.*)
22476 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22477 ;;
22478 esac
22479 fi
22480 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022481 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022482 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022483 hardcode_direct_F77=no
22484 hardcode_automatic_F77=yes
22485 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022486 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022487 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022488 if test "$GCC" = yes ; then
22489 output_verbose_link_cmd='echo'
22490 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22491 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022492 # 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 +000022493 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}'
22494 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 +000022495 else
Reid Spencera773bd52006-08-04 18:18:08 +000022496 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022497 xlc*)
22498 output_verbose_link_cmd='echo'
22499 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22500 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022501 # 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 +000022502 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}'
22503 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 +000022504 ;;
22505 *)
22506 ld_shlibs_F77=no
22507 ;;
22508 esac
John Criswell47fdd832003-07-14 16:52:07 +000022509 fi
22510 ;;
22511
22512 dgux*)
22513 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22514 hardcode_libdir_flag_spec_F77='-L$libdir'
22515 hardcode_shlibpath_var_F77=no
22516 ;;
22517
22518 freebsd1*)
22519 ld_shlibs_F77=no
22520 ;;
22521
22522 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22523 # support. Future versions do this automatically, but an explicit c++rt0.o
22524 # does not break anything, and helps significantly (at the cost of a little
22525 # extra space).
22526 freebsd2.2*)
22527 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22528 hardcode_libdir_flag_spec_F77='-R$libdir'
22529 hardcode_direct_F77=yes
22530 hardcode_shlibpath_var_F77=no
22531 ;;
22532
22533 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22534 freebsd2*)
22535 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22536 hardcode_direct_F77=yes
22537 hardcode_minus_L_F77=yes
22538 hardcode_shlibpath_var_F77=no
22539 ;;
22540
22541 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022542 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022543 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22544 hardcode_libdir_flag_spec_F77='-R$libdir'
22545 hardcode_direct_F77=yes
22546 hardcode_shlibpath_var_F77=no
22547 ;;
22548
22549 hpux9*)
22550 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022551 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 +000022552 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022553 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 +000022554 fi
22555 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22556 hardcode_libdir_separator_F77=:
22557 hardcode_direct_F77=yes
22558
22559 # hardcode_minus_L: Not really in the search PATH,
22560 # but as the default location of the library.
22561 hardcode_minus_L_F77=yes
22562 export_dynamic_flag_spec_F77='${wl}-E'
22563 ;;
22564
Reid Spencera773bd52006-08-04 18:18:08 +000022565 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022566 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022567 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22568 else
22569 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22570 fi
22571 if test "$with_gnu_ld" = no; then
22572 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22573 hardcode_libdir_separator_F77=:
22574
22575 hardcode_direct_F77=yes
22576 export_dynamic_flag_spec_F77='${wl}-E'
22577
22578 # hardcode_minus_L: Not really in the search PATH,
22579 # but as the default location of the library.
22580 hardcode_minus_L_F77=yes
22581 fi
22582 ;;
22583
22584 hpux11*)
22585 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22586 case $host_cpu in
22587 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022588 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22589 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022590 ia64*)
22591 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22592 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022593 *)
22594 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22595 ;;
22596 esac
22597 else
Reid Spencera773bd52006-08-04 18:18:08 +000022598 case $host_cpu in
22599 hppa*64*)
22600 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22601 ;;
22602 ia64*)
22603 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022604 ;;
22605 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022606 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 +000022607 ;;
22608 esac
22609 fi
22610 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022611 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22612 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022613
Reid Spencera773bd52006-08-04 18:18:08 +000022614 case $host_cpu in
22615 hppa*64*|ia64*)
22616 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22617 hardcode_direct_F77=no
22618 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022619 ;;
22620 *)
John Criswell47fdd832003-07-14 16:52:07 +000022621 hardcode_direct_F77=yes
22622 export_dynamic_flag_spec_F77='${wl}-E'
22623
22624 # hardcode_minus_L: Not really in the search PATH,
22625 # but as the default location of the library.
22626 hardcode_minus_L_F77=yes
22627 ;;
22628 esac
22629 fi
22630 ;;
22631
22632 irix5* | irix6* | nonstopux*)
22633 if test "$GCC" = yes; then
22634 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'
22635 else
22636 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'
22637 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22638 fi
22639 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22640 hardcode_libdir_separator_F77=:
22641 link_all_deplibs_F77=yes
22642 ;;
22643
22644 netbsd*)
22645 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22646 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22647 else
22648 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22649 fi
22650 hardcode_libdir_flag_spec_F77='-R$libdir'
22651 hardcode_direct_F77=yes
22652 hardcode_shlibpath_var_F77=no
22653 ;;
22654
22655 newsos6)
22656 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22657 hardcode_direct_F77=yes
22658 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22659 hardcode_libdir_separator_F77=:
22660 hardcode_shlibpath_var_F77=no
22661 ;;
22662
22663 openbsd*)
22664 hardcode_direct_F77=yes
22665 hardcode_shlibpath_var_F77=no
22666 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22667 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022668 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 +000022669 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22670 export_dynamic_flag_spec_F77='${wl}-E'
22671 else
22672 case $host_os in
22673 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22674 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22675 hardcode_libdir_flag_spec_F77='-R$libdir'
22676 ;;
22677 *)
22678 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22679 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22680 ;;
22681 esac
22682 fi
22683 ;;
22684
22685 os2*)
22686 hardcode_libdir_flag_spec_F77='-L$libdir'
22687 hardcode_minus_L_F77=yes
22688 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022689 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 +000022690 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22691 ;;
22692
22693 osf3*)
22694 if test "$GCC" = yes; then
22695 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22696 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'
22697 else
22698 allow_undefined_flag_F77=' -expect_unresolved \*'
22699 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'
22700 fi
22701 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22702 hardcode_libdir_separator_F77=:
22703 ;;
22704
22705 osf4* | osf5*) # as osf3* with the addition of -msym flag
22706 if test "$GCC" = yes; then
22707 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22708 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'
22709 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22710 else
22711 allow_undefined_flag_F77=' -expect_unresolved \*'
22712 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 +000022713 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 +000022714 $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 +000022715
John Criswell47fdd832003-07-14 16:52:07 +000022716 # Both c and cxx compiler support -rpath directly
22717 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22718 fi
22719 hardcode_libdir_separator_F77=:
22720 ;;
22721
John Criswell47fdd832003-07-14 16:52:07 +000022722 solaris*)
22723 no_undefined_flag_F77=' -z text'
22724 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022725 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022726 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022727 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22728 $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 +000022729 else
Reid Spencera773bd52006-08-04 18:18:08 +000022730 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022731 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022732 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22733 $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 +000022734 fi
22735 hardcode_libdir_flag_spec_F77='-R$libdir'
22736 hardcode_shlibpath_var_F77=no
22737 case $host_os in
22738 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022739 *)
22740 # The compiler driver will combine linker options so we
22741 # cannot just pass the convience library names through
22742 # without $wl, iff we do not link with $LD.
22743 # Luckily, gcc supports the same syntax we need for Sun Studio.
22744 # Supported since Solaris 2.6 (maybe 2.5.1?)
22745 case $wlarc in
22746 '')
22747 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22748 *)
22749 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' ;;
22750 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022751 esac
22752 link_all_deplibs_F77=yes
22753 ;;
22754
22755 sunos4*)
22756 if test "x$host_vendor" = xsequent; then
22757 # Use $CC to link under sequent, because it throws in some extra .o
22758 # files that make .init and .fini sections work.
22759 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22760 else
22761 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22762 fi
22763 hardcode_libdir_flag_spec_F77='-L$libdir'
22764 hardcode_direct_F77=yes
22765 hardcode_minus_L_F77=yes
22766 hardcode_shlibpath_var_F77=no
22767 ;;
22768
22769 sysv4)
22770 case $host_vendor in
22771 sni)
22772 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22773 hardcode_direct_F77=yes # is this really true???
22774 ;;
22775 siemens)
22776 ## LD is ld it makes a PLAMLIB
22777 ## CC just makes a GrossModule.
22778 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22779 reload_cmds_F77='$CC -r -o $output$reload_objs'
22780 hardcode_direct_F77=no
22781 ;;
22782 motorola)
22783 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22784 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22785 ;;
22786 esac
22787 runpath_var='LD_RUN_PATH'
22788 hardcode_shlibpath_var_F77=no
22789 ;;
22790
22791 sysv4.3*)
22792 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22793 hardcode_shlibpath_var_F77=no
22794 export_dynamic_flag_spec_F77='-Bexport'
22795 ;;
22796
22797 sysv4*MP*)
22798 if test -d /usr/nec; then
22799 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22800 hardcode_shlibpath_var_F77=no
22801 runpath_var=LD_RUN_PATH
22802 hardcode_runpath_var=yes
22803 ld_shlibs_F77=yes
22804 fi
22805 ;;
22806
Reid Spencera773bd52006-08-04 18:18:08 +000022807 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22808 no_undefined_flag_F77='${wl}-z,text'
22809 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022810 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022811 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022812
John Criswell47fdd832003-07-14 16:52:07 +000022813 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022814 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22815 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 +000022816 else
Reid Spencera773bd52006-08-04 18:18:08 +000022817 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22818 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 +000022819 fi
John Criswell47fdd832003-07-14 16:52:07 +000022820 ;;
22821
Reid Spencera773bd52006-08-04 18:18:08 +000022822 sysv5* | sco3.2v5* | sco5v6*)
22823 # Note: We can NOT use -z defs as we might desire, because we do not
22824 # link with -lc, and that would cause any symbols used from libc to
22825 # always be unresolved, which means just about no library would
22826 # ever link correctly. If we're not using GNU ld we use -z text
22827 # though, which does catch some bad symbols but isn't as heavy-handed
22828 # as -z defs.
22829 no_undefined_flag_F77='${wl}-z,text'
22830 allow_undefined_flag_F77='${wl}-z,nodefs'
22831 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022832 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022833 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22834 hardcode_libdir_separator_F77=':'
22835 link_all_deplibs_F77=yes
22836 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022837 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022838
22839 if test "$GCC" = yes; then
22840 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22841 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22842 else
22843 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22844 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22845 fi
John Criswell47fdd832003-07-14 16:52:07 +000022846 ;;
22847
22848 uts4*)
22849 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22850 hardcode_libdir_flag_spec_F77='-L$libdir'
22851 hardcode_shlibpath_var_F77=no
22852 ;;
22853
22854 *)
22855 ld_shlibs_F77=no
22856 ;;
22857 esac
22858 fi
22859
Reid Spencera773bd52006-08-04 18:18:08 +000022860{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22861echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022862test "$ld_shlibs_F77" = no && can_build_shared=no
22863
John Criswell47fdd832003-07-14 16:52:07 +000022864#
22865# Do we need to explicitly link libc?
22866#
22867case "x$archive_cmds_need_lc_F77" in
22868x|xyes)
22869 # Assume -lc should be added
22870 archive_cmds_need_lc_F77=yes
22871
22872 if test "$enable_shared" = yes && test "$GCC" = yes; then
22873 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022874 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022875 # FIXME: we may have to deal with multi-command sequences.
22876 ;;
22877 '$CC '*)
22878 # Test whether the compiler implicitly links with -lc since on some
22879 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22880 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022881 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22882echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022883 $rm conftest*
22884 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22885
22886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22887 (eval $ac_compile) 2>&5
22888 ac_status=$?
22889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890 (exit $ac_status); } 2>conftest.err; then
22891 soname=conftest
22892 lib=conftest
22893 libobjs=conftest.$ac_objext
22894 deplibs=
22895 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022896 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022897 compiler_flags=-v
22898 linker_flags=-v
22899 verstring=
22900 output_objdir=.
22901 libname=conftest
22902 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22903 allow_undefined_flag_F77=
22904 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22905 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22906 ac_status=$?
22907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908 (exit $ac_status); }
22909 then
22910 archive_cmds_need_lc_F77=no
22911 else
22912 archive_cmds_need_lc_F77=yes
22913 fi
22914 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22915 else
22916 cat conftest.err 1>&5
22917 fi
22918 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022919 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22920echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022921 ;;
22922 esac
22923 fi
22924 ;;
22925esac
22926
Reid Spencera773bd52006-08-04 18:18:08 +000022927{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22928echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022929library_names_spec=
22930libname_spec='lib$name'
22931soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022932shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022933postinstall_cmds=
22934postuninstall_cmds=
22935finish_cmds=
22936finish_eval=
22937shlibpath_var=
22938shlibpath_overrides_runpath=unknown
22939version_type=none
22940dynamic_linker="$host_os ld.so"
22941sys_lib_dlsearch_path_spec="/lib /usr/lib"
22942if test "$GCC" = yes; then
22943 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22944 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22945 # if the path contains ";" then we assume it to be the separator
22946 # otherwise default to the standard path separator (i.e. ":") - it is
22947 # assumed that no part of a normal pathname contains ";" but that should
22948 # okay in the real world where ";" in dirpaths is itself problematic.
22949 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22950 else
22951 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22952 fi
22953else
22954 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22955fi
22956need_lib_prefix=unknown
22957hardcode_into_libs=no
22958
22959# when you set need_version to no, make sure it does not cause -set_version
22960# flags to be left without arguments
22961need_version=unknown
22962
22963case $host_os in
22964aix3*)
22965 version_type=linux
22966 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22967 shlibpath_var=LIBPATH
22968
22969 # AIX 3 has no versioning support, so we append a major version to the name.
22970 soname_spec='${libname}${release}${shared_ext}$major'
22971 ;;
22972
22973aix4* | aix5*)
22974 version_type=linux
22975 need_lib_prefix=no
22976 need_version=no
22977 hardcode_into_libs=yes
22978 if test "$host_cpu" = ia64; then
22979 # AIX 5 supports IA64
22980 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22981 shlibpath_var=LD_LIBRARY_PATH
22982 else
22983 # With GCC up to 2.95.x, collect2 would create an import file
22984 # for dependence libraries. The import file would start with
22985 # the line `#! .'. This would cause the generated library to
22986 # depend on `.', always an invalid library. This was fixed in
22987 # development snapshots of GCC prior to 3.0.
22988 case $host_os in
22989 aix4 | aix4.[01] | aix4.[01].*)
22990 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22991 echo ' yes '
22992 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22993 :
22994 else
22995 can_build_shared=no
22996 fi
22997 ;;
22998 esac
22999 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23000 # soname into executable. Probably we can add versioning support to
23001 # collect2, so additional links can be useful in future.
23002 if test "$aix_use_runtimelinking" = yes; then
23003 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23004 # instead of lib<name>.a to let people know that these are not
23005 # typical AIX shared libraries.
23006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23007 else
23008 # We preserve .a as extension for shared libraries through AIX4.2
23009 # and later when we are not doing run time linking.
23010 library_names_spec='${libname}${release}.a $libname.a'
23011 soname_spec='${libname}${release}${shared_ext}$major'
23012 fi
23013 shlibpath_var=LIBPATH
23014 fi
23015 ;;
23016
23017amigaos*)
23018 library_names_spec='$libname.ixlibrary $libname.a'
23019 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023020 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 +000023021 ;;
23022
23023beos*)
23024 library_names_spec='${libname}${shared_ext}'
23025 dynamic_linker="$host_os ld.so"
23026 shlibpath_var=LIBRARY_PATH
23027 ;;
23028
Reid Spencer2706f8c2004-09-19 23:53:36 +000023029bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000023030 version_type=linux
23031 need_version=no
23032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23033 soname_spec='${libname}${release}${shared_ext}$major'
23034 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23035 shlibpath_var=LD_LIBRARY_PATH
23036 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23037 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23038 # the default ld.so.conf also contains /usr/contrib/lib and
23039 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23040 # libtool to hard-code these into programs
23041 ;;
23042
23043cygwin* | mingw* | pw32*)
23044 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000023045 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023046 need_version=no
23047 need_lib_prefix=no
23048
23049 case $GCC,$host_os in
23050 yes,cygwin* | yes,mingw* | yes,pw32*)
23051 library_names_spec='$libname.dll.a'
23052 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000023053 postinstall_cmds='base_file=`basename \${file}`~
23054 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23055 dldir=$destdir/`dirname \$dlpath`~
23056 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000023057 $install_prog $dir/$dlname \$dldir/$dlname~
23058 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000023059 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23060 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000023061 $rm \$dlpath'
23062 shlibpath_overrides_runpath=yes
23063
23064 case $host_os in
23065 cygwin*)
23066 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23067 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 +000023068 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023069 ;;
23070 mingw*)
23071 # MinGW DLLs use traditional 'lib' prefix
23072 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23073 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23074 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23075 # It is most probably a Windows format PATH printed by
23076 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23077 # path with ; separators, and with drive letters. We can handle the
23078 # drive letters (cygwin fileutils understands them), so leave them,
23079 # especially as we might pass files found there to a mingw objdump,
23080 # which wouldn't understand a cygwinified path. Ahh.
23081 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23082 else
23083 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23084 fi
23085 ;;
23086 pw32*)
23087 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000023088 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 +000023089 ;;
23090 esac
23091 ;;
23092
23093 *)
23094 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23095 ;;
23096 esac
23097 dynamic_linker='Win32 ld.exe'
23098 # FIXME: first we should search . and the directory the executable is in
23099 shlibpath_var=PATH
23100 ;;
23101
23102darwin* | rhapsody*)
23103 dynamic_linker="$host_os dyld"
23104 version_type=darwin
23105 need_lib_prefix=no
23106 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000023107 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000023108 soname_spec='${libname}${release}${major}$shared_ext'
23109 shlibpath_overrides_runpath=yes
23110 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000023111 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000023112 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023113 if test "$GCC" = yes; then
23114 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"`
23115 else
23116 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000023117 fi
23118 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23119 ;;
23120
23121dgux*)
23122 version_type=linux
23123 need_lib_prefix=no
23124 need_version=no
23125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23126 soname_spec='${libname}${release}${shared_ext}$major'
23127 shlibpath_var=LD_LIBRARY_PATH
23128 ;;
23129
23130freebsd1*)
23131 dynamic_linker=no
23132 ;;
23133
Reid Spencer2706f8c2004-09-19 23:53:36 +000023134kfreebsd*-gnu)
23135 version_type=linux
23136 need_lib_prefix=no
23137 need_version=no
23138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23139 soname_spec='${libname}${release}${shared_ext}$major'
23140 shlibpath_var=LD_LIBRARY_PATH
23141 shlibpath_overrides_runpath=no
23142 hardcode_into_libs=yes
23143 dynamic_linker='GNU ld.so'
23144 ;;
23145
Reid Spencera773bd52006-08-04 18:18:08 +000023146freebsd* | dragonfly*)
23147 # DragonFly does not have aout. When/if they implement a new
23148 # versioning mechanism, adjust this.
23149 if test -x /usr/bin/objformat; then
23150 objformat=`/usr/bin/objformat`
23151 else
23152 case $host_os in
23153 freebsd[123]*) objformat=aout ;;
23154 *) objformat=elf ;;
23155 esac
23156 fi
John Criswell47fdd832003-07-14 16:52:07 +000023157 version_type=freebsd-$objformat
23158 case $version_type in
23159 freebsd-elf*)
23160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23161 need_version=no
23162 need_lib_prefix=no
23163 ;;
23164 freebsd-*)
23165 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23166 need_version=yes
23167 ;;
23168 esac
23169 shlibpath_var=LD_LIBRARY_PATH
23170 case $host_os in
23171 freebsd2*)
23172 shlibpath_overrides_runpath=yes
23173 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023174 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000023175 shlibpath_overrides_runpath=yes
23176 hardcode_into_libs=yes
23177 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023178 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23179 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000023180 shlibpath_overrides_runpath=no
23181 hardcode_into_libs=yes
23182 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023183 freebsd*) # from 4.6 on
23184 shlibpath_overrides_runpath=yes
23185 hardcode_into_libs=yes
23186 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023187 esac
23188 ;;
23189
23190gnu*)
23191 version_type=linux
23192 need_lib_prefix=no
23193 need_version=no
23194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23195 soname_spec='${libname}${release}${shared_ext}$major'
23196 shlibpath_var=LD_LIBRARY_PATH
23197 hardcode_into_libs=yes
23198 ;;
23199
23200hpux9* | hpux10* | hpux11*)
23201 # Give a soname corresponding to the major version so that dld.sl refuses to
23202 # link against other versions.
23203 version_type=sunos
23204 need_lib_prefix=no
23205 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000023206 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023207 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023208 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000023209 hardcode_into_libs=yes
23210 dynamic_linker="$host_os dld.so"
23211 shlibpath_var=LD_LIBRARY_PATH
23212 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23214 soname_spec='${libname}${release}${shared_ext}$major'
23215 if test "X$HPUX_IA64_MODE" = X32; then
23216 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23217 else
23218 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23219 fi
23220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23221 ;;
23222 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023223 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023224 hardcode_into_libs=yes
23225 dynamic_linker="$host_os dld.sl"
23226 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23227 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23229 soname_spec='${libname}${release}${shared_ext}$major'
23230 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23231 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23232 ;;
23233 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023234 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023235 dynamic_linker="$host_os dld.sl"
23236 shlibpath_var=SHLIB_PATH
23237 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23239 soname_spec='${libname}${release}${shared_ext}$major'
23240 ;;
23241 esac
23242 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23243 postinstall_cmds='chmod 555 $lib'
23244 ;;
23245
Reid Spencera773bd52006-08-04 18:18:08 +000023246interix3*)
23247 version_type=linux
23248 need_lib_prefix=no
23249 need_version=no
23250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23251 soname_spec='${libname}${release}${shared_ext}$major'
23252 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23253 shlibpath_var=LD_LIBRARY_PATH
23254 shlibpath_overrides_runpath=no
23255 hardcode_into_libs=yes
23256 ;;
23257
John Criswell47fdd832003-07-14 16:52:07 +000023258irix5* | irix6* | nonstopux*)
23259 case $host_os in
23260 nonstopux*) version_type=nonstopux ;;
23261 *)
23262 if test "$lt_cv_prog_gnu_ld" = yes; then
23263 version_type=linux
23264 else
23265 version_type=irix
23266 fi ;;
23267 esac
23268 need_lib_prefix=no
23269 need_version=no
23270 soname_spec='${libname}${release}${shared_ext}$major'
23271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23272 case $host_os in
23273 irix5* | nonstopux*)
23274 libsuff= shlibsuff=
23275 ;;
23276 *)
23277 case $LD in # libtool.m4 will add one of these switches to LD
23278 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23279 libsuff= shlibsuff= libmagic=32-bit;;
23280 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23281 libsuff=32 shlibsuff=N32 libmagic=N32;;
23282 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23283 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23284 *) libsuff= shlibsuff= libmagic=never-match;;
23285 esac
23286 ;;
23287 esac
23288 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23289 shlibpath_overrides_runpath=no
23290 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23291 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23292 hardcode_into_libs=yes
23293 ;;
23294
23295# No shared lib support for Linux oldld, aout, or coff.
23296linux*oldld* | linux*aout* | linux*coff*)
23297 dynamic_linker=no
23298 ;;
23299
23300# This must be Linux ELF.
23301linux*)
23302 version_type=linux
23303 need_lib_prefix=no
23304 need_version=no
23305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23306 soname_spec='${libname}${release}${shared_ext}$major'
23307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23308 shlibpath_var=LD_LIBRARY_PATH
23309 shlibpath_overrides_runpath=no
23310 # This implies no fast_install, which is unacceptable.
23311 # Some rework will be needed to allow for fast_install
23312 # before this can be enabled.
23313 hardcode_into_libs=yes
23314
Reid Spencer2706f8c2004-09-19 23:53:36 +000023315 # Append ld.so.conf contents to the search path
23316 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000023317 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 +000023318 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23319 fi
23320
John Criswell47fdd832003-07-14 16:52:07 +000023321 # We used to test for /lib/ld.so.1 and disable shared libraries on
23322 # powerpc, because MkLinux only supported shared libraries with the
23323 # GNU dynamic linker. Since this was broken with cross compilers,
23324 # most powerpc-linux boxes support dynamic linking these days and
23325 # people can always --disable-shared, the test was removed, and we
23326 # assume the GNU/Linux dynamic linker is in use.
23327 dynamic_linker='GNU/Linux ld.so'
23328 ;;
23329
Reid Spencer2706f8c2004-09-19 23:53:36 +000023330knetbsd*-gnu)
23331 version_type=linux
23332 need_lib_prefix=no
23333 need_version=no
23334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23335 soname_spec='${libname}${release}${shared_ext}$major'
23336 shlibpath_var=LD_LIBRARY_PATH
23337 shlibpath_overrides_runpath=no
23338 hardcode_into_libs=yes
23339 dynamic_linker='GNU ld.so'
23340 ;;
23341
John Criswell47fdd832003-07-14 16:52:07 +000023342netbsd*)
23343 version_type=sunos
23344 need_lib_prefix=no
23345 need_version=no
23346 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23348 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23349 dynamic_linker='NetBSD (a.out) ld.so'
23350 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023352 soname_spec='${libname}${release}${shared_ext}$major'
23353 dynamic_linker='NetBSD ld.elf_so'
23354 fi
23355 shlibpath_var=LD_LIBRARY_PATH
23356 shlibpath_overrides_runpath=yes
23357 hardcode_into_libs=yes
23358 ;;
23359
23360newsos6)
23361 version_type=linux
23362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23363 shlibpath_var=LD_LIBRARY_PATH
23364 shlibpath_overrides_runpath=yes
23365 ;;
23366
Reid Spencer2706f8c2004-09-19 23:53:36 +000023367nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023368 version_type=linux
23369 need_lib_prefix=no
23370 need_version=no
23371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23372 soname_spec='${libname}${release}${shared_ext}$major'
23373 shlibpath_var=LD_LIBRARY_PATH
23374 shlibpath_overrides_runpath=yes
23375 ;;
23376
23377openbsd*)
23378 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023379 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023380 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023381 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23382 case $host_os in
23383 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23384 *) need_version=no ;;
23385 esac
John Criswell47fdd832003-07-14 16:52:07 +000023386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23387 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23388 shlibpath_var=LD_LIBRARY_PATH
23389 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23390 case $host_os in
23391 openbsd2.[89] | openbsd2.[89].*)
23392 shlibpath_overrides_runpath=no
23393 ;;
23394 *)
23395 shlibpath_overrides_runpath=yes
23396 ;;
23397 esac
23398 else
23399 shlibpath_overrides_runpath=yes
23400 fi
23401 ;;
23402
23403os2*)
23404 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023405 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023406 need_lib_prefix=no
23407 library_names_spec='$libname${shared_ext} $libname.a'
23408 dynamic_linker='OS/2 ld.exe'
23409 shlibpath_var=LIBPATH
23410 ;;
23411
23412osf3* | osf4* | osf5*)
23413 version_type=osf
23414 need_lib_prefix=no
23415 need_version=no
23416 soname_spec='${libname}${release}${shared_ext}$major'
23417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23418 shlibpath_var=LD_LIBRARY_PATH
23419 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23420 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23421 ;;
23422
John Criswell47fdd832003-07-14 16:52:07 +000023423solaris*)
23424 version_type=linux
23425 need_lib_prefix=no
23426 need_version=no
23427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23428 soname_spec='${libname}${release}${shared_ext}$major'
23429 shlibpath_var=LD_LIBRARY_PATH
23430 shlibpath_overrides_runpath=yes
23431 hardcode_into_libs=yes
23432 # ldd complains unless libraries are executable
23433 postinstall_cmds='chmod +x $lib'
23434 ;;
23435
23436sunos4*)
23437 version_type=sunos
23438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23439 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23440 shlibpath_var=LD_LIBRARY_PATH
23441 shlibpath_overrides_runpath=yes
23442 if test "$with_gnu_ld" = yes; then
23443 need_lib_prefix=no
23444 fi
23445 need_version=yes
23446 ;;
23447
Reid Spencera773bd52006-08-04 18:18:08 +000023448sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023449 version_type=linux
23450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23451 soname_spec='${libname}${release}${shared_ext}$major'
23452 shlibpath_var=LD_LIBRARY_PATH
23453 case $host_vendor in
23454 sni)
23455 shlibpath_overrides_runpath=no
23456 need_lib_prefix=no
23457 export_dynamic_flag_spec='${wl}-Blargedynsym'
23458 runpath_var=LD_RUN_PATH
23459 ;;
23460 siemens)
23461 need_lib_prefix=no
23462 ;;
23463 motorola)
23464 need_lib_prefix=no
23465 need_version=no
23466 shlibpath_overrides_runpath=no
23467 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23468 ;;
23469 esac
23470 ;;
23471
23472sysv4*MP*)
23473 if test -d /usr/nec ;then
23474 version_type=linux
23475 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23476 soname_spec='$libname${shared_ext}.$major'
23477 shlibpath_var=LD_LIBRARY_PATH
23478 fi
23479 ;;
23480
Reid Spencera773bd52006-08-04 18:18:08 +000023481sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23482 version_type=freebsd-elf
23483 need_lib_prefix=no
23484 need_version=no
23485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23486 soname_spec='${libname}${release}${shared_ext}$major'
23487 shlibpath_var=LD_LIBRARY_PATH
23488 hardcode_into_libs=yes
23489 if test "$with_gnu_ld" = yes; then
23490 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23491 shlibpath_overrides_runpath=no
23492 else
23493 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23494 shlibpath_overrides_runpath=yes
23495 case $host_os in
23496 sco3.2v5*)
23497 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23498 ;;
23499 esac
23500 fi
23501 sys_lib_dlsearch_path_spec='/usr/lib'
23502 ;;
23503
John Criswell47fdd832003-07-14 16:52:07 +000023504uts4*)
23505 version_type=linux
23506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23507 soname_spec='${libname}${release}${shared_ext}$major'
23508 shlibpath_var=LD_LIBRARY_PATH
23509 ;;
23510
23511*)
23512 dynamic_linker=no
23513 ;;
23514esac
Reid Spencera773bd52006-08-04 18:18:08 +000023515{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23516echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023517test "$dynamic_linker" = no && can_build_shared=no
23518
Reid Spencera773bd52006-08-04 18:18:08 +000023519variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23520if test "$GCC" = yes; then
23521 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23522fi
23523
23524{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23525echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023526hardcode_action_F77=
23527if test -n "$hardcode_libdir_flag_spec_F77" || \
23528 test -n "$runpath_var_F77" || \
23529 test "X$hardcode_automatic_F77" = "Xyes" ; then
23530
23531 # We can hardcode non-existant directories.
23532 if test "$hardcode_direct_F77" != no &&
23533 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23534 # have to relink, otherwise we might link with an installed library
23535 # when we should be linking with a yet-to-be-installed one
23536 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23537 test "$hardcode_minus_L_F77" != no; then
23538 # Linking always hardcodes the temporary library directory.
23539 hardcode_action_F77=relink
23540 else
23541 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23542 hardcode_action_F77=immediate
23543 fi
23544else
23545 # We cannot hardcode anything, or else we can only hardcode existing
23546 # directories.
23547 hardcode_action_F77=unsupported
23548fi
Reid Spencera773bd52006-08-04 18:18:08 +000023549{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23550echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023551
23552if test "$hardcode_action_F77" = relink; then
23553 # Fast installation is not supported
23554 enable_fast_install=no
23555elif test "$shlibpath_overrides_runpath" = yes ||
23556 test "$enable_shared" = no; then
23557 # Fast installation is not necessary
23558 enable_fast_install=needless
23559fi
23560
John Criswell47fdd832003-07-14 16:52:07 +000023561
23562# The else clause should only fire when bootstrapping the
23563# libtool distribution, otherwise you forgot to ship ltmain.sh
23564# with your package, and you will get complaints that there are
23565# no rules to generate ltmain.sh.
23566if test -f "$ltmain"; then
23567 # See if we are running on zsh, and set the options which allow our commands through
23568 # without removal of \ escapes.
23569 if test -n "${ZSH_VERSION+set}" ; then
23570 setopt NO_GLOB_SUBST
23571 fi
23572 # Now quote all the things that may contain metacharacters while being
23573 # careful not to overquote the AC_SUBSTed values. We take copies of the
23574 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023575 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 +000023576 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023577 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23578 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23579 deplibs_check_method reload_flag reload_cmds need_locks \
23580 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23581 lt_cv_sys_global_symbol_to_c_name_address \
23582 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23583 old_postinstall_cmds old_postuninstall_cmds \
23584 compiler_F77 \
23585 CC_F77 \
23586 LD_F77 \
23587 lt_prog_compiler_wl_F77 \
23588 lt_prog_compiler_pic_F77 \
23589 lt_prog_compiler_static_F77 \
23590 lt_prog_compiler_no_builtin_flag_F77 \
23591 export_dynamic_flag_spec_F77 \
23592 thread_safe_flag_spec_F77 \
23593 whole_archive_flag_spec_F77 \
23594 enable_shared_with_static_runtimes_F77 \
23595 old_archive_cmds_F77 \
23596 old_archive_from_new_cmds_F77 \
23597 predep_objects_F77 \
23598 postdep_objects_F77 \
23599 predeps_F77 \
23600 postdeps_F77 \
23601 compiler_lib_search_path_F77 \
23602 archive_cmds_F77 \
23603 archive_expsym_cmds_F77 \
23604 postinstall_cmds_F77 \
23605 postuninstall_cmds_F77 \
23606 old_archive_from_expsyms_cmds_F77 \
23607 allow_undefined_flag_F77 \
23608 no_undefined_flag_F77 \
23609 export_symbols_cmds_F77 \
23610 hardcode_libdir_flag_spec_F77 \
23611 hardcode_libdir_flag_spec_ld_F77 \
23612 hardcode_libdir_separator_F77 \
23613 hardcode_automatic_F77 \
23614 module_cmds_F77 \
23615 module_expsym_cmds_F77 \
23616 lt_cv_prog_compiler_c_o_F77 \
23617 exclude_expsyms_F77 \
23618 include_expsyms_F77; do
23619
23620 case $var in
23621 old_archive_cmds_F77 | \
23622 old_archive_from_new_cmds_F77 | \
23623 archive_cmds_F77 | \
23624 archive_expsym_cmds_F77 | \
23625 module_cmds_F77 | \
23626 module_expsym_cmds_F77 | \
23627 old_archive_from_expsyms_cmds_F77 | \
23628 export_symbols_cmds_F77 | \
23629 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23630 postinstall_cmds | postuninstall_cmds | \
23631 old_postinstall_cmds | old_postuninstall_cmds | \
23632 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23633 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023634 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 +000023635 ;;
23636 *)
23637 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23638 ;;
23639 esac
23640 done
23641
23642 case $lt_echo in
23643 *'\$0 --fallback-echo"')
23644 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23645 ;;
23646 esac
23647
23648cfgfile="$ofile"
23649
23650 cat <<__EOF__ >> "$cfgfile"
23651# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23652
23653# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23654
23655# Shell to use when invoking shell scripts.
23656SHELL=$lt_SHELL
23657
23658# Whether or not to build shared libraries.
23659build_libtool_libs=$enable_shared
23660
23661# Whether or not to build static libraries.
23662build_old_libs=$enable_static
23663
23664# Whether or not to add -lc for building shared libraries.
23665build_libtool_need_lc=$archive_cmds_need_lc_F77
23666
23667# Whether or not to disallow shared libs when runtime libs are static
23668allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23669
23670# Whether or not to optimize for fast installation.
23671fast_install=$enable_fast_install
23672
23673# The host system.
23674host_alias=$host_alias
23675host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023676host_os=$host_os
23677
23678# The build system.
23679build_alias=$build_alias
23680build=$build
23681build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023682
23683# An echo program that does not interpret backslashes.
23684echo=$lt_echo
23685
23686# The archiver.
23687AR=$lt_AR
23688AR_FLAGS=$lt_AR_FLAGS
23689
23690# A C compiler.
23691LTCC=$lt_LTCC
23692
Reid Spencera773bd52006-08-04 18:18:08 +000023693# LTCC compiler flags.
23694LTCFLAGS=$lt_LTCFLAGS
23695
John Criswell47fdd832003-07-14 16:52:07 +000023696# A language-specific compiler.
23697CC=$lt_compiler_F77
23698
23699# Is the compiler the GNU C compiler?
23700with_gcc=$GCC_F77
23701
23702# An ERE matcher.
23703EGREP=$lt_EGREP
23704
23705# The linker used to build libraries.
23706LD=$lt_LD_F77
23707
23708# Whether we need hard or soft links.
23709LN_S=$lt_LN_S
23710
23711# A BSD-compatible nm program.
23712NM=$lt_NM
23713
23714# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023715STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023716
23717# Used to examine libraries when file_magic_cmd begins "file"
23718MAGIC_CMD=$MAGIC_CMD
23719
23720# Used on cygwin: DLL creation program.
23721DLLTOOL="$DLLTOOL"
23722
23723# Used on cygwin: object dumper.
23724OBJDUMP="$OBJDUMP"
23725
23726# Used on cygwin: assembler.
23727AS="$AS"
23728
23729# The name of the directory that contains temporary libtool files.
23730objdir=$objdir
23731
23732# How to create reloadable object files.
23733reload_flag=$lt_reload_flag
23734reload_cmds=$lt_reload_cmds
23735
23736# How to pass a linker flag through the compiler.
23737wl=$lt_lt_prog_compiler_wl_F77
23738
23739# Object file suffix (normally "o").
23740objext="$ac_objext"
23741
23742# Old archive suffix (normally "a").
23743libext="$libext"
23744
23745# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023746shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023747
23748# Executable file suffix (normally "").
23749exeext="$exeext"
23750
23751# Additional compiler flags for building library objects.
23752pic_flag=$lt_lt_prog_compiler_pic_F77
23753pic_mode=$pic_mode
23754
23755# What is the maximum length of a command?
23756max_cmd_len=$lt_cv_sys_max_cmd_len
23757
23758# Does compiler simultaneously support -c and -o options?
23759compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23760
Reid Spencera773bd52006-08-04 18:18:08 +000023761# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023762need_locks=$lt_need_locks
23763
23764# Do we need the lib prefix for modules?
23765need_lib_prefix=$need_lib_prefix
23766
23767# Do we need a version for libraries?
23768need_version=$need_version
23769
23770# Whether dlopen is supported.
23771dlopen_support=$enable_dlopen
23772
23773# Whether dlopen of programs is supported.
23774dlopen_self=$enable_dlopen_self
23775
23776# Whether dlopen of statically linked programs is supported.
23777dlopen_self_static=$enable_dlopen_self_static
23778
23779# Compiler flag to prevent dynamic linking.
23780link_static_flag=$lt_lt_prog_compiler_static_F77
23781
23782# Compiler flag to turn off builtin functions.
23783no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23784
23785# Compiler flag to allow reflexive dlopens.
23786export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23787
23788# Compiler flag to generate shared objects directly from archives.
23789whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23790
23791# Compiler flag to generate thread-safe objects.
23792thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23793
23794# Library versioning type.
23795version_type=$version_type
23796
23797# Format of library name prefix.
23798libname_spec=$lt_libname_spec
23799
23800# List of archive names. First name is the real one, the rest are links.
23801# The last name is the one that the linker finds with -lNAME.
23802library_names_spec=$lt_library_names_spec
23803
23804# The coded name of the library, if different from the real name.
23805soname_spec=$lt_soname_spec
23806
23807# Commands used to build and install an old-style archive.
23808RANLIB=$lt_RANLIB
23809old_archive_cmds=$lt_old_archive_cmds_F77
23810old_postinstall_cmds=$lt_old_postinstall_cmds
23811old_postuninstall_cmds=$lt_old_postuninstall_cmds
23812
23813# Create an old-style archive from a shared archive.
23814old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23815
23816# Create a temporary old-style archive to link instead of a shared archive.
23817old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23818
23819# Commands used to build and install a shared archive.
23820archive_cmds=$lt_archive_cmds_F77
23821archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23822postinstall_cmds=$lt_postinstall_cmds
23823postuninstall_cmds=$lt_postuninstall_cmds
23824
23825# Commands used to build a loadable module (assumed same as above if empty)
23826module_cmds=$lt_module_cmds_F77
23827module_expsym_cmds=$lt_module_expsym_cmds_F77
23828
23829# Commands to strip libraries.
23830old_striplib=$lt_old_striplib
23831striplib=$lt_striplib
23832
23833# Dependencies to place before the objects being linked to create a
23834# shared library.
23835predep_objects=$lt_predep_objects_F77
23836
23837# Dependencies to place after the objects being linked to create a
23838# shared library.
23839postdep_objects=$lt_postdep_objects_F77
23840
23841# Dependencies to place before the objects being linked to create a
23842# shared library.
23843predeps=$lt_predeps_F77
23844
23845# Dependencies to place after the objects being linked to create a
23846# shared library.
23847postdeps=$lt_postdeps_F77
23848
23849# The library search path used internally by the compiler when linking
23850# a shared library.
23851compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23852
23853# Method to check whether dependent libraries are shared objects.
23854deplibs_check_method=$lt_deplibs_check_method
23855
23856# Command to use when deplibs_check_method == file_magic.
23857file_magic_cmd=$lt_file_magic_cmd
23858
23859# Flag that allows shared libraries with undefined symbols to be built.
23860allow_undefined_flag=$lt_allow_undefined_flag_F77
23861
23862# Flag that forces no undefined symbols.
23863no_undefined_flag=$lt_no_undefined_flag_F77
23864
23865# Commands used to finish a libtool library installation in a directory.
23866finish_cmds=$lt_finish_cmds
23867
23868# Same as above, but a single script fragment to be evaled but not shown.
23869finish_eval=$lt_finish_eval
23870
23871# Take the output of nm and produce a listing of raw symbols and C names.
23872global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23873
23874# Transform the output of nm in a proper C declaration
23875global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23876
23877# Transform the output of nm in a C name address pair
23878global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23879
23880# This is the shared library runtime path variable.
23881runpath_var=$runpath_var
23882
23883# This is the shared library path variable.
23884shlibpath_var=$shlibpath_var
23885
23886# Is shlibpath searched before the hard-coded library search path?
23887shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23888
23889# How to hardcode a shared library path into an executable.
23890hardcode_action=$hardcode_action_F77
23891
23892# Whether we should hardcode library paths into libraries.
23893hardcode_into_libs=$hardcode_into_libs
23894
23895# Flag to hardcode \$libdir into a binary during linking.
23896# This must work even if \$libdir does not exist.
23897hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23898
23899# If ld is used when linking, flag to hardcode \$libdir into
23900# a binary during linking. This must work even if \$libdir does
23901# not exist.
23902hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23903
23904# Whether we need a single -rpath flag with a separated argument.
23905hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23906
23907# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23908# resulting binary.
23909hardcode_direct=$hardcode_direct_F77
23910
23911# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23912# resulting binary.
23913hardcode_minus_L=$hardcode_minus_L_F77
23914
23915# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23916# the resulting binary.
23917hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23918
23919# Set to yes if building a shared library automatically hardcodes DIR into the library
23920# and all subsequent libraries and executables linked against it.
23921hardcode_automatic=$hardcode_automatic_F77
23922
23923# Variables whose values should be saved in libtool wrapper scripts and
23924# restored at relink time.
23925variables_saved_for_relink="$variables_saved_for_relink"
23926
23927# Whether libtool must link a program against all its dependency libraries.
23928link_all_deplibs=$link_all_deplibs_F77
23929
23930# Compile-time system search path for libraries
23931sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23932
23933# Run-time system search path for libraries
23934sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23935
23936# Fix the shell variable \$srcfile for the compiler.
23937fix_srcfile_path="$fix_srcfile_path_F77"
23938
23939# Set to yes if exported symbols are required.
23940always_export_symbols=$always_export_symbols_F77
23941
23942# The commands to list exported symbols.
23943export_symbols_cmds=$lt_export_symbols_cmds_F77
23944
23945# The commands to extract the exported symbol list from a shared archive.
23946extract_expsyms_cmds=$lt_extract_expsyms_cmds
23947
23948# Symbols that should not be listed in the preloaded symbols.
23949exclude_expsyms=$lt_exclude_expsyms_F77
23950
23951# Symbols that must always be exported.
23952include_expsyms=$lt_include_expsyms_F77
23953
23954# ### END LIBTOOL TAG CONFIG: $tagname
23955
23956__EOF__
23957
23958
23959else
23960 # If there is no Makefile yet, we rely on a make rule to execute
23961 # `config.status --recheck' to rerun these tests and create the
23962 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023963 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23964 if test -f "$ltmain_in"; then
23965 test -f Makefile && make "$ltmain"
23966 fi
John Criswell47fdd832003-07-14 16:52:07 +000023967fi
23968
23969
23970ac_ext=c
23971ac_cpp='$CPP $CPPFLAGS'
23972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23974ac_compiler_gnu=$ac_cv_c_compiler_gnu
23975
23976CC="$lt_save_CC"
23977
23978 else
23979 tagname=""
23980 fi
23981 ;;
23982
23983 GCJ)
23984 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023985 ac_ext=c
23986ac_cpp='$CPP $CPPFLAGS'
23987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23989ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023990
23991
23992# Source file extension for Java test sources.
23993ac_ext=java
23994
23995# Object file extension for compiled Java test sources.
23996objext=o
23997objext_GCJ=$objext
23998
23999# Code to be used in simple compile tests
24000lt_simple_compile_test_code="class foo {}\n"
24001
24002# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000024003lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000024004
24005# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24006
24007# If no C compiler was specified, use CC.
24008LTCC=${LTCC-"$CC"}
24009
Reid Spencera773bd52006-08-04 18:18:08 +000024010# If no C compiler flags were specified, use CFLAGS.
24011LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24012
John Criswell47fdd832003-07-14 16:52:07 +000024013# Allow CC to be a program name with arguments.
24014compiler=$CC
24015
24016
Reid Spencera773bd52006-08-04 18:18:08 +000024017# save warnings/boilerplate of simple test code
24018ac_outfile=conftest.$ac_objext
24019printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24020eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24021_lt_compiler_boilerplate=`cat conftest.err`
24022$rm conftest*
24023
24024ac_outfile=conftest.$ac_objext
24025printf "$lt_simple_link_test_code" >conftest.$ac_ext
24026eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24027_lt_linker_boilerplate=`cat conftest.err`
24028$rm conftest*
24029
24030
John Criswell47fdd832003-07-14 16:52:07 +000024031# Allow CC to be a program name with arguments.
24032lt_save_CC="$CC"
24033CC=${GCJ-"gcj"}
24034compiler=$CC
24035compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000024036for cc_temp in $compiler""; do
24037 case $cc_temp in
24038 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24039 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24040 \-*) ;;
24041 *) break;;
24042 esac
24043done
24044cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24045
John Criswell47fdd832003-07-14 16:52:07 +000024046
24047# GCJ did not exist at the time GCC didn't implicitly link libc in.
24048archive_cmds_need_lc_GCJ=no
24049
Reid Spencera773bd52006-08-04 18:18:08 +000024050old_archive_cmds_GCJ=$old_archive_cmds
24051
John Criswell47fdd832003-07-14 16:52:07 +000024052
24053lt_prog_compiler_no_builtin_flag_GCJ=
24054
24055if test "$GCC" = yes; then
24056 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24057
Reid Spencer2706f8c2004-09-19 23:53:36 +000024058
Reid Spencera773bd52006-08-04 18:18:08 +000024059{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24060echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024061if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24062 echo $ECHO_N "(cached) $ECHO_C" >&6
24063else
24064 lt_cv_prog_compiler_rtti_exceptions=no
24065 ac_outfile=conftest.$ac_objext
24066 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24067 lt_compiler_flag="-fno-rtti -fno-exceptions"
24068 # Insert the option either (1) after the last *FLAGS variable, or
24069 # (2) before a word containing "conftest.", or (3) at the end.
24070 # Note that $ac_compile itself does not contain backslashes and begins
24071 # with a dollar sign (not a hyphen), so the echo should work correctly.
24072 # The option is referenced via a variable to avoid confusing sed.
24073 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024074 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024075 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24076 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000024077 (eval echo "\"\$as_me:24072: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024078 (eval "$lt_compile" 2>conftest.err)
24079 ac_status=$?
24080 cat conftest.err >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000024081 echo "$as_me:24076: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024082 if (exit $ac_status) && test -s "$ac_outfile"; then
24083 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024084 # So say no if there are warnings other than the usual output.
24085 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24086 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24087 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024088 lt_cv_prog_compiler_rtti_exceptions=yes
24089 fi
24090 fi
24091 $rm conftest*
24092
24093fi
Reid Spencera773bd52006-08-04 18:18:08 +000024094{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24095echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024096
24097if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24098 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24099else
24100 :
24101fi
24102
24103fi
24104
24105lt_prog_compiler_wl_GCJ=
24106lt_prog_compiler_pic_GCJ=
24107lt_prog_compiler_static_GCJ=
24108
Reid Spencera773bd52006-08-04 18:18:08 +000024109{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24110echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024111
24112 if test "$GCC" = yes; then
24113 lt_prog_compiler_wl_GCJ='-Wl,'
24114 lt_prog_compiler_static_GCJ='-static'
24115
24116 case $host_os in
24117 aix*)
24118 # All AIX code is PIC.
24119 if test "$host_cpu" = ia64; then
24120 # AIX 5 now supports IA64 processor
24121 lt_prog_compiler_static_GCJ='-Bstatic'
24122 fi
24123 ;;
24124
24125 amigaos*)
24126 # FIXME: we need at least 68020 code to build shared libraries, but
24127 # adding the `-m68020' flag to GCC prevents building anything better,
24128 # like `-m68040'.
24129 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24130 ;;
24131
24132 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24133 # PIC is the default for these OSes.
24134 ;;
24135
24136 mingw* | pw32* | os2*)
24137 # This hack is so that the source file can tell whether it is being
24138 # built for inclusion in a dll (and should export symbols for example).
24139 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24140 ;;
24141
24142 darwin* | rhapsody*)
24143 # PIC is the default on this platform
24144 # Common symbols not allowed in MH_DYLIB files
24145 lt_prog_compiler_pic_GCJ='-fno-common'
24146 ;;
24147
Reid Spencera773bd52006-08-04 18:18:08 +000024148 interix3*)
24149 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24150 # Instead, we relocate shared libraries at runtime.
24151 ;;
24152
John Criswell47fdd832003-07-14 16:52:07 +000024153 msdosdjgpp*)
24154 # Just because we use GCC doesn't mean we suddenly get shared libraries
24155 # on systems that don't support them.
24156 lt_prog_compiler_can_build_shared_GCJ=no
24157 enable_shared=no
24158 ;;
24159
24160 sysv4*MP*)
24161 if test -d /usr/nec; then
24162 lt_prog_compiler_pic_GCJ=-Kconform_pic
24163 fi
24164 ;;
24165
24166 hpux*)
24167 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24168 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024169 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024170 hppa*64*|ia64*)
24171 # +Z the default
24172 ;;
24173 *)
24174 lt_prog_compiler_pic_GCJ='-fPIC'
24175 ;;
24176 esac
24177 ;;
24178
24179 *)
24180 lt_prog_compiler_pic_GCJ='-fPIC'
24181 ;;
24182 esac
24183 else
24184 # PORTME Check for flag to pass linker flags through the system compiler.
24185 case $host_os in
24186 aix*)
24187 lt_prog_compiler_wl_GCJ='-Wl,'
24188 if test "$host_cpu" = ia64; then
24189 # AIX 5 now supports IA64 processor
24190 lt_prog_compiler_static_GCJ='-Bstatic'
24191 else
24192 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24193 fi
24194 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024195 darwin*)
24196 # PIC is the default on this platform
24197 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000024198 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024199 xlc*)
24200 lt_prog_compiler_pic_GCJ='-qnocommon'
24201 lt_prog_compiler_wl_GCJ='-Wl,'
24202 ;;
24203 esac
24204 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024205
24206 mingw* | pw32* | os2*)
24207 # This hack is so that the source file can tell whether it is being
24208 # built for inclusion in a dll (and should export symbols for example).
24209 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24210 ;;
24211
24212 hpux9* | hpux10* | hpux11*)
24213 lt_prog_compiler_wl_GCJ='-Wl,'
24214 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24215 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024216 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024217 hppa*64*|ia64*)
24218 # +Z the default
24219 ;;
24220 *)
24221 lt_prog_compiler_pic_GCJ='+Z'
24222 ;;
24223 esac
24224 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24225 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24226 ;;
24227
24228 irix5* | irix6* | nonstopux*)
24229 lt_prog_compiler_wl_GCJ='-Wl,'
24230 # PIC (with -KPIC) is the default.
24231 lt_prog_compiler_static_GCJ='-non_shared'
24232 ;;
24233
24234 newsos6)
24235 lt_prog_compiler_pic_GCJ='-KPIC'
24236 lt_prog_compiler_static_GCJ='-Bstatic'
24237 ;;
24238
24239 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000024240 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024241 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000024242 lt_prog_compiler_wl_GCJ='-Wl,'
24243 lt_prog_compiler_pic_GCJ='-KPIC'
24244 lt_prog_compiler_static_GCJ='-static'
24245 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024246 pgcc* | pgf77* | pgf90* | pgf95*)
24247 # Portland Group compilers (*not* the Pentium gcc compiler,
24248 # which looks to be a dead project)
24249 lt_prog_compiler_wl_GCJ='-Wl,'
24250 lt_prog_compiler_pic_GCJ='-fpic'
24251 lt_prog_compiler_static_GCJ='-Bstatic'
24252 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024253 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000024254 lt_prog_compiler_wl_GCJ='-Wl,'
24255 # All Alpha code is PIC.
24256 lt_prog_compiler_static_GCJ='-non_shared'
24257 ;;
24258 esac
24259 ;;
24260
24261 osf3* | osf4* | osf5*)
24262 lt_prog_compiler_wl_GCJ='-Wl,'
24263 # All OSF/1 code is PIC.
24264 lt_prog_compiler_static_GCJ='-non_shared'
24265 ;;
24266
John Criswell47fdd832003-07-14 16:52:07 +000024267 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024268 lt_prog_compiler_pic_GCJ='-KPIC'
24269 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000024270 case $cc_basename in
24271 f77* | f90* | f95*)
24272 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24273 *)
24274 lt_prog_compiler_wl_GCJ='-Wl,';;
24275 esac
John Criswell47fdd832003-07-14 16:52:07 +000024276 ;;
24277
24278 sunos4*)
24279 lt_prog_compiler_wl_GCJ='-Qoption ld '
24280 lt_prog_compiler_pic_GCJ='-PIC'
24281 lt_prog_compiler_static_GCJ='-Bstatic'
24282 ;;
24283
Reid Spencera773bd52006-08-04 18:18:08 +000024284 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024285 lt_prog_compiler_wl_GCJ='-Wl,'
24286 lt_prog_compiler_pic_GCJ='-KPIC'
24287 lt_prog_compiler_static_GCJ='-Bstatic'
24288 ;;
24289
24290 sysv4*MP*)
24291 if test -d /usr/nec ;then
24292 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24293 lt_prog_compiler_static_GCJ='-Bstatic'
24294 fi
24295 ;;
24296
Reid Spencera773bd52006-08-04 18:18:08 +000024297 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24298 lt_prog_compiler_wl_GCJ='-Wl,'
24299 lt_prog_compiler_pic_GCJ='-KPIC'
24300 lt_prog_compiler_static_GCJ='-Bstatic'
24301 ;;
24302
24303 unicos*)
24304 lt_prog_compiler_wl_GCJ='-Wl,'
24305 lt_prog_compiler_can_build_shared_GCJ=no
24306 ;;
24307
John Criswell47fdd832003-07-14 16:52:07 +000024308 uts4*)
24309 lt_prog_compiler_pic_GCJ='-pic'
24310 lt_prog_compiler_static_GCJ='-Bstatic'
24311 ;;
24312
24313 *)
24314 lt_prog_compiler_can_build_shared_GCJ=no
24315 ;;
24316 esac
24317 fi
24318
Reid Spencera773bd52006-08-04 18:18:08 +000024319{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24320echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024321
24322#
24323# Check to make sure the PIC flag actually works.
24324#
24325if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024326
Reid Spencera773bd52006-08-04 18:18:08 +000024327{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24328echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024329if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24330 echo $ECHO_N "(cached) $ECHO_C" >&6
24331else
24332 lt_prog_compiler_pic_works_GCJ=no
24333 ac_outfile=conftest.$ac_objext
24334 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24335 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24336 # Insert the option either (1) after the last *FLAGS variable, or
24337 # (2) before a word containing "conftest.", or (3) at the end.
24338 # Note that $ac_compile itself does not contain backslashes and begins
24339 # with a dollar sign (not a hyphen), so the echo should work correctly.
24340 # The option is referenced via a variable to avoid confusing sed.
24341 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024342 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024343 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24344 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000024345 (eval echo "\"\$as_me:24340: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024346 (eval "$lt_compile" 2>conftest.err)
24347 ac_status=$?
24348 cat conftest.err >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000024349 echo "$as_me:24344: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024350 if (exit $ac_status) && test -s "$ac_outfile"; then
24351 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024352 # So say no if there are warnings other than the usual output.
24353 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24354 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24355 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024356 lt_prog_compiler_pic_works_GCJ=yes
24357 fi
24358 fi
24359 $rm conftest*
24360
24361fi
Reid Spencera773bd52006-08-04 18:18:08 +000024362{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24363echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024364
24365if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24366 case $lt_prog_compiler_pic_GCJ in
24367 "" | " "*) ;;
24368 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24369 esac
24370else
24371 lt_prog_compiler_pic_GCJ=
24372 lt_prog_compiler_can_build_shared_GCJ=no
24373fi
24374
24375fi
Reid Spencera773bd52006-08-04 18:18:08 +000024376case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024377 # For platforms which do not support PIC, -DPIC is meaningless:
24378 *djgpp*)
24379 lt_prog_compiler_pic_GCJ=
24380 ;;
24381 *)
24382 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24383 ;;
24384esac
24385
Reid Spencera773bd52006-08-04 18:18:08 +000024386#
24387# Check to make sure the static flag actually works.
24388#
24389wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24390{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24391echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24392if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24393 echo $ECHO_N "(cached) $ECHO_C" >&6
24394else
24395 lt_prog_compiler_static_works_GCJ=no
24396 save_LDFLAGS="$LDFLAGS"
24397 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24398 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24399 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24400 # The linker can only warn and ignore the option if not recognized
24401 # So say no if there are warnings
24402 if test -s conftest.err; then
24403 # Append any errors to the config.log.
24404 cat conftest.err 1>&5
24405 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24406 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24407 if diff conftest.exp conftest.er2 >/dev/null; then
24408 lt_prog_compiler_static_works_GCJ=yes
24409 fi
24410 else
24411 lt_prog_compiler_static_works_GCJ=yes
24412 fi
24413 fi
24414 $rm conftest*
24415 LDFLAGS="$save_LDFLAGS"
24416
24417fi
24418{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24419echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24420
24421if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24422 :
24423else
24424 lt_prog_compiler_static_GCJ=
24425fi
24426
24427
24428{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24429echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024430if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24431 echo $ECHO_N "(cached) $ECHO_C" >&6
24432else
24433 lt_cv_prog_compiler_c_o_GCJ=no
24434 $rm -r conftest 2>/dev/null
24435 mkdir conftest
24436 cd conftest
24437 mkdir out
24438 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24439
John Criswell47fdd832003-07-14 16:52:07 +000024440 lt_compiler_flag="-o out/conftest2.$ac_objext"
24441 # Insert the option either (1) after the last *FLAGS variable, or
24442 # (2) before a word containing "conftest.", or (3) at the end.
24443 # Note that $ac_compile itself does not contain backslashes and begins
24444 # with a dollar sign (not a hyphen), so the echo should work correctly.
24445 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024446 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24448 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000024449 (eval echo "\"\$as_me:24444: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024450 (eval "$lt_compile" 2>out/conftest.err)
24451 ac_status=$?
24452 cat out/conftest.err >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000024453 echo "$as_me:24448: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024454 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24455 then
24456 # The compiler can only warn and ignore the option if not recognized
24457 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024458 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24459 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24460 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024461 lt_cv_prog_compiler_c_o_GCJ=yes
24462 fi
24463 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024464 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024465 $rm conftest*
24466 # SGI C++ compiler will create directory out/ii_files/ for
24467 # template instantiation
24468 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24469 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024470 cd ..
24471 rmdir conftest
24472 $rm conftest*
24473
24474fi
Reid Spencera773bd52006-08-04 18:18:08 +000024475{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24476echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024477
24478
24479hard_links="nottested"
24480if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24481 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024482 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24483echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024484 hard_links=yes
24485 $rm conftest*
24486 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24487 touch conftest.a
24488 ln conftest.a conftest.b 2>&5 || hard_links=no
24489 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024490 { echo "$as_me:$LINENO: result: $hard_links" >&5
24491echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024492 if test "$hard_links" = no; then
24493 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24494echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24495 need_locks=warn
24496 fi
24497else
24498 need_locks=no
24499fi
24500
Reid Spencera773bd52006-08-04 18:18:08 +000024501{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24502echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024503
24504 runpath_var=
24505 allow_undefined_flag_GCJ=
24506 enable_shared_with_static_runtimes_GCJ=no
24507 archive_cmds_GCJ=
24508 archive_expsym_cmds_GCJ=
24509 old_archive_From_new_cmds_GCJ=
24510 old_archive_from_expsyms_cmds_GCJ=
24511 export_dynamic_flag_spec_GCJ=
24512 whole_archive_flag_spec_GCJ=
24513 thread_safe_flag_spec_GCJ=
24514 hardcode_libdir_flag_spec_GCJ=
24515 hardcode_libdir_flag_spec_ld_GCJ=
24516 hardcode_libdir_separator_GCJ=
24517 hardcode_direct_GCJ=no
24518 hardcode_minus_L_GCJ=no
24519 hardcode_shlibpath_var_GCJ=unsupported
24520 link_all_deplibs_GCJ=unknown
24521 hardcode_automatic_GCJ=no
24522 module_cmds_GCJ=
24523 module_expsym_cmds_GCJ=
24524 always_export_symbols_GCJ=no
24525 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24526 # include_expsyms should be a list of space-separated symbols to be *always*
24527 # included in the symbol list
24528 include_expsyms_GCJ=
24529 # exclude_expsyms can be an extended regexp of symbols to exclude
24530 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24531 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24532 # as well as any symbol that contains `d'.
24533 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24534 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24535 # platforms (ab)use it in PIC code, but their linkers get confused if
24536 # the symbol is explicitly referenced. Since portable code cannot
24537 # rely on this symbol name, it's probably fine to never include it in
24538 # preloaded symbol tables.
24539 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024540 # Just being paranoid about ensuring that cc_basename is set.
24541 for cc_temp in $compiler""; do
24542 case $cc_temp in
24543 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24544 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24545 \-*) ;;
24546 *) break;;
24547 esac
24548done
24549cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024550
24551 case $host_os in
24552 cygwin* | mingw* | pw32*)
24553 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24554 # When not using gcc, we currently assume that we are using
24555 # Microsoft Visual C++.
24556 if test "$GCC" != yes; then
24557 with_gnu_ld=no
24558 fi
24559 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024560 interix*)
24561 # we just hope/assume this is gcc and not c89 (= MSVC++)
24562 with_gnu_ld=yes
24563 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024564 openbsd*)
24565 with_gnu_ld=no
24566 ;;
24567 esac
24568
24569 ld_shlibs_GCJ=yes
24570 if test "$with_gnu_ld" = yes; then
24571 # If archive_cmds runs LD, not CC, wlarc should be empty
24572 wlarc='${wl}'
24573
Reid Spencera773bd52006-08-04 18:18:08 +000024574 # Set some defaults for GNU ld with shared library support. These
24575 # are reset later if shared libraries are not supported. Putting them
24576 # here allows them to be overridden if necessary.
24577 runpath_var=LD_RUN_PATH
24578 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24579 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24580 # ancient GNU ld didn't support --whole-archive et. al.
24581 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24582 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24583 else
24584 whole_archive_flag_spec_GCJ=
24585 fi
24586 supports_anon_versioning=no
24587 case `$LD -v 2>/dev/null` in
24588 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24589 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24590 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24591 *\ 2.11.*) ;; # other 2.11 versions
24592 *) supports_anon_versioning=yes ;;
24593 esac
24594
John Criswell47fdd832003-07-14 16:52:07 +000024595 # See if GNU ld supports shared libraries.
24596 case $host_os in
24597 aix3* | aix4* | aix5*)
24598 # On AIX/PPC, the GNU linker is very broken
24599 if test "$host_cpu" != ia64; then
24600 ld_shlibs_GCJ=no
24601 cat <<EOF 1>&2
24602
24603*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24604*** to be unable to reliably create shared libraries on AIX.
24605*** Therefore, libtool is disabling shared libraries support. If you
24606*** really care for shared libraries, you may want to modify your PATH
24607*** so that a non-GNU linker is found, and then restart.
24608
24609EOF
24610 fi
24611 ;;
24612
24613 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024614 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 +000024615 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24616 hardcode_minus_L_GCJ=yes
24617
24618 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24619 # that the semantics of dynamic libraries on AmigaOS, at least up
24620 # to version 4, is to share data among multiple programs linked
24621 # with the same dynamic library. Since this doesn't match the
24622 # behavior of shared libraries on other platforms, we can't use
24623 # them.
24624 ld_shlibs_GCJ=no
24625 ;;
24626
24627 beos*)
24628 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24629 allow_undefined_flag_GCJ=unsupported
24630 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24631 # support --undefined. This deserves some investigation. FIXME
24632 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24633 else
24634 ld_shlibs_GCJ=no
24635 fi
24636 ;;
24637
24638 cygwin* | mingw* | pw32*)
24639 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24640 # as there is no search path for DLLs.
24641 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24642 allow_undefined_flag_GCJ=unsupported
24643 always_export_symbols_GCJ=no
24644 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024645 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 +000024646
24647 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024648 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 +000024649 # If the export-symbols file already is a .def file (1st line
24650 # is EXPORTS), use it as is; otherwise, prepend...
24651 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24652 cp $export_symbols $output_objdir/$soname.def;
24653 else
24654 echo EXPORTS > $output_objdir/$soname.def;
24655 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024656 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024657 $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 +000024658 else
Reid Spencera773bd52006-08-04 18:18:08 +000024659 ld_shlibs_GCJ=no
24660 fi
24661 ;;
24662
24663 interix3*)
24664 hardcode_direct_GCJ=no
24665 hardcode_shlibpath_var_GCJ=no
24666 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24667 export_dynamic_flag_spec_GCJ='${wl}-E'
24668 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24669 # Instead, shared libraries are loaded at an image base (0x10000000 by
24670 # default) and relocated if they conflict, which is a slow very memory
24671 # consuming and fragmenting process. To avoid this, we pick a random,
24672 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24673 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24674 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'
24675 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'
24676 ;;
24677
24678 linux*)
24679 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24680 tmp_addflag=
24681 case $cc_basename,$host_cpu in
24682 pgcc*) # Portland Group C compiler
24683 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'
24684 tmp_addflag=' $pic_flag'
24685 ;;
24686 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24687 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'
24688 tmp_addflag=' $pic_flag -Mnomain' ;;
24689 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24690 tmp_addflag=' -i_dynamic' ;;
24691 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24692 tmp_addflag=' -i_dynamic -nofor_main' ;;
24693 ifc* | ifort*) # Intel Fortran compiler
24694 tmp_addflag=' -nofor_main' ;;
24695 esac
24696 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24697
24698 if test $supports_anon_versioning = yes; then
24699 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24700 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24701 $echo "local: *; };" >> $output_objdir/$libname.ver~
24702 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24703 fi
24704 else
24705 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024706 fi
24707 ;;
24708
24709 netbsd*)
24710 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24711 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24712 wlarc=
24713 else
24714 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24715 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24716 fi
24717 ;;
24718
Reid Spencera773bd52006-08-04 18:18:08 +000024719 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024720 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24721 ld_shlibs_GCJ=no
24722 cat <<EOF 1>&2
24723
24724*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24725*** create shared libraries on Solaris systems. Therefore, libtool
24726*** is disabling shared libraries support. We urge you to upgrade GNU
24727*** binutils to release 2.9.1 or newer. Another option is to modify
24728*** your PATH or compiler configuration so that the native linker is
24729*** used, and then restart.
24730
24731EOF
24732 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24733 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24734 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24735 else
24736 ld_shlibs_GCJ=no
24737 fi
24738 ;;
24739
Reid Spencera773bd52006-08-04 18:18:08 +000024740 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24741 case `$LD -v 2>&1` in
24742 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24743 ld_shlibs_GCJ=no
24744 cat <<_LT_EOF 1>&2
24745
24746*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24747*** reliably create shared libraries on SCO systems. Therefore, libtool
24748*** is disabling shared libraries support. We urge you to upgrade GNU
24749*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24750*** your PATH or compiler configuration so that the native linker is
24751*** used, and then restart.
24752
24753_LT_EOF
24754 ;;
24755 *)
24756 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24757 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24758 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24759 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24760 else
24761 ld_shlibs_GCJ=no
24762 fi
24763 ;;
24764 esac
24765 ;;
24766
John Criswell47fdd832003-07-14 16:52:07 +000024767 sunos4*)
24768 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24769 wlarc=
24770 hardcode_direct_GCJ=yes
24771 hardcode_shlibpath_var_GCJ=no
24772 ;;
24773
24774 *)
24775 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24776 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24777 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24778 else
24779 ld_shlibs_GCJ=no
24780 fi
24781 ;;
24782 esac
24783
Reid Spencera773bd52006-08-04 18:18:08 +000024784 if test "$ld_shlibs_GCJ" = no; then
24785 runpath_var=
24786 hardcode_libdir_flag_spec_GCJ=
24787 export_dynamic_flag_spec_GCJ=
24788 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024789 fi
24790 else
24791 # PORTME fill in a description of your system's linker (not GNU ld)
24792 case $host_os in
24793 aix3*)
24794 allow_undefined_flag_GCJ=unsupported
24795 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024796 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 +000024797 # Note: this linker hardcodes the directories in LIBPATH if there
24798 # are no directories specified by -L.
24799 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024800 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024801 # Neither direct hardcoding nor static linking is supported with a
24802 # broken collect2.
24803 hardcode_direct_GCJ=unsupported
24804 fi
24805 ;;
24806
24807 aix4* | aix5*)
24808 if test "$host_cpu" = ia64; then
24809 # On IA64, the linker does run time linking by default, so we don't
24810 # have to do anything special.
24811 aix_use_runtimelinking=no
24812 exp_sym_flag='-Bexport'
24813 no_entry_flag=""
24814 else
24815 # If we're using GNU nm, then we don't want the "-C" option.
24816 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24817 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24818 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'
24819 else
24820 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'
24821 fi
24822 aix_use_runtimelinking=no
24823
24824 # Test if we are trying to use run time linking or normal
24825 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24826 # need to do runtime linking.
24827 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24828 for ld_flag in $LDFLAGS; do
24829 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24830 aix_use_runtimelinking=yes
24831 break
24832 fi
24833 done
Reid Spencera773bd52006-08-04 18:18:08 +000024834 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024835 esac
24836
24837 exp_sym_flag='-bexport'
24838 no_entry_flag='-bnoentry'
24839 fi
24840
24841 # When large executables or shared objects are built, AIX ld can
24842 # have problems creating the table of contents. If linking a library
24843 # or program results in "error TOC overflow" add -mminimal-toc to
24844 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24845 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24846
24847 archive_cmds_GCJ=''
24848 hardcode_direct_GCJ=yes
24849 hardcode_libdir_separator_GCJ=':'
24850 link_all_deplibs_GCJ=yes
24851
24852 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024853 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024854 # We only want to do this on AIX 4.2 and lower, the check
24855 # below for broken collect2 doesn't work under 4.3+
24856 collect2name=`${CC} -print-prog-name=collect2`
24857 if test -f "$collect2name" && \
24858 strings "$collect2name" | grep resolve_lib_name >/dev/null
24859 then
24860 # We have reworked collect2
24861 hardcode_direct_GCJ=yes
24862 else
24863 # We have old collect2
24864 hardcode_direct_GCJ=unsupported
24865 # It fails to find uninstalled libraries when the uninstalled
24866 # path is not listed in the libpath. Setting hardcode_minus_L
24867 # to unsupported forces relinking
24868 hardcode_minus_L_GCJ=yes
24869 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24870 hardcode_libdir_separator_GCJ=
24871 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024872 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024873 esac
24874 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024875 if test "$aix_use_runtimelinking" = yes; then
24876 shared_flag="$shared_flag "'${wl}-G'
24877 fi
John Criswell47fdd832003-07-14 16:52:07 +000024878 else
24879 # not using gcc
24880 if test "$host_cpu" = ia64; then
24881 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24882 # chokes on -Wl,-G. The following line is correct:
24883 shared_flag='-G'
24884 else
Reid Spencera773bd52006-08-04 18:18:08 +000024885 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024886 shared_flag='${wl}-G'
24887 else
24888 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024889 fi
John Criswell47fdd832003-07-14 16:52:07 +000024890 fi
24891 fi
24892
24893 # It seems that -bexpall does not export symbols beginning with
24894 # underscore (_), so it is better to generate a list of symbols to export.
24895 always_export_symbols_GCJ=yes
24896 if test "$aix_use_runtimelinking" = yes; then
24897 # Warning - without using the other runtime loading flags (-brtl),
24898 # -berok will link without error, but may produce a broken library.
24899 allow_undefined_flag_GCJ='-berok'
24900 # Determine the default libpath from the value encoded in an empty executable.
24901 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024902/* confdefs.h. */
24903_ACEOF
24904cat confdefs.h >>conftest.$ac_ext
24905cat >>conftest.$ac_ext <<_ACEOF
24906/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024907
John Criswell47fdd832003-07-14 16:52:07 +000024908int
24909main ()
24910{
24911
24912 ;
24913 return 0;
24914}
24915_ACEOF
24916rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024917if { (ac_try="$ac_link"
24918case "(($ac_try" in
24919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24920 *) ac_try_echo=$ac_try;;
24921esac
24922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24923 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024924 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024925 grep -v '^ *+' conftest.er1 >conftest.err
24926 rm -f conftest.er1
24927 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000024929 (exit $ac_status); } &&
24930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24931 { (case "(($ac_try" in
24932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24933 *) ac_try_echo=$ac_try;;
24934esac
24935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24936 (eval "$ac_try") 2>&5
24937 ac_status=$?
24938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939 (exit $ac_status); }; } &&
24940 { ac_try='test -s conftest$ac_exeext'
24941 { (case "(($ac_try" in
24942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24943 *) ac_try_echo=$ac_try;;
24944esac
24945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24946 (eval "$ac_try") 2>&5
24947 ac_status=$?
24948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024950
24951aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24952}'`
24953# Check for a 64-bit object if we didn't find anything.
24954if 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; }
24955}'`; fi
24956else
24957 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024958sed 's/^/| /' conftest.$ac_ext >&5
24959
Reid Spencera773bd52006-08-04 18:18:08 +000024960
John Criswell47fdd832003-07-14 16:52:07 +000024961fi
Reid Spencera773bd52006-08-04 18:18:08 +000024962
Bill Wendlingebcceee2009-04-18 11:20:33 +000024963rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024964 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024965if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24966
24967 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024968 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 +000024969 else
24970 if test "$host_cpu" = ia64; then
24971 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24972 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024973 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 +000024974 else
24975 # Determine the default libpath from the value encoded in an empty executable.
24976 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024977/* confdefs.h. */
24978_ACEOF
24979cat confdefs.h >>conftest.$ac_ext
24980cat >>conftest.$ac_ext <<_ACEOF
24981/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024982
John Criswell47fdd832003-07-14 16:52:07 +000024983int
24984main ()
24985{
24986
24987 ;
24988 return 0;
24989}
24990_ACEOF
24991rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024992if { (ac_try="$ac_link"
24993case "(($ac_try" in
24994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24995 *) ac_try_echo=$ac_try;;
24996esac
24997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24998 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024999 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025000 grep -v '^ *+' conftest.er1 >conftest.err
25001 rm -f conftest.er1
25002 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000025003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000025004 (exit $ac_status); } &&
25005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25006 { (case "(($ac_try" in
25007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25008 *) ac_try_echo=$ac_try;;
25009esac
25010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25011 (eval "$ac_try") 2>&5
25012 ac_status=$?
25013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25014 (exit $ac_status); }; } &&
25015 { ac_try='test -s conftest$ac_exeext'
25016 { (case "(($ac_try" in
25017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25018 *) ac_try_echo=$ac_try;;
25019esac
25020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25021 (eval "$ac_try") 2>&5
25022 ac_status=$?
25023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000025025
25026aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25027}'`
25028# Check for a 64-bit object if we didn't find anything.
25029if 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; }
25030}'`; fi
25031else
25032 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025033sed 's/^/| /' conftest.$ac_ext >&5
25034
Reid Spencera773bd52006-08-04 18:18:08 +000025035
John Criswell47fdd832003-07-14 16:52:07 +000025036fi
Reid Spencera773bd52006-08-04 18:18:08 +000025037
Bill Wendlingebcceee2009-04-18 11:20:33 +000025038rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025039 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000025040if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25041
25042 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25043 # Warning - without using the other run time loading flags,
25044 # -berok will link without error, but may produce a broken library.
25045 no_undefined_flag_GCJ=' ${wl}-bernotok'
25046 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000025047 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000025048 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000025049 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000025050 # This is similar to how AIX traditionally builds its shared libraries.
25051 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 +000025052 fi
25053 fi
25054 ;;
25055
25056 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000025057 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 +000025058 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25059 hardcode_minus_L_GCJ=yes
25060 # see comment about different semantics on the GNU ld section
25061 ld_shlibs_GCJ=no
25062 ;;
25063
Reid Spencer2706f8c2004-09-19 23:53:36 +000025064 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025065 export_dynamic_flag_spec_GCJ=-rdynamic
25066 ;;
25067
25068 cygwin* | mingw* | pw32*)
25069 # When not using gcc, we currently assume that we are using
25070 # Microsoft Visual C++.
25071 # hardcode_libdir_flag_spec is actually meaningless, as there is
25072 # no search path for DLLs.
25073 hardcode_libdir_flag_spec_GCJ=' '
25074 allow_undefined_flag_GCJ=unsupported
25075 # Tell ltmain to make .lib files, not .a files.
25076 libext=lib
25077 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025078 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025079 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000025080 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 +000025081 # The linker will automatically build a .lib file if we build a DLL.
25082 old_archive_From_new_cmds_GCJ='true'
25083 # FIXME: Should let the user specify the lib program.
25084 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000025085 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000025086 enable_shared_with_static_runtimes_GCJ=yes
25087 ;;
25088
25089 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000025090 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025091 rhapsody* | darwin1.[012])
25092 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25093 ;;
25094 *) # Darwin 1.3 on
25095 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25096 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25097 else
25098 case ${MACOSX_DEPLOYMENT_TARGET} in
25099 10.[012])
25100 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25101 ;;
25102 10.*)
25103 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25104 ;;
25105 esac
25106 fi
25107 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025108 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025109 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025110 hardcode_direct_GCJ=no
25111 hardcode_automatic_GCJ=yes
25112 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000025113 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000025114 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000025115 if test "$GCC" = yes ; then
25116 output_verbose_link_cmd='echo'
25117 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25118 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025119 # 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 +000025120 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}'
25121 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 +000025122 else
Reid Spencera773bd52006-08-04 18:18:08 +000025123 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025124 xlc*)
25125 output_verbose_link_cmd='echo'
25126 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25127 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025128 # 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 +000025129 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}'
25130 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 +000025131 ;;
25132 *)
25133 ld_shlibs_GCJ=no
25134 ;;
25135 esac
John Criswell47fdd832003-07-14 16:52:07 +000025136 fi
25137 ;;
25138
25139 dgux*)
25140 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25141 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25142 hardcode_shlibpath_var_GCJ=no
25143 ;;
25144
25145 freebsd1*)
25146 ld_shlibs_GCJ=no
25147 ;;
25148
25149 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25150 # support. Future versions do this automatically, but an explicit c++rt0.o
25151 # does not break anything, and helps significantly (at the cost of a little
25152 # extra space).
25153 freebsd2.2*)
25154 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25155 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25156 hardcode_direct_GCJ=yes
25157 hardcode_shlibpath_var_GCJ=no
25158 ;;
25159
25160 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25161 freebsd2*)
25162 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25163 hardcode_direct_GCJ=yes
25164 hardcode_minus_L_GCJ=yes
25165 hardcode_shlibpath_var_GCJ=no
25166 ;;
25167
25168 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000025169 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000025170 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25171 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25172 hardcode_direct_GCJ=yes
25173 hardcode_shlibpath_var_GCJ=no
25174 ;;
25175
25176 hpux9*)
25177 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000025178 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 +000025179 else
Reid Spencer177dbe22004-10-13 01:01:03 +000025180 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 +000025181 fi
25182 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25183 hardcode_libdir_separator_GCJ=:
25184 hardcode_direct_GCJ=yes
25185
25186 # hardcode_minus_L: Not really in the search PATH,
25187 # but as the default location of the library.
25188 hardcode_minus_L_GCJ=yes
25189 export_dynamic_flag_spec_GCJ='${wl}-E'
25190 ;;
25191
Reid Spencera773bd52006-08-04 18:18:08 +000025192 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000025193 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025194 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25195 else
25196 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25197 fi
25198 if test "$with_gnu_ld" = no; then
25199 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25200 hardcode_libdir_separator_GCJ=:
25201
25202 hardcode_direct_GCJ=yes
25203 export_dynamic_flag_spec_GCJ='${wl}-E'
25204
25205 # hardcode_minus_L: Not really in the search PATH,
25206 # but as the default location of the library.
25207 hardcode_minus_L_GCJ=yes
25208 fi
25209 ;;
25210
25211 hpux11*)
25212 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25213 case $host_cpu in
25214 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000025215 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25216 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025217 ia64*)
25218 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25219 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025220 *)
25221 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25222 ;;
25223 esac
25224 else
Reid Spencera773bd52006-08-04 18:18:08 +000025225 case $host_cpu in
25226 hppa*64*)
25227 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25228 ;;
25229 ia64*)
25230 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000025231 ;;
25232 *)
Reid Spencera773bd52006-08-04 18:18:08 +000025233 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 +000025234 ;;
25235 esac
25236 fi
25237 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025238 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25239 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000025240
Reid Spencera773bd52006-08-04 18:18:08 +000025241 case $host_cpu in
25242 hppa*64*|ia64*)
25243 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25244 hardcode_direct_GCJ=no
25245 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025246 ;;
25247 *)
John Criswell47fdd832003-07-14 16:52:07 +000025248 hardcode_direct_GCJ=yes
25249 export_dynamic_flag_spec_GCJ='${wl}-E'
25250
25251 # hardcode_minus_L: Not really in the search PATH,
25252 # but as the default location of the library.
25253 hardcode_minus_L_GCJ=yes
25254 ;;
25255 esac
25256 fi
25257 ;;
25258
25259 irix5* | irix6* | nonstopux*)
25260 if test "$GCC" = yes; then
25261 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'
25262 else
25263 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'
25264 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25265 fi
25266 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25267 hardcode_libdir_separator_GCJ=:
25268 link_all_deplibs_GCJ=yes
25269 ;;
25270
25271 netbsd*)
25272 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25273 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25274 else
25275 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25276 fi
25277 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25278 hardcode_direct_GCJ=yes
25279 hardcode_shlibpath_var_GCJ=no
25280 ;;
25281
25282 newsos6)
25283 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25284 hardcode_direct_GCJ=yes
25285 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25286 hardcode_libdir_separator_GCJ=:
25287 hardcode_shlibpath_var_GCJ=no
25288 ;;
25289
25290 openbsd*)
25291 hardcode_direct_GCJ=yes
25292 hardcode_shlibpath_var_GCJ=no
25293 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25294 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025295 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 +000025296 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25297 export_dynamic_flag_spec_GCJ='${wl}-E'
25298 else
25299 case $host_os in
25300 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25301 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25302 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25303 ;;
25304 *)
25305 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25306 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25307 ;;
25308 esac
25309 fi
25310 ;;
25311
25312 os2*)
25313 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25314 hardcode_minus_L_GCJ=yes
25315 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000025316 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 +000025317 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25318 ;;
25319
25320 osf3*)
25321 if test "$GCC" = yes; then
25322 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25323 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'
25324 else
25325 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25326 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'
25327 fi
25328 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25329 hardcode_libdir_separator_GCJ=:
25330 ;;
25331
25332 osf4* | osf5*) # as osf3* with the addition of -msym flag
25333 if test "$GCC" = yes; then
25334 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25335 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'
25336 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25337 else
25338 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25339 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 +000025340 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 +000025341 $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 +000025342
John Criswell47fdd832003-07-14 16:52:07 +000025343 # Both c and cxx compiler support -rpath directly
25344 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25345 fi
25346 hardcode_libdir_separator_GCJ=:
25347 ;;
25348
John Criswell47fdd832003-07-14 16:52:07 +000025349 solaris*)
25350 no_undefined_flag_GCJ=' -z text'
25351 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025352 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025353 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025354 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25355 $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 +000025356 else
Reid Spencera773bd52006-08-04 18:18:08 +000025357 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025358 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025359 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25360 $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 +000025361 fi
25362 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25363 hardcode_shlibpath_var_GCJ=no
25364 case $host_os in
25365 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025366 *)
25367 # The compiler driver will combine linker options so we
25368 # cannot just pass the convience library names through
25369 # without $wl, iff we do not link with $LD.
25370 # Luckily, gcc supports the same syntax we need for Sun Studio.
25371 # Supported since Solaris 2.6 (maybe 2.5.1?)
25372 case $wlarc in
25373 '')
25374 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25375 *)
25376 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' ;;
25377 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025378 esac
25379 link_all_deplibs_GCJ=yes
25380 ;;
25381
25382 sunos4*)
25383 if test "x$host_vendor" = xsequent; then
25384 # Use $CC to link under sequent, because it throws in some extra .o
25385 # files that make .init and .fini sections work.
25386 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25387 else
25388 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25389 fi
25390 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25391 hardcode_direct_GCJ=yes
25392 hardcode_minus_L_GCJ=yes
25393 hardcode_shlibpath_var_GCJ=no
25394 ;;
25395
25396 sysv4)
25397 case $host_vendor in
25398 sni)
25399 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25400 hardcode_direct_GCJ=yes # is this really true???
25401 ;;
25402 siemens)
25403 ## LD is ld it makes a PLAMLIB
25404 ## CC just makes a GrossModule.
25405 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25406 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25407 hardcode_direct_GCJ=no
25408 ;;
25409 motorola)
25410 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25411 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25412 ;;
25413 esac
25414 runpath_var='LD_RUN_PATH'
25415 hardcode_shlibpath_var_GCJ=no
25416 ;;
25417
25418 sysv4.3*)
25419 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25420 hardcode_shlibpath_var_GCJ=no
25421 export_dynamic_flag_spec_GCJ='-Bexport'
25422 ;;
25423
25424 sysv4*MP*)
25425 if test -d /usr/nec; then
25426 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25427 hardcode_shlibpath_var_GCJ=no
25428 runpath_var=LD_RUN_PATH
25429 hardcode_runpath_var=yes
25430 ld_shlibs_GCJ=yes
25431 fi
25432 ;;
25433
Reid Spencera773bd52006-08-04 18:18:08 +000025434 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25435 no_undefined_flag_GCJ='${wl}-z,text'
25436 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025437 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025438 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025439
John Criswell47fdd832003-07-14 16:52:07 +000025440 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025441 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25442 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 +000025443 else
Reid Spencera773bd52006-08-04 18:18:08 +000025444 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25445 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 +000025446 fi
John Criswell47fdd832003-07-14 16:52:07 +000025447 ;;
25448
Reid Spencera773bd52006-08-04 18:18:08 +000025449 sysv5* | sco3.2v5* | sco5v6*)
25450 # Note: We can NOT use -z defs as we might desire, because we do not
25451 # link with -lc, and that would cause any symbols used from libc to
25452 # always be unresolved, which means just about no library would
25453 # ever link correctly. If we're not using GNU ld we use -z text
25454 # though, which does catch some bad symbols but isn't as heavy-handed
25455 # as -z defs.
25456 no_undefined_flag_GCJ='${wl}-z,text'
25457 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25458 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025459 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025460 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25461 hardcode_libdir_separator_GCJ=':'
25462 link_all_deplibs_GCJ=yes
25463 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025464 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025465
25466 if test "$GCC" = yes; then
25467 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25468 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25469 else
25470 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25471 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25472 fi
John Criswell47fdd832003-07-14 16:52:07 +000025473 ;;
25474
25475 uts4*)
25476 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25477 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25478 hardcode_shlibpath_var_GCJ=no
25479 ;;
25480
25481 *)
25482 ld_shlibs_GCJ=no
25483 ;;
25484 esac
25485 fi
25486
Reid Spencera773bd52006-08-04 18:18:08 +000025487{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25488echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025489test "$ld_shlibs_GCJ" = no && can_build_shared=no
25490
John Criswell47fdd832003-07-14 16:52:07 +000025491#
25492# Do we need to explicitly link libc?
25493#
25494case "x$archive_cmds_need_lc_GCJ" in
25495x|xyes)
25496 # Assume -lc should be added
25497 archive_cmds_need_lc_GCJ=yes
25498
25499 if test "$enable_shared" = yes && test "$GCC" = yes; then
25500 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025501 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025502 # FIXME: we may have to deal with multi-command sequences.
25503 ;;
25504 '$CC '*)
25505 # Test whether the compiler implicitly links with -lc since on some
25506 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25507 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025508 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25509echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025510 $rm conftest*
25511 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25512
25513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25514 (eval $ac_compile) 2>&5
25515 ac_status=$?
25516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517 (exit $ac_status); } 2>conftest.err; then
25518 soname=conftest
25519 lib=conftest
25520 libobjs=conftest.$ac_objext
25521 deplibs=
25522 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025523 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025524 compiler_flags=-v
25525 linker_flags=-v
25526 verstring=
25527 output_objdir=.
25528 libname=conftest
25529 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25530 allow_undefined_flag_GCJ=
25531 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25532 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25533 ac_status=$?
25534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535 (exit $ac_status); }
25536 then
25537 archive_cmds_need_lc_GCJ=no
25538 else
25539 archive_cmds_need_lc_GCJ=yes
25540 fi
25541 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25542 else
25543 cat conftest.err 1>&5
25544 fi
25545 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025546 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25547echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025548 ;;
25549 esac
25550 fi
25551 ;;
25552esac
25553
Reid Spencera773bd52006-08-04 18:18:08 +000025554{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25555echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025556library_names_spec=
25557libname_spec='lib$name'
25558soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025559shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025560postinstall_cmds=
25561postuninstall_cmds=
25562finish_cmds=
25563finish_eval=
25564shlibpath_var=
25565shlibpath_overrides_runpath=unknown
25566version_type=none
25567dynamic_linker="$host_os ld.so"
25568sys_lib_dlsearch_path_spec="/lib /usr/lib"
25569if test "$GCC" = yes; then
25570 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25571 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25572 # if the path contains ";" then we assume it to be the separator
25573 # otherwise default to the standard path separator (i.e. ":") - it is
25574 # assumed that no part of a normal pathname contains ";" but that should
25575 # okay in the real world where ";" in dirpaths is itself problematic.
25576 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25577 else
25578 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25579 fi
25580else
25581 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25582fi
25583need_lib_prefix=unknown
25584hardcode_into_libs=no
25585
25586# when you set need_version to no, make sure it does not cause -set_version
25587# flags to be left without arguments
25588need_version=unknown
25589
25590case $host_os in
25591aix3*)
25592 version_type=linux
25593 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25594 shlibpath_var=LIBPATH
25595
25596 # AIX 3 has no versioning support, so we append a major version to the name.
25597 soname_spec='${libname}${release}${shared_ext}$major'
25598 ;;
25599
25600aix4* | aix5*)
25601 version_type=linux
25602 need_lib_prefix=no
25603 need_version=no
25604 hardcode_into_libs=yes
25605 if test "$host_cpu" = ia64; then
25606 # AIX 5 supports IA64
25607 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25608 shlibpath_var=LD_LIBRARY_PATH
25609 else
25610 # With GCC up to 2.95.x, collect2 would create an import file
25611 # for dependence libraries. The import file would start with
25612 # the line `#! .'. This would cause the generated library to
25613 # depend on `.', always an invalid library. This was fixed in
25614 # development snapshots of GCC prior to 3.0.
25615 case $host_os in
25616 aix4 | aix4.[01] | aix4.[01].*)
25617 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25618 echo ' yes '
25619 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25620 :
25621 else
25622 can_build_shared=no
25623 fi
25624 ;;
25625 esac
25626 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25627 # soname into executable. Probably we can add versioning support to
25628 # collect2, so additional links can be useful in future.
25629 if test "$aix_use_runtimelinking" = yes; then
25630 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25631 # instead of lib<name>.a to let people know that these are not
25632 # typical AIX shared libraries.
25633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25634 else
25635 # We preserve .a as extension for shared libraries through AIX4.2
25636 # and later when we are not doing run time linking.
25637 library_names_spec='${libname}${release}.a $libname.a'
25638 soname_spec='${libname}${release}${shared_ext}$major'
25639 fi
25640 shlibpath_var=LIBPATH
25641 fi
25642 ;;
25643
25644amigaos*)
25645 library_names_spec='$libname.ixlibrary $libname.a'
25646 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025647 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 +000025648 ;;
25649
25650beos*)
25651 library_names_spec='${libname}${shared_ext}'
25652 dynamic_linker="$host_os ld.so"
25653 shlibpath_var=LIBRARY_PATH
25654 ;;
25655
Reid Spencer2706f8c2004-09-19 23:53:36 +000025656bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025657 version_type=linux
25658 need_version=no
25659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25660 soname_spec='${libname}${release}${shared_ext}$major'
25661 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25662 shlibpath_var=LD_LIBRARY_PATH
25663 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25664 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25665 # the default ld.so.conf also contains /usr/contrib/lib and
25666 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25667 # libtool to hard-code these into programs
25668 ;;
25669
25670cygwin* | mingw* | pw32*)
25671 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025672 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025673 need_version=no
25674 need_lib_prefix=no
25675
25676 case $GCC,$host_os in
25677 yes,cygwin* | yes,mingw* | yes,pw32*)
25678 library_names_spec='$libname.dll.a'
25679 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025680 postinstall_cmds='base_file=`basename \${file}`~
25681 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25682 dldir=$destdir/`dirname \$dlpath`~
25683 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025684 $install_prog $dir/$dlname \$dldir/$dlname~
25685 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025686 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25687 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025688 $rm \$dlpath'
25689 shlibpath_overrides_runpath=yes
25690
25691 case $host_os in
25692 cygwin*)
25693 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25694 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 +000025695 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025696 ;;
25697 mingw*)
25698 # MinGW DLLs use traditional 'lib' prefix
25699 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25700 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25701 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25702 # It is most probably a Windows format PATH printed by
25703 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25704 # path with ; separators, and with drive letters. We can handle the
25705 # drive letters (cygwin fileutils understands them), so leave them,
25706 # especially as we might pass files found there to a mingw objdump,
25707 # which wouldn't understand a cygwinified path. Ahh.
25708 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25709 else
25710 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25711 fi
25712 ;;
25713 pw32*)
25714 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025715 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 +000025716 ;;
25717 esac
25718 ;;
25719
25720 *)
25721 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25722 ;;
25723 esac
25724 dynamic_linker='Win32 ld.exe'
25725 # FIXME: first we should search . and the directory the executable is in
25726 shlibpath_var=PATH
25727 ;;
25728
25729darwin* | rhapsody*)
25730 dynamic_linker="$host_os dyld"
25731 version_type=darwin
25732 need_lib_prefix=no
25733 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025734 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025735 soname_spec='${libname}${release}${major}$shared_ext'
25736 shlibpath_overrides_runpath=yes
25737 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025738 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025739 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025740 if test "$GCC" = yes; then
25741 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"`
25742 else
25743 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025744 fi
25745 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25746 ;;
25747
25748dgux*)
25749 version_type=linux
25750 need_lib_prefix=no
25751 need_version=no
25752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25753 soname_spec='${libname}${release}${shared_ext}$major'
25754 shlibpath_var=LD_LIBRARY_PATH
25755 ;;
25756
25757freebsd1*)
25758 dynamic_linker=no
25759 ;;
25760
Reid Spencer2706f8c2004-09-19 23:53:36 +000025761kfreebsd*-gnu)
25762 version_type=linux
25763 need_lib_prefix=no
25764 need_version=no
25765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25766 soname_spec='${libname}${release}${shared_ext}$major'
25767 shlibpath_var=LD_LIBRARY_PATH
25768 shlibpath_overrides_runpath=no
25769 hardcode_into_libs=yes
25770 dynamic_linker='GNU ld.so'
25771 ;;
25772
Reid Spencera773bd52006-08-04 18:18:08 +000025773freebsd* | dragonfly*)
25774 # DragonFly does not have aout. When/if they implement a new
25775 # versioning mechanism, adjust this.
25776 if test -x /usr/bin/objformat; then
25777 objformat=`/usr/bin/objformat`
25778 else
25779 case $host_os in
25780 freebsd[123]*) objformat=aout ;;
25781 *) objformat=elf ;;
25782 esac
25783 fi
John Criswell47fdd832003-07-14 16:52:07 +000025784 version_type=freebsd-$objformat
25785 case $version_type in
25786 freebsd-elf*)
25787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25788 need_version=no
25789 need_lib_prefix=no
25790 ;;
25791 freebsd-*)
25792 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25793 need_version=yes
25794 ;;
25795 esac
25796 shlibpath_var=LD_LIBRARY_PATH
25797 case $host_os in
25798 freebsd2*)
25799 shlibpath_overrides_runpath=yes
25800 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025801 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025802 shlibpath_overrides_runpath=yes
25803 hardcode_into_libs=yes
25804 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025805 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25806 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025807 shlibpath_overrides_runpath=no
25808 hardcode_into_libs=yes
25809 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025810 freebsd*) # from 4.6 on
25811 shlibpath_overrides_runpath=yes
25812 hardcode_into_libs=yes
25813 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025814 esac
25815 ;;
25816
25817gnu*)
25818 version_type=linux
25819 need_lib_prefix=no
25820 need_version=no
25821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25822 soname_spec='${libname}${release}${shared_ext}$major'
25823 shlibpath_var=LD_LIBRARY_PATH
25824 hardcode_into_libs=yes
25825 ;;
25826
25827hpux9* | hpux10* | hpux11*)
25828 # Give a soname corresponding to the major version so that dld.sl refuses to
25829 # link against other versions.
25830 version_type=sunos
25831 need_lib_prefix=no
25832 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025833 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025834 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025835 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025836 hardcode_into_libs=yes
25837 dynamic_linker="$host_os dld.so"
25838 shlibpath_var=LD_LIBRARY_PATH
25839 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25841 soname_spec='${libname}${release}${shared_ext}$major'
25842 if test "X$HPUX_IA64_MODE" = X32; then
25843 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25844 else
25845 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25846 fi
25847 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25848 ;;
25849 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025850 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025851 hardcode_into_libs=yes
25852 dynamic_linker="$host_os dld.sl"
25853 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25854 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25856 soname_spec='${libname}${release}${shared_ext}$major'
25857 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25858 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25859 ;;
25860 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025861 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025862 dynamic_linker="$host_os dld.sl"
25863 shlibpath_var=SHLIB_PATH
25864 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25866 soname_spec='${libname}${release}${shared_ext}$major'
25867 ;;
25868 esac
25869 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25870 postinstall_cmds='chmod 555 $lib'
25871 ;;
25872
Reid Spencera773bd52006-08-04 18:18:08 +000025873interix3*)
25874 version_type=linux
25875 need_lib_prefix=no
25876 need_version=no
25877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25878 soname_spec='${libname}${release}${shared_ext}$major'
25879 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25880 shlibpath_var=LD_LIBRARY_PATH
25881 shlibpath_overrides_runpath=no
25882 hardcode_into_libs=yes
25883 ;;
25884
John Criswell47fdd832003-07-14 16:52:07 +000025885irix5* | irix6* | nonstopux*)
25886 case $host_os in
25887 nonstopux*) version_type=nonstopux ;;
25888 *)
25889 if test "$lt_cv_prog_gnu_ld" = yes; then
25890 version_type=linux
25891 else
25892 version_type=irix
25893 fi ;;
25894 esac
25895 need_lib_prefix=no
25896 need_version=no
25897 soname_spec='${libname}${release}${shared_ext}$major'
25898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25899 case $host_os in
25900 irix5* | nonstopux*)
25901 libsuff= shlibsuff=
25902 ;;
25903 *)
25904 case $LD in # libtool.m4 will add one of these switches to LD
25905 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25906 libsuff= shlibsuff= libmagic=32-bit;;
25907 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25908 libsuff=32 shlibsuff=N32 libmagic=N32;;
25909 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25910 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25911 *) libsuff= shlibsuff= libmagic=never-match;;
25912 esac
25913 ;;
25914 esac
25915 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25916 shlibpath_overrides_runpath=no
25917 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25918 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25919 hardcode_into_libs=yes
25920 ;;
25921
25922# No shared lib support for Linux oldld, aout, or coff.
25923linux*oldld* | linux*aout* | linux*coff*)
25924 dynamic_linker=no
25925 ;;
25926
25927# This must be Linux ELF.
25928linux*)
25929 version_type=linux
25930 need_lib_prefix=no
25931 need_version=no
25932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25933 soname_spec='${libname}${release}${shared_ext}$major'
25934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25935 shlibpath_var=LD_LIBRARY_PATH
25936 shlibpath_overrides_runpath=no
25937 # This implies no fast_install, which is unacceptable.
25938 # Some rework will be needed to allow for fast_install
25939 # before this can be enabled.
25940 hardcode_into_libs=yes
25941
Reid Spencer2706f8c2004-09-19 23:53:36 +000025942 # Append ld.so.conf contents to the search path
25943 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025944 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 +000025945 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25946 fi
25947
John Criswell47fdd832003-07-14 16:52:07 +000025948 # We used to test for /lib/ld.so.1 and disable shared libraries on
25949 # powerpc, because MkLinux only supported shared libraries with the
25950 # GNU dynamic linker. Since this was broken with cross compilers,
25951 # most powerpc-linux boxes support dynamic linking these days and
25952 # people can always --disable-shared, the test was removed, and we
25953 # assume the GNU/Linux dynamic linker is in use.
25954 dynamic_linker='GNU/Linux ld.so'
25955 ;;
25956
Reid Spencer2706f8c2004-09-19 23:53:36 +000025957knetbsd*-gnu)
25958 version_type=linux
25959 need_lib_prefix=no
25960 need_version=no
25961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25962 soname_spec='${libname}${release}${shared_ext}$major'
25963 shlibpath_var=LD_LIBRARY_PATH
25964 shlibpath_overrides_runpath=no
25965 hardcode_into_libs=yes
25966 dynamic_linker='GNU ld.so'
25967 ;;
25968
John Criswell47fdd832003-07-14 16:52:07 +000025969netbsd*)
25970 version_type=sunos
25971 need_lib_prefix=no
25972 need_version=no
25973 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25975 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25976 dynamic_linker='NetBSD (a.out) ld.so'
25977 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025979 soname_spec='${libname}${release}${shared_ext}$major'
25980 dynamic_linker='NetBSD ld.elf_so'
25981 fi
25982 shlibpath_var=LD_LIBRARY_PATH
25983 shlibpath_overrides_runpath=yes
25984 hardcode_into_libs=yes
25985 ;;
25986
25987newsos6)
25988 version_type=linux
25989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25990 shlibpath_var=LD_LIBRARY_PATH
25991 shlibpath_overrides_runpath=yes
25992 ;;
25993
Reid Spencer2706f8c2004-09-19 23:53:36 +000025994nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025995 version_type=linux
25996 need_lib_prefix=no
25997 need_version=no
25998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25999 soname_spec='${libname}${release}${shared_ext}$major'
26000 shlibpath_var=LD_LIBRARY_PATH
26001 shlibpath_overrides_runpath=yes
26002 ;;
26003
26004openbsd*)
26005 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000026006 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000026007 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000026008 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26009 case $host_os in
26010 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26011 *) need_version=no ;;
26012 esac
John Criswell47fdd832003-07-14 16:52:07 +000026013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26014 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26015 shlibpath_var=LD_LIBRARY_PATH
26016 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26017 case $host_os in
26018 openbsd2.[89] | openbsd2.[89].*)
26019 shlibpath_overrides_runpath=no
26020 ;;
26021 *)
26022 shlibpath_overrides_runpath=yes
26023 ;;
26024 esac
26025 else
26026 shlibpath_overrides_runpath=yes
26027 fi
26028 ;;
26029
26030os2*)
26031 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000026032 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000026033 need_lib_prefix=no
26034 library_names_spec='$libname${shared_ext} $libname.a'
26035 dynamic_linker='OS/2 ld.exe'
26036 shlibpath_var=LIBPATH
26037 ;;
26038
26039osf3* | osf4* | osf5*)
26040 version_type=osf
26041 need_lib_prefix=no
26042 need_version=no
26043 soname_spec='${libname}${release}${shared_ext}$major'
26044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26045 shlibpath_var=LD_LIBRARY_PATH
26046 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26047 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26048 ;;
26049
John Criswell47fdd832003-07-14 16:52:07 +000026050solaris*)
26051 version_type=linux
26052 need_lib_prefix=no
26053 need_version=no
26054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26055 soname_spec='${libname}${release}${shared_ext}$major'
26056 shlibpath_var=LD_LIBRARY_PATH
26057 shlibpath_overrides_runpath=yes
26058 hardcode_into_libs=yes
26059 # ldd complains unless libraries are executable
26060 postinstall_cmds='chmod +x $lib'
26061 ;;
26062
26063sunos4*)
26064 version_type=sunos
26065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26066 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26067 shlibpath_var=LD_LIBRARY_PATH
26068 shlibpath_overrides_runpath=yes
26069 if test "$with_gnu_ld" = yes; then
26070 need_lib_prefix=no
26071 fi
26072 need_version=yes
26073 ;;
26074
Reid Spencera773bd52006-08-04 18:18:08 +000026075sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000026076 version_type=linux
26077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26078 soname_spec='${libname}${release}${shared_ext}$major'
26079 shlibpath_var=LD_LIBRARY_PATH
26080 case $host_vendor in
26081 sni)
26082 shlibpath_overrides_runpath=no
26083 need_lib_prefix=no
26084 export_dynamic_flag_spec='${wl}-Blargedynsym'
26085 runpath_var=LD_RUN_PATH
26086 ;;
26087 siemens)
26088 need_lib_prefix=no
26089 ;;
26090 motorola)
26091 need_lib_prefix=no
26092 need_version=no
26093 shlibpath_overrides_runpath=no
26094 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26095 ;;
26096 esac
26097 ;;
26098
26099sysv4*MP*)
26100 if test -d /usr/nec ;then
26101 version_type=linux
26102 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26103 soname_spec='$libname${shared_ext}.$major'
26104 shlibpath_var=LD_LIBRARY_PATH
26105 fi
26106 ;;
26107
Reid Spencera773bd52006-08-04 18:18:08 +000026108sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26109 version_type=freebsd-elf
26110 need_lib_prefix=no
26111 need_version=no
26112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26113 soname_spec='${libname}${release}${shared_ext}$major'
26114 shlibpath_var=LD_LIBRARY_PATH
26115 hardcode_into_libs=yes
26116 if test "$with_gnu_ld" = yes; then
26117 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26118 shlibpath_overrides_runpath=no
26119 else
26120 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26121 shlibpath_overrides_runpath=yes
26122 case $host_os in
26123 sco3.2v5*)
26124 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26125 ;;
26126 esac
26127 fi
26128 sys_lib_dlsearch_path_spec='/usr/lib'
26129 ;;
26130
John Criswell47fdd832003-07-14 16:52:07 +000026131uts4*)
26132 version_type=linux
26133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26134 soname_spec='${libname}${release}${shared_ext}$major'
26135 shlibpath_var=LD_LIBRARY_PATH
26136 ;;
26137
26138*)
26139 dynamic_linker=no
26140 ;;
26141esac
Reid Spencera773bd52006-08-04 18:18:08 +000026142{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26143echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000026144test "$dynamic_linker" = no && can_build_shared=no
26145
Reid Spencera773bd52006-08-04 18:18:08 +000026146variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26147if test "$GCC" = yes; then
26148 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26149fi
26150
26151{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26152echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026153hardcode_action_GCJ=
26154if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26155 test -n "$runpath_var_GCJ" || \
26156 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26157
26158 # We can hardcode non-existant directories.
26159 if test "$hardcode_direct_GCJ" != no &&
26160 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26161 # have to relink, otherwise we might link with an installed library
26162 # when we should be linking with a yet-to-be-installed one
26163 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26164 test "$hardcode_minus_L_GCJ" != no; then
26165 # Linking always hardcodes the temporary library directory.
26166 hardcode_action_GCJ=relink
26167 else
26168 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26169 hardcode_action_GCJ=immediate
26170 fi
26171else
26172 # We cannot hardcode anything, or else we can only hardcode existing
26173 # directories.
26174 hardcode_action_GCJ=unsupported
26175fi
Reid Spencera773bd52006-08-04 18:18:08 +000026176{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26177echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026178
26179if test "$hardcode_action_GCJ" = relink; then
26180 # Fast installation is not supported
26181 enable_fast_install=no
26182elif test "$shlibpath_overrides_runpath" = yes ||
26183 test "$enable_shared" = no; then
26184 # Fast installation is not necessary
26185 enable_fast_install=needless
26186fi
26187
John Criswell47fdd832003-07-14 16:52:07 +000026188
26189# The else clause should only fire when bootstrapping the
26190# libtool distribution, otherwise you forgot to ship ltmain.sh
26191# with your package, and you will get complaints that there are
26192# no rules to generate ltmain.sh.
26193if test -f "$ltmain"; then
26194 # See if we are running on zsh, and set the options which allow our commands through
26195 # without removal of \ escapes.
26196 if test -n "${ZSH_VERSION+set}" ; then
26197 setopt NO_GLOB_SUBST
26198 fi
26199 # Now quote all the things that may contain metacharacters while being
26200 # careful not to overquote the AC_SUBSTed values. We take copies of the
26201 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026202 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 +000026203 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026204 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26205 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26206 deplibs_check_method reload_flag reload_cmds need_locks \
26207 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26208 lt_cv_sys_global_symbol_to_c_name_address \
26209 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26210 old_postinstall_cmds old_postuninstall_cmds \
26211 compiler_GCJ \
26212 CC_GCJ \
26213 LD_GCJ \
26214 lt_prog_compiler_wl_GCJ \
26215 lt_prog_compiler_pic_GCJ \
26216 lt_prog_compiler_static_GCJ \
26217 lt_prog_compiler_no_builtin_flag_GCJ \
26218 export_dynamic_flag_spec_GCJ \
26219 thread_safe_flag_spec_GCJ \
26220 whole_archive_flag_spec_GCJ \
26221 enable_shared_with_static_runtimes_GCJ \
26222 old_archive_cmds_GCJ \
26223 old_archive_from_new_cmds_GCJ \
26224 predep_objects_GCJ \
26225 postdep_objects_GCJ \
26226 predeps_GCJ \
26227 postdeps_GCJ \
26228 compiler_lib_search_path_GCJ \
26229 archive_cmds_GCJ \
26230 archive_expsym_cmds_GCJ \
26231 postinstall_cmds_GCJ \
26232 postuninstall_cmds_GCJ \
26233 old_archive_from_expsyms_cmds_GCJ \
26234 allow_undefined_flag_GCJ \
26235 no_undefined_flag_GCJ \
26236 export_symbols_cmds_GCJ \
26237 hardcode_libdir_flag_spec_GCJ \
26238 hardcode_libdir_flag_spec_ld_GCJ \
26239 hardcode_libdir_separator_GCJ \
26240 hardcode_automatic_GCJ \
26241 module_cmds_GCJ \
26242 module_expsym_cmds_GCJ \
26243 lt_cv_prog_compiler_c_o_GCJ \
26244 exclude_expsyms_GCJ \
26245 include_expsyms_GCJ; do
26246
26247 case $var in
26248 old_archive_cmds_GCJ | \
26249 old_archive_from_new_cmds_GCJ | \
26250 archive_cmds_GCJ | \
26251 archive_expsym_cmds_GCJ | \
26252 module_cmds_GCJ | \
26253 module_expsym_cmds_GCJ | \
26254 old_archive_from_expsyms_cmds_GCJ | \
26255 export_symbols_cmds_GCJ | \
26256 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26257 postinstall_cmds | postuninstall_cmds | \
26258 old_postinstall_cmds | old_postuninstall_cmds | \
26259 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26260 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026261 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 +000026262 ;;
26263 *)
26264 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26265 ;;
26266 esac
26267 done
26268
26269 case $lt_echo in
26270 *'\$0 --fallback-echo"')
26271 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26272 ;;
26273 esac
26274
26275cfgfile="$ofile"
26276
26277 cat <<__EOF__ >> "$cfgfile"
26278# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26279
26280# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26281
26282# Shell to use when invoking shell scripts.
26283SHELL=$lt_SHELL
26284
26285# Whether or not to build shared libraries.
26286build_libtool_libs=$enable_shared
26287
26288# Whether or not to build static libraries.
26289build_old_libs=$enable_static
26290
26291# Whether or not to add -lc for building shared libraries.
26292build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26293
26294# Whether or not to disallow shared libs when runtime libs are static
26295allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26296
26297# Whether or not to optimize for fast installation.
26298fast_install=$enable_fast_install
26299
26300# The host system.
26301host_alias=$host_alias
26302host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026303host_os=$host_os
26304
26305# The build system.
26306build_alias=$build_alias
26307build=$build
26308build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026309
26310# An echo program that does not interpret backslashes.
26311echo=$lt_echo
26312
26313# The archiver.
26314AR=$lt_AR
26315AR_FLAGS=$lt_AR_FLAGS
26316
26317# A C compiler.
26318LTCC=$lt_LTCC
26319
Reid Spencera773bd52006-08-04 18:18:08 +000026320# LTCC compiler flags.
26321LTCFLAGS=$lt_LTCFLAGS
26322
John Criswell47fdd832003-07-14 16:52:07 +000026323# A language-specific compiler.
26324CC=$lt_compiler_GCJ
26325
26326# Is the compiler the GNU C compiler?
26327with_gcc=$GCC_GCJ
26328
26329# An ERE matcher.
26330EGREP=$lt_EGREP
26331
26332# The linker used to build libraries.
26333LD=$lt_LD_GCJ
26334
26335# Whether we need hard or soft links.
26336LN_S=$lt_LN_S
26337
26338# A BSD-compatible nm program.
26339NM=$lt_NM
26340
26341# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026342STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026343
26344# Used to examine libraries when file_magic_cmd begins "file"
26345MAGIC_CMD=$MAGIC_CMD
26346
26347# Used on cygwin: DLL creation program.
26348DLLTOOL="$DLLTOOL"
26349
26350# Used on cygwin: object dumper.
26351OBJDUMP="$OBJDUMP"
26352
26353# Used on cygwin: assembler.
26354AS="$AS"
26355
26356# The name of the directory that contains temporary libtool files.
26357objdir=$objdir
26358
26359# How to create reloadable object files.
26360reload_flag=$lt_reload_flag
26361reload_cmds=$lt_reload_cmds
26362
26363# How to pass a linker flag through the compiler.
26364wl=$lt_lt_prog_compiler_wl_GCJ
26365
26366# Object file suffix (normally "o").
26367objext="$ac_objext"
26368
26369# Old archive suffix (normally "a").
26370libext="$libext"
26371
26372# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026373shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026374
26375# Executable file suffix (normally "").
26376exeext="$exeext"
26377
26378# Additional compiler flags for building library objects.
26379pic_flag=$lt_lt_prog_compiler_pic_GCJ
26380pic_mode=$pic_mode
26381
26382# What is the maximum length of a command?
26383max_cmd_len=$lt_cv_sys_max_cmd_len
26384
26385# Does compiler simultaneously support -c and -o options?
26386compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26387
Reid Spencera773bd52006-08-04 18:18:08 +000026388# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026389need_locks=$lt_need_locks
26390
26391# Do we need the lib prefix for modules?
26392need_lib_prefix=$need_lib_prefix
26393
26394# Do we need a version for libraries?
26395need_version=$need_version
26396
26397# Whether dlopen is supported.
26398dlopen_support=$enable_dlopen
26399
26400# Whether dlopen of programs is supported.
26401dlopen_self=$enable_dlopen_self
26402
26403# Whether dlopen of statically linked programs is supported.
26404dlopen_self_static=$enable_dlopen_self_static
26405
26406# Compiler flag to prevent dynamic linking.
26407link_static_flag=$lt_lt_prog_compiler_static_GCJ
26408
26409# Compiler flag to turn off builtin functions.
26410no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26411
26412# Compiler flag to allow reflexive dlopens.
26413export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26414
26415# Compiler flag to generate shared objects directly from archives.
26416whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26417
26418# Compiler flag to generate thread-safe objects.
26419thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26420
26421# Library versioning type.
26422version_type=$version_type
26423
26424# Format of library name prefix.
26425libname_spec=$lt_libname_spec
26426
26427# List of archive names. First name is the real one, the rest are links.
26428# The last name is the one that the linker finds with -lNAME.
26429library_names_spec=$lt_library_names_spec
26430
26431# The coded name of the library, if different from the real name.
26432soname_spec=$lt_soname_spec
26433
26434# Commands used to build and install an old-style archive.
26435RANLIB=$lt_RANLIB
26436old_archive_cmds=$lt_old_archive_cmds_GCJ
26437old_postinstall_cmds=$lt_old_postinstall_cmds
26438old_postuninstall_cmds=$lt_old_postuninstall_cmds
26439
26440# Create an old-style archive from a shared archive.
26441old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26442
26443# Create a temporary old-style archive to link instead of a shared archive.
26444old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26445
26446# Commands used to build and install a shared archive.
26447archive_cmds=$lt_archive_cmds_GCJ
26448archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26449postinstall_cmds=$lt_postinstall_cmds
26450postuninstall_cmds=$lt_postuninstall_cmds
26451
26452# Commands used to build a loadable module (assumed same as above if empty)
26453module_cmds=$lt_module_cmds_GCJ
26454module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26455
26456# Commands to strip libraries.
26457old_striplib=$lt_old_striplib
26458striplib=$lt_striplib
26459
26460# Dependencies to place before the objects being linked to create a
26461# shared library.
26462predep_objects=$lt_predep_objects_GCJ
26463
26464# Dependencies to place after the objects being linked to create a
26465# shared library.
26466postdep_objects=$lt_postdep_objects_GCJ
26467
26468# Dependencies to place before the objects being linked to create a
26469# shared library.
26470predeps=$lt_predeps_GCJ
26471
26472# Dependencies to place after the objects being linked to create a
26473# shared library.
26474postdeps=$lt_postdeps_GCJ
26475
26476# The library search path used internally by the compiler when linking
26477# a shared library.
26478compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26479
26480# Method to check whether dependent libraries are shared objects.
26481deplibs_check_method=$lt_deplibs_check_method
26482
26483# Command to use when deplibs_check_method == file_magic.
26484file_magic_cmd=$lt_file_magic_cmd
26485
26486# Flag that allows shared libraries with undefined symbols to be built.
26487allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26488
26489# Flag that forces no undefined symbols.
26490no_undefined_flag=$lt_no_undefined_flag_GCJ
26491
26492# Commands used to finish a libtool library installation in a directory.
26493finish_cmds=$lt_finish_cmds
26494
26495# Same as above, but a single script fragment to be evaled but not shown.
26496finish_eval=$lt_finish_eval
26497
26498# Take the output of nm and produce a listing of raw symbols and C names.
26499global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26500
26501# Transform the output of nm in a proper C declaration
26502global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26503
26504# Transform the output of nm in a C name address pair
26505global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26506
26507# This is the shared library runtime path variable.
26508runpath_var=$runpath_var
26509
26510# This is the shared library path variable.
26511shlibpath_var=$shlibpath_var
26512
26513# Is shlibpath searched before the hard-coded library search path?
26514shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26515
26516# How to hardcode a shared library path into an executable.
26517hardcode_action=$hardcode_action_GCJ
26518
26519# Whether we should hardcode library paths into libraries.
26520hardcode_into_libs=$hardcode_into_libs
26521
26522# Flag to hardcode \$libdir into a binary during linking.
26523# This must work even if \$libdir does not exist.
26524hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26525
26526# If ld is used when linking, flag to hardcode \$libdir into
26527# a binary during linking. This must work even if \$libdir does
26528# not exist.
26529hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26530
26531# Whether we need a single -rpath flag with a separated argument.
26532hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26533
26534# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26535# resulting binary.
26536hardcode_direct=$hardcode_direct_GCJ
26537
26538# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26539# resulting binary.
26540hardcode_minus_L=$hardcode_minus_L_GCJ
26541
26542# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26543# the resulting binary.
26544hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26545
26546# Set to yes if building a shared library automatically hardcodes DIR into the library
26547# and all subsequent libraries and executables linked against it.
26548hardcode_automatic=$hardcode_automatic_GCJ
26549
26550# Variables whose values should be saved in libtool wrapper scripts and
26551# restored at relink time.
26552variables_saved_for_relink="$variables_saved_for_relink"
26553
26554# Whether libtool must link a program against all its dependency libraries.
26555link_all_deplibs=$link_all_deplibs_GCJ
26556
26557# Compile-time system search path for libraries
26558sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26559
26560# Run-time system search path for libraries
26561sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26562
26563# Fix the shell variable \$srcfile for the compiler.
26564fix_srcfile_path="$fix_srcfile_path_GCJ"
26565
26566# Set to yes if exported symbols are required.
26567always_export_symbols=$always_export_symbols_GCJ
26568
26569# The commands to list exported symbols.
26570export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26571
26572# The commands to extract the exported symbol list from a shared archive.
26573extract_expsyms_cmds=$lt_extract_expsyms_cmds
26574
26575# Symbols that should not be listed in the preloaded symbols.
26576exclude_expsyms=$lt_exclude_expsyms_GCJ
26577
26578# Symbols that must always be exported.
26579include_expsyms=$lt_include_expsyms_GCJ
26580
26581# ### END LIBTOOL TAG CONFIG: $tagname
26582
26583__EOF__
26584
26585
26586else
26587 # If there is no Makefile yet, we rely on a make rule to execute
26588 # `config.status --recheck' to rerun these tests and create the
26589 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026590 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26591 if test -f "$ltmain_in"; then
26592 test -f Makefile && make "$ltmain"
26593 fi
John Criswell47fdd832003-07-14 16:52:07 +000026594fi
26595
26596
26597ac_ext=c
26598ac_cpp='$CPP $CPPFLAGS'
26599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26601ac_compiler_gnu=$ac_cv_c_compiler_gnu
26602
26603CC="$lt_save_CC"
26604
26605 else
26606 tagname=""
26607 fi
26608 ;;
26609
26610 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026611 ac_ext=c
26612ac_cpp='$CPP $CPPFLAGS'
26613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26615ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026616
26617
26618# Source file extension for RC test sources.
26619ac_ext=rc
26620
26621# Object file extension for compiled RC test sources.
26622objext=o
26623objext_RC=$objext
26624
26625# Code to be used in simple compile tests
26626lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26627
26628# Code to be used in simple link tests
26629lt_simple_link_test_code="$lt_simple_compile_test_code"
26630
26631# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26632
26633# If no C compiler was specified, use CC.
26634LTCC=${LTCC-"$CC"}
26635
Reid Spencera773bd52006-08-04 18:18:08 +000026636# If no C compiler flags were specified, use CFLAGS.
26637LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26638
John Criswell47fdd832003-07-14 16:52:07 +000026639# Allow CC to be a program name with arguments.
26640compiler=$CC
26641
26642
Reid Spencera773bd52006-08-04 18:18:08 +000026643# save warnings/boilerplate of simple test code
26644ac_outfile=conftest.$ac_objext
26645printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26646eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26647_lt_compiler_boilerplate=`cat conftest.err`
26648$rm conftest*
26649
26650ac_outfile=conftest.$ac_objext
26651printf "$lt_simple_link_test_code" >conftest.$ac_ext
26652eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26653_lt_linker_boilerplate=`cat conftest.err`
26654$rm conftest*
26655
26656
John Criswell47fdd832003-07-14 16:52:07 +000026657# Allow CC to be a program name with arguments.
26658lt_save_CC="$CC"
26659CC=${RC-"windres"}
26660compiler=$CC
26661compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026662for cc_temp in $compiler""; do
26663 case $cc_temp in
26664 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26665 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26666 \-*) ;;
26667 *) break;;
26668 esac
26669done
26670cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26671
John Criswell47fdd832003-07-14 16:52:07 +000026672lt_cv_prog_compiler_c_o_RC=yes
26673
26674# The else clause should only fire when bootstrapping the
26675# libtool distribution, otherwise you forgot to ship ltmain.sh
26676# with your package, and you will get complaints that there are
26677# no rules to generate ltmain.sh.
26678if test -f "$ltmain"; then
26679 # See if we are running on zsh, and set the options which allow our commands through
26680 # without removal of \ escapes.
26681 if test -n "${ZSH_VERSION+set}" ; then
26682 setopt NO_GLOB_SUBST
26683 fi
26684 # Now quote all the things that may contain metacharacters while being
26685 # careful not to overquote the AC_SUBSTed values. We take copies of the
26686 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026687 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 +000026688 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026689 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26690 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26691 deplibs_check_method reload_flag reload_cmds need_locks \
26692 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26693 lt_cv_sys_global_symbol_to_c_name_address \
26694 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26695 old_postinstall_cmds old_postuninstall_cmds \
26696 compiler_RC \
26697 CC_RC \
26698 LD_RC \
26699 lt_prog_compiler_wl_RC \
26700 lt_prog_compiler_pic_RC \
26701 lt_prog_compiler_static_RC \
26702 lt_prog_compiler_no_builtin_flag_RC \
26703 export_dynamic_flag_spec_RC \
26704 thread_safe_flag_spec_RC \
26705 whole_archive_flag_spec_RC \
26706 enable_shared_with_static_runtimes_RC \
26707 old_archive_cmds_RC \
26708 old_archive_from_new_cmds_RC \
26709 predep_objects_RC \
26710 postdep_objects_RC \
26711 predeps_RC \
26712 postdeps_RC \
26713 compiler_lib_search_path_RC \
26714 archive_cmds_RC \
26715 archive_expsym_cmds_RC \
26716 postinstall_cmds_RC \
26717 postuninstall_cmds_RC \
26718 old_archive_from_expsyms_cmds_RC \
26719 allow_undefined_flag_RC \
26720 no_undefined_flag_RC \
26721 export_symbols_cmds_RC \
26722 hardcode_libdir_flag_spec_RC \
26723 hardcode_libdir_flag_spec_ld_RC \
26724 hardcode_libdir_separator_RC \
26725 hardcode_automatic_RC \
26726 module_cmds_RC \
26727 module_expsym_cmds_RC \
26728 lt_cv_prog_compiler_c_o_RC \
26729 exclude_expsyms_RC \
26730 include_expsyms_RC; do
26731
26732 case $var in
26733 old_archive_cmds_RC | \
26734 old_archive_from_new_cmds_RC | \
26735 archive_cmds_RC | \
26736 archive_expsym_cmds_RC | \
26737 module_cmds_RC | \
26738 module_expsym_cmds_RC | \
26739 old_archive_from_expsyms_cmds_RC | \
26740 export_symbols_cmds_RC | \
26741 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26742 postinstall_cmds | postuninstall_cmds | \
26743 old_postinstall_cmds | old_postuninstall_cmds | \
26744 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26745 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026746 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 +000026747 ;;
26748 *)
26749 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26750 ;;
26751 esac
26752 done
26753
26754 case $lt_echo in
26755 *'\$0 --fallback-echo"')
26756 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26757 ;;
26758 esac
26759
26760cfgfile="$ofile"
26761
26762 cat <<__EOF__ >> "$cfgfile"
26763# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26764
26765# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26766
26767# Shell to use when invoking shell scripts.
26768SHELL=$lt_SHELL
26769
26770# Whether or not to build shared libraries.
26771build_libtool_libs=$enable_shared
26772
26773# Whether or not to build static libraries.
26774build_old_libs=$enable_static
26775
26776# Whether or not to add -lc for building shared libraries.
26777build_libtool_need_lc=$archive_cmds_need_lc_RC
26778
26779# Whether or not to disallow shared libs when runtime libs are static
26780allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26781
26782# Whether or not to optimize for fast installation.
26783fast_install=$enable_fast_install
26784
26785# The host system.
26786host_alias=$host_alias
26787host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026788host_os=$host_os
26789
26790# The build system.
26791build_alias=$build_alias
26792build=$build
26793build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026794
26795# An echo program that does not interpret backslashes.
26796echo=$lt_echo
26797
26798# The archiver.
26799AR=$lt_AR
26800AR_FLAGS=$lt_AR_FLAGS
26801
26802# A C compiler.
26803LTCC=$lt_LTCC
26804
Reid Spencera773bd52006-08-04 18:18:08 +000026805# LTCC compiler flags.
26806LTCFLAGS=$lt_LTCFLAGS
26807
John Criswell47fdd832003-07-14 16:52:07 +000026808# A language-specific compiler.
26809CC=$lt_compiler_RC
26810
26811# Is the compiler the GNU C compiler?
26812with_gcc=$GCC_RC
26813
26814# An ERE matcher.
26815EGREP=$lt_EGREP
26816
26817# The linker used to build libraries.
26818LD=$lt_LD_RC
26819
26820# Whether we need hard or soft links.
26821LN_S=$lt_LN_S
26822
26823# A BSD-compatible nm program.
26824NM=$lt_NM
26825
26826# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026827STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026828
26829# Used to examine libraries when file_magic_cmd begins "file"
26830MAGIC_CMD=$MAGIC_CMD
26831
26832# Used on cygwin: DLL creation program.
26833DLLTOOL="$DLLTOOL"
26834
26835# Used on cygwin: object dumper.
26836OBJDUMP="$OBJDUMP"
26837
26838# Used on cygwin: assembler.
26839AS="$AS"
26840
26841# The name of the directory that contains temporary libtool files.
26842objdir=$objdir
26843
26844# How to create reloadable object files.
26845reload_flag=$lt_reload_flag
26846reload_cmds=$lt_reload_cmds
26847
26848# How to pass a linker flag through the compiler.
26849wl=$lt_lt_prog_compiler_wl_RC
26850
26851# Object file suffix (normally "o").
26852objext="$ac_objext"
26853
26854# Old archive suffix (normally "a").
26855libext="$libext"
26856
26857# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026858shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026859
26860# Executable file suffix (normally "").
26861exeext="$exeext"
26862
26863# Additional compiler flags for building library objects.
26864pic_flag=$lt_lt_prog_compiler_pic_RC
26865pic_mode=$pic_mode
26866
26867# What is the maximum length of a command?
26868max_cmd_len=$lt_cv_sys_max_cmd_len
26869
26870# Does compiler simultaneously support -c and -o options?
26871compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26872
Reid Spencera773bd52006-08-04 18:18:08 +000026873# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026874need_locks=$lt_need_locks
26875
26876# Do we need the lib prefix for modules?
26877need_lib_prefix=$need_lib_prefix
26878
26879# Do we need a version for libraries?
26880need_version=$need_version
26881
26882# Whether dlopen is supported.
26883dlopen_support=$enable_dlopen
26884
26885# Whether dlopen of programs is supported.
26886dlopen_self=$enable_dlopen_self
26887
26888# Whether dlopen of statically linked programs is supported.
26889dlopen_self_static=$enable_dlopen_self_static
26890
26891# Compiler flag to prevent dynamic linking.
26892link_static_flag=$lt_lt_prog_compiler_static_RC
26893
26894# Compiler flag to turn off builtin functions.
26895no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26896
26897# Compiler flag to allow reflexive dlopens.
26898export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26899
26900# Compiler flag to generate shared objects directly from archives.
26901whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26902
26903# Compiler flag to generate thread-safe objects.
26904thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26905
26906# Library versioning type.
26907version_type=$version_type
26908
26909# Format of library name prefix.
26910libname_spec=$lt_libname_spec
26911
26912# List of archive names. First name is the real one, the rest are links.
26913# The last name is the one that the linker finds with -lNAME.
26914library_names_spec=$lt_library_names_spec
26915
26916# The coded name of the library, if different from the real name.
26917soname_spec=$lt_soname_spec
26918
26919# Commands used to build and install an old-style archive.
26920RANLIB=$lt_RANLIB
26921old_archive_cmds=$lt_old_archive_cmds_RC
26922old_postinstall_cmds=$lt_old_postinstall_cmds
26923old_postuninstall_cmds=$lt_old_postuninstall_cmds
26924
26925# Create an old-style archive from a shared archive.
26926old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26927
26928# Create a temporary old-style archive to link instead of a shared archive.
26929old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26930
26931# Commands used to build and install a shared archive.
26932archive_cmds=$lt_archive_cmds_RC
26933archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26934postinstall_cmds=$lt_postinstall_cmds
26935postuninstall_cmds=$lt_postuninstall_cmds
26936
26937# Commands used to build a loadable module (assumed same as above if empty)
26938module_cmds=$lt_module_cmds_RC
26939module_expsym_cmds=$lt_module_expsym_cmds_RC
26940
26941# Commands to strip libraries.
26942old_striplib=$lt_old_striplib
26943striplib=$lt_striplib
26944
26945# Dependencies to place before the objects being linked to create a
26946# shared library.
26947predep_objects=$lt_predep_objects_RC
26948
26949# Dependencies to place after the objects being linked to create a
26950# shared library.
26951postdep_objects=$lt_postdep_objects_RC
26952
26953# Dependencies to place before the objects being linked to create a
26954# shared library.
26955predeps=$lt_predeps_RC
26956
26957# Dependencies to place after the objects being linked to create a
26958# shared library.
26959postdeps=$lt_postdeps_RC
26960
26961# The library search path used internally by the compiler when linking
26962# a shared library.
26963compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26964
26965# Method to check whether dependent libraries are shared objects.
26966deplibs_check_method=$lt_deplibs_check_method
26967
26968# Command to use when deplibs_check_method == file_magic.
26969file_magic_cmd=$lt_file_magic_cmd
26970
26971# Flag that allows shared libraries with undefined symbols to be built.
26972allow_undefined_flag=$lt_allow_undefined_flag_RC
26973
26974# Flag that forces no undefined symbols.
26975no_undefined_flag=$lt_no_undefined_flag_RC
26976
26977# Commands used to finish a libtool library installation in a directory.
26978finish_cmds=$lt_finish_cmds
26979
26980# Same as above, but a single script fragment to be evaled but not shown.
26981finish_eval=$lt_finish_eval
26982
26983# Take the output of nm and produce a listing of raw symbols and C names.
26984global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26985
26986# Transform the output of nm in a proper C declaration
26987global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26988
26989# Transform the output of nm in a C name address pair
26990global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26991
26992# This is the shared library runtime path variable.
26993runpath_var=$runpath_var
26994
26995# This is the shared library path variable.
26996shlibpath_var=$shlibpath_var
26997
26998# Is shlibpath searched before the hard-coded library search path?
26999shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27000
27001# How to hardcode a shared library path into an executable.
27002hardcode_action=$hardcode_action_RC
27003
27004# Whether we should hardcode library paths into libraries.
27005hardcode_into_libs=$hardcode_into_libs
27006
27007# Flag to hardcode \$libdir into a binary during linking.
27008# This must work even if \$libdir does not exist.
27009hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27010
27011# If ld is used when linking, flag to hardcode \$libdir into
27012# a binary during linking. This must work even if \$libdir does
27013# not exist.
27014hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27015
27016# Whether we need a single -rpath flag with a separated argument.
27017hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27018
27019# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27020# resulting binary.
27021hardcode_direct=$hardcode_direct_RC
27022
27023# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27024# resulting binary.
27025hardcode_minus_L=$hardcode_minus_L_RC
27026
27027# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27028# the resulting binary.
27029hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27030
27031# Set to yes if building a shared library automatically hardcodes DIR into the library
27032# and all subsequent libraries and executables linked against it.
27033hardcode_automatic=$hardcode_automatic_RC
27034
27035# Variables whose values should be saved in libtool wrapper scripts and
27036# restored at relink time.
27037variables_saved_for_relink="$variables_saved_for_relink"
27038
27039# Whether libtool must link a program against all its dependency libraries.
27040link_all_deplibs=$link_all_deplibs_RC
27041
27042# Compile-time system search path for libraries
27043sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27044
27045# Run-time system search path for libraries
27046sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27047
27048# Fix the shell variable \$srcfile for the compiler.
27049fix_srcfile_path="$fix_srcfile_path_RC"
27050
27051# Set to yes if exported symbols are required.
27052always_export_symbols=$always_export_symbols_RC
27053
27054# The commands to list exported symbols.
27055export_symbols_cmds=$lt_export_symbols_cmds_RC
27056
27057# The commands to extract the exported symbol list from a shared archive.
27058extract_expsyms_cmds=$lt_extract_expsyms_cmds
27059
27060# Symbols that should not be listed in the preloaded symbols.
27061exclude_expsyms=$lt_exclude_expsyms_RC
27062
27063# Symbols that must always be exported.
27064include_expsyms=$lt_include_expsyms_RC
27065
27066# ### END LIBTOOL TAG CONFIG: $tagname
27067
27068__EOF__
27069
27070
27071else
27072 # If there is no Makefile yet, we rely on a make rule to execute
27073 # `config.status --recheck' to rerun these tests and create the
27074 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027075 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27076 if test -f "$ltmain_in"; then
27077 test -f Makefile && make "$ltmain"
27078 fi
John Criswell47fdd832003-07-14 16:52:07 +000027079fi
27080
27081
27082ac_ext=c
27083ac_cpp='$CPP $CPPFLAGS'
27084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27086ac_compiler_gnu=$ac_cv_c_compiler_gnu
27087
27088CC="$lt_save_CC"
27089
27090 ;;
27091
27092 *)
27093 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27094echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27095 { (exit 1); exit 1; }; }
27096 ;;
27097 esac
27098
27099 # Append the new tag name to the list of available tags.
27100 if test -n "$tagname" ; then
27101 available_tags="$available_tags $tagname"
27102 fi
27103 fi
27104 done
27105 IFS="$lt_save_ifs"
27106
27107 # Now substitute the updated list of available tags.
27108 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27109 mv "${ofile}T" "$ofile"
27110 chmod +x "$ofile"
27111 else
27112 rm -f "${ofile}T"
27113 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27114echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27115 { (exit 1); exit 1; }; }
27116 fi
27117fi
John Criswell7a73b802003-06-30 21:59:07 +000027118
27119
27120
27121# This can be used to rebuild libtool when needed
27122LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27123
27124# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027125LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000027126
27127# Prevent multiple expansion
27128
27129
27130
John Criswell47fdd832003-07-14 16:52:07 +000027131
27132
27133
27134
27135
27136
27137
27138
27139
27140
27141
27142
27143
27144
27145
27146
27147
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027148
Reid Spencer582a23c2004-12-29 07:07:57 +000027149if test "$lt_cv_dlopen_self" = "yes" ; then
27150
27151cat >>confdefs.h <<\_ACEOF
27152#define CAN_DLOPEN_SELF 1
27153_ACEOF
27154
27155fi
27156
Douglas Gregor01746742009-05-11 18:05:52 +000027157
Reid Spencer7931a782004-12-27 06:15:02 +000027158if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000027159 LLVMGCC="llvm-gcc${EXEEXT}"
27160 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027161 LLVMGCCCOMMAND="$LLVMGCC"
27162 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027163 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27164
27165 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27166
Reid Spencerc84492c2005-06-02 22:34:49 +000027167 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27168set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027169{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027171if test "${ac_cv_path_LLVMGCC+set}" = set; then
27172 echo $ECHO_N "(cached) $ECHO_C" >&6
27173else
27174 case $LLVMGCC in
27175 [\\/]* | ?:[\\/]*)
27176 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27177 ;;
27178 *)
27179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27180for as_dir in $PATH
27181do
27182 IFS=$as_save_IFS
27183 test -z "$as_dir" && as_dir=.
27184 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000027185 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 +000027186 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27188 break 2
27189 fi
27190done
27191done
Reid Spencera773bd52006-08-04 18:18:08 +000027192IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027193
Reid Spencer59473af2004-12-25 07:31:29 +000027194 ;;
27195esac
27196fi
27197LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000027198if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027199 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27200echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027201else
Reid Spencera773bd52006-08-04 18:18:08 +000027202 { echo "$as_me:$LINENO: result: no" >&5
27203echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027204fi
27205
Reid Spencera773bd52006-08-04 18:18:08 +000027206
Reid Spencerc84492c2005-06-02 22:34:49 +000027207 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27208set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027209{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027211if test "${ac_cv_path_LLVMGXX+set}" = set; then
27212 echo $ECHO_N "(cached) $ECHO_C" >&6
27213else
27214 case $LLVMGXX in
27215 [\\/]* | ?:[\\/]*)
27216 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27217 ;;
27218 *)
27219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27220for as_dir in $PATH
27221do
27222 IFS=$as_save_IFS
27223 test -z "$as_dir" && as_dir=.
27224 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000027225 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 +000027226 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27228 break 2
27229 fi
27230done
27231done
Reid Spencera773bd52006-08-04 18:18:08 +000027232IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027233
Reid Spencer59473af2004-12-25 07:31:29 +000027234 ;;
27235esac
27236fi
27237LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000027238if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027239 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27240echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027241else
Reid Spencera773bd52006-08-04 18:18:08 +000027242 { echo "$as_me:$LINENO: result: no" >&5
27243echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027244fi
27245
Reid Spencera773bd52006-08-04 18:18:08 +000027246
Reid Spencer59473af2004-12-25 07:31:29 +000027247else
Devang Patel5d28b882007-12-04 22:54:47 +000027248 if test -z "$LLVMGCC"; then
27249 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027250 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000027251 fi
27252 if test -z "$LLVMGXX"; then
27253 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027254 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000027255 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027256
Reid Spencer59473af2004-12-25 07:31:29 +000027257 LLVMGCC=$LLVMGCC
27258
27259 LLVMGXX=$LLVMGXX
27260
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027261 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27262
27263 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27264
Reid Spencer59473af2004-12-25 07:31:29 +000027265fi
27266
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027267
Reid Spencera773bd52006-08-04 18:18:08 +000027268{ echo "$as_me:$LINENO: checking tool compatibility" >&5
27269echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027270
Reid Spencer86901802004-12-08 23:07:27 +000027271ICC=no
27272IXX=no
27273case $CC in
27274 icc*|icpc*)
27275 ICC=yes
27276 IXX=yes
27277 ;;
27278 *)
27279 ;;
27280esac
27281
Duraid Madina937c60a2006-02-15 07:57:42 +000027282if test "$GCC" != "yes" && test "$ICC" != "yes"
27283then
27284 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27285echo "$as_me: error: gcc|icc required but not found" >&2;}
27286 { (exit 1); exit 1; }; }
27287fi
27288
27289if test "$GXX" != "yes" && test "$IXX" != "yes"
27290then
27291 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27292echo "$as_me: error: g++|icc required but not found" >&2;}
27293 { (exit 1); exit 1; }; }
27294fi
27295
Reid Spencer86901802004-12-08 23:07:27 +000027296if test "$GCC" = "yes"
27297then
Chris Lattner399c7c72008-02-05 19:43:53 +000027298 cat >conftest.$ac_ext <<_ACEOF
27299#if !defined(__GNUC__) || __GNUC__ < 3
27300#error Unsupported GCC version
27301#endif
27302
27303_ACEOF
27304rm -f conftest.$ac_objext
27305if { (ac_try="$ac_compile"
27306case "(($ac_try" in
27307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27308 *) ac_try_echo=$ac_try;;
27309esac
27310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27311 (eval "$ac_compile") 2>conftest.er1
27312 ac_status=$?
27313 grep -v '^ *+' conftest.er1 >conftest.err
27314 rm -f conftest.er1
27315 cat conftest.err >&5
27316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027317 (exit $ac_status); } &&
27318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27319 { (case "(($ac_try" in
27320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27321 *) ac_try_echo=$ac_try;;
27322esac
27323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27324 (eval "$ac_try") 2>&5
27325 ac_status=$?
27326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27327 (exit $ac_status); }; } &&
27328 { ac_try='test -s conftest.$ac_objext'
27329 { (case "(($ac_try" in
27330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27331 *) ac_try_echo=$ac_try;;
27332esac
27333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27334 (eval "$ac_try") 2>&5
27335 ac_status=$?
27336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27337 (exit $ac_status); }; }; then
Chris Lattner399c7c72008-02-05 19:43:53 +000027338 :
27339else
27340 echo "$as_me: failed program was:" >&5
27341sed 's/^/| /' conftest.$ac_ext >&5
27342
27343 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027344echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27345 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027346fi
27347
27348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027349fi
27350
27351if test -z "$llvm_cv_gnu_make_command"
27352then
27353 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27354echo "$as_me: error: GNU Make required but not found" >&2;}
27355 { (exit 1); exit 1; }; }
27356fi
27357
Reid Spencera773bd52006-08-04 18:18:08 +000027358{ echo "$as_me:$LINENO: result: ok" >&5
27359echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027360
Reid Spencera773bd52006-08-04 18:18:08 +000027361{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27362echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027363if test "${ac_cv_lib_m_sin+set}" = set; then
27364 echo $ECHO_N "(cached) $ECHO_C" >&6
27365else
27366 ac_check_lib_save_LIBS=$LIBS
27367LIBS="-lm $LIBS"
27368cat >conftest.$ac_ext <<_ACEOF
27369/* confdefs.h. */
27370_ACEOF
27371cat confdefs.h >>conftest.$ac_ext
27372cat >>conftest.$ac_ext <<_ACEOF
27373/* end confdefs.h. */
27374
Reid Spencera773bd52006-08-04 18:18:08 +000027375/* Override any GCC internal prototype to avoid an error.
27376 Use char because int might match the return type of a GCC
27377 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027378#ifdef __cplusplus
27379extern "C"
27380#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027381char sin ();
27382int
27383main ()
27384{
Reid Spencera773bd52006-08-04 18:18:08 +000027385return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027386 ;
27387 return 0;
27388}
27389_ACEOF
27390rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027391if { (ac_try="$ac_link"
27392case "(($ac_try" in
27393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27394 *) ac_try_echo=$ac_try;;
27395esac
27396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27397 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027398 ac_status=$?
27399 grep -v '^ *+' conftest.er1 >conftest.err
27400 rm -f conftest.er1
27401 cat conftest.err >&5
27402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027403 (exit $ac_status); } &&
27404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27405 { (case "(($ac_try" in
27406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27407 *) ac_try_echo=$ac_try;;
27408esac
27409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27410 (eval "$ac_try") 2>&5
27411 ac_status=$?
27412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27413 (exit $ac_status); }; } &&
27414 { ac_try='test -s conftest$ac_exeext'
27415 { (case "(($ac_try" in
27416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27417 *) ac_try_echo=$ac_try;;
27418esac
27419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27420 (eval "$ac_try") 2>&5
27421 ac_status=$?
27422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27423 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027424 ac_cv_lib_m_sin=yes
27425else
27426 echo "$as_me: failed program was:" >&5
27427sed 's/^/| /' conftest.$ac_ext >&5
27428
Reid Spencera773bd52006-08-04 18:18:08 +000027429 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027430fi
Reid Spencera773bd52006-08-04 18:18:08 +000027431
Bill Wendlingebcceee2009-04-18 11:20:33 +000027432rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027433 conftest$ac_exeext conftest.$ac_ext
27434LIBS=$ac_check_lib_save_LIBS
27435fi
Reid Spencera773bd52006-08-04 18:18:08 +000027436{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27437echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027438if test $ac_cv_lib_m_sin = yes; then
27439 cat >>confdefs.h <<_ACEOF
27440#define HAVE_LIBM 1
27441_ACEOF
27442
27443 LIBS="-lm $LIBS"
27444
27445fi
27446
Jeff Cohen28783c32007-01-12 18:22:38 +000027447if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027448
Reid Spencera773bd52006-08-04 18:18:08 +000027449{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27450echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027451if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027452 echo $ECHO_N "(cached) $ECHO_C" >&6
27453else
27454 ac_check_lib_save_LIBS=$LIBS
27455LIBS="-limagehlp $LIBS"
27456cat >conftest.$ac_ext <<_ACEOF
27457/* confdefs.h. */
27458_ACEOF
27459cat confdefs.h >>conftest.$ac_ext
27460cat >>conftest.$ac_ext <<_ACEOF
27461/* end confdefs.h. */
27462
Reid Spencer48fdf912006-06-01 19:03:21 +000027463
Reid Spencer484fc8e2006-06-01 16:55:59 +000027464int
27465main ()
27466{
Reid Spencera773bd52006-08-04 18:18:08 +000027467return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027468 ;
27469 return 0;
27470}
27471_ACEOF
27472rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027473if { (ac_try="$ac_link"
27474case "(($ac_try" in
27475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27476 *) ac_try_echo=$ac_try;;
27477esac
27478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27479 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027480 ac_status=$?
27481 grep -v '^ *+' conftest.er1 >conftest.err
27482 rm -f conftest.er1
27483 cat conftest.err >&5
27484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027485 (exit $ac_status); } &&
27486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27487 { (case "(($ac_try" in
27488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27489 *) ac_try_echo=$ac_try;;
27490esac
27491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27492 (eval "$ac_try") 2>&5
27493 ac_status=$?
27494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27495 (exit $ac_status); }; } &&
27496 { ac_try='test -s conftest$ac_exeext'
27497 { (case "(($ac_try" in
27498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27499 *) ac_try_echo=$ac_try;;
27500esac
27501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27502 (eval "$ac_try") 2>&5
27503 ac_status=$?
27504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27505 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027506 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027507else
27508 echo "$as_me: failed program was:" >&5
27509sed 's/^/| /' conftest.$ac_ext >&5
27510
Reid Spencera773bd52006-08-04 18:18:08 +000027511 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027512fi
Reid Spencera773bd52006-08-04 18:18:08 +000027513
Bill Wendlingebcceee2009-04-18 11:20:33 +000027514rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027515 conftest$ac_exeext conftest.$ac_ext
27516LIBS=$ac_check_lib_save_LIBS
27517fi
Reid Spencera773bd52006-08-04 18:18:08 +000027518{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27519echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027520if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027521 cat >>confdefs.h <<_ACEOF
27522#define HAVE_LIBIMAGEHLP 1
27523_ACEOF
27524
27525 LIBS="-limagehlp $LIBS"
27526
27527fi
27528
27529
Reid Spencera773bd52006-08-04 18:18:08 +000027530{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27531echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027532if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027533 echo $ECHO_N "(cached) $ECHO_C" >&6
27534else
27535 ac_check_lib_save_LIBS=$LIBS
27536LIBS="-lpsapi $LIBS"
27537cat >conftest.$ac_ext <<_ACEOF
27538/* confdefs.h. */
27539_ACEOF
27540cat confdefs.h >>conftest.$ac_ext
27541cat >>conftest.$ac_ext <<_ACEOF
27542/* end confdefs.h. */
27543
Reid Spencer48fdf912006-06-01 19:03:21 +000027544
Reid Spencer484fc8e2006-06-01 16:55:59 +000027545int
27546main ()
27547{
Reid Spencera773bd52006-08-04 18:18:08 +000027548return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027549 ;
27550 return 0;
27551}
27552_ACEOF
27553rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027554if { (ac_try="$ac_link"
27555case "(($ac_try" in
27556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27557 *) ac_try_echo=$ac_try;;
27558esac
27559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27560 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027561 ac_status=$?
27562 grep -v '^ *+' conftest.er1 >conftest.err
27563 rm -f conftest.er1
27564 cat conftest.err >&5
27565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027566 (exit $ac_status); } &&
27567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27568 { (case "(($ac_try" in
27569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27570 *) ac_try_echo=$ac_try;;
27571esac
27572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27573 (eval "$ac_try") 2>&5
27574 ac_status=$?
27575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576 (exit $ac_status); }; } &&
27577 { ac_try='test -s conftest$ac_exeext'
27578 { (case "(($ac_try" in
27579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27580 *) ac_try_echo=$ac_try;;
27581esac
27582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27583 (eval "$ac_try") 2>&5
27584 ac_status=$?
27585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27586 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027587 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027588else
27589 echo "$as_me: failed program was:" >&5
27590sed 's/^/| /' conftest.$ac_ext >&5
27591
Reid Spencera773bd52006-08-04 18:18:08 +000027592 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027593fi
Reid Spencera773bd52006-08-04 18:18:08 +000027594
Bill Wendlingebcceee2009-04-18 11:20:33 +000027595rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027596 conftest$ac_exeext conftest.$ac_ext
27597LIBS=$ac_check_lib_save_LIBS
27598fi
Reid Spencera773bd52006-08-04 18:18:08 +000027599{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27600echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027601if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027602 cat >>confdefs.h <<_ACEOF
27603#define HAVE_LIBPSAPI 1
27604_ACEOF
27605
27606 LIBS="-lpsapi $LIBS"
27607
27608fi
27609
27610fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027611
Reid Spencera773bd52006-08-04 18:18:08 +000027612{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27613echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027614if test "${ac_cv_search_dlopen+set}" = set; then
27615 echo $ECHO_N "(cached) $ECHO_C" >&6
27616else
27617 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027618cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027619/* confdefs.h. */
27620_ACEOF
27621cat confdefs.h >>conftest.$ac_ext
27622cat >>conftest.$ac_ext <<_ACEOF
27623/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027624
Reid Spencera773bd52006-08-04 18:18:08 +000027625/* Override any GCC internal prototype to avoid an error.
27626 Use char because int might match the return type of a GCC
27627 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027628#ifdef __cplusplus
27629extern "C"
27630#endif
John Criswell7a73b802003-06-30 21:59:07 +000027631char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027632int
27633main ()
27634{
Reid Spencera773bd52006-08-04 18:18:08 +000027635return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027636 ;
27637 return 0;
27638}
27639_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027640for ac_lib in '' dl; do
27641 if test -z "$ac_lib"; then
27642 ac_res="none required"
27643 else
27644 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027645 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027646 fi
27647 rm -f conftest.$ac_objext conftest$ac_exeext
27648if { (ac_try="$ac_link"
27649case "(($ac_try" in
27650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27651 *) ac_try_echo=$ac_try;;
27652esac
27653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27654 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027655 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027656 grep -v '^ *+' conftest.er1 >conftest.err
27657 rm -f conftest.er1
27658 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027660 (exit $ac_status); } &&
27661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27662 { (case "(($ac_try" in
27663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27664 *) ac_try_echo=$ac_try;;
27665esac
27666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27667 (eval "$ac_try") 2>&5
27668 ac_status=$?
27669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27670 (exit $ac_status); }; } &&
27671 { ac_try='test -s conftest$ac_exeext'
27672 { (case "(($ac_try" in
27673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27674 *) ac_try_echo=$ac_try;;
27675esac
27676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27677 (eval "$ac_try") 2>&5
27678 ac_status=$?
27679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27680 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027681 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027682else
27683 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027684sed 's/^/| /' conftest.$ac_ext >&5
27685
Reid Spencera773bd52006-08-04 18:18:08 +000027686
John Criswell7a73b802003-06-30 21:59:07 +000027687fi
Reid Spencera773bd52006-08-04 18:18:08 +000027688
Bill Wendlingebcceee2009-04-18 11:20:33 +000027689rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027690 conftest$ac_exeext
27691 if test "${ac_cv_search_dlopen+set}" = set; then
27692 break
John Criswell7a73b802003-06-30 21:59:07 +000027693fi
Reid Spencera773bd52006-08-04 18:18:08 +000027694done
27695if test "${ac_cv_search_dlopen+set}" = set; then
27696 :
27697else
27698 ac_cv_search_dlopen=no
27699fi
27700rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027701LIBS=$ac_func_search_save_LIBS
27702fi
Reid Spencera773bd52006-08-04 18:18:08 +000027703{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27704echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27705ac_res=$ac_cv_search_dlopen
27706if test "$ac_res" != no; then
27707 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027708
27709cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027710#define HAVE_DLOPEN 1
27711_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027712
27713else
Brian Gaekec45be042003-10-07 06:01:34 +000027714 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27715echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027716fi
27717
27718
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027719if test "$llvm_cv_enable_libffi" = "yes" ; then
27720 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
Nick Lewycky267fddb2009-04-13 04:26:27 +000027721echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27722if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027723 echo $ECHO_N "(cached) $ECHO_C" >&6
27724else
Nick Lewycky267fddb2009-04-13 04:26:27 +000027725 ac_func_search_save_LIBS=$LIBS
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027726cat >conftest.$ac_ext <<_ACEOF
27727/* confdefs.h. */
27728_ACEOF
27729cat confdefs.h >>conftest.$ac_ext
27730cat >>conftest.$ac_ext <<_ACEOF
27731/* end confdefs.h. */
27732
27733/* Override any GCC internal prototype to avoid an error.
27734 Use char because int might match the return type of a GCC
27735 builtin and then its argument prototype would still apply. */
27736#ifdef __cplusplus
27737extern "C"
27738#endif
27739char ffi_call ();
27740int
27741main ()
27742{
27743return ffi_call ();
27744 ;
27745 return 0;
27746}
27747_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000027748for ac_lib in '' ffi; do
27749 if test -z "$ac_lib"; then
27750 ac_res="none required"
27751 else
27752 ac_res=-l$ac_lib
27753 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27754 fi
27755 rm -f conftest.$ac_objext conftest$ac_exeext
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027756if { (ac_try="$ac_link"
27757case "(($ac_try" in
27758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27759 *) ac_try_echo=$ac_try;;
27760esac
27761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27762 (eval "$ac_link") 2>conftest.er1
27763 ac_status=$?
27764 grep -v '^ *+' conftest.er1 >conftest.err
27765 rm -f conftest.er1
27766 cat conftest.err >&5
27767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027768 (exit $ac_status); } &&
27769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27770 { (case "(($ac_try" in
27771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27772 *) ac_try_echo=$ac_try;;
27773esac
27774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27775 (eval "$ac_try") 2>&5
27776 ac_status=$?
27777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27778 (exit $ac_status); }; } &&
27779 { ac_try='test -s conftest$ac_exeext'
27780 { (case "(($ac_try" in
27781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27782 *) ac_try_echo=$ac_try;;
27783esac
27784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27785 (eval "$ac_try") 2>&5
27786 ac_status=$?
27787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27788 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000027789 ac_cv_search_ffi_call=$ac_res
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027790else
27791 echo "$as_me: failed program was:" >&5
27792sed 's/^/| /' conftest.$ac_ext >&5
27793
Nick Lewycky267fddb2009-04-13 04:26:27 +000027794
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027795fi
27796
Bill Wendlingebcceee2009-04-18 11:20:33 +000027797rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky267fddb2009-04-13 04:26:27 +000027798 conftest$ac_exeext
27799 if test "${ac_cv_search_ffi_call+set}" = set; then
27800 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027801fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000027802done
27803if test "${ac_cv_search_ffi_call+set}" = set; then
27804 :
27805else
27806 ac_cv_search_ffi_call=no
27807fi
27808rm conftest.$ac_ext
27809LIBS=$ac_func_search_save_LIBS
27810fi
27811{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27812echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27813ac_res=$ac_cv_search_ffi_call
27814if test "$ac_res" != no; then
27815 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27816
27817cat >>confdefs.h <<\_ACEOF
27818#define HAVE_FFI_CALL 1
27819_ACEOF
27820
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027821else
27822 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27823echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27824fi
27825
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027826fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027827
Reid Spencera773bd52006-08-04 18:18:08 +000027828{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27829echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027830if test "${ac_cv_search_mallinfo+set}" = set; then
27831 echo $ECHO_N "(cached) $ECHO_C" >&6
27832else
27833 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027834cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027835/* confdefs.h. */
27836_ACEOF
27837cat confdefs.h >>conftest.$ac_ext
27838cat >>conftest.$ac_ext <<_ACEOF
27839/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027840
Reid Spencera773bd52006-08-04 18:18:08 +000027841/* Override any GCC internal prototype to avoid an error.
27842 Use char because int might match the return type of a GCC
27843 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027844#ifdef __cplusplus
27845extern "C"
27846#endif
John Criswell7a73b802003-06-30 21:59:07 +000027847char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027848int
27849main ()
27850{
Reid Spencera773bd52006-08-04 18:18:08 +000027851return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027852 ;
27853 return 0;
27854}
27855_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027856for ac_lib in '' malloc; do
27857 if test -z "$ac_lib"; then
27858 ac_res="none required"
27859 else
27860 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027861 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027862 fi
27863 rm -f conftest.$ac_objext conftest$ac_exeext
27864if { (ac_try="$ac_link"
27865case "(($ac_try" in
27866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27867 *) ac_try_echo=$ac_try;;
27868esac
27869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27870 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027871 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027872 grep -v '^ *+' conftest.er1 >conftest.err
27873 rm -f conftest.er1
27874 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027876 (exit $ac_status); } &&
27877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27878 { (case "(($ac_try" in
27879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27880 *) ac_try_echo=$ac_try;;
27881esac
27882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27883 (eval "$ac_try") 2>&5
27884 ac_status=$?
27885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27886 (exit $ac_status); }; } &&
27887 { ac_try='test -s conftest$ac_exeext'
27888 { (case "(($ac_try" in
27889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27890 *) ac_try_echo=$ac_try;;
27891esac
27892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27893 (eval "$ac_try") 2>&5
27894 ac_status=$?
27895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27896 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027897 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027898else
27899 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027900sed 's/^/| /' conftest.$ac_ext >&5
27901
Reid Spencera773bd52006-08-04 18:18:08 +000027902
John Criswell7a73b802003-06-30 21:59:07 +000027903fi
Reid Spencera773bd52006-08-04 18:18:08 +000027904
Bill Wendlingebcceee2009-04-18 11:20:33 +000027905rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027906 conftest$ac_exeext
27907 if test "${ac_cv_search_mallinfo+set}" = set; then
27908 break
John Criswell7a73b802003-06-30 21:59:07 +000027909fi
Reid Spencera773bd52006-08-04 18:18:08 +000027910done
27911if test "${ac_cv_search_mallinfo+set}" = set; then
27912 :
27913else
27914 ac_cv_search_mallinfo=no
27915fi
27916rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027917LIBS=$ac_func_search_save_LIBS
27918fi
Reid Spencera773bd52006-08-04 18:18:08 +000027919{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27920echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27921ac_res=$ac_cv_search_mallinfo
27922if test "$ac_res" != no; then
27923 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027924
27925cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027926#define HAVE_MALLINFO 1
27927_ACEOF
27928
27929fi
27930
27931
Reid Spencer0a262ba2005-08-24 10:07:20 +000027932if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027933
Reid Spencera773bd52006-08-04 18:18:08 +000027934{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27935echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027936if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27937 echo $ECHO_N "(cached) $ECHO_C" >&6
27938else
27939 ac_check_lib_save_LIBS=$LIBS
27940LIBS="-lpthread $LIBS"
27941cat >conftest.$ac_ext <<_ACEOF
27942/* confdefs.h. */
27943_ACEOF
27944cat confdefs.h >>conftest.$ac_ext
27945cat >>conftest.$ac_ext <<_ACEOF
27946/* end confdefs.h. */
27947
Reid Spencera773bd52006-08-04 18:18:08 +000027948/* Override any GCC internal prototype to avoid an error.
27949 Use char because int might match the return type of a GCC
27950 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027951#ifdef __cplusplus
27952extern "C"
27953#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027954char pthread_mutex_init ();
27955int
27956main ()
27957{
Reid Spencera773bd52006-08-04 18:18:08 +000027958return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027959 ;
27960 return 0;
27961}
27962_ACEOF
27963rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027964if { (ac_try="$ac_link"
27965case "(($ac_try" in
27966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27967 *) ac_try_echo=$ac_try;;
27968esac
27969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27970 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027971 ac_status=$?
27972 grep -v '^ *+' conftest.er1 >conftest.err
27973 rm -f conftest.er1
27974 cat conftest.err >&5
27975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027976 (exit $ac_status); } &&
27977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27978 { (case "(($ac_try" in
27979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27980 *) ac_try_echo=$ac_try;;
27981esac
27982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27983 (eval "$ac_try") 2>&5
27984 ac_status=$?
27985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27986 (exit $ac_status); }; } &&
27987 { ac_try='test -s conftest$ac_exeext'
27988 { (case "(($ac_try" in
27989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27990 *) ac_try_echo=$ac_try;;
27991esac
27992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27993 (eval "$ac_try") 2>&5
27994 ac_status=$?
27995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996 (exit $ac_status); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027997 ac_cv_lib_pthread_pthread_mutex_init=yes
27998else
27999 echo "$as_me: failed program was:" >&5
28000sed 's/^/| /' conftest.$ac_ext >&5
28001
Reid Spencera773bd52006-08-04 18:18:08 +000028002 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000028003fi
Reid Spencera773bd52006-08-04 18:18:08 +000028004
Bill Wendlingebcceee2009-04-18 11:20:33 +000028005rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000028006 conftest$ac_exeext conftest.$ac_ext
28007LIBS=$ac_check_lib_save_LIBS
28008fi
Reid Spencera773bd52006-08-04 18:18:08 +000028009{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28010echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000028011if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28012 cat >>confdefs.h <<_ACEOF
28013#define HAVE_LIBPTHREAD 1
28014_ACEOF
28015
28016 LIBS="-lpthread $LIBS"
28017
28018fi
28019
Reid Spencera773bd52006-08-04 18:18:08 +000028020 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28021echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000028022if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28023 echo $ECHO_N "(cached) $ECHO_C" >&6
28024else
28025 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000028026cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000028027/* confdefs.h. */
28028_ACEOF
28029cat confdefs.h >>conftest.$ac_ext
28030cat >>conftest.$ac_ext <<_ACEOF
28031/* end confdefs.h. */
28032
Reid Spencera773bd52006-08-04 18:18:08 +000028033/* Override any GCC internal prototype to avoid an error.
28034 Use char because int might match the return type of a GCC
28035 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000028036#ifdef __cplusplus
28037extern "C"
28038#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000028039char pthread_mutex_lock ();
28040int
28041main ()
28042{
Reid Spencera773bd52006-08-04 18:18:08 +000028043return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000028044 ;
28045 return 0;
28046}
28047_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028048for ac_lib in '' pthread; do
28049 if test -z "$ac_lib"; then
28050 ac_res="none required"
28051 else
28052 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000028053 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028054 fi
28055 rm -f conftest.$ac_objext conftest$ac_exeext
28056if { (ac_try="$ac_link"
28057case "(($ac_try" in
28058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28059 *) ac_try_echo=$ac_try;;
28060esac
28061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28062 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000028063 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028064 grep -v '^ *+' conftest.er1 >conftest.err
28065 rm -f conftest.er1
28066 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000028067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028068 (exit $ac_status); } &&
28069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28070 { (case "(($ac_try" in
28071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28072 *) ac_try_echo=$ac_try;;
28073esac
28074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28075 (eval "$ac_try") 2>&5
28076 ac_status=$?
28077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28078 (exit $ac_status); }; } &&
28079 { ac_try='test -s conftest$ac_exeext'
28080 { (case "(($ac_try" in
28081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28082 *) ac_try_echo=$ac_try;;
28083esac
28084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28085 (eval "$ac_try") 2>&5
28086 ac_status=$?
28087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28088 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028089 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000028090else
28091 echo "$as_me: failed program was:" >&5
28092sed 's/^/| /' conftest.$ac_ext >&5
28093
Reid Spencera773bd52006-08-04 18:18:08 +000028094
Brian Gaeke5f268f72003-12-05 19:29:01 +000028095fi
Reid Spencera773bd52006-08-04 18:18:08 +000028096
Bill Wendlingebcceee2009-04-18 11:20:33 +000028097rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028098 conftest$ac_exeext
28099 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28100 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000028101fi
Reid Spencera773bd52006-08-04 18:18:08 +000028102done
28103if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28104 :
28105else
28106 ac_cv_search_pthread_mutex_lock=no
28107fi
28108rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000028109LIBS=$ac_func_search_save_LIBS
28110fi
Reid Spencera773bd52006-08-04 18:18:08 +000028111{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28112echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28113ac_res=$ac_cv_search_pthread_mutex_lock
28114if test "$ac_res" != no; then
28115 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000028116
John Criswell40468462004-09-24 21:19:06 +000028117cat >>confdefs.h <<\_ACEOF
28118#define HAVE_PTHREAD_MUTEX_LOCK 1
28119_ACEOF
28120
28121fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000028122
Owen Andersonde8aed22009-06-16 18:20:20 +000028123 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28124echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28125if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28126 echo $ECHO_N "(cached) $ECHO_C" >&6
28127else
28128 ac_func_search_save_LIBS=$LIBS
28129cat >conftest.$ac_ext <<_ACEOF
28130/* confdefs.h. */
28131_ACEOF
28132cat confdefs.h >>conftest.$ac_ext
28133cat >>conftest.$ac_ext <<_ACEOF
28134/* end confdefs.h. */
28135
28136/* Override any GCC internal prototype to avoid an error.
28137 Use char because int might match the return type of a GCC
28138 builtin and then its argument prototype would still apply. */
28139#ifdef __cplusplus
28140extern "C"
28141#endif
28142char pthread_rwlock_init ();
28143int
28144main ()
28145{
28146return pthread_rwlock_init ();
28147 ;
28148 return 0;
28149}
28150_ACEOF
28151for ac_lib in '' pthread; do
28152 if test -z "$ac_lib"; then
28153 ac_res="none required"
28154 else
28155 ac_res=-l$ac_lib
28156 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28157 fi
28158 rm -f conftest.$ac_objext conftest$ac_exeext
28159if { (ac_try="$ac_link"
28160case "(($ac_try" in
28161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28162 *) ac_try_echo=$ac_try;;
28163esac
28164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28165 (eval "$ac_link") 2>conftest.er1
28166 ac_status=$?
28167 grep -v '^ *+' conftest.er1 >conftest.err
28168 rm -f conftest.er1
28169 cat conftest.err >&5
28170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28171 (exit $ac_status); } &&
28172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28173 { (case "(($ac_try" in
28174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28175 *) ac_try_echo=$ac_try;;
28176esac
28177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28178 (eval "$ac_try") 2>&5
28179 ac_status=$?
28180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28181 (exit $ac_status); }; } &&
28182 { ac_try='test -s conftest$ac_exeext'
28183 { (case "(($ac_try" in
28184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28185 *) ac_try_echo=$ac_try;;
28186esac
28187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28188 (eval "$ac_try") 2>&5
28189 ac_status=$?
28190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28191 (exit $ac_status); }; }; then
28192 ac_cv_search_pthread_rwlock_init=$ac_res
28193else
28194 echo "$as_me: failed program was:" >&5
28195sed 's/^/| /' conftest.$ac_ext >&5
28196
28197
28198fi
28199
28200rm -f core conftest.err conftest.$ac_objext \
28201 conftest$ac_exeext
28202 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28203 break
28204fi
28205done
28206if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28207 :
28208else
28209 ac_cv_search_pthread_rwlock_init=no
28210fi
28211rm conftest.$ac_ext
28212LIBS=$ac_func_search_save_LIBS
28213fi
28214{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28215echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28216ac_res=$ac_cv_search_pthread_rwlock_init
28217if test "$ac_res" != no; then
28218 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28219
28220cat >>confdefs.h <<\_ACEOF
28221#define HAVE_PTHREAD_RWLOCK_INIT 1
28222_ACEOF
28223
28224fi
28225
Owen Anderson27fcfe12009-06-25 23:10:26 +000028226 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28227echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28228if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28229 echo $ECHO_N "(cached) $ECHO_C" >&6
28230else
28231 ac_func_search_save_LIBS=$LIBS
28232cat >conftest.$ac_ext <<_ACEOF
28233/* confdefs.h. */
28234_ACEOF
28235cat confdefs.h >>conftest.$ac_ext
28236cat >>conftest.$ac_ext <<_ACEOF
28237/* end confdefs.h. */
28238
28239/* Override any GCC internal prototype to avoid an error.
28240 Use char because int might match the return type of a GCC
28241 builtin and then its argument prototype would still apply. */
28242#ifdef __cplusplus
28243extern "C"
28244#endif
28245char pthread_getspecific ();
28246int
28247main ()
28248{
28249return pthread_getspecific ();
28250 ;
28251 return 0;
28252}
28253_ACEOF
28254for ac_lib in '' pthread; do
28255 if test -z "$ac_lib"; then
28256 ac_res="none required"
28257 else
28258 ac_res=-l$ac_lib
28259 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28260 fi
28261 rm -f conftest.$ac_objext conftest$ac_exeext
28262if { (ac_try="$ac_link"
28263case "(($ac_try" in
28264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28265 *) ac_try_echo=$ac_try;;
28266esac
28267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28268 (eval "$ac_link") 2>conftest.er1
28269 ac_status=$?
28270 grep -v '^ *+' conftest.er1 >conftest.err
28271 rm -f conftest.er1
28272 cat conftest.err >&5
28273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28274 (exit $ac_status); } &&
28275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28276 { (case "(($ac_try" in
28277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28278 *) ac_try_echo=$ac_try;;
28279esac
28280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28281 (eval "$ac_try") 2>&5
28282 ac_status=$?
28283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28284 (exit $ac_status); }; } &&
28285 { ac_try='test -s conftest$ac_exeext'
28286 { (case "(($ac_try" in
28287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28288 *) ac_try_echo=$ac_try;;
28289esac
28290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28291 (eval "$ac_try") 2>&5
28292 ac_status=$?
28293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28294 (exit $ac_status); }; }; then
28295 ac_cv_search_pthread_getspecific=$ac_res
28296else
28297 echo "$as_me: failed program was:" >&5
28298sed 's/^/| /' conftest.$ac_ext >&5
28299
28300
28301fi
28302
28303rm -f core conftest.err conftest.$ac_objext \
28304 conftest$ac_exeext
28305 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28306 break
28307fi
28308done
28309if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28310 :
28311else
28312 ac_cv_search_pthread_getspecific=no
28313fi
28314rm conftest.$ac_ext
28315LIBS=$ac_func_search_save_LIBS
28316fi
28317{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28318echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28319ac_res=$ac_cv_search_pthread_getspecific
28320if test "$ac_res" != no; then
28321 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28322
28323cat >>confdefs.h <<\_ACEOF
28324#define HAVE_PTHREAD_GETSPECIFIC 1
28325_ACEOF
28326
28327fi
28328
Reid Spencer0a262ba2005-08-24 10:07:20 +000028329fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000028330
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028331
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028332# Check whether --with-udis86 was given.
28333if test "${with_udis86+set}" = set; then
28334 withval=$with_udis86;
28335 USE_UDIS86=1
28336
28337 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000028338 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028339 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28340 esac
28341
28342{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28343echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28344if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28345 echo $ECHO_N "(cached) $ECHO_C" >&6
28346else
28347 ac_check_lib_save_LIBS=$LIBS
28348LIBS="-ludis86 $LIBS"
28349cat >conftest.$ac_ext <<_ACEOF
28350/* confdefs.h. */
28351_ACEOF
28352cat confdefs.h >>conftest.$ac_ext
28353cat >>conftest.$ac_ext <<_ACEOF
28354/* end confdefs.h. */
28355
28356/* Override any GCC internal prototype to avoid an error.
28357 Use char because int might match the return type of a GCC
28358 builtin and then its argument prototype would still apply. */
28359#ifdef __cplusplus
28360extern "C"
28361#endif
28362char ud_init ();
28363int
28364main ()
28365{
28366return ud_init ();
28367 ;
28368 return 0;
28369}
28370_ACEOF
28371rm -f conftest.$ac_objext conftest$ac_exeext
28372if { (ac_try="$ac_link"
28373case "(($ac_try" in
28374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28375 *) ac_try_echo=$ac_try;;
28376esac
28377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28378 (eval "$ac_link") 2>conftest.er1
28379 ac_status=$?
28380 grep -v '^ *+' conftest.er1 >conftest.err
28381 rm -f conftest.er1
28382 cat conftest.err >&5
28383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028384 (exit $ac_status); } &&
28385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28386 { (case "(($ac_try" in
28387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28388 *) ac_try_echo=$ac_try;;
28389esac
28390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28391 (eval "$ac_try") 2>&5
28392 ac_status=$?
28393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394 (exit $ac_status); }; } &&
28395 { ac_try='test -s conftest$ac_exeext'
28396 { (case "(($ac_try" in
28397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28398 *) ac_try_echo=$ac_try;;
28399esac
28400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28401 (eval "$ac_try") 2>&5
28402 ac_status=$?
28403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28404 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028405 ac_cv_lib_udis86_ud_init=yes
28406else
28407 echo "$as_me: failed program was:" >&5
28408sed 's/^/| /' conftest.$ac_ext >&5
28409
28410 ac_cv_lib_udis86_ud_init=no
28411fi
28412
Bill Wendlingebcceee2009-04-18 11:20:33 +000028413rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028414 conftest$ac_exeext conftest.$ac_ext
28415LIBS=$ac_check_lib_save_LIBS
28416fi
28417{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28418echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28419if test $ac_cv_lib_udis86_ud_init = yes; then
28420 cat >>confdefs.h <<_ACEOF
28421#define HAVE_LIBUDIS86 1
28422_ACEOF
28423
28424 LIBS="-ludis86 $LIBS"
28425
28426else
28427
28428 echo "Error! You need to have libudis86 around."
28429 exit -1
28430
28431fi
28432
28433
28434else
28435 USE_UDIS86=0
28436
28437fi
28438
28439
28440cat >>confdefs.h <<_ACEOF
28441#define USE_UDIS86 $USE_UDIS86
28442_ACEOF
28443
28444
28445
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028446# Check whether --with-oprofile was given.
28447if test "${with_oprofile+set}" = set; then
28448 withval=$with_oprofile;
28449 USE_OPROFILE=1
28450
28451 case "$withval" in
28452 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28453 *) llvm_cv_oppath="${withval}/lib/oprofile"
28454 CPPFLAGS="-I${withval}/include";;
28455 esac
28456 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28457 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28458echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28459if test "${ac_cv_search_op_open_agent+set}" = set; then
28460 echo $ECHO_N "(cached) $ECHO_C" >&6
28461else
28462 ac_func_search_save_LIBS=$LIBS
28463cat >conftest.$ac_ext <<_ACEOF
28464/* confdefs.h. */
28465_ACEOF
28466cat confdefs.h >>conftest.$ac_ext
28467cat >>conftest.$ac_ext <<_ACEOF
28468/* end confdefs.h. */
28469
28470/* Override any GCC internal prototype to avoid an error.
28471 Use char because int might match the return type of a GCC
28472 builtin and then its argument prototype would still apply. */
28473#ifdef __cplusplus
28474extern "C"
28475#endif
28476char op_open_agent ();
28477int
28478main ()
28479{
28480return op_open_agent ();
28481 ;
28482 return 0;
28483}
28484_ACEOF
28485for ac_lib in '' opagent; do
28486 if test -z "$ac_lib"; then
28487 ac_res="none required"
28488 else
28489 ac_res=-l$ac_lib
28490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28491 fi
28492 rm -f conftest.$ac_objext conftest$ac_exeext
28493if { (ac_try="$ac_link"
28494case "(($ac_try" in
28495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28496 *) ac_try_echo=$ac_try;;
28497esac
28498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28499 (eval "$ac_link") 2>conftest.er1
28500 ac_status=$?
28501 grep -v '^ *+' conftest.er1 >conftest.err
28502 rm -f conftest.er1
28503 cat conftest.err >&5
28504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28505 (exit $ac_status); } &&
28506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28507 { (case "(($ac_try" in
28508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28509 *) ac_try_echo=$ac_try;;
28510esac
28511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28512 (eval "$ac_try") 2>&5
28513 ac_status=$?
28514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28515 (exit $ac_status); }; } &&
28516 { ac_try='test -s conftest$ac_exeext'
28517 { (case "(($ac_try" in
28518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28519 *) ac_try_echo=$ac_try;;
28520esac
28521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28522 (eval "$ac_try") 2>&5
28523 ac_status=$?
28524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28525 (exit $ac_status); }; }; then
28526 ac_cv_search_op_open_agent=$ac_res
28527else
28528 echo "$as_me: failed program was:" >&5
28529sed 's/^/| /' conftest.$ac_ext >&5
28530
28531
28532fi
28533
28534rm -f core conftest.err conftest.$ac_objext \
28535 conftest$ac_exeext
28536 if test "${ac_cv_search_op_open_agent+set}" = set; then
28537 break
28538fi
28539done
28540if test "${ac_cv_search_op_open_agent+set}" = set; then
28541 :
28542else
28543 ac_cv_search_op_open_agent=no
28544fi
28545rm conftest.$ac_ext
28546LIBS=$ac_func_search_save_LIBS
28547fi
28548{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28549echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28550ac_res=$ac_cv_search_op_open_agent
28551if test "$ac_res" != no; then
28552 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28553
28554else
28555
28556 echo "Error! You need to have libopagent around."
28557 exit -1
28558
28559fi
28560
28561 if test "${ac_cv_header_opagent_h+set}" = set; then
28562 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28563echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28564if test "${ac_cv_header_opagent_h+set}" = set; then
28565 echo $ECHO_N "(cached) $ECHO_C" >&6
28566fi
28567{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28568echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28569else
28570 # Is the header compilable?
28571{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
28572echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28573cat >conftest.$ac_ext <<_ACEOF
28574/* confdefs.h. */
28575_ACEOF
28576cat confdefs.h >>conftest.$ac_ext
28577cat >>conftest.$ac_ext <<_ACEOF
28578/* end confdefs.h. */
28579$ac_includes_default
28580#include <opagent.h>
28581_ACEOF
28582rm -f conftest.$ac_objext
28583if { (ac_try="$ac_compile"
28584case "(($ac_try" in
28585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28586 *) ac_try_echo=$ac_try;;
28587esac
28588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28589 (eval "$ac_compile") 2>conftest.er1
28590 ac_status=$?
28591 grep -v '^ *+' conftest.er1 >conftest.err
28592 rm -f conftest.er1
28593 cat conftest.err >&5
28594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28595 (exit $ac_status); } &&
28596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28597 { (case "(($ac_try" in
28598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28599 *) ac_try_echo=$ac_try;;
28600esac
28601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28602 (eval "$ac_try") 2>&5
28603 ac_status=$?
28604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28605 (exit $ac_status); }; } &&
28606 { ac_try='test -s conftest.$ac_objext'
28607 { (case "(($ac_try" in
28608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28609 *) ac_try_echo=$ac_try;;
28610esac
28611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28612 (eval "$ac_try") 2>&5
28613 ac_status=$?
28614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28615 (exit $ac_status); }; }; then
28616 ac_header_compiler=yes
28617else
28618 echo "$as_me: failed program was:" >&5
28619sed 's/^/| /' conftest.$ac_ext >&5
28620
28621 ac_header_compiler=no
28622fi
28623
28624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28625{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28626echo "${ECHO_T}$ac_header_compiler" >&6; }
28627
28628# Is the header present?
28629{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
28630echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28631cat >conftest.$ac_ext <<_ACEOF
28632/* confdefs.h. */
28633_ACEOF
28634cat confdefs.h >>conftest.$ac_ext
28635cat >>conftest.$ac_ext <<_ACEOF
28636/* end confdefs.h. */
28637#include <opagent.h>
28638_ACEOF
28639if { (ac_try="$ac_cpp conftest.$ac_ext"
28640case "(($ac_try" in
28641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28642 *) ac_try_echo=$ac_try;;
28643esac
28644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28646 ac_status=$?
28647 grep -v '^ *+' conftest.er1 >conftest.err
28648 rm -f conftest.er1
28649 cat conftest.err >&5
28650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28651 (exit $ac_status); } >/dev/null; then
28652 if test -s conftest.err; then
28653 ac_cpp_err=$ac_c_preproc_warn_flag
28654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28655 else
28656 ac_cpp_err=
28657 fi
28658else
28659 ac_cpp_err=yes
28660fi
28661if test -z "$ac_cpp_err"; then
28662 ac_header_preproc=yes
28663else
28664 echo "$as_me: failed program was:" >&5
28665sed 's/^/| /' conftest.$ac_ext >&5
28666
28667 ac_header_preproc=no
28668fi
28669
28670rm -f conftest.err conftest.$ac_ext
28671{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28672echo "${ECHO_T}$ac_header_preproc" >&6; }
28673
28674# So? What about this header?
28675case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28676 yes:no: )
28677 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28678echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28679 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28680echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28681 ac_header_preproc=yes
28682 ;;
28683 no:yes:* )
28684 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28685echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28686 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28687echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28688 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28689echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28690 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28691echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28692 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28693echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28694 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28695echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28696 ( cat <<\_ASBOX
28697## ----------------------------------- ##
28698## Report this to llvmbugs@cs.uiuc.edu ##
28699## ----------------------------------- ##
28700_ASBOX
28701 ) | sed "s/^/$as_me: WARNING: /" >&2
28702 ;;
28703esac
28704{ echo "$as_me:$LINENO: checking for opagent.h" >&5
28705echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28706if test "${ac_cv_header_opagent_h+set}" = set; then
28707 echo $ECHO_N "(cached) $ECHO_C" >&6
28708else
28709 ac_cv_header_opagent_h=$ac_header_preproc
28710fi
28711{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28712echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28713
28714fi
28715if test $ac_cv_header_opagent_h = yes; then
28716 :
28717else
28718
28719 echo "Error! You need to have opagent.h around."
28720 exit -1
28721
28722fi
28723
28724
28725
28726else
28727
28728 llvm_cv_old_LIBS="$LIBS"
28729 LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile"
28730 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28731echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28732if test "${ac_cv_search_op_open_agent+set}" = set; then
28733 echo $ECHO_N "(cached) $ECHO_C" >&6
28734else
28735 ac_func_search_save_LIBS=$LIBS
28736cat >conftest.$ac_ext <<_ACEOF
28737/* confdefs.h. */
28738_ACEOF
28739cat confdefs.h >>conftest.$ac_ext
28740cat >>conftest.$ac_ext <<_ACEOF
28741/* end confdefs.h. */
28742
28743/* Override any GCC internal prototype to avoid an error.
28744 Use char because int might match the return type of a GCC
28745 builtin and then its argument prototype would still apply. */
28746#ifdef __cplusplus
28747extern "C"
28748#endif
28749char op_open_agent ();
28750int
28751main ()
28752{
28753return op_open_agent ();
28754 ;
28755 return 0;
28756}
28757_ACEOF
28758for ac_lib in '' opagent; do
28759 if test -z "$ac_lib"; then
28760 ac_res="none required"
28761 else
28762 ac_res=-l$ac_lib
28763 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28764 fi
28765 rm -f conftest.$ac_objext conftest$ac_exeext
28766if { (ac_try="$ac_link"
28767case "(($ac_try" in
28768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28769 *) ac_try_echo=$ac_try;;
28770esac
28771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28772 (eval "$ac_link") 2>conftest.er1
28773 ac_status=$?
28774 grep -v '^ *+' conftest.er1 >conftest.err
28775 rm -f conftest.er1
28776 cat conftest.err >&5
28777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28778 (exit $ac_status); } &&
28779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28780 { (case "(($ac_try" in
28781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28782 *) ac_try_echo=$ac_try;;
28783esac
28784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28785 (eval "$ac_try") 2>&5
28786 ac_status=$?
28787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28788 (exit $ac_status); }; } &&
28789 { ac_try='test -s conftest$ac_exeext'
28790 { (case "(($ac_try" in
28791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28792 *) ac_try_echo=$ac_try;;
28793esac
28794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28795 (eval "$ac_try") 2>&5
28796 ac_status=$?
28797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28798 (exit $ac_status); }; }; then
28799 ac_cv_search_op_open_agent=$ac_res
28800else
28801 echo "$as_me: failed program was:" >&5
28802sed 's/^/| /' conftest.$ac_ext >&5
28803
28804
28805fi
28806
28807rm -f core conftest.err conftest.$ac_objext \
28808 conftest$ac_exeext
28809 if test "${ac_cv_search_op_open_agent+set}" = set; then
28810 break
28811fi
28812done
28813if test "${ac_cv_search_op_open_agent+set}" = set; then
28814 :
28815else
28816 ac_cv_search_op_open_agent=no
28817fi
28818rm conftest.$ac_ext
28819LIBS=$ac_func_search_save_LIBS
28820fi
28821{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28822echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28823ac_res=$ac_cv_search_op_open_agent
28824if test "$ac_res" != no; then
28825 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28826 USE_OPROFILE=1
28827
28828else
28829 LIBS="$llvm_cv_old_LIBS"
28830 USE_OPROFILE=0
28831
28832fi
28833
28834 if test "${ac_cv_header_opagent_h+set}" = set; then
28835 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28836echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28837if test "${ac_cv_header_opagent_h+set}" = set; then
28838 echo $ECHO_N "(cached) $ECHO_C" >&6
28839fi
28840{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28841echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28842else
28843 # Is the header compilable?
28844{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
28845echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28846cat >conftest.$ac_ext <<_ACEOF
28847/* confdefs.h. */
28848_ACEOF
28849cat confdefs.h >>conftest.$ac_ext
28850cat >>conftest.$ac_ext <<_ACEOF
28851/* end confdefs.h. */
28852$ac_includes_default
28853#include <opagent.h>
28854_ACEOF
28855rm -f conftest.$ac_objext
28856if { (ac_try="$ac_compile"
28857case "(($ac_try" in
28858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28859 *) ac_try_echo=$ac_try;;
28860esac
28861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28862 (eval "$ac_compile") 2>conftest.er1
28863 ac_status=$?
28864 grep -v '^ *+' conftest.er1 >conftest.err
28865 rm -f conftest.er1
28866 cat conftest.err >&5
28867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868 (exit $ac_status); } &&
28869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28870 { (case "(($ac_try" in
28871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28872 *) ac_try_echo=$ac_try;;
28873esac
28874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28875 (eval "$ac_try") 2>&5
28876 ac_status=$?
28877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28878 (exit $ac_status); }; } &&
28879 { ac_try='test -s conftest.$ac_objext'
28880 { (case "(($ac_try" in
28881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28882 *) ac_try_echo=$ac_try;;
28883esac
28884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28885 (eval "$ac_try") 2>&5
28886 ac_status=$?
28887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28888 (exit $ac_status); }; }; then
28889 ac_header_compiler=yes
28890else
28891 echo "$as_me: failed program was:" >&5
28892sed 's/^/| /' conftest.$ac_ext >&5
28893
28894 ac_header_compiler=no
28895fi
28896
28897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28898{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28899echo "${ECHO_T}$ac_header_compiler" >&6; }
28900
28901# Is the header present?
28902{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
28903echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28904cat >conftest.$ac_ext <<_ACEOF
28905/* confdefs.h. */
28906_ACEOF
28907cat confdefs.h >>conftest.$ac_ext
28908cat >>conftest.$ac_ext <<_ACEOF
28909/* end confdefs.h. */
28910#include <opagent.h>
28911_ACEOF
28912if { (ac_try="$ac_cpp conftest.$ac_ext"
28913case "(($ac_try" in
28914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28915 *) ac_try_echo=$ac_try;;
28916esac
28917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28919 ac_status=$?
28920 grep -v '^ *+' conftest.er1 >conftest.err
28921 rm -f conftest.er1
28922 cat conftest.err >&5
28923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28924 (exit $ac_status); } >/dev/null; then
28925 if test -s conftest.err; then
28926 ac_cpp_err=$ac_c_preproc_warn_flag
28927 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28928 else
28929 ac_cpp_err=
28930 fi
28931else
28932 ac_cpp_err=yes
28933fi
28934if test -z "$ac_cpp_err"; then
28935 ac_header_preproc=yes
28936else
28937 echo "$as_me: failed program was:" >&5
28938sed 's/^/| /' conftest.$ac_ext >&5
28939
28940 ac_header_preproc=no
28941fi
28942
28943rm -f conftest.err conftest.$ac_ext
28944{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28945echo "${ECHO_T}$ac_header_preproc" >&6; }
28946
28947# So? What about this header?
28948case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28949 yes:no: )
28950 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28951echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28952 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28953echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28954 ac_header_preproc=yes
28955 ;;
28956 no:yes:* )
28957 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28958echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28959 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28960echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28961 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28962echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28963 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28964echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28965 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28966echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28967 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28968echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28969 ( cat <<\_ASBOX
28970## ----------------------------------- ##
28971## Report this to llvmbugs@cs.uiuc.edu ##
28972## ----------------------------------- ##
28973_ASBOX
28974 ) | sed "s/^/$as_me: WARNING: /" >&2
28975 ;;
28976esac
28977{ echo "$as_me:$LINENO: checking for opagent.h" >&5
28978echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28979if test "${ac_cv_header_opagent_h+set}" = set; then
28980 echo $ECHO_N "(cached) $ECHO_C" >&6
28981else
28982 ac_cv_header_opagent_h=$ac_header_preproc
28983fi
28984{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28985echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28986
28987fi
28988if test $ac_cv_header_opagent_h = yes; then
28989 :
28990else
28991
28992 LIBS="$llvm_cv_old_LIBS"
28993 USE_OPROFILE=0
28994
28995
28996fi
28997
28998
28999
29000fi
29001
29002
29003cat >>confdefs.h <<_ACEOF
29004#define USE_OPROFILE $USE_OPROFILE
29005_ACEOF
29006
29007
29008
Reid Spencer59473af2004-12-25 07:31:29 +000029009
29010
29011
29012
29013
29014ac_header_dirent=no
29015for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29016 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029017{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29018echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29019if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029020 echo $ECHO_N "(cached) $ECHO_C" >&6
29021else
29022 cat >conftest.$ac_ext <<_ACEOF
29023/* confdefs.h. */
29024_ACEOF
29025cat confdefs.h >>conftest.$ac_ext
29026cat >>conftest.$ac_ext <<_ACEOF
29027/* end confdefs.h. */
29028#include <sys/types.h>
29029#include <$ac_hdr>
29030
29031int
29032main ()
29033{
29034if ((DIR *) 0)
29035return 0;
29036 ;
29037 return 0;
29038}
29039_ACEOF
29040rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029041if { (ac_try="$ac_compile"
29042case "(($ac_try" in
29043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29044 *) ac_try_echo=$ac_try;;
29045esac
29046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29047 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029048 ac_status=$?
29049 grep -v '^ *+' conftest.er1 >conftest.err
29050 rm -f conftest.er1
29051 cat conftest.err >&5
29052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029053 (exit $ac_status); } &&
29054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29055 { (case "(($ac_try" in
29056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29057 *) ac_try_echo=$ac_try;;
29058esac
29059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29060 (eval "$ac_try") 2>&5
29061 ac_status=$?
29062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29063 (exit $ac_status); }; } &&
29064 { ac_try='test -s conftest.$ac_objext'
29065 { (case "(($ac_try" in
29066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29067 *) ac_try_echo=$ac_try;;
29068esac
29069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29070 (eval "$ac_try") 2>&5
29071 ac_status=$?
29072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29073 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029074 eval "$as_ac_Header=yes"
29075else
29076 echo "$as_me: failed program was:" >&5
29077sed 's/^/| /' conftest.$ac_ext >&5
29078
Reid Spencera773bd52006-08-04 18:18:08 +000029079 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000029080fi
Reid Spencera773bd52006-08-04 18:18:08 +000029081
29082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029083fi
Reid Spencera773bd52006-08-04 18:18:08 +000029084ac_res=`eval echo '${'$as_ac_Header'}'`
29085 { echo "$as_me:$LINENO: result: $ac_res" >&5
29086echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029087if test `eval echo '${'$as_ac_Header'}'` = yes; then
29088 cat >>confdefs.h <<_ACEOF
29089#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29090_ACEOF
29091
29092ac_header_dirent=$ac_hdr; break
29093fi
29094
29095done
29096# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29097if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000029098 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29099echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029100if test "${ac_cv_search_opendir+set}" = set; then
29101 echo $ECHO_N "(cached) $ECHO_C" >&6
29102else
29103 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000029104cat >conftest.$ac_ext <<_ACEOF
29105/* confdefs.h. */
29106_ACEOF
29107cat confdefs.h >>conftest.$ac_ext
29108cat >>conftest.$ac_ext <<_ACEOF
29109/* end confdefs.h. */
29110
Reid Spencera773bd52006-08-04 18:18:08 +000029111/* Override any GCC internal prototype to avoid an error.
29112 Use char because int might match the return type of a GCC
29113 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000029114#ifdef __cplusplus
29115extern "C"
29116#endif
Reid Spencer59473af2004-12-25 07:31:29 +000029117char opendir ();
29118int
29119main ()
29120{
Reid Spencera773bd52006-08-04 18:18:08 +000029121return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000029122 ;
29123 return 0;
29124}
29125_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029126for ac_lib in '' dir; do
29127 if test -z "$ac_lib"; then
29128 ac_res="none required"
29129 else
29130 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000029131 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000029132 fi
29133 rm -f conftest.$ac_objext conftest$ac_exeext
29134if { (ac_try="$ac_link"
29135case "(($ac_try" in
29136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29137 *) ac_try_echo=$ac_try;;
29138esac
29139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29140 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029141 ac_status=$?
29142 grep -v '^ *+' conftest.er1 >conftest.err
29143 rm -f conftest.er1
29144 cat conftest.err >&5
29145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029146 (exit $ac_status); } &&
29147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29148 { (case "(($ac_try" in
29149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29150 *) ac_try_echo=$ac_try;;
29151esac
29152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29153 (eval "$ac_try") 2>&5
29154 ac_status=$?
29155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29156 (exit $ac_status); }; } &&
29157 { ac_try='test -s conftest$ac_exeext'
29158 { (case "(($ac_try" in
29159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29160 *) ac_try_echo=$ac_try;;
29161esac
29162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29163 (eval "$ac_try") 2>&5
29164 ac_status=$?
29165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29166 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029167 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000029168else
29169 echo "$as_me: failed program was:" >&5
29170sed 's/^/| /' conftest.$ac_ext >&5
29171
Reid Spencera773bd52006-08-04 18:18:08 +000029172
Reid Spencer59473af2004-12-25 07:31:29 +000029173fi
Reid Spencera773bd52006-08-04 18:18:08 +000029174
Bill Wendlingebcceee2009-04-18 11:20:33 +000029175rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000029176 conftest$ac_exeext
29177 if test "${ac_cv_search_opendir+set}" = set; then
29178 break
Reid Spencer59473af2004-12-25 07:31:29 +000029179fi
Reid Spencera773bd52006-08-04 18:18:08 +000029180done
29181if test "${ac_cv_search_opendir+set}" = set; then
29182 :
29183else
29184 ac_cv_search_opendir=no
29185fi
29186rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029187LIBS=$ac_func_search_save_LIBS
29188fi
Reid Spencera773bd52006-08-04 18:18:08 +000029189{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29190echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29191ac_res=$ac_cv_search_opendir
29192if test "$ac_res" != no; then
29193 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000029194
29195fi
29196
29197else
Reid Spencera773bd52006-08-04 18:18:08 +000029198 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29199echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029200if test "${ac_cv_search_opendir+set}" = set; then
29201 echo $ECHO_N "(cached) $ECHO_C" >&6
29202else
29203 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000029204cat >conftest.$ac_ext <<_ACEOF
29205/* confdefs.h. */
29206_ACEOF
29207cat confdefs.h >>conftest.$ac_ext
29208cat >>conftest.$ac_ext <<_ACEOF
29209/* end confdefs.h. */
29210
Reid Spencera773bd52006-08-04 18:18:08 +000029211/* Override any GCC internal prototype to avoid an error.
29212 Use char because int might match the return type of a GCC
29213 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000029214#ifdef __cplusplus
29215extern "C"
29216#endif
Reid Spencer59473af2004-12-25 07:31:29 +000029217char opendir ();
29218int
29219main ()
29220{
Reid Spencera773bd52006-08-04 18:18:08 +000029221return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000029222 ;
29223 return 0;
29224}
29225_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029226for ac_lib in '' x; do
29227 if test -z "$ac_lib"; then
29228 ac_res="none required"
29229 else
29230 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000029231 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000029232 fi
29233 rm -f conftest.$ac_objext conftest$ac_exeext
29234if { (ac_try="$ac_link"
29235case "(($ac_try" in
29236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29237 *) ac_try_echo=$ac_try;;
29238esac
29239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29240 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029241 ac_status=$?
29242 grep -v '^ *+' conftest.er1 >conftest.err
29243 rm -f conftest.er1
29244 cat conftest.err >&5
29245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029246 (exit $ac_status); } &&
29247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29248 { (case "(($ac_try" in
29249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29250 *) ac_try_echo=$ac_try;;
29251esac
29252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29253 (eval "$ac_try") 2>&5
29254 ac_status=$?
29255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29256 (exit $ac_status); }; } &&
29257 { ac_try='test -s conftest$ac_exeext'
29258 { (case "(($ac_try" in
29259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29260 *) ac_try_echo=$ac_try;;
29261esac
29262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29263 (eval "$ac_try") 2>&5
29264 ac_status=$?
29265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29266 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029267 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000029268else
29269 echo "$as_me: failed program was:" >&5
29270sed 's/^/| /' conftest.$ac_ext >&5
29271
Reid Spencera773bd52006-08-04 18:18:08 +000029272
Reid Spencer59473af2004-12-25 07:31:29 +000029273fi
Reid Spencera773bd52006-08-04 18:18:08 +000029274
Bill Wendlingebcceee2009-04-18 11:20:33 +000029275rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000029276 conftest$ac_exeext
29277 if test "${ac_cv_search_opendir+set}" = set; then
29278 break
Reid Spencer59473af2004-12-25 07:31:29 +000029279fi
Reid Spencera773bd52006-08-04 18:18:08 +000029280done
29281if test "${ac_cv_search_opendir+set}" = set; then
29282 :
29283else
29284 ac_cv_search_opendir=no
29285fi
29286rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029287LIBS=$ac_func_search_save_LIBS
29288fi
Reid Spencera773bd52006-08-04 18:18:08 +000029289{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29290echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29291ac_res=$ac_cv_search_opendir
29292if test "$ac_res" != no; then
29293 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000029294
29295fi
29296
29297fi
29298
Reid Spencera773bd52006-08-04 18:18:08 +000029299{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29300echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029301if test "${ac_cv_header_mmap_anon+set}" = set; then
29302 echo $ECHO_N "(cached) $ECHO_C" >&6
29303else
29304 ac_ext=c
29305ac_cpp='$CPP $CPPFLAGS'
29306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29308ac_compiler_gnu=$ac_cv_c_compiler_gnu
29309
29310 cat >conftest.$ac_ext <<_ACEOF
29311/* confdefs.h. */
29312_ACEOF
29313cat confdefs.h >>conftest.$ac_ext
29314cat >>conftest.$ac_ext <<_ACEOF
29315/* end confdefs.h. */
29316#include <sys/mman.h>
29317#include <unistd.h>
29318#include <fcntl.h>
29319int
29320main ()
29321{
29322mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29323 ;
29324 return 0;
29325}
29326_ACEOF
29327rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029328if { (ac_try="$ac_compile"
29329case "(($ac_try" in
29330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29331 *) ac_try_echo=$ac_try;;
29332esac
29333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29334 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029335 ac_status=$?
29336 grep -v '^ *+' conftest.er1 >conftest.err
29337 rm -f conftest.er1
29338 cat conftest.err >&5
29339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029340 (exit $ac_status); } &&
29341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29342 { (case "(($ac_try" in
29343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29344 *) ac_try_echo=$ac_try;;
29345esac
29346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29347 (eval "$ac_try") 2>&5
29348 ac_status=$?
29349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29350 (exit $ac_status); }; } &&
29351 { ac_try='test -s conftest.$ac_objext'
29352 { (case "(($ac_try" in
29353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29354 *) ac_try_echo=$ac_try;;
29355esac
29356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29357 (eval "$ac_try") 2>&5
29358 ac_status=$?
29359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29360 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029361 ac_cv_header_mmap_anon=yes
29362else
29363 echo "$as_me: failed program was:" >&5
29364sed 's/^/| /' conftest.$ac_ext >&5
29365
Reid Spencera773bd52006-08-04 18:18:08 +000029366 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000029367fi
Reid Spencera773bd52006-08-04 18:18:08 +000029368
29369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029370 ac_ext=c
29371ac_cpp='$CPP $CPPFLAGS'
29372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29374ac_compiler_gnu=$ac_cv_c_compiler_gnu
29375
29376
29377fi
Reid Spencera773bd52006-08-04 18:18:08 +000029378{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29379echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029380if test "$ac_cv_header_mmap_anon" = yes; then
29381
29382cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000029383#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000029384_ACEOF
29385
29386fi
29387
Reid Spencera773bd52006-08-04 18:18:08 +000029388{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29389echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029390if test "${ac_cv_header_stat_broken+set}" = set; then
29391 echo $ECHO_N "(cached) $ECHO_C" >&6
29392else
29393 cat >conftest.$ac_ext <<_ACEOF
29394/* confdefs.h. */
29395_ACEOF
29396cat confdefs.h >>conftest.$ac_ext
29397cat >>conftest.$ac_ext <<_ACEOF
29398/* end confdefs.h. */
29399#include <sys/types.h>
29400#include <sys/stat.h>
29401
Reid Spencera773bd52006-08-04 18:18:08 +000029402#if defined S_ISBLK && defined S_IFDIR
Bill Wendlingebcceee2009-04-18 11:20:33 +000029403# if S_ISBLK (S_IFDIR)
29404You lose.
29405# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029406#endif
29407
Reid Spencera773bd52006-08-04 18:18:08 +000029408#if defined S_ISBLK && defined S_IFCHR
Bill Wendlingebcceee2009-04-18 11:20:33 +000029409# if S_ISBLK (S_IFCHR)
29410You lose.
29411# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029412#endif
29413
Reid Spencera773bd52006-08-04 18:18:08 +000029414#if defined S_ISLNK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000029415# if S_ISLNK (S_IFREG)
29416You lose.
29417# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029418#endif
29419
Reid Spencera773bd52006-08-04 18:18:08 +000029420#if defined S_ISSOCK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000029421# if S_ISSOCK (S_IFREG)
29422You lose.
29423# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029424#endif
29425
29426_ACEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +000029427if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29428 $EGREP "You lose" >/dev/null 2>&1; then
29429 ac_cv_header_stat_broken=yes
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029430else
Bill Wendlingebcceee2009-04-18 11:20:33 +000029431 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029432fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000029433rm -f conftest*
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029434
Reid Spencer59473af2004-12-25 07:31:29 +000029435fi
Reid Spencera773bd52006-08-04 18:18:08 +000029436{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29437echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029438if test $ac_cv_header_stat_broken = yes; then
29439
29440cat >>confdefs.h <<\_ACEOF
29441#define STAT_MACROS_BROKEN 1
29442_ACEOF
29443
29444fi
29445
Reid Spencera773bd52006-08-04 18:18:08 +000029446{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29447echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029448if test "${ac_cv_header_stdc+set}" = set; then
29449 echo $ECHO_N "(cached) $ECHO_C" >&6
29450else
29451 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029452/* confdefs.h. */
29453_ACEOF
29454cat confdefs.h >>conftest.$ac_ext
29455cat >>conftest.$ac_ext <<_ACEOF
29456/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029457#include <stdlib.h>
29458#include <stdarg.h>
29459#include <string.h>
29460#include <float.h>
29461
John Criswell0c38eaf2003-09-10 15:17:25 +000029462int
29463main ()
29464{
29465
29466 ;
29467 return 0;
29468}
John Criswell7a73b802003-06-30 21:59:07 +000029469_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029470rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029471if { (ac_try="$ac_compile"
29472case "(($ac_try" in
29473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29474 *) ac_try_echo=$ac_try;;
29475esac
29476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29477 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029478 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029479 grep -v '^ *+' conftest.er1 >conftest.err
29480 rm -f conftest.er1
29481 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029483 (exit $ac_status); } &&
29484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29485 { (case "(($ac_try" in
29486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29487 *) ac_try_echo=$ac_try;;
29488esac
29489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29490 (eval "$ac_try") 2>&5
29491 ac_status=$?
29492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493 (exit $ac_status); }; } &&
29494 { ac_try='test -s conftest.$ac_objext'
29495 { (case "(($ac_try" in
29496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29497 *) ac_try_echo=$ac_try;;
29498esac
29499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29500 (eval "$ac_try") 2>&5
29501 ac_status=$?
29502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29503 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029504 ac_cv_header_stdc=yes
29505else
29506 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029507sed 's/^/| /' conftest.$ac_ext >&5
29508
Reid Spencera773bd52006-08-04 18:18:08 +000029509 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000029510fi
Reid Spencera773bd52006-08-04 18:18:08 +000029511
29512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029513
29514if test $ac_cv_header_stdc = yes; then
29515 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29516 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029517/* confdefs.h. */
29518_ACEOF
29519cat confdefs.h >>conftest.$ac_ext
29520cat >>conftest.$ac_ext <<_ACEOF
29521/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029522#include <string.h>
29523
29524_ACEOF
29525if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000029526 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029527 :
29528else
29529 ac_cv_header_stdc=no
29530fi
29531rm -f conftest*
29532
29533fi
29534
29535if test $ac_cv_header_stdc = yes; then
29536 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29537 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029538/* confdefs.h. */
29539_ACEOF
29540cat confdefs.h >>conftest.$ac_ext
29541cat >>conftest.$ac_ext <<_ACEOF
29542/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029543#include <stdlib.h>
29544
29545_ACEOF
29546if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000029547 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029548 :
29549else
29550 ac_cv_header_stdc=no
29551fi
29552rm -f conftest*
29553
29554fi
29555
29556if test $ac_cv_header_stdc = yes; then
29557 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29558 if test "$cross_compiling" = yes; then
29559 :
29560else
29561 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029562/* confdefs.h. */
29563_ACEOF
29564cat confdefs.h >>conftest.$ac_ext
29565cat >>conftest.$ac_ext <<_ACEOF
29566/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029567#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000029568#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000029569#if ((' ' & 0x0FF) == 0x020)
29570# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29571# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29572#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029573# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000029574 (('a' <= (c) && (c) <= 'i') \
29575 || ('j' <= (c) && (c) <= 'r') \
29576 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000029577# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29578#endif
29579
29580#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29581int
29582main ()
29583{
29584 int i;
29585 for (i = 0; i < 256; i++)
29586 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000029587 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000029588 return 2;
29589 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029590}
29591_ACEOF
29592rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029593if { (ac_try="$ac_link"
29594case "(($ac_try" in
29595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29596 *) ac_try_echo=$ac_try;;
29597esac
29598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29599 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029600 ac_status=$?
29601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029603 { (case "(($ac_try" in
29604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29605 *) ac_try_echo=$ac_try;;
29606esac
29607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29608 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029609 ac_status=$?
29610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29611 (exit $ac_status); }; }; then
29612 :
29613else
29614 echo "$as_me: program exited with status $ac_status" >&5
29615echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029616sed 's/^/| /' conftest.$ac_ext >&5
29617
John Criswell7a73b802003-06-30 21:59:07 +000029618( exit $ac_status )
29619ac_cv_header_stdc=no
29620fi
Reid Spencera773bd52006-08-04 18:18:08 +000029621rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29622fi
29623
29624
John Criswell7a73b802003-06-30 21:59:07 +000029625fi
29626fi
Reid Spencera773bd52006-08-04 18:18:08 +000029627{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29628echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029629if test $ac_cv_header_stdc = yes; then
29630
29631cat >>confdefs.h <<\_ACEOF
29632#define STDC_HEADERS 1
29633_ACEOF
29634
29635fi
29636
Reid Spencera773bd52006-08-04 18:18:08 +000029637{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29638echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029639if test "${ac_cv_header_sys_wait_h+set}" = set; then
29640 echo $ECHO_N "(cached) $ECHO_C" >&6
29641else
29642 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029643/* confdefs.h. */
29644_ACEOF
29645cat confdefs.h >>conftest.$ac_ext
29646cat >>conftest.$ac_ext <<_ACEOF
29647/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029648#include <sys/types.h>
29649#include <sys/wait.h>
29650#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000029651# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000029652#endif
29653#ifndef WIFEXITED
29654# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29655#endif
29656
John Criswell7a73b802003-06-30 21:59:07 +000029657int
29658main ()
29659{
29660 int s;
29661 wait (&s);
29662 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29663 ;
29664 return 0;
29665}
29666_ACEOF
29667rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029668if { (ac_try="$ac_compile"
29669case "(($ac_try" in
29670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29671 *) ac_try_echo=$ac_try;;
29672esac
29673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29674 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029675 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029676 grep -v '^ *+' conftest.er1 >conftest.err
29677 rm -f conftest.er1
29678 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029680 (exit $ac_status); } &&
29681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29682 { (case "(($ac_try" in
29683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29684 *) ac_try_echo=$ac_try;;
29685esac
29686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29687 (eval "$ac_try") 2>&5
29688 ac_status=$?
29689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29690 (exit $ac_status); }; } &&
29691 { ac_try='test -s conftest.$ac_objext'
29692 { (case "(($ac_try" in
29693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29694 *) ac_try_echo=$ac_try;;
29695esac
29696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29697 (eval "$ac_try") 2>&5
29698 ac_status=$?
29699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29700 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029701 ac_cv_header_sys_wait_h=yes
29702else
29703 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029704sed 's/^/| /' conftest.$ac_ext >&5
29705
Reid Spencera773bd52006-08-04 18:18:08 +000029706 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000029707fi
Reid Spencera773bd52006-08-04 18:18:08 +000029708
29709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029710fi
Reid Spencera773bd52006-08-04 18:18:08 +000029711{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29712echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029713if test $ac_cv_header_sys_wait_h = yes; then
29714
29715cat >>confdefs.h <<\_ACEOF
29716#define HAVE_SYS_WAIT_H 1
29717_ACEOF
29718
29719fi
29720
Reid Spencera773bd52006-08-04 18:18:08 +000029721{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29722echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029723if test "${ac_cv_header_time+set}" = set; then
29724 echo $ECHO_N "(cached) $ECHO_C" >&6
29725else
29726 cat >conftest.$ac_ext <<_ACEOF
29727/* confdefs.h. */
29728_ACEOF
29729cat confdefs.h >>conftest.$ac_ext
29730cat >>conftest.$ac_ext <<_ACEOF
29731/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029732#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029733#include <sys/time.h>
29734#include <time.h>
29735
29736int
29737main ()
29738{
29739if ((struct tm *) 0)
29740return 0;
29741 ;
29742 return 0;
29743}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029744_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029745rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029746if { (ac_try="$ac_compile"
29747case "(($ac_try" in
29748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29749 *) ac_try_echo=$ac_try;;
29750esac
29751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29752 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029753 ac_status=$?
29754 grep -v '^ *+' conftest.er1 >conftest.err
29755 rm -f conftest.er1
29756 cat conftest.err >&5
29757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029758 (exit $ac_status); } &&
29759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29760 { (case "(($ac_try" in
29761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29762 *) ac_try_echo=$ac_try;;
29763esac
29764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29765 (eval "$ac_try") 2>&5
29766 ac_status=$?
29767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29768 (exit $ac_status); }; } &&
29769 { ac_try='test -s conftest.$ac_objext'
29770 { (case "(($ac_try" in
29771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29772 *) ac_try_echo=$ac_try;;
29773esac
29774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29775 (eval "$ac_try") 2>&5
29776 ac_status=$?
29777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29778 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029779 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029780else
29781 echo "$as_me: failed program was:" >&5
29782sed 's/^/| /' conftest.$ac_ext >&5
29783
Reid Spencera773bd52006-08-04 18:18:08 +000029784 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029785fi
Reid Spencera773bd52006-08-04 18:18:08 +000029786
29787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029788fi
Reid Spencera773bd52006-08-04 18:18:08 +000029789{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29790echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029791if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029792
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029793cat >>confdefs.h <<\_ACEOF
29794#define TIME_WITH_SYS_TIME 1
29795_ACEOF
29796
29797fi
29798
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029799
Reid Spencer59473af2004-12-25 07:31:29 +000029800
29801
29802
29803
29804
29805
29806for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29807do
29808as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029809if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29810 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29811echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29812if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029813 echo $ECHO_N "(cached) $ECHO_C" >&6
29814fi
Reid Spencera773bd52006-08-04 18:18:08 +000029815ac_res=`eval echo '${'$as_ac_Header'}'`
29816 { echo "$as_me:$LINENO: result: $ac_res" >&5
29817echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029818else
29819 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029820{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29821echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029822cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029823/* confdefs.h. */
29824_ACEOF
29825cat confdefs.h >>conftest.$ac_ext
29826cat >>conftest.$ac_ext <<_ACEOF
29827/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000029828$ac_includes_default
29829#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029830_ACEOF
29831rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029832if { (ac_try="$ac_compile"
29833case "(($ac_try" in
29834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29835 *) ac_try_echo=$ac_try;;
29836esac
29837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29838 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029839 ac_status=$?
29840 grep -v '^ *+' conftest.er1 >conftest.err
29841 rm -f conftest.er1
29842 cat conftest.err >&5
29843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029844 (exit $ac_status); } &&
29845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29846 { (case "(($ac_try" in
29847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29848 *) ac_try_echo=$ac_try;;
29849esac
29850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29851 (eval "$ac_try") 2>&5
29852 ac_status=$?
29853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29854 (exit $ac_status); }; } &&
29855 { ac_try='test -s conftest.$ac_objext'
29856 { (case "(($ac_try" in
29857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29858 *) ac_try_echo=$ac_try;;
29859esac
29860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29861 (eval "$ac_try") 2>&5
29862 ac_status=$?
29863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29864 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029865 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029866else
29867 echo "$as_me: failed program was:" >&5
29868sed 's/^/| /' conftest.$ac_ext >&5
29869
Reid Spencera773bd52006-08-04 18:18:08 +000029870 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029871fi
Reid Spencera773bd52006-08-04 18:18:08 +000029872
29873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29874{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29875echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029876
Reid Spencer59473af2004-12-25 07:31:29 +000029877# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029878{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29879echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029880cat >conftest.$ac_ext <<_ACEOF
29881/* confdefs.h. */
29882_ACEOF
29883cat confdefs.h >>conftest.$ac_ext
29884cat >>conftest.$ac_ext <<_ACEOF
29885/* end confdefs.h. */
29886#include <$ac_header>
29887_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029888if { (ac_try="$ac_cpp conftest.$ac_ext"
29889case "(($ac_try" in
29890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29891 *) ac_try_echo=$ac_try;;
29892esac
29893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029895 ac_status=$?
29896 grep -v '^ *+' conftest.er1 >conftest.err
29897 rm -f conftest.er1
29898 cat conftest.err >&5
29899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029900 (exit $ac_status); } >/dev/null; then
29901 if test -s conftest.err; then
29902 ac_cpp_err=$ac_c_preproc_warn_flag
29903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29904 else
29905 ac_cpp_err=
29906 fi
29907else
29908 ac_cpp_err=yes
29909fi
29910if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029911 ac_header_preproc=yes
29912else
29913 echo "$as_me: failed program was:" >&5
29914sed 's/^/| /' conftest.$ac_ext >&5
29915
29916 ac_header_preproc=no
29917fi
Reid Spencera773bd52006-08-04 18:18:08 +000029918
Reid Spencer59473af2004-12-25 07:31:29 +000029919rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029920{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29921echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029922
29923# So? What about this header?
29924case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29925 yes:no: )
29926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29927echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29929echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29930 ac_header_preproc=yes
29931 ;;
29932 no:yes:* )
29933 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29934echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29935 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29936echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29937 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29938echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29939 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29940echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29942echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29943 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29944echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029945 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029946## ----------------------------------- ##
29947## Report this to llvmbugs@cs.uiuc.edu ##
29948## ----------------------------------- ##
29949_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029950 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029951 ;;
29952esac
Reid Spencera773bd52006-08-04 18:18:08 +000029953{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29954echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29955if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029956 echo $ECHO_N "(cached) $ECHO_C" >&6
29957else
29958 eval "$as_ac_Header=\$ac_header_preproc"
29959fi
Reid Spencera773bd52006-08-04 18:18:08 +000029960ac_res=`eval echo '${'$as_ac_Header'}'`
29961 { echo "$as_me:$LINENO: result: $ac_res" >&5
29962echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029963
29964fi
Reid Spencer59473af2004-12-25 07:31:29 +000029965if test `eval echo '${'$as_ac_Header'}'` = yes; then
29966 cat >>confdefs.h <<_ACEOF
29967#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029968_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029969
29970fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029971
Reid Spencer59473af2004-12-25 07:31:29 +000029972done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029973
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029974
29975
Reid Spencer59473af2004-12-25 07:31:29 +000029976
29977
29978
29979
Douglas Gregor071d73d2009-05-18 17:21:34 +000029980for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Reid Spencer59473af2004-12-25 07:31:29 +000029981do
29982as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029983if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29984 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29985echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29986if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029987 echo $ECHO_N "(cached) $ECHO_C" >&6
29988fi
Reid Spencera773bd52006-08-04 18:18:08 +000029989ac_res=`eval echo '${'$as_ac_Header'}'`
29990 { echo "$as_me:$LINENO: result: $ac_res" >&5
29991echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029992else
29993 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029994{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29995echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029996cat >conftest.$ac_ext <<_ACEOF
29997/* confdefs.h. */
29998_ACEOF
29999cat confdefs.h >>conftest.$ac_ext
30000cat >>conftest.$ac_ext <<_ACEOF
30001/* end confdefs.h. */
30002$ac_includes_default
30003#include <$ac_header>
30004_ACEOF
30005rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030006if { (ac_try="$ac_compile"
30007case "(($ac_try" in
30008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30009 *) ac_try_echo=$ac_try;;
30010esac
30011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30012 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000030013 ac_status=$?
30014 grep -v '^ *+' conftest.er1 >conftest.err
30015 rm -f conftest.er1
30016 cat conftest.err >&5
30017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030018 (exit $ac_status); } &&
30019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30020 { (case "(($ac_try" in
30021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30022 *) ac_try_echo=$ac_try;;
30023esac
30024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30025 (eval "$ac_try") 2>&5
30026 ac_status=$?
30027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30028 (exit $ac_status); }; } &&
30029 { ac_try='test -s conftest.$ac_objext'
30030 { (case "(($ac_try" in
30031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30032 *) ac_try_echo=$ac_try;;
30033esac
30034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30035 (eval "$ac_try") 2>&5
30036 ac_status=$?
30037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30038 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030039 ac_header_compiler=yes
30040else
30041 echo "$as_me: failed program was:" >&5
30042sed 's/^/| /' conftest.$ac_ext >&5
30043
Reid Spencera773bd52006-08-04 18:18:08 +000030044 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000030045fi
Reid Spencera773bd52006-08-04 18:18:08 +000030046
30047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30048{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30049echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030050
30051# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030052{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30053echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030054cat >conftest.$ac_ext <<_ACEOF
30055/* confdefs.h. */
30056_ACEOF
30057cat confdefs.h >>conftest.$ac_ext
30058cat >>conftest.$ac_ext <<_ACEOF
30059/* end confdefs.h. */
30060#include <$ac_header>
30061_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030062if { (ac_try="$ac_cpp conftest.$ac_ext"
30063case "(($ac_try" in
30064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30065 *) ac_try_echo=$ac_try;;
30066esac
30067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000030069 ac_status=$?
30070 grep -v '^ *+' conftest.er1 >conftest.err
30071 rm -f conftest.er1
30072 cat conftest.err >&5
30073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030074 (exit $ac_status); } >/dev/null; then
30075 if test -s conftest.err; then
30076 ac_cpp_err=$ac_c_preproc_warn_flag
30077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30078 else
30079 ac_cpp_err=
30080 fi
30081else
30082 ac_cpp_err=yes
30083fi
30084if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000030085 ac_header_preproc=yes
30086else
30087 echo "$as_me: failed program was:" >&5
30088sed 's/^/| /' conftest.$ac_ext >&5
30089
30090 ac_header_preproc=no
30091fi
Reid Spencera773bd52006-08-04 18:18:08 +000030092
Reid Spencer59473af2004-12-25 07:31:29 +000030093rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030094{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30095echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030096
30097# So? What about this header?
30098case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30099 yes:no: )
30100 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30101echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30103echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30104 ac_header_preproc=yes
30105 ;;
30106 no:yes:* )
30107 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30108echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30109 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30110echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30111 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30112echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30113 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30114echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30116echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30117 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30118echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030119 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000030120## ----------------------------------- ##
30121## Report this to llvmbugs@cs.uiuc.edu ##
30122## ----------------------------------- ##
30123_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030124 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000030125 ;;
30126esac
Reid Spencera773bd52006-08-04 18:18:08 +000030127{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30128echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30129if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030130 echo $ECHO_N "(cached) $ECHO_C" >&6
30131else
30132 eval "$as_ac_Header=\$ac_header_preproc"
30133fi
Reid Spencera773bd52006-08-04 18:18:08 +000030134ac_res=`eval echo '${'$as_ac_Header'}'`
30135 { echo "$as_me:$LINENO: result: $ac_res" >&5
30136echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030137
30138fi
30139if test `eval echo '${'$as_ac_Header'}'` = yes; then
30140 cat >>confdefs.h <<_ACEOF
30141#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30142_ACEOF
30143
30144fi
30145
30146done
30147
30148
Douglas Gregor071d73d2009-05-18 17:21:34 +000030149
30150for ac_header in utime.h windows.h
Reid Spencerbe3e4192007-08-17 05:45:26 +000030151do
30152as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30153if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30155echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30156if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30157 echo $ECHO_N "(cached) $ECHO_C" >&6
30158fi
30159ac_res=`eval echo '${'$as_ac_Header'}'`
30160 { echo "$as_me:$LINENO: result: $ac_res" >&5
30161echo "${ECHO_T}$ac_res" >&6; }
30162else
30163 # Is the header compilable?
30164{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30165echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30166cat >conftest.$ac_ext <<_ACEOF
30167/* confdefs.h. */
30168_ACEOF
30169cat confdefs.h >>conftest.$ac_ext
30170cat >>conftest.$ac_ext <<_ACEOF
30171/* end confdefs.h. */
30172$ac_includes_default
30173#include <$ac_header>
30174_ACEOF
30175rm -f conftest.$ac_objext
30176if { (ac_try="$ac_compile"
30177case "(($ac_try" in
30178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30179 *) ac_try_echo=$ac_try;;
30180esac
30181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30182 (eval "$ac_compile") 2>conftest.er1
30183 ac_status=$?
30184 grep -v '^ *+' conftest.er1 >conftest.err
30185 rm -f conftest.er1
30186 cat conftest.err >&5
30187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030188 (exit $ac_status); } &&
30189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30190 { (case "(($ac_try" in
30191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30192 *) ac_try_echo=$ac_try;;
30193esac
30194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30195 (eval "$ac_try") 2>&5
30196 ac_status=$?
30197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30198 (exit $ac_status); }; } &&
30199 { ac_try='test -s conftest.$ac_objext'
30200 { (case "(($ac_try" in
30201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30202 *) ac_try_echo=$ac_try;;
30203esac
30204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30205 (eval "$ac_try") 2>&5
30206 ac_status=$?
30207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30208 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030209 ac_header_compiler=yes
30210else
30211 echo "$as_me: failed program was:" >&5
30212sed 's/^/| /' conftest.$ac_ext >&5
30213
30214 ac_header_compiler=no
30215fi
30216
30217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30218{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30219echo "${ECHO_T}$ac_header_compiler" >&6; }
30220
30221# Is the header present?
30222{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30223echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30224cat >conftest.$ac_ext <<_ACEOF
30225/* confdefs.h. */
30226_ACEOF
30227cat confdefs.h >>conftest.$ac_ext
30228cat >>conftest.$ac_ext <<_ACEOF
30229/* end confdefs.h. */
30230#include <$ac_header>
30231_ACEOF
30232if { (ac_try="$ac_cpp conftest.$ac_ext"
30233case "(($ac_try" in
30234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30235 *) ac_try_echo=$ac_try;;
30236esac
30237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30239 ac_status=$?
30240 grep -v '^ *+' conftest.er1 >conftest.err
30241 rm -f conftest.er1
30242 cat conftest.err >&5
30243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030244 (exit $ac_status); } >/dev/null; then
30245 if test -s conftest.err; then
30246 ac_cpp_err=$ac_c_preproc_warn_flag
30247 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30248 else
30249 ac_cpp_err=
30250 fi
30251else
30252 ac_cpp_err=yes
30253fi
30254if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030255 ac_header_preproc=yes
30256else
30257 echo "$as_me: failed program was:" >&5
30258sed 's/^/| /' conftest.$ac_ext >&5
30259
30260 ac_header_preproc=no
30261fi
30262
30263rm -f conftest.err conftest.$ac_ext
30264{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30265echo "${ECHO_T}$ac_header_preproc" >&6; }
30266
30267# So? What about this header?
30268case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30269 yes:no: )
30270 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30271echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30273echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30274 ac_header_preproc=yes
30275 ;;
30276 no:yes:* )
30277 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30278echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30279 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30280echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30281 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30282echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30283 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30284echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30286echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30287 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30288echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30289 ( cat <<\_ASBOX
30290## ----------------------------------- ##
30291## Report this to llvmbugs@cs.uiuc.edu ##
30292## ----------------------------------- ##
30293_ASBOX
30294 ) | sed "s/^/$as_me: WARNING: /" >&2
30295 ;;
30296esac
30297{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30298echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30299if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30300 echo $ECHO_N "(cached) $ECHO_C" >&6
30301else
30302 eval "$as_ac_Header=\$ac_header_preproc"
30303fi
30304ac_res=`eval echo '${'$as_ac_Header'}'`
30305 { echo "$as_me:$LINENO: result: $ac_res" >&5
30306echo "${ECHO_T}$ac_res" >&6; }
30307
30308fi
30309if test `eval echo '${'$as_ac_Header'}'` = yes; then
30310 cat >>confdefs.h <<_ACEOF
30311#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30312_ACEOF
30313
30314fi
30315
30316done
Reid Spencer59473af2004-12-25 07:31:29 +000030317
30318
30319
30320
Reid Spencerbe3e4192007-08-17 05:45:26 +000030321
30322for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030323do
30324as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030325if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30328if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030329 echo $ECHO_N "(cached) $ECHO_C" >&6
30330fi
Reid Spencera773bd52006-08-04 18:18:08 +000030331ac_res=`eval echo '${'$as_ac_Header'}'`
30332 { echo "$as_me:$LINENO: result: $ac_res" >&5
30333echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030334else
30335 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030336{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30337echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030338cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030339/* confdefs.h. */
30340_ACEOF
30341cat confdefs.h >>conftest.$ac_ext
30342cat >>conftest.$ac_ext <<_ACEOF
30343/* end confdefs.h. */
30344$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030345#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030346_ACEOF
30347rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030348if { (ac_try="$ac_compile"
30349case "(($ac_try" in
30350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30351 *) ac_try_echo=$ac_try;;
30352esac
30353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30354 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030355 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030356 grep -v '^ *+' conftest.er1 >conftest.err
30357 rm -f conftest.er1
30358 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030360 (exit $ac_status); } &&
30361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30362 { (case "(($ac_try" in
30363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30364 *) ac_try_echo=$ac_try;;
30365esac
30366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30367 (eval "$ac_try") 2>&5
30368 ac_status=$?
30369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30370 (exit $ac_status); }; } &&
30371 { ac_try='test -s conftest.$ac_objext'
30372 { (case "(($ac_try" in
30373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30374 *) ac_try_echo=$ac_try;;
30375esac
30376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30377 (eval "$ac_try") 2>&5
30378 ac_status=$?
30379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30380 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030381 ac_header_compiler=yes
30382else
30383 echo "$as_me: failed program was:" >&5
30384sed 's/^/| /' conftest.$ac_ext >&5
30385
Reid Spencera773bd52006-08-04 18:18:08 +000030386 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030387fi
Reid Spencera773bd52006-08-04 18:18:08 +000030388
30389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30390{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30391echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030392
30393# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030394{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30395echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030396cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030397/* confdefs.h. */
30398_ACEOF
30399cat confdefs.h >>conftest.$ac_ext
30400cat >>conftest.$ac_ext <<_ACEOF
30401/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030402#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030403_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030404if { (ac_try="$ac_cpp conftest.$ac_ext"
30405case "(($ac_try" in
30406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30407 *) ac_try_echo=$ac_try;;
30408esac
30409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030411 ac_status=$?
30412 grep -v '^ *+' conftest.er1 >conftest.err
30413 rm -f conftest.er1
30414 cat conftest.err >&5
30415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030416 (exit $ac_status); } >/dev/null; then
30417 if test -s conftest.err; then
30418 ac_cpp_err=$ac_c_preproc_warn_flag
30419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30420 else
30421 ac_cpp_err=
30422 fi
30423else
30424 ac_cpp_err=yes
30425fi
30426if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030427 ac_header_preproc=yes
30428else
30429 echo "$as_me: failed program was:" >&5
30430sed 's/^/| /' conftest.$ac_ext >&5
30431
30432 ac_header_preproc=no
30433fi
Reid Spencera773bd52006-08-04 18:18:08 +000030434
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030435rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030436{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30437echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030438
30439# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030440case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30441 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30443echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30445echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030446 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000030447 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030448 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30450echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30452echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30454echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30456echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30458echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30460echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030461 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000030462## ----------------------------------- ##
30463## Report this to llvmbugs@cs.uiuc.edu ##
30464## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030465_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030466 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030467 ;;
30468esac
Reid Spencera773bd52006-08-04 18:18:08 +000030469{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30470echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30471if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030472 echo $ECHO_N "(cached) $ECHO_C" >&6
30473else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030474 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030475fi
Reid Spencera773bd52006-08-04 18:18:08 +000030476ac_res=`eval echo '${'$as_ac_Header'}'`
30477 { echo "$as_me:$LINENO: result: $ac_res" >&5
30478echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030479
30480fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030481if test `eval echo '${'$as_ac_Header'}'` = yes; then
30482 cat >>confdefs.h <<_ACEOF
30483#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000030484_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000030485
30486fi
John Criswell7ed43ad2004-07-19 16:12:29 +000030487
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030488done
30489
John Criswell7ed43ad2004-07-19 16:12:29 +000030490
Reid Spencercdb08a32006-06-05 16:11:07 +000030491
Reid Spencera6d990a2006-09-14 06:17:21 +000030492
Douglas Gregor01746742009-05-11 18:05:52 +000030493
30494for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000030495do
30496as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030497if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30499echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30500if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030501 echo $ECHO_N "(cached) $ECHO_C" >&6
30502fi
Reid Spencera773bd52006-08-04 18:18:08 +000030503ac_res=`eval echo '${'$as_ac_Header'}'`
30504 { echo "$as_me:$LINENO: result: $ac_res" >&5
30505echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030506else
30507 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030508{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30509echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030510cat >conftest.$ac_ext <<_ACEOF
30511/* confdefs.h. */
30512_ACEOF
30513cat confdefs.h >>conftest.$ac_ext
30514cat >>conftest.$ac_ext <<_ACEOF
30515/* end confdefs.h. */
30516$ac_includes_default
30517#include <$ac_header>
30518_ACEOF
30519rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030520if { (ac_try="$ac_compile"
30521case "(($ac_try" in
30522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30523 *) ac_try_echo=$ac_try;;
30524esac
30525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30526 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000030527 ac_status=$?
30528 grep -v '^ *+' conftest.er1 >conftest.err
30529 rm -f conftest.er1
30530 cat conftest.err >&5
30531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030532 (exit $ac_status); } &&
30533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30534 { (case "(($ac_try" in
30535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30536 *) ac_try_echo=$ac_try;;
30537esac
30538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30539 (eval "$ac_try") 2>&5
30540 ac_status=$?
30541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30542 (exit $ac_status); }; } &&
30543 { ac_try='test -s conftest.$ac_objext'
30544 { (case "(($ac_try" in
30545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30546 *) ac_try_echo=$ac_try;;
30547esac
30548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30549 (eval "$ac_try") 2>&5
30550 ac_status=$?
30551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30552 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030553 ac_header_compiler=yes
30554else
30555 echo "$as_me: failed program was:" >&5
30556sed 's/^/| /' conftest.$ac_ext >&5
30557
Reid Spencera773bd52006-08-04 18:18:08 +000030558 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000030559fi
Reid Spencera773bd52006-08-04 18:18:08 +000030560
30561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30562{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30563echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030564
30565# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030566{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30567echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030568cat >conftest.$ac_ext <<_ACEOF
30569/* confdefs.h. */
30570_ACEOF
30571cat confdefs.h >>conftest.$ac_ext
30572cat >>conftest.$ac_ext <<_ACEOF
30573/* end confdefs.h. */
30574#include <$ac_header>
30575_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030576if { (ac_try="$ac_cpp conftest.$ac_ext"
30577case "(($ac_try" in
30578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30579 *) ac_try_echo=$ac_try;;
30580esac
30581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000030583 ac_status=$?
30584 grep -v '^ *+' conftest.er1 >conftest.err
30585 rm -f conftest.er1
30586 cat conftest.err >&5
30587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030588 (exit $ac_status); } >/dev/null; then
30589 if test -s conftest.err; then
30590 ac_cpp_err=$ac_c_preproc_warn_flag
30591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30592 else
30593 ac_cpp_err=
30594 fi
30595else
30596 ac_cpp_err=yes
30597fi
30598if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000030599 ac_header_preproc=yes
30600else
30601 echo "$as_me: failed program was:" >&5
30602sed 's/^/| /' conftest.$ac_ext >&5
30603
30604 ac_header_preproc=no
30605fi
Reid Spencera773bd52006-08-04 18:18:08 +000030606
Chris Lattner0b142592005-11-14 06:57:34 +000030607rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030608{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30609echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030610
30611# So? What about this header?
30612case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30613 yes:no: )
30614 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30615echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30617echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30618 ac_header_preproc=yes
30619 ;;
30620 no:yes:* )
30621 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30622echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30623 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30624echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30625 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30626echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30627 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30628echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30630echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30631 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30632echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030633 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000030634## ----------------------------------- ##
30635## Report this to llvmbugs@cs.uiuc.edu ##
30636## ----------------------------------- ##
30637_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030638 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000030639 ;;
30640esac
Reid Spencera773bd52006-08-04 18:18:08 +000030641{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30643if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030644 echo $ECHO_N "(cached) $ECHO_C" >&6
30645else
30646 eval "$as_ac_Header=\$ac_header_preproc"
30647fi
Reid Spencera773bd52006-08-04 18:18:08 +000030648ac_res=`eval echo '${'$as_ac_Header'}'`
30649 { echo "$as_me:$LINENO: result: $ac_res" >&5
30650echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030651
30652fi
30653if test `eval echo '${'$as_ac_Header'}'` = yes; then
30654 cat >>confdefs.h <<_ACEOF
30655#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30656_ACEOF
30657
30658fi
30659
30660done
30661
Reid Spencer0a262ba2005-08-24 10:07:20 +000030662if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030663
30664for ac_header in pthread.h
30665do
30666as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30667if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030671 echo $ECHO_N "(cached) $ECHO_C" >&6
30672fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030673ac_res=`eval echo '${'$as_ac_Header'}'`
30674 { echo "$as_me:$LINENO: result: $ac_res" >&5
30675echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030676else
30677 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000030678{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30679echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030680cat >conftest.$ac_ext <<_ACEOF
30681/* confdefs.h. */
30682_ACEOF
30683cat confdefs.h >>conftest.$ac_ext
30684cat >>conftest.$ac_ext <<_ACEOF
30685/* end confdefs.h. */
30686$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000030687#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000030688_ACEOF
30689rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030690if { (ac_try="$ac_compile"
30691case "(($ac_try" in
30692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30693 *) ac_try_echo=$ac_try;;
30694esac
30695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30696 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030697 ac_status=$?
30698 grep -v '^ *+' conftest.er1 >conftest.err
30699 rm -f conftest.er1
30700 cat conftest.err >&5
30701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030702 (exit $ac_status); } &&
30703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30704 { (case "(($ac_try" in
30705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30706 *) ac_try_echo=$ac_try;;
30707esac
30708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30709 (eval "$ac_try") 2>&5
30710 ac_status=$?
30711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30712 (exit $ac_status); }; } &&
30713 { ac_try='test -s conftest.$ac_objext'
30714 { (case "(($ac_try" in
30715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30716 *) ac_try_echo=$ac_try;;
30717esac
30718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30719 (eval "$ac_try") 2>&5
30720 ac_status=$?
30721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30722 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030723 ac_header_compiler=yes
30724else
30725 echo "$as_me: failed program was:" >&5
30726sed 's/^/| /' conftest.$ac_ext >&5
30727
Reid Spencera773bd52006-08-04 18:18:08 +000030728 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000030729fi
Reid Spencera773bd52006-08-04 18:18:08 +000030730
30731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30732{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30733echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030734
30735# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000030736{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30737echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030738cat >conftest.$ac_ext <<_ACEOF
30739/* confdefs.h. */
30740_ACEOF
30741cat confdefs.h >>conftest.$ac_ext
30742cat >>conftest.$ac_ext <<_ACEOF
30743/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000030744#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000030745_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030746if { (ac_try="$ac_cpp conftest.$ac_ext"
30747case "(($ac_try" in
30748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30749 *) ac_try_echo=$ac_try;;
30750esac
30751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030753 ac_status=$?
30754 grep -v '^ *+' conftest.er1 >conftest.err
30755 rm -f conftest.er1
30756 cat conftest.err >&5
30757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030758 (exit $ac_status); } >/dev/null; then
30759 if test -s conftest.err; then
30760 ac_cpp_err=$ac_c_preproc_warn_flag
30761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30762 else
30763 ac_cpp_err=
30764 fi
30765else
30766 ac_cpp_err=yes
30767fi
30768if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030769 ac_header_preproc=yes
30770else
30771 echo "$as_me: failed program was:" >&5
30772sed 's/^/| /' conftest.$ac_ext >&5
30773
30774 ac_header_preproc=no
30775fi
Reid Spencera773bd52006-08-04 18:18:08 +000030776
Reid Spencer0a262ba2005-08-24 10:07:20 +000030777rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030778{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30779echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030780
30781# So? What about this header?
30782case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30783 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30785echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30787echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000030788 ac_header_preproc=yes
30789 ;;
30790 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30792echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30794echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30796echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30798echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30800echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30802echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030803 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000030804## ----------------------------------- ##
30805## Report this to llvmbugs@cs.uiuc.edu ##
30806## ----------------------------------- ##
30807_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030808 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000030809 ;;
30810esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000030811{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30813if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030814 echo $ECHO_N "(cached) $ECHO_C" >&6
30815else
Reid Spencerbe3e4192007-08-17 05:45:26 +000030816 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000030817fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030818ac_res=`eval echo '${'$as_ac_Header'}'`
30819 { echo "$as_me:$LINENO: result: $ac_res" >&5
30820echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030821
30822fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030823if test `eval echo '${'$as_ac_Header'}'` = yes; then
30824 cat >>confdefs.h <<_ACEOF
30825#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30826_ACEOF
30827 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000030828
30829else
30830 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030831
30832fi
30833
Reid Spencerbe3e4192007-08-17 05:45:26 +000030834done
Reid Spencer1000b732006-12-01 00:37:14 +000030835
30836else
30837 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030838
30839fi
Reid Spencer8085cff2005-01-16 02:58:39 +000030840
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000030841if test "$llvm_cv_enable_libffi" = "yes" ; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030842
30843
30844for ac_header in ffi.h ffi/ffi.h
30845do
30846as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30847if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30848 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30849echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30850if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30851 echo $ECHO_N "(cached) $ECHO_C" >&6
30852fi
30853ac_res=`eval echo '${'$as_ac_Header'}'`
30854 { echo "$as_me:$LINENO: result: $ac_res" >&5
30855echo "${ECHO_T}$ac_res" >&6; }
30856else
30857 # Is the header compilable?
30858{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30859echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30860cat >conftest.$ac_ext <<_ACEOF
30861/* confdefs.h. */
30862_ACEOF
30863cat confdefs.h >>conftest.$ac_ext
30864cat >>conftest.$ac_ext <<_ACEOF
30865/* end confdefs.h. */
30866$ac_includes_default
30867#include <$ac_header>
30868_ACEOF
30869rm -f conftest.$ac_objext
30870if { (ac_try="$ac_compile"
30871case "(($ac_try" in
30872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30873 *) ac_try_echo=$ac_try;;
30874esac
30875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30876 (eval "$ac_compile") 2>conftest.er1
30877 ac_status=$?
30878 grep -v '^ *+' conftest.er1 >conftest.err
30879 rm -f conftest.er1
30880 cat conftest.err >&5
30881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030882 (exit $ac_status); } &&
30883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30884 { (case "(($ac_try" in
30885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30886 *) ac_try_echo=$ac_try;;
30887esac
30888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30889 (eval "$ac_try") 2>&5
30890 ac_status=$?
30891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30892 (exit $ac_status); }; } &&
30893 { ac_try='test -s conftest.$ac_objext'
30894 { (case "(($ac_try" in
30895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30896 *) ac_try_echo=$ac_try;;
30897esac
30898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30899 (eval "$ac_try") 2>&5
30900 ac_status=$?
30901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30902 (exit $ac_status); }; }; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030903 ac_header_compiler=yes
30904else
30905 echo "$as_me: failed program was:" >&5
30906sed 's/^/| /' conftest.$ac_ext >&5
30907
30908 ac_header_compiler=no
30909fi
30910
30911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30912{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30913echo "${ECHO_T}$ac_header_compiler" >&6; }
30914
30915# Is the header present?
30916{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30917echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30918cat >conftest.$ac_ext <<_ACEOF
30919/* confdefs.h. */
30920_ACEOF
30921cat confdefs.h >>conftest.$ac_ext
30922cat >>conftest.$ac_ext <<_ACEOF
30923/* end confdefs.h. */
30924#include <$ac_header>
30925_ACEOF
30926if { (ac_try="$ac_cpp conftest.$ac_ext"
30927case "(($ac_try" in
30928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30929 *) ac_try_echo=$ac_try;;
30930esac
30931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30933 ac_status=$?
30934 grep -v '^ *+' conftest.er1 >conftest.err
30935 rm -f conftest.er1
30936 cat conftest.err >&5
30937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030938 (exit $ac_status); } >/dev/null; then
30939 if test -s conftest.err; then
30940 ac_cpp_err=$ac_c_preproc_warn_flag
30941 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30942 else
30943 ac_cpp_err=
30944 fi
30945else
30946 ac_cpp_err=yes
30947fi
30948if test -z "$ac_cpp_err"; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030949 ac_header_preproc=yes
30950else
30951 echo "$as_me: failed program was:" >&5
30952sed 's/^/| /' conftest.$ac_ext >&5
30953
30954 ac_header_preproc=no
30955fi
30956
30957rm -f conftest.err conftest.$ac_ext
30958{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30959echo "${ECHO_T}$ac_header_preproc" >&6; }
30960
30961# So? What about this header?
30962case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30963 yes:no: )
30964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30965echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30967echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30968 ac_header_preproc=yes
30969 ;;
30970 no:yes:* )
30971 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30972echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30973 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30974echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30975 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30976echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30977 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30978echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30980echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30981 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30982echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30983 ( cat <<\_ASBOX
30984## ----------------------------------- ##
30985## Report this to llvmbugs@cs.uiuc.edu ##
30986## ----------------------------------- ##
30987_ASBOX
30988 ) | sed "s/^/$as_me: WARNING: /" >&2
30989 ;;
30990esac
30991{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30992echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30993if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30994 echo $ECHO_N "(cached) $ECHO_C" >&6
30995else
30996 eval "$as_ac_Header=\$ac_header_preproc"
30997fi
30998ac_res=`eval echo '${'$as_ac_Header'}'`
30999 { echo "$as_me:$LINENO: result: $ac_res" >&5
31000echo "${ECHO_T}$ac_res" >&6; }
31001
31002fi
31003if test `eval echo '${'$as_ac_Header'}'` = yes; then
31004 cat >>confdefs.h <<_ACEOF
31005#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31006_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000031007
31008fi
31009
31010done
31011
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000031012fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000031013
Nick Lewycky2ab1d862009-01-20 00:52:24 +000031014
Reid Spencer8085cff2005-01-16 02:58:39 +000031015
Reid Spencerb2ed05262006-11-03 18:04:08 +000031016 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31017echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31018if test "${ac_cv_huge_val_sanity+set}" = set; then
31019 echo $ECHO_N "(cached) $ECHO_C" >&6
31020else
31021
Reid Spencer6a7c0b72006-11-03 19:49:16 +000031022 ac_ext=cpp
31023ac_cpp='$CXXCPP $CPPFLAGS'
31024ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31025ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31026ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000031027
Reid Spencer6a7c0b72006-11-03 19:49:16 +000031028 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000031029 if test "$cross_compiling" = yes; then
31030 ac_cv_huge_val_sanity=yes
31031else
31032 cat >conftest.$ac_ext <<_ACEOF
31033/* confdefs.h. */
31034_ACEOF
31035cat confdefs.h >>conftest.$ac_ext
31036cat >>conftest.$ac_ext <<_ACEOF
31037/* end confdefs.h. */
31038#include <math.h>
31039int
31040main ()
31041{
31042double x = HUGE_VAL; return x != x;
31043 ;
31044 return 0;
31045}
31046_ACEOF
31047rm -f conftest$ac_exeext
31048if { (ac_try="$ac_link"
31049case "(($ac_try" in
31050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31051 *) ac_try_echo=$ac_try;;
31052esac
31053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31054 (eval "$ac_link") 2>&5
31055 ac_status=$?
31056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31057 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31058 { (case "(($ac_try" in
31059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31060 *) ac_try_echo=$ac_try;;
31061esac
31062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31063 (eval "$ac_try") 2>&5
31064 ac_status=$?
31065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31066 (exit $ac_status); }; }; then
31067 ac_cv_huge_val_sanity=yes
31068else
31069 echo "$as_me: program exited with status $ac_status" >&5
31070echo "$as_me: failed program was:" >&5
31071sed 's/^/| /' conftest.$ac_ext >&5
31072
31073( exit $ac_status )
31074ac_cv_huge_val_sanity=no
31075fi
31076rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31077fi
31078
31079
31080 ac_ext=c
31081ac_cpp='$CPP $CPPFLAGS'
31082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31084ac_compiler_gnu=$ac_cv_c_compiler_gnu
31085
31086
31087fi
31088{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31089echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31090 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31091
31092
Reid Spencera773bd52006-08-04 18:18:08 +000031093{ echo "$as_me:$LINENO: checking for pid_t" >&5
31094echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031095if test "${ac_cv_type_pid_t+set}" = set; then
31096 echo $ECHO_N "(cached) $ECHO_C" >&6
31097else
31098 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031099/* confdefs.h. */
31100_ACEOF
31101cat confdefs.h >>conftest.$ac_ext
31102cat >>conftest.$ac_ext <<_ACEOF
31103/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031104$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031105typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031106int
31107main ()
31108{
Reid Spencera773bd52006-08-04 18:18:08 +000031109if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031110 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031111if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031112 return 0;
31113 ;
31114 return 0;
31115}
31116_ACEOF
31117rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031118if { (ac_try="$ac_compile"
31119case "(($ac_try" in
31120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31121 *) ac_try_echo=$ac_try;;
31122esac
31123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31124 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031125 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031126 grep -v '^ *+' conftest.er1 >conftest.err
31127 rm -f conftest.er1
31128 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031130 (exit $ac_status); } &&
31131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31132 { (case "(($ac_try" in
31133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31134 *) ac_try_echo=$ac_try;;
31135esac
31136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31137 (eval "$ac_try") 2>&5
31138 ac_status=$?
31139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31140 (exit $ac_status); }; } &&
31141 { ac_try='test -s conftest.$ac_objext'
31142 { (case "(($ac_try" in
31143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31144 *) ac_try_echo=$ac_try;;
31145esac
31146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31147 (eval "$ac_try") 2>&5
31148 ac_status=$?
31149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31150 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031151 ac_cv_type_pid_t=yes
31152else
31153 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031154sed 's/^/| /' conftest.$ac_ext >&5
31155
Reid Spencera773bd52006-08-04 18:18:08 +000031156 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031157fi
Reid Spencera773bd52006-08-04 18:18:08 +000031158
31159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031160fi
Reid Spencera773bd52006-08-04 18:18:08 +000031161{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31162echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031163if test $ac_cv_type_pid_t = yes; then
31164 :
31165else
31166
31167cat >>confdefs.h <<_ACEOF
31168#define pid_t int
31169_ACEOF
31170
31171fi
31172
Reid Spencera773bd52006-08-04 18:18:08 +000031173{ echo "$as_me:$LINENO: checking for size_t" >&5
31174echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031175if test "${ac_cv_type_size_t+set}" = set; then
31176 echo $ECHO_N "(cached) $ECHO_C" >&6
31177else
31178 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031179/* confdefs.h. */
31180_ACEOF
31181cat confdefs.h >>conftest.$ac_ext
31182cat >>conftest.$ac_ext <<_ACEOF
31183/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031184$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031185typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031186int
31187main ()
31188{
Reid Spencera773bd52006-08-04 18:18:08 +000031189if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031190 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031191if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031192 return 0;
31193 ;
31194 return 0;
31195}
31196_ACEOF
31197rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031198if { (ac_try="$ac_compile"
31199case "(($ac_try" in
31200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31201 *) ac_try_echo=$ac_try;;
31202esac
31203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31204 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031205 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031206 grep -v '^ *+' conftest.er1 >conftest.err
31207 rm -f conftest.er1
31208 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031210 (exit $ac_status); } &&
31211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31212 { (case "(($ac_try" in
31213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31214 *) ac_try_echo=$ac_try;;
31215esac
31216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31217 (eval "$ac_try") 2>&5
31218 ac_status=$?
31219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31220 (exit $ac_status); }; } &&
31221 { ac_try='test -s conftest.$ac_objext'
31222 { (case "(($ac_try" in
31223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31224 *) ac_try_echo=$ac_try;;
31225esac
31226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31227 (eval "$ac_try") 2>&5
31228 ac_status=$?
31229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31230 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031231 ac_cv_type_size_t=yes
31232else
31233 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031234sed 's/^/| /' conftest.$ac_ext >&5
31235
Reid Spencera773bd52006-08-04 18:18:08 +000031236 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031237fi
Reid Spencera773bd52006-08-04 18:18:08 +000031238
31239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031240fi
Reid Spencera773bd52006-08-04 18:18:08 +000031241{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31242echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031243if test $ac_cv_type_size_t = yes; then
31244 :
31245else
31246
31247cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000031248#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000031249_ACEOF
31250
31251fi
31252
Reid Spencera773bd52006-08-04 18:18:08 +000031253{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31254echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031255if test "${ac_cv_type_signal+set}" = set; then
31256 echo $ECHO_N "(cached) $ECHO_C" >&6
31257else
31258 cat >conftest.$ac_ext <<_ACEOF
31259/* confdefs.h. */
31260_ACEOF
31261cat confdefs.h >>conftest.$ac_ext
31262cat >>conftest.$ac_ext <<_ACEOF
31263/* end confdefs.h. */
31264#include <sys/types.h>
31265#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031266
31267int
31268main ()
31269{
Reid Spencera773bd52006-08-04 18:18:08 +000031270return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031271 ;
31272 return 0;
31273}
31274_ACEOF
31275rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031276if { (ac_try="$ac_compile"
31277case "(($ac_try" in
31278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31279 *) ac_try_echo=$ac_try;;
31280esac
31281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31282 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031283 ac_status=$?
31284 grep -v '^ *+' conftest.er1 >conftest.err
31285 rm -f conftest.er1
31286 cat conftest.err >&5
31287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031288 (exit $ac_status); } &&
31289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31290 { (case "(($ac_try" in
31291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31292 *) ac_try_echo=$ac_try;;
31293esac
31294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31295 (eval "$ac_try") 2>&5
31296 ac_status=$?
31297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31298 (exit $ac_status); }; } &&
31299 { ac_try='test -s conftest.$ac_objext'
31300 { (case "(($ac_try" in
31301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31302 *) ac_try_echo=$ac_try;;
31303esac
31304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31305 (eval "$ac_try") 2>&5
31306 ac_status=$?
31307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31308 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000031309 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031310else
31311 echo "$as_me: failed program was:" >&5
31312sed 's/^/| /' conftest.$ac_ext >&5
31313
Reid Spencera773bd52006-08-04 18:18:08 +000031314 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031315fi
Reid Spencera773bd52006-08-04 18:18:08 +000031316
31317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031318fi
Reid Spencera773bd52006-08-04 18:18:08 +000031319{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31320echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031321
31322cat >>confdefs.h <<_ACEOF
31323#define RETSIGTYPE $ac_cv_type_signal
31324_ACEOF
31325
31326
Reid Spencera773bd52006-08-04 18:18:08 +000031327{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31328echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031329if test "${ac_cv_struct_tm+set}" = set; then
31330 echo $ECHO_N "(cached) $ECHO_C" >&6
31331else
31332 cat >conftest.$ac_ext <<_ACEOF
31333/* confdefs.h. */
31334_ACEOF
31335cat confdefs.h >>conftest.$ac_ext
31336cat >>conftest.$ac_ext <<_ACEOF
31337/* end confdefs.h. */
31338#include <sys/types.h>
31339#include <time.h>
31340
31341int
31342main ()
31343{
Bill Wendlingebcceee2009-04-18 11:20:33 +000031344struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031345 ;
31346 return 0;
31347}
31348_ACEOF
31349rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031350if { (ac_try="$ac_compile"
31351case "(($ac_try" in
31352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31353 *) ac_try_echo=$ac_try;;
31354esac
31355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31356 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031357 ac_status=$?
31358 grep -v '^ *+' conftest.er1 >conftest.err
31359 rm -f conftest.er1
31360 cat conftest.err >&5
31361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031362 (exit $ac_status); } &&
31363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31364 { (case "(($ac_try" in
31365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31366 *) ac_try_echo=$ac_try;;
31367esac
31368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31369 (eval "$ac_try") 2>&5
31370 ac_status=$?
31371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372 (exit $ac_status); }; } &&
31373 { ac_try='test -s conftest.$ac_objext'
31374 { (case "(($ac_try" in
31375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31376 *) ac_try_echo=$ac_try;;
31377esac
31378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31379 (eval "$ac_try") 2>&5
31380 ac_status=$?
31381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31382 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031383 ac_cv_struct_tm=time.h
31384else
31385 echo "$as_me: failed program was:" >&5
31386sed 's/^/| /' conftest.$ac_ext >&5
31387
Reid Spencera773bd52006-08-04 18:18:08 +000031388 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031389fi
Reid Spencera773bd52006-08-04 18:18:08 +000031390
31391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031392fi
Reid Spencera773bd52006-08-04 18:18:08 +000031393{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31394echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031395if test $ac_cv_struct_tm = sys/time.h; then
31396
31397cat >>confdefs.h <<\_ACEOF
31398#define TM_IN_SYS_TIME 1
31399_ACEOF
31400
31401fi
31402
Reid Spencera773bd52006-08-04 18:18:08 +000031403{ echo "$as_me:$LINENO: checking for int64_t" >&5
31404echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031405if test "${ac_cv_type_int64_t+set}" = set; then
31406 echo $ECHO_N "(cached) $ECHO_C" >&6
31407else
31408 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031409/* confdefs.h. */
31410_ACEOF
31411cat confdefs.h >>conftest.$ac_ext
31412cat >>conftest.$ac_ext <<_ACEOF
31413/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031414$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031415typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031416int
31417main ()
31418{
Reid Spencera773bd52006-08-04 18:18:08 +000031419if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031420 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031421if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031422 return 0;
31423 ;
31424 return 0;
31425}
31426_ACEOF
31427rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031428if { (ac_try="$ac_compile"
31429case "(($ac_try" in
31430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31431 *) ac_try_echo=$ac_try;;
31432esac
31433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31434 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031435 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031436 grep -v '^ *+' conftest.er1 >conftest.err
31437 rm -f conftest.er1
31438 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031440 (exit $ac_status); } &&
31441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31442 { (case "(($ac_try" in
31443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31444 *) ac_try_echo=$ac_try;;
31445esac
31446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31447 (eval "$ac_try") 2>&5
31448 ac_status=$?
31449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31450 (exit $ac_status); }; } &&
31451 { ac_try='test -s conftest.$ac_objext'
31452 { (case "(($ac_try" in
31453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31454 *) ac_try_echo=$ac_try;;
31455esac
31456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31457 (eval "$ac_try") 2>&5
31458 ac_status=$?
31459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31460 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031461 ac_cv_type_int64_t=yes
31462else
31463 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031464sed 's/^/| /' conftest.$ac_ext >&5
31465
Reid Spencera773bd52006-08-04 18:18:08 +000031466 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031467fi
Reid Spencera773bd52006-08-04 18:18:08 +000031468
31469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031470fi
Reid Spencera773bd52006-08-04 18:18:08 +000031471{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31472echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031473if test $ac_cv_type_int64_t = yes; then
31474
31475cat >>confdefs.h <<_ACEOF
31476#define HAVE_INT64_T 1
31477_ACEOF
31478
31479
31480else
31481 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31482echo "$as_me: error: Type int64_t required but not found" >&2;}
31483 { (exit 1); exit 1; }; }
31484fi
31485
Reid Spencera773bd52006-08-04 18:18:08 +000031486{ echo "$as_me:$LINENO: checking for uint64_t" >&5
31487echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031488if test "${ac_cv_type_uint64_t+set}" = set; then
31489 echo $ECHO_N "(cached) $ECHO_C" >&6
31490else
31491 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031492/* confdefs.h. */
31493_ACEOF
31494cat confdefs.h >>conftest.$ac_ext
31495cat >>conftest.$ac_ext <<_ACEOF
31496/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031497$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031498typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031499int
31500main ()
31501{
Reid Spencera773bd52006-08-04 18:18:08 +000031502if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031503 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031504if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031505 return 0;
31506 ;
31507 return 0;
31508}
31509_ACEOF
31510rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031511if { (ac_try="$ac_compile"
31512case "(($ac_try" in
31513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31514 *) ac_try_echo=$ac_try;;
31515esac
31516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31517 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031518 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031519 grep -v '^ *+' conftest.er1 >conftest.err
31520 rm -f conftest.er1
31521 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031523 (exit $ac_status); } &&
31524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31525 { (case "(($ac_try" in
31526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31527 *) ac_try_echo=$ac_try;;
31528esac
31529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31530 (eval "$ac_try") 2>&5
31531 ac_status=$?
31532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31533 (exit $ac_status); }; } &&
31534 { ac_try='test -s conftest.$ac_objext'
31535 { (case "(($ac_try" in
31536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31537 *) ac_try_echo=$ac_try;;
31538esac
31539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31540 (eval "$ac_try") 2>&5
31541 ac_status=$?
31542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31543 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031544 ac_cv_type_uint64_t=yes
31545else
31546 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031547sed 's/^/| /' conftest.$ac_ext >&5
31548
Reid Spencera773bd52006-08-04 18:18:08 +000031549 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031550fi
Reid Spencera773bd52006-08-04 18:18:08 +000031551
31552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031553fi
Reid Spencera773bd52006-08-04 18:18:08 +000031554{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31555echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031556if test $ac_cv_type_uint64_t = yes; then
31557
31558cat >>confdefs.h <<_ACEOF
31559#define HAVE_UINT64_T 1
31560_ACEOF
31561
31562
31563else
Reid Spencera773bd52006-08-04 18:18:08 +000031564 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31565echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000031566if test "${ac_cv_type_u_int64_t+set}" = set; then
31567 echo $ECHO_N "(cached) $ECHO_C" >&6
31568else
31569 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000031570/* confdefs.h. */
31571_ACEOF
31572cat confdefs.h >>conftest.$ac_ext
31573cat >>conftest.$ac_ext <<_ACEOF
31574/* end confdefs.h. */
31575$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031576typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000031577int
31578main ()
31579{
Reid Spencera773bd52006-08-04 18:18:08 +000031580if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000031581 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031582if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000031583 return 0;
31584 ;
31585 return 0;
31586}
31587_ACEOF
31588rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031589if { (ac_try="$ac_compile"
31590case "(($ac_try" in
31591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31592 *) ac_try_echo=$ac_try;;
31593esac
31594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31595 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000031596 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031597 grep -v '^ *+' conftest.er1 >conftest.err
31598 rm -f conftest.er1
31599 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000031600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031601 (exit $ac_status); } &&
31602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31603 { (case "(($ac_try" in
31604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31605 *) ac_try_echo=$ac_try;;
31606esac
31607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31608 (eval "$ac_try") 2>&5
31609 ac_status=$?
31610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31611 (exit $ac_status); }; } &&
31612 { ac_try='test -s conftest.$ac_objext'
31613 { (case "(($ac_try" in
31614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31615 *) ac_try_echo=$ac_try;;
31616esac
31617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31618 (eval "$ac_try") 2>&5
31619 ac_status=$?
31620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31621 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000031622 ac_cv_type_u_int64_t=yes
31623else
31624 echo "$as_me: failed program was:" >&5
31625sed 's/^/| /' conftest.$ac_ext >&5
31626
Reid Spencera773bd52006-08-04 18:18:08 +000031627 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000031628fi
Reid Spencera773bd52006-08-04 18:18:08 +000031629
31630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000031631fi
Reid Spencera773bd52006-08-04 18:18:08 +000031632{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31633echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000031634if test $ac_cv_type_u_int64_t = yes; then
31635
31636cat >>confdefs.h <<_ACEOF
31637#define HAVE_U_INT64_T 1
31638_ACEOF
31639
31640
Misha Brukmanceca9042004-09-02 23:02:30 +000031641else
31642 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31643echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31644 { (exit 1); exit 1; }; }
31645fi
31646
John Criswell679ff312004-09-02 18:44:44 +000031647fi
31648
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031649
31650
31651
31652
31653
31654
31655
Reid Spencerf4bb9b12006-01-19 08:22:40 +000031656
31657
Reid Spencerdf3be822006-01-23 08:15:53 +000031658for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031659do
31660as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031661{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31662echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31663if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031664 echo $ECHO_N "(cached) $ECHO_C" >&6
31665else
31666 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031667/* confdefs.h. */
31668_ACEOF
31669cat confdefs.h >>conftest.$ac_ext
31670cat >>conftest.$ac_ext <<_ACEOF
31671/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031672/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31674#define $ac_func innocuous_$ac_func
31675
31676/* System header to define __stub macros and hopefully few prototypes,
31677 which can conflict with char $ac_func (); below.
31678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31679 <limits.h> exists even on freestanding compilers. */
31680
31681#ifdef __STDC__
31682# include <limits.h>
31683#else
31684# include <assert.h>
31685#endif
31686
31687#undef $ac_func
31688
Reid Spencera773bd52006-08-04 18:18:08 +000031689/* Override any GCC internal prototype to avoid an error.
31690 Use char because int might match the return type of a GCC
31691 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031692#ifdef __cplusplus
31693extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031694#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031695char $ac_func ();
31696/* The GNU C library defines this for functions which it implements
31697 to always fail with ENOSYS. Some functions are actually named
31698 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031699#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031700choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031701#endif
John Criswell7a73b802003-06-30 21:59:07 +000031702
John Criswell7a73b802003-06-30 21:59:07 +000031703int
31704main ()
31705{
Reid Spencera773bd52006-08-04 18:18:08 +000031706return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031707 ;
31708 return 0;
31709}
31710_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031711rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031712if { (ac_try="$ac_link"
31713case "(($ac_try" in
31714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31715 *) ac_try_echo=$ac_try;;
31716esac
31717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31718 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031719 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031720 grep -v '^ *+' conftest.er1 >conftest.err
31721 rm -f conftest.er1
31722 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031724 (exit $ac_status); } &&
31725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31726 { (case "(($ac_try" in
31727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31728 *) ac_try_echo=$ac_try;;
31729esac
31730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31731 (eval "$ac_try") 2>&5
31732 ac_status=$?
31733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31734 (exit $ac_status); }; } &&
31735 { ac_try='test -s conftest$ac_exeext'
31736 { (case "(($ac_try" in
31737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31738 *) ac_try_echo=$ac_try;;
31739esac
31740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31741 (eval "$ac_try") 2>&5
31742 ac_status=$?
31743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31744 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031745 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031746else
31747 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031748sed 's/^/| /' conftest.$ac_ext >&5
31749
Reid Spencera773bd52006-08-04 18:18:08 +000031750 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031751fi
Reid Spencera773bd52006-08-04 18:18:08 +000031752
Bill Wendlingebcceee2009-04-18 11:20:33 +000031753rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031754 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031755fi
Reid Spencera773bd52006-08-04 18:18:08 +000031756ac_res=`eval echo '${'$as_ac_var'}'`
31757 { echo "$as_me:$LINENO: result: $ac_res" >&5
31758echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031759if test `eval echo '${'$as_ac_var'}'` = yes; then
31760 cat >>confdefs.h <<_ACEOF
31761#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031762_ACEOF
31763
31764fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031765done
John Criswell7a73b802003-06-30 21:59:07 +000031766
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031767
31768
31769
Reid Spencer6af3d262004-12-15 04:01:48 +000031770
Reid Spencer96cf5872007-07-13 10:05:30 +000031771for ac_func in powf fmodf strtof round
31772do
31773as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31774{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31775echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31776if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31777 echo $ECHO_N "(cached) $ECHO_C" >&6
31778else
31779 cat >conftest.$ac_ext <<_ACEOF
31780/* confdefs.h. */
31781_ACEOF
31782cat confdefs.h >>conftest.$ac_ext
31783cat >>conftest.$ac_ext <<_ACEOF
31784/* end confdefs.h. */
31785/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31787#define $ac_func innocuous_$ac_func
31788
31789/* System header to define __stub macros and hopefully few prototypes,
31790 which can conflict with char $ac_func (); below.
31791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31792 <limits.h> exists even on freestanding compilers. */
31793
31794#ifdef __STDC__
31795# include <limits.h>
31796#else
31797# include <assert.h>
31798#endif
31799
31800#undef $ac_func
31801
31802/* Override any GCC internal prototype to avoid an error.
31803 Use char because int might match the return type of a GCC
31804 builtin and then its argument prototype would still apply. */
31805#ifdef __cplusplus
31806extern "C"
31807#endif
31808char $ac_func ();
31809/* The GNU C library defines this for functions which it implements
31810 to always fail with ENOSYS. Some functions are actually named
31811 something starting with __ and the normal name is an alias. */
31812#if defined __stub_$ac_func || defined __stub___$ac_func
31813choke me
31814#endif
31815
31816int
31817main ()
31818{
31819return $ac_func ();
31820 ;
31821 return 0;
31822}
31823_ACEOF
31824rm -f conftest.$ac_objext conftest$ac_exeext
31825if { (ac_try="$ac_link"
31826case "(($ac_try" in
31827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31828 *) ac_try_echo=$ac_try;;
31829esac
31830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31831 (eval "$ac_link") 2>conftest.er1
31832 ac_status=$?
31833 grep -v '^ *+' conftest.er1 >conftest.err
31834 rm -f conftest.er1
31835 cat conftest.err >&5
31836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031837 (exit $ac_status); } &&
31838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31839 { (case "(($ac_try" in
31840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31841 *) ac_try_echo=$ac_try;;
31842esac
31843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31844 (eval "$ac_try") 2>&5
31845 ac_status=$?
31846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31847 (exit $ac_status); }; } &&
31848 { ac_try='test -s conftest$ac_exeext'
31849 { (case "(($ac_try" in
31850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31851 *) ac_try_echo=$ac_try;;
31852esac
31853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31854 (eval "$ac_try") 2>&5
31855 ac_status=$?
31856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31857 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000031858 eval "$as_ac_var=yes"
31859else
31860 echo "$as_me: failed program was:" >&5
31861sed 's/^/| /' conftest.$ac_ext >&5
31862
31863 eval "$as_ac_var=no"
31864fi
31865
Bill Wendlingebcceee2009-04-18 11:20:33 +000031866rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000031867 conftest$ac_exeext conftest.$ac_ext
31868fi
31869ac_res=`eval echo '${'$as_ac_var'}'`
31870 { echo "$as_me:$LINENO: result: $ac_res" >&5
31871echo "${ECHO_T}$ac_res" >&6; }
31872if test `eval echo '${'$as_ac_var'}'` = yes; then
31873 cat >>confdefs.h <<_ACEOF
31874#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31875_ACEOF
31876
31877fi
31878done
31879
31880
31881
31882
31883
Reid Spencer6af3d262004-12-15 04:01:48 +000031884
Reid Spencerb90645c2007-02-16 19:17:20 +000031885for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31886do
31887as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31888{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31889echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31890if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31891 echo $ECHO_N "(cached) $ECHO_C" >&6
31892else
31893 cat >conftest.$ac_ext <<_ACEOF
31894/* confdefs.h. */
31895_ACEOF
31896cat confdefs.h >>conftest.$ac_ext
31897cat >>conftest.$ac_ext <<_ACEOF
31898/* end confdefs.h. */
31899/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31901#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000031902
Reid Spencerb90645c2007-02-16 19:17:20 +000031903/* System header to define __stub macros and hopefully few prototypes,
31904 which can conflict with char $ac_func (); below.
31905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31906 <limits.h> exists even on freestanding compilers. */
31907
31908#ifdef __STDC__
31909# include <limits.h>
31910#else
31911# include <assert.h>
31912#endif
31913
31914#undef $ac_func
31915
31916/* Override any GCC internal prototype to avoid an error.
31917 Use char because int might match the return type of a GCC
31918 builtin and then its argument prototype would still apply. */
31919#ifdef __cplusplus
31920extern "C"
31921#endif
31922char $ac_func ();
31923/* The GNU C library defines this for functions which it implements
31924 to always fail with ENOSYS. Some functions are actually named
31925 something starting with __ and the normal name is an alias. */
31926#if defined __stub_$ac_func || defined __stub___$ac_func
31927choke me
31928#endif
31929
31930int
31931main ()
31932{
31933return $ac_func ();
31934 ;
31935 return 0;
31936}
31937_ACEOF
31938rm -f conftest.$ac_objext conftest$ac_exeext
31939if { (ac_try="$ac_link"
31940case "(($ac_try" in
31941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31942 *) ac_try_echo=$ac_try;;
31943esac
31944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31945 (eval "$ac_link") 2>conftest.er1
31946 ac_status=$?
31947 grep -v '^ *+' conftest.er1 >conftest.err
31948 rm -f conftest.er1
31949 cat conftest.err >&5
31950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031951 (exit $ac_status); } &&
31952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31953 { (case "(($ac_try" in
31954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31955 *) ac_try_echo=$ac_try;;
31956esac
31957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31958 (eval "$ac_try") 2>&5
31959 ac_status=$?
31960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31961 (exit $ac_status); }; } &&
31962 { ac_try='test -s conftest$ac_exeext'
31963 { (case "(($ac_try" in
31964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31965 *) ac_try_echo=$ac_try;;
31966esac
31967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31968 (eval "$ac_try") 2>&5
31969 ac_status=$?
31970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31971 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000031972 eval "$as_ac_var=yes"
31973else
31974 echo "$as_me: failed program was:" >&5
31975sed 's/^/| /' conftest.$ac_ext >&5
31976
31977 eval "$as_ac_var=no"
31978fi
31979
Bill Wendlingebcceee2009-04-18 11:20:33 +000031980rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000031981 conftest$ac_exeext conftest.$ac_ext
31982fi
31983ac_res=`eval echo '${'$as_ac_var'}'`
31984 { echo "$as_me:$LINENO: result: $ac_res" >&5
31985echo "${ECHO_T}$ac_res" >&6; }
31986if test `eval echo '${'$as_ac_var'}'` = yes; then
31987 cat >>confdefs.h <<_ACEOF
31988#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31989_ACEOF
31990
31991fi
31992done
31993
31994
31995
31996
31997for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000031998do
31999as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032000{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32001echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32002if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000032003 echo $ECHO_N "(cached) $ECHO_C" >&6
32004else
32005 cat >conftest.$ac_ext <<_ACEOF
32006/* confdefs.h. */
32007_ACEOF
32008cat confdefs.h >>conftest.$ac_ext
32009cat >>conftest.$ac_ext <<_ACEOF
32010/* end confdefs.h. */
32011/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32013#define $ac_func innocuous_$ac_func
32014
32015/* System header to define __stub macros and hopefully few prototypes,
32016 which can conflict with char $ac_func (); below.
32017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32018 <limits.h> exists even on freestanding compilers. */
32019
32020#ifdef __STDC__
32021# include <limits.h>
32022#else
32023# include <assert.h>
32024#endif
32025
32026#undef $ac_func
32027
Reid Spencera773bd52006-08-04 18:18:08 +000032028/* Override any GCC internal prototype to avoid an error.
32029 Use char because int might match the return type of a GCC
32030 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000032031#ifdef __cplusplus
32032extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000032033#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000032034char $ac_func ();
32035/* The GNU C library defines this for functions which it implements
32036 to always fail with ENOSYS. Some functions are actually named
32037 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032038#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000032039choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000032040#endif
32041
32042int
32043main ()
32044{
Reid Spencera773bd52006-08-04 18:18:08 +000032045return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000032046 ;
32047 return 0;
32048}
32049_ACEOF
32050rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032051if { (ac_try="$ac_link"
32052case "(($ac_try" in
32053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32054 *) ac_try_echo=$ac_try;;
32055esac
32056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32057 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000032058 ac_status=$?
32059 grep -v '^ *+' conftest.er1 >conftest.err
32060 rm -f conftest.er1
32061 cat conftest.err >&5
32062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032063 (exit $ac_status); } &&
32064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32065 { (case "(($ac_try" in
32066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32067 *) ac_try_echo=$ac_try;;
32068esac
32069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32070 (eval "$ac_try") 2>&5
32071 ac_status=$?
32072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32073 (exit $ac_status); }; } &&
32074 { ac_try='test -s conftest$ac_exeext'
32075 { (case "(($ac_try" in
32076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32077 *) ac_try_echo=$ac_try;;
32078esac
32079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32080 (eval "$ac_try") 2>&5
32081 ac_status=$?
32082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32083 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000032084 eval "$as_ac_var=yes"
32085else
32086 echo "$as_me: failed program was:" >&5
32087sed 's/^/| /' conftest.$ac_ext >&5
32088
Reid Spencera773bd52006-08-04 18:18:08 +000032089 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000032090fi
Reid Spencera773bd52006-08-04 18:18:08 +000032091
Bill Wendlingebcceee2009-04-18 11:20:33 +000032092rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000032093 conftest$ac_exeext conftest.$ac_ext
32094fi
Reid Spencera773bd52006-08-04 18:18:08 +000032095ac_res=`eval echo '${'$as_ac_var'}'`
32096 { echo "$as_me:$LINENO: result: $ac_res" >&5
32097echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000032098if test `eval echo '${'$as_ac_var'}'` = yes; then
32099 cat >>confdefs.h <<_ACEOF
32100#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32101_ACEOF
32102
32103fi
32104done
32105
32106
32107
32108
32109
32110
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000032111for ac_func in mktemp realpath sbrk setrlimit strdup
32112do
32113as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32114{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32115echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32116if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32117 echo $ECHO_N "(cached) $ECHO_C" >&6
32118else
32119 cat >conftest.$ac_ext <<_ACEOF
32120/* confdefs.h. */
32121_ACEOF
32122cat confdefs.h >>conftest.$ac_ext
32123cat >>conftest.$ac_ext <<_ACEOF
32124/* end confdefs.h. */
32125/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32127#define $ac_func innocuous_$ac_func
32128
32129/* System header to define __stub macros and hopefully few prototypes,
32130 which can conflict with char $ac_func (); below.
32131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32132 <limits.h> exists even on freestanding compilers. */
32133
32134#ifdef __STDC__
32135# include <limits.h>
32136#else
32137# include <assert.h>
32138#endif
32139
32140#undef $ac_func
32141
32142/* Override any GCC internal prototype to avoid an error.
32143 Use char because int might match the return type of a GCC
32144 builtin and then its argument prototype would still apply. */
32145#ifdef __cplusplus
32146extern "C"
32147#endif
32148char $ac_func ();
32149/* The GNU C library defines this for functions which it implements
32150 to always fail with ENOSYS. Some functions are actually named
32151 something starting with __ and the normal name is an alias. */
32152#if defined __stub_$ac_func || defined __stub___$ac_func
32153choke me
32154#endif
32155
32156int
32157main ()
32158{
32159return $ac_func ();
32160 ;
32161 return 0;
32162}
32163_ACEOF
32164rm -f conftest.$ac_objext conftest$ac_exeext
32165if { (ac_try="$ac_link"
32166case "(($ac_try" in
32167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32168 *) ac_try_echo=$ac_try;;
32169esac
32170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32171 (eval "$ac_link") 2>conftest.er1
32172 ac_status=$?
32173 grep -v '^ *+' conftest.er1 >conftest.err
32174 rm -f conftest.er1
32175 cat conftest.err >&5
32176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32177 (exit $ac_status); } &&
32178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32179 { (case "(($ac_try" in
32180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32181 *) ac_try_echo=$ac_try;;
32182esac
32183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32184 (eval "$ac_try") 2>&5
32185 ac_status=$?
32186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32187 (exit $ac_status); }; } &&
32188 { ac_try='test -s conftest$ac_exeext'
32189 { (case "(($ac_try" in
32190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32191 *) ac_try_echo=$ac_try;;
32192esac
32193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32194 (eval "$ac_try") 2>&5
32195 ac_status=$?
32196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32197 (exit $ac_status); }; }; then
32198 eval "$as_ac_var=yes"
32199else
32200 echo "$as_me: failed program was:" >&5
32201sed 's/^/| /' conftest.$ac_ext >&5
32202
32203 eval "$as_ac_var=no"
32204fi
32205
32206rm -f core conftest.err conftest.$ac_objext \
32207 conftest$ac_exeext conftest.$ac_ext
32208fi
32209ac_res=`eval echo '${'$as_ac_var'}'`
32210 { echo "$as_me:$LINENO: result: $ac_res" >&5
32211echo "${ECHO_T}$ac_res" >&6; }
32212if test `eval echo '${'$as_ac_var'}'` = yes; then
32213 cat >>confdefs.h <<_ACEOF
32214#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32215_ACEOF
32216
32217fi
32218done
Reid Spencerdf3be822006-01-23 08:15:53 +000032219
32220
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000032221
32222
32223for ac_func in strerror strerror_r strerror_s
Reid Spencer7931a782004-12-27 06:15:02 +000032224do
32225as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032226{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32227echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32228if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000032229 echo $ECHO_N "(cached) $ECHO_C" >&6
32230else
32231 cat >conftest.$ac_ext <<_ACEOF
32232/* confdefs.h. */
32233_ACEOF
32234cat confdefs.h >>conftest.$ac_ext
32235cat >>conftest.$ac_ext <<_ACEOF
32236/* end confdefs.h. */
32237/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32239#define $ac_func innocuous_$ac_func
32240
32241/* System header to define __stub macros and hopefully few prototypes,
32242 which can conflict with char $ac_func (); below.
32243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32244 <limits.h> exists even on freestanding compilers. */
32245
32246#ifdef __STDC__
32247# include <limits.h>
32248#else
32249# include <assert.h>
32250#endif
32251
32252#undef $ac_func
32253
Reid Spencera773bd52006-08-04 18:18:08 +000032254/* Override any GCC internal prototype to avoid an error.
32255 Use char because int might match the return type of a GCC
32256 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000032257#ifdef __cplusplus
32258extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000032259#endif
Reid Spencer7931a782004-12-27 06:15:02 +000032260char $ac_func ();
32261/* The GNU C library defines this for functions which it implements
32262 to always fail with ENOSYS. Some functions are actually named
32263 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032264#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000032265choke me
Reid Spencer7931a782004-12-27 06:15:02 +000032266#endif
32267
32268int
32269main ()
32270{
Reid Spencera773bd52006-08-04 18:18:08 +000032271return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000032272 ;
32273 return 0;
32274}
32275_ACEOF
32276rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032277if { (ac_try="$ac_link"
32278case "(($ac_try" in
32279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32280 *) ac_try_echo=$ac_try;;
32281esac
32282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32283 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000032284 ac_status=$?
32285 grep -v '^ *+' conftest.er1 >conftest.err
32286 rm -f conftest.er1
32287 cat conftest.err >&5
32288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032289 (exit $ac_status); } &&
32290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32291 { (case "(($ac_try" in
32292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32293 *) ac_try_echo=$ac_try;;
32294esac
32295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32296 (eval "$ac_try") 2>&5
32297 ac_status=$?
32298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32299 (exit $ac_status); }; } &&
32300 { ac_try='test -s conftest$ac_exeext'
32301 { (case "(($ac_try" in
32302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32303 *) ac_try_echo=$ac_try;;
32304esac
32305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32306 (eval "$ac_try") 2>&5
32307 ac_status=$?
32308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32309 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000032310 eval "$as_ac_var=yes"
32311else
32312 echo "$as_me: failed program was:" >&5
32313sed 's/^/| /' conftest.$ac_ext >&5
32314
Reid Spencera773bd52006-08-04 18:18:08 +000032315 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000032316fi
Reid Spencera773bd52006-08-04 18:18:08 +000032317
Bill Wendlingebcceee2009-04-18 11:20:33 +000032318rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000032319 conftest$ac_exeext conftest.$ac_ext
32320fi
Reid Spencera773bd52006-08-04 18:18:08 +000032321ac_res=`eval echo '${'$as_ac_var'}'`
32322 { echo "$as_me:$LINENO: result: $ac_res" >&5
32323echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000032324if test `eval echo '${'$as_ac_var'}'` = yes; then
32325 cat >>confdefs.h <<_ACEOF
32326#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32327_ACEOF
32328
32329fi
32330done
32331
32332
Reid Spencerba46ca32004-12-31 05:49:15 +000032333
32334
Chris Lattner0b142592005-11-14 06:57:34 +000032335
Chris Lattner511f11d2005-11-14 07:25:50 +000032336for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032337do
32338as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032339{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32340echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32341if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032342 echo $ECHO_N "(cached) $ECHO_C" >&6
32343else
32344 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032345/* confdefs.h. */
32346_ACEOF
32347cat confdefs.h >>conftest.$ac_ext
32348cat >>conftest.$ac_ext <<_ACEOF
32349/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032350/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32352#define $ac_func innocuous_$ac_func
32353
32354/* System header to define __stub macros and hopefully few prototypes,
32355 which can conflict with char $ac_func (); below.
32356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32357 <limits.h> exists even on freestanding compilers. */
32358
32359#ifdef __STDC__
32360# include <limits.h>
32361#else
32362# include <assert.h>
32363#endif
32364
32365#undef $ac_func
32366
Reid Spencera773bd52006-08-04 18:18:08 +000032367/* Override any GCC internal prototype to avoid an error.
32368 Use char because int might match the return type of a GCC
32369 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032370#ifdef __cplusplus
32371extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032372#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032373char $ac_func ();
32374/* The GNU C library defines this for functions which it implements
32375 to always fail with ENOSYS. Some functions are actually named
32376 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032377#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032378choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032379#endif
John Criswell7a73b802003-06-30 21:59:07 +000032380
John Criswell7a73b802003-06-30 21:59:07 +000032381int
32382main ()
32383{
Reid Spencera773bd52006-08-04 18:18:08 +000032384return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032385 ;
32386 return 0;
32387}
32388_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032389rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032390if { (ac_try="$ac_link"
32391case "(($ac_try" in
32392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32393 *) ac_try_echo=$ac_try;;
32394esac
32395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32396 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032397 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032398 grep -v '^ *+' conftest.er1 >conftest.err
32399 rm -f conftest.er1
32400 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032402 (exit $ac_status); } &&
32403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32404 { (case "(($ac_try" in
32405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32406 *) ac_try_echo=$ac_try;;
32407esac
32408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32409 (eval "$ac_try") 2>&5
32410 ac_status=$?
32411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32412 (exit $ac_status); }; } &&
32413 { ac_try='test -s conftest$ac_exeext'
32414 { (case "(($ac_try" in
32415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32416 *) ac_try_echo=$ac_try;;
32417esac
32418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32419 (eval "$ac_try") 2>&5
32420 ac_status=$?
32421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32422 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032423 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000032424else
32425 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032426sed 's/^/| /' conftest.$ac_ext >&5
32427
Reid Spencera773bd52006-08-04 18:18:08 +000032428 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000032429fi
Reid Spencera773bd52006-08-04 18:18:08 +000032430
Bill Wendlingebcceee2009-04-18 11:20:33 +000032431rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032432 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032433fi
Reid Spencera773bd52006-08-04 18:18:08 +000032434ac_res=`eval echo '${'$as_ac_var'}'`
32435 { echo "$as_me:$LINENO: result: $ac_res" >&5
32436echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032437if test `eval echo '${'$as_ac_var'}'` = yes; then
32438 cat >>confdefs.h <<_ACEOF
32439#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000032440_ACEOF
32441
32442fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032443done
John Criswell7a73b802003-06-30 21:59:07 +000032444
Reid Spencercdb08a32006-06-05 16:11:07 +000032445
32446
32447
32448
Reid Spencerafa22e22006-12-10 23:29:19 +000032449for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000032450do
32451as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032452{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32453echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32454if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000032455 echo $ECHO_N "(cached) $ECHO_C" >&6
32456else
32457 cat >conftest.$ac_ext <<_ACEOF
32458/* confdefs.h. */
32459_ACEOF
32460cat confdefs.h >>conftest.$ac_ext
32461cat >>conftest.$ac_ext <<_ACEOF
32462/* end confdefs.h. */
32463/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32465#define $ac_func innocuous_$ac_func
32466
32467/* System header to define __stub macros and hopefully few prototypes,
32468 which can conflict with char $ac_func (); below.
32469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32470 <limits.h> exists even on freestanding compilers. */
32471
32472#ifdef __STDC__
32473# include <limits.h>
32474#else
32475# include <assert.h>
32476#endif
32477
32478#undef $ac_func
32479
Reid Spencera773bd52006-08-04 18:18:08 +000032480/* Override any GCC internal prototype to avoid an error.
32481 Use char because int might match the return type of a GCC
32482 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000032483#ifdef __cplusplus
32484extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000032485#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000032486char $ac_func ();
32487/* The GNU C library defines this for functions which it implements
32488 to always fail with ENOSYS. Some functions are actually named
32489 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032490#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000032491choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000032492#endif
32493
32494int
32495main ()
32496{
Reid Spencera773bd52006-08-04 18:18:08 +000032497return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000032498 ;
32499 return 0;
32500}
32501_ACEOF
32502rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032503if { (ac_try="$ac_link"
32504case "(($ac_try" in
32505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32506 *) ac_try_echo=$ac_try;;
32507esac
32508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32509 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000032510 ac_status=$?
32511 grep -v '^ *+' conftest.er1 >conftest.err
32512 rm -f conftest.er1
32513 cat conftest.err >&5
32514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032515 (exit $ac_status); } &&
32516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32517 { (case "(($ac_try" in
32518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32519 *) ac_try_echo=$ac_try;;
32520esac
32521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32522 (eval "$ac_try") 2>&5
32523 ac_status=$?
32524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32525 (exit $ac_status); }; } &&
32526 { ac_try='test -s conftest$ac_exeext'
32527 { (case "(($ac_try" in
32528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32529 *) ac_try_echo=$ac_try;;
32530esac
32531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32532 (eval "$ac_try") 2>&5
32533 ac_status=$?
32534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32535 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000032536 eval "$as_ac_var=yes"
32537else
32538 echo "$as_me: failed program was:" >&5
32539sed 's/^/| /' conftest.$ac_ext >&5
32540
Reid Spencera773bd52006-08-04 18:18:08 +000032541 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000032542fi
Reid Spencera773bd52006-08-04 18:18:08 +000032543
Bill Wendlingebcceee2009-04-18 11:20:33 +000032544rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000032545 conftest$ac_exeext conftest.$ac_ext
32546fi
Reid Spencera773bd52006-08-04 18:18:08 +000032547ac_res=`eval echo '${'$as_ac_var'}'`
32548 { echo "$as_me:$LINENO: result: $ac_res" >&5
32549echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000032550if test `eval echo '${'$as_ac_var'}'` = yes; then
32551 cat >>confdefs.h <<_ACEOF
32552#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32553_ACEOF
32554
32555fi
32556done
32557
Reid Spencera773bd52006-08-04 18:18:08 +000032558{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32559echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000032560if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032561 echo $ECHO_N "(cached) $ECHO_C" >&6
32562else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032563 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000032564ac_cpp='$CPP $CPPFLAGS'
32565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32567ac_compiler_gnu=$ac_cv_c_compiler_gnu
32568
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032569 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000032570 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000032571else
32572 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000032573
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032574 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000032575_ACEOF
32576cat confdefs.h >>conftest.$ac_ext
32577cat >>conftest.$ac_ext <<_ACEOF
32578/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032579
John Criswella0137d32003-10-13 16:22:01 +000032580#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000032581#include <stdlib.h>
32582
John Criswella0137d32003-10-13 16:22:01 +000032583int
32584main ()
32585{
32586
Reid Spencer2706f8c2004-09-19 23:53:36 +000032587volatile double A, B;
32588char Buffer[100];
32589A = 1;
32590A /= 10.0;
32591sprintf(Buffer, "%a", A);
32592B = atof(Buffer);
32593if (A != B)
32594 return (1);
32595if (A != 0x1.999999999999ap-4)
32596 return (1);
32597return (0);
John Criswella0137d32003-10-13 16:22:01 +000032598 ;
32599 return 0;
32600}
32601_ACEOF
32602rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032603if { (ac_try="$ac_link"
32604case "(($ac_try" in
32605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32606 *) ac_try_echo=$ac_try;;
32607esac
32608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32609 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000032610 ac_status=$?
32611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032613 { (case "(($ac_try" in
32614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32615 *) ac_try_echo=$ac_try;;
32616esac
32617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32618 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000032619 ac_status=$?
32620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32621 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000032622 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000032623else
32624 echo "$as_me: program exited with status $ac_status" >&5
32625echo "$as_me: failed program was:" >&5
32626sed 's/^/| /' conftest.$ac_ext >&5
32627
32628( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000032629llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000032630fi
Reid Spencera773bd52006-08-04 18:18:08 +000032631rm -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 +000032632fi
Reid Spencera773bd52006-08-04 18:18:08 +000032633
32634
Reid Spencer2706f8c2004-09-19 23:53:36 +000032635 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000032636ac_cpp='$CPP $CPPFLAGS'
32637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32639ac_compiler_gnu=$ac_cv_c_compiler_gnu
32640
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032641fi
Reid Spencera773bd52006-08-04 18:18:08 +000032642{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32643echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000032644 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000032645
32646cat >>confdefs.h <<\_ACEOF
32647#define HAVE_PRINTF_A 1
32648_ACEOF
32649
Reid Spencer2706f8c2004-09-19 23:53:36 +000032650 fi
John Criswella0137d32003-10-13 16:22:01 +000032651
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032652# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32653# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000032654{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
32655echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032656if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000032657 echo $ECHO_N "(cached) $ECHO_C" >&6
32658else
John Criswell0021c312004-02-13 21:57:29 +000032659 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000032660/* confdefs.h. */
32661_ACEOF
32662cat confdefs.h >>conftest.$ac_ext
32663cat >>conftest.$ac_ext <<_ACEOF
32664/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032665#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000032666int
32667main ()
32668{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032669char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000032670 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000032671 ;
32672 return 0;
32673}
32674_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032675rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032676if { (ac_try="$ac_link"
32677case "(($ac_try" in
32678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32679 *) ac_try_echo=$ac_try;;
32680esac
32681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32682 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000032683 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032684 grep -v '^ *+' conftest.er1 >conftest.err
32685 rm -f conftest.er1
32686 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000032687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032688 (exit $ac_status); } &&
32689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32690 { (case "(($ac_try" in
32691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32692 *) ac_try_echo=$ac_try;;
32693esac
32694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32695 (eval "$ac_try") 2>&5
32696 ac_status=$?
32697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32698 (exit $ac_status); }; } &&
32699 { ac_try='test -s conftest$ac_exeext'
32700 { (case "(($ac_try" in
32701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32702 *) ac_try_echo=$ac_try;;
32703esac
32704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32705 (eval "$ac_try") 2>&5
32706 ac_status=$?
32707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32708 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032709 ac_cv_working_alloca_h=yes
32710else
32711 echo "$as_me: failed program was:" >&5
32712sed 's/^/| /' conftest.$ac_ext >&5
32713
Reid Spencera773bd52006-08-04 18:18:08 +000032714 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000032715fi
Reid Spencera773bd52006-08-04 18:18:08 +000032716
Bill Wendlingebcceee2009-04-18 11:20:33 +000032717rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032718 conftest$ac_exeext conftest.$ac_ext
32719fi
Reid Spencera773bd52006-08-04 18:18:08 +000032720{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32721echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032722if test $ac_cv_working_alloca_h = yes; then
32723
32724cat >>confdefs.h <<\_ACEOF
32725#define HAVE_ALLOCA_H 1
32726_ACEOF
32727
32728fi
32729
Reid Spencera773bd52006-08-04 18:18:08 +000032730{ echo "$as_me:$LINENO: checking for alloca" >&5
32731echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032732if test "${ac_cv_func_alloca_works+set}" = set; then
32733 echo $ECHO_N "(cached) $ECHO_C" >&6
32734else
32735 cat >conftest.$ac_ext <<_ACEOF
32736/* confdefs.h. */
32737_ACEOF
32738cat confdefs.h >>conftest.$ac_ext
32739cat >>conftest.$ac_ext <<_ACEOF
32740/* end confdefs.h. */
32741#ifdef __GNUC__
32742# define alloca __builtin_alloca
32743#else
32744# ifdef _MSC_VER
32745# include <malloc.h>
32746# define alloca _alloca
32747# else
Bill Wendlingebcceee2009-04-18 11:20:33 +000032748# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032749# include <alloca.h>
32750# else
32751# ifdef _AIX
32752 #pragma alloca
32753# else
32754# ifndef alloca /* predefined by HP cc +Olibcalls */
32755char *alloca ();
32756# endif
32757# endif
32758# endif
32759# endif
32760#endif
32761
32762int
32763main ()
32764{
32765char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000032766 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032767 ;
32768 return 0;
32769}
32770_ACEOF
32771rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032772if { (ac_try="$ac_link"
32773case "(($ac_try" in
32774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32775 *) ac_try_echo=$ac_try;;
32776esac
32777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32778 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032779 ac_status=$?
32780 grep -v '^ *+' conftest.er1 >conftest.err
32781 rm -f conftest.er1
32782 cat conftest.err >&5
32783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032784 (exit $ac_status); } &&
32785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32786 { (case "(($ac_try" in
32787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32788 *) ac_try_echo=$ac_try;;
32789esac
32790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32791 (eval "$ac_try") 2>&5
32792 ac_status=$?
32793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32794 (exit $ac_status); }; } &&
32795 { ac_try='test -s conftest$ac_exeext'
32796 { (case "(($ac_try" in
32797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32798 *) ac_try_echo=$ac_try;;
32799esac
32800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32801 (eval "$ac_try") 2>&5
32802 ac_status=$?
32803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32804 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032805 ac_cv_func_alloca_works=yes
32806else
32807 echo "$as_me: failed program was:" >&5
32808sed 's/^/| /' conftest.$ac_ext >&5
32809
Reid Spencera773bd52006-08-04 18:18:08 +000032810 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032811fi
Reid Spencera773bd52006-08-04 18:18:08 +000032812
Bill Wendlingebcceee2009-04-18 11:20:33 +000032813rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032814 conftest$ac_exeext conftest.$ac_ext
32815fi
Reid Spencera773bd52006-08-04 18:18:08 +000032816{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32817echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032818
32819if test $ac_cv_func_alloca_works = yes; then
32820
32821cat >>confdefs.h <<\_ACEOF
32822#define HAVE_ALLOCA 1
32823_ACEOF
32824
32825else
32826 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32827# that cause trouble. Some versions do not even contain alloca or
32828# contain a buggy version. If you still want to use their alloca,
32829# use ar to extract alloca.o from them instead of compiling alloca.c.
32830
Reid Spencera773bd52006-08-04 18:18:08 +000032831ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032832
32833cat >>confdefs.h <<\_ACEOF
32834#define C_ALLOCA 1
32835_ACEOF
32836
32837
Reid Spencera773bd52006-08-04 18:18:08 +000032838{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32839echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032840if test "${ac_cv_os_cray+set}" = set; then
32841 echo $ECHO_N "(cached) $ECHO_C" >&6
32842else
32843 cat >conftest.$ac_ext <<_ACEOF
32844/* confdefs.h. */
32845_ACEOF
32846cat confdefs.h >>conftest.$ac_ext
32847cat >>conftest.$ac_ext <<_ACEOF
32848/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000032849#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032850webecray
32851#else
32852wenotbecray
32853#endif
32854
32855_ACEOF
32856if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32857 $EGREP "webecray" >/dev/null 2>&1; then
32858 ac_cv_os_cray=yes
32859else
32860 ac_cv_os_cray=no
32861fi
32862rm -f conftest*
32863
32864fi
Reid Spencera773bd52006-08-04 18:18:08 +000032865{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32866echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032867if test $ac_cv_os_cray = yes; then
32868 for ac_func in _getb67 GETB67 getb67; do
32869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032870{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32871echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32872if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032873 echo $ECHO_N "(cached) $ECHO_C" >&6
32874else
32875 cat >conftest.$ac_ext <<_ACEOF
32876/* confdefs.h. */
32877_ACEOF
32878cat confdefs.h >>conftest.$ac_ext
32879cat >>conftest.$ac_ext <<_ACEOF
32880/* end confdefs.h. */
32881/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32883#define $ac_func innocuous_$ac_func
32884
32885/* System header to define __stub macros and hopefully few prototypes,
32886 which can conflict with char $ac_func (); below.
32887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32888 <limits.h> exists even on freestanding compilers. */
32889
32890#ifdef __STDC__
32891# include <limits.h>
32892#else
32893# include <assert.h>
32894#endif
32895
32896#undef $ac_func
32897
Reid Spencera773bd52006-08-04 18:18:08 +000032898/* Override any GCC internal prototype to avoid an error.
32899 Use char because int might match the return type of a GCC
32900 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032901#ifdef __cplusplus
32902extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032903#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032904char $ac_func ();
32905/* The GNU C library defines this for functions which it implements
32906 to always fail with ENOSYS. Some functions are actually named
32907 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032908#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032909choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032910#endif
32911
32912int
32913main ()
32914{
Reid Spencera773bd52006-08-04 18:18:08 +000032915return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032916 ;
32917 return 0;
32918}
32919_ACEOF
32920rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032921if { (ac_try="$ac_link"
32922case "(($ac_try" in
32923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32924 *) ac_try_echo=$ac_try;;
32925esac
32926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32927 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032928 ac_status=$?
32929 grep -v '^ *+' conftest.er1 >conftest.err
32930 rm -f conftest.er1
32931 cat conftest.err >&5
32932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032933 (exit $ac_status); } &&
32934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32935 { (case "(($ac_try" in
32936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32937 *) ac_try_echo=$ac_try;;
32938esac
32939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32940 (eval "$ac_try") 2>&5
32941 ac_status=$?
32942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32943 (exit $ac_status); }; } &&
32944 { ac_try='test -s conftest$ac_exeext'
32945 { (case "(($ac_try" in
32946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32947 *) ac_try_echo=$ac_try;;
32948esac
32949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32950 (eval "$ac_try") 2>&5
32951 ac_status=$?
32952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32953 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032954 eval "$as_ac_var=yes"
32955else
32956 echo "$as_me: failed program was:" >&5
32957sed 's/^/| /' conftest.$ac_ext >&5
32958
Reid Spencera773bd52006-08-04 18:18:08 +000032959 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032960fi
Reid Spencera773bd52006-08-04 18:18:08 +000032961
Bill Wendlingebcceee2009-04-18 11:20:33 +000032962rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032963 conftest$ac_exeext conftest.$ac_ext
32964fi
Reid Spencera773bd52006-08-04 18:18:08 +000032965ac_res=`eval echo '${'$as_ac_var'}'`
32966 { echo "$as_me:$LINENO: result: $ac_res" >&5
32967echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032968if test `eval echo '${'$as_ac_var'}'` = yes; then
32969
32970cat >>confdefs.h <<_ACEOF
32971#define CRAY_STACKSEG_END $ac_func
32972_ACEOF
32973
32974 break
32975fi
32976
32977 done
32978fi
32979
Reid Spencera773bd52006-08-04 18:18:08 +000032980{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32981echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032982if test "${ac_cv_c_stack_direction+set}" = set; then
32983 echo $ECHO_N "(cached) $ECHO_C" >&6
32984else
32985 if test "$cross_compiling" = yes; then
32986 ac_cv_c_stack_direction=0
32987else
32988 cat >conftest.$ac_ext <<_ACEOF
32989/* confdefs.h. */
32990_ACEOF
32991cat confdefs.h >>conftest.$ac_ext
32992cat >>conftest.$ac_ext <<_ACEOF
32993/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000032994$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032995int
32996find_stack_direction ()
32997{
32998 static char *addr = 0;
32999 auto char dummy;
33000 if (addr == 0)
33001 {
33002 addr = &dummy;
33003 return find_stack_direction ();
33004 }
John Criswell0021c312004-02-13 21:57:29 +000033005 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033006 return (&dummy > addr) ? 1 : -1;
33007}
John Criswell0021c312004-02-13 21:57:29 +000033008
John Criswell0021c312004-02-13 21:57:29 +000033009int
33010main ()
33011{
Reid Spencera773bd52006-08-04 18:18:08 +000033012 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000033013}
33014_ACEOF
33015rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033016if { (ac_try="$ac_link"
33017case "(($ac_try" in
33018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33019 *) ac_try_echo=$ac_try;;
33020esac
33021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33022 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000033023 ac_status=$?
33024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033026 { (case "(($ac_try" in
33027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33028 *) ac_try_echo=$ac_try;;
33029esac
33030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33031 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000033032 ac_status=$?
33033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33034 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033035 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000033036else
33037 echo "$as_me: program exited with status $ac_status" >&5
33038echo "$as_me: failed program was:" >&5
33039sed 's/^/| /' conftest.$ac_ext >&5
33040
33041( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033042ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000033043fi
Reid Spencera773bd52006-08-04 18:18:08 +000033044rm -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 +000033045fi
Reid Spencera773bd52006-08-04 18:18:08 +000033046
33047
John Criswell0021c312004-02-13 21:57:29 +000033048fi
Reid Spencera773bd52006-08-04 18:18:08 +000033049{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33050echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033051
33052cat >>confdefs.h <<_ACEOF
33053#define STACK_DIRECTION $ac_cv_c_stack_direction
33054_ACEOF
33055
33056
John Criswell0021c312004-02-13 21:57:29 +000033057fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033058
33059
Reid Spencera773bd52006-08-04 18:18:08 +000033060{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33061echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033062if test "${ac_cv_func_rand48+set}" = set; then
33063 echo $ECHO_N "(cached) $ECHO_C" >&6
33064else
Reid Spencera773bd52006-08-04 18:18:08 +000033065 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033066ac_cpp='$CXXCPP $CPPFLAGS'
33067ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33068ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33069ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33070
33071 cat >conftest.$ac_ext <<_ACEOF
33072/* confdefs.h. */
33073_ACEOF
33074cat confdefs.h >>conftest.$ac_ext
33075cat >>conftest.$ac_ext <<_ACEOF
33076/* end confdefs.h. */
33077#include <stdlib.h>
33078int
33079main ()
33080{
33081srand48(0);lrand48();drand48();
33082 ;
33083 return 0;
33084}
33085_ACEOF
33086rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033087if { (ac_try="$ac_compile"
33088case "(($ac_try" in
33089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33090 *) ac_try_echo=$ac_try;;
33091esac
33092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33093 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033094 ac_status=$?
33095 grep -v '^ *+' conftest.er1 >conftest.err
33096 rm -f conftest.er1
33097 cat conftest.err >&5
33098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033099 (exit $ac_status); } &&
33100 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33101 { (case "(($ac_try" in
33102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33103 *) ac_try_echo=$ac_try;;
33104esac
33105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33106 (eval "$ac_try") 2>&5
33107 ac_status=$?
33108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33109 (exit $ac_status); }; } &&
33110 { ac_try='test -s conftest.$ac_objext'
33111 { (case "(($ac_try" in
33112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33113 *) ac_try_echo=$ac_try;;
33114esac
33115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33116 (eval "$ac_try") 2>&5
33117 ac_status=$?
33118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33119 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033120 ac_cv_func_rand48=yes
33121else
33122 echo "$as_me: failed program was:" >&5
33123sed 's/^/| /' conftest.$ac_ext >&5
33124
Reid Spencera773bd52006-08-04 18:18:08 +000033125 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033126fi
Reid Spencera773bd52006-08-04 18:18:08 +000033127
33128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033129 ac_ext=c
33130ac_cpp='$CPP $CPPFLAGS'
33131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33133ac_compiler_gnu=$ac_cv_c_compiler_gnu
33134
33135fi
Reid Spencera773bd52006-08-04 18:18:08 +000033136{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33137echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033138
33139if test "$ac_cv_func_rand48" = "yes" ; then
33140
33141cat >>confdefs.h <<\_ACEOF
33142#define HAVE_RAND48 1
33143_ACEOF
33144
33145fi
John Criswell0021c312004-02-13 21:57:29 +000033146
33147
Reid Spencera773bd52006-08-04 18:18:08 +000033148{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33149echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033150if test "${ac_cv_cxx_namespaces+set}" = set; then
33151 echo $ECHO_N "(cached) $ECHO_C" >&6
33152else
Reid Spencera773bd52006-08-04 18:18:08 +000033153 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033154ac_cpp='$CXXCPP $CPPFLAGS'
33155ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33156ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33157ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33158
33159 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033160/* confdefs.h. */
33161_ACEOF
33162cat confdefs.h >>conftest.$ac_ext
33163cat >>conftest.$ac_ext <<_ACEOF
33164/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033165namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000033166int
33167main ()
33168{
33169using namespace Outer::Inner; return i;
33170 ;
33171 return 0;
33172}
33173_ACEOF
33174rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033175if { (ac_try="$ac_compile"
33176case "(($ac_try" in
33177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33178 *) ac_try_echo=$ac_try;;
33179esac
33180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33181 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033182 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033183 grep -v '^ *+' conftest.er1 >conftest.err
33184 rm -f conftest.er1
33185 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033187 (exit $ac_status); } &&
33188 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33189 { (case "(($ac_try" in
33190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33191 *) ac_try_echo=$ac_try;;
33192esac
33193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33194 (eval "$ac_try") 2>&5
33195 ac_status=$?
33196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33197 (exit $ac_status); }; } &&
33198 { ac_try='test -s conftest.$ac_objext'
33199 { (case "(($ac_try" in
33200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33201 *) ac_try_echo=$ac_try;;
33202esac
33203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33204 (eval "$ac_try") 2>&5
33205 ac_status=$?
33206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33207 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033208 ac_cv_cxx_namespaces=yes
33209else
33210 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033211sed 's/^/| /' conftest.$ac_ext >&5
33212
Reid Spencera773bd52006-08-04 18:18:08 +000033213 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000033214fi
Reid Spencera773bd52006-08-04 18:18:08 +000033215
33216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033217 ac_ext=c
33218ac_cpp='$CPP $CPPFLAGS'
33219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33221ac_compiler_gnu=$ac_cv_c_compiler_gnu
33222
33223
33224fi
Reid Spencera773bd52006-08-04 18:18:08 +000033225{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33226echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033227if test "$ac_cv_cxx_namespaces" = yes; then
33228
33229cat >>confdefs.h <<\_ACEOF
33230#define HAVE_NAMESPACES
33231_ACEOF
33232
33233fi
33234
Reid Spencera773bd52006-08-04 18:18:08 +000033235{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33236echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033237if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33238 echo $ECHO_N "(cached) $ECHO_C" >&6
33239else
33240
Reid Spencera773bd52006-08-04 18:18:08 +000033241 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033242ac_cpp='$CXXCPP $CPPFLAGS'
33243ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33244ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33245ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33246
33247 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033248/* confdefs.h. */
33249_ACEOF
33250cat confdefs.h >>conftest.$ac_ext
33251cat >>conftest.$ac_ext <<_ACEOF
33252/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033253#include <iterator>
33254#ifdef HAVE_NAMESPACES
33255using namespace std;
33256#endif
John Criswell7a73b802003-06-30 21:59:07 +000033257int
33258main ()
33259{
33260iterator<int,int,int> t; return 0;
33261 ;
33262 return 0;
33263}
33264_ACEOF
33265rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033266if { (ac_try="$ac_compile"
33267case "(($ac_try" in
33268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33269 *) ac_try_echo=$ac_try;;
33270esac
33271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33272 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033273 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033274 grep -v '^ *+' conftest.er1 >conftest.err
33275 rm -f conftest.er1
33276 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033278 (exit $ac_status); } &&
33279 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33280 { (case "(($ac_try" in
33281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33282 *) ac_try_echo=$ac_try;;
33283esac
33284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33285 (eval "$ac_try") 2>&5
33286 ac_status=$?
33287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33288 (exit $ac_status); }; } &&
33289 { ac_try='test -s conftest.$ac_objext'
33290 { (case "(($ac_try" in
33291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33292 *) ac_try_echo=$ac_try;;
33293esac
33294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33295 (eval "$ac_try") 2>&5
33296 ac_status=$?
33297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33298 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033299 ac_cv_cxx_have_std_iterator=yes
33300else
33301 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033302sed 's/^/| /' conftest.$ac_ext >&5
33303
Reid Spencera773bd52006-08-04 18:18:08 +000033304 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033305fi
Reid Spencera773bd52006-08-04 18:18:08 +000033306
33307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033308 ac_ext=c
33309ac_cpp='$CPP $CPPFLAGS'
33310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33312ac_compiler_gnu=$ac_cv_c_compiler_gnu
33313
33314
33315fi
Reid Spencera773bd52006-08-04 18:18:08 +000033316{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33317echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033318if test "$ac_cv_cxx_have_std_iterator" = yes
33319then
John Criswell40468462004-09-24 21:19:06 +000033320
33321cat >>confdefs.h <<\_ACEOF
33322#define HAVE_STD_ITERATOR 1
33323_ACEOF
33324
33325else
33326
33327cat >>confdefs.h <<\_ACEOF
33328#define HAVE_STD_ITERATOR 0
33329_ACEOF
33330
John Criswell7a73b802003-06-30 21:59:07 +000033331fi
33332
Reid Spencera773bd52006-08-04 18:18:08 +000033333{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33334echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033335if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33336 echo $ECHO_N "(cached) $ECHO_C" >&6
33337else
33338
Reid Spencera773bd52006-08-04 18:18:08 +000033339 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033340ac_cpp='$CXXCPP $CPPFLAGS'
33341ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33342ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33343ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33344
33345 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033346/* confdefs.h. */
33347_ACEOF
33348cat confdefs.h >>conftest.$ac_ext
33349cat >>conftest.$ac_ext <<_ACEOF
33350/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033351#include <iterator>
33352#ifdef HAVE_NAMESPACES
33353using namespace std;
33354#endif
John Criswell7a73b802003-06-30 21:59:07 +000033355int
33356main ()
33357{
John Criswellc78022e2003-07-29 19:11:58 +000033358bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033359 ;
33360 return 0;
33361}
33362_ACEOF
33363rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033364if { (ac_try="$ac_compile"
33365case "(($ac_try" in
33366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33367 *) ac_try_echo=$ac_try;;
33368esac
33369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33370 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033371 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033372 grep -v '^ *+' conftest.er1 >conftest.err
33373 rm -f conftest.er1
33374 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033376 (exit $ac_status); } &&
33377 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33378 { (case "(($ac_try" in
33379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33380 *) ac_try_echo=$ac_try;;
33381esac
33382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33383 (eval "$ac_try") 2>&5
33384 ac_status=$?
33385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33386 (exit $ac_status); }; } &&
33387 { ac_try='test -s conftest.$ac_objext'
33388 { (case "(($ac_try" in
33389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33390 *) ac_try_echo=$ac_try;;
33391esac
33392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33393 (eval "$ac_try") 2>&5
33394 ac_status=$?
33395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33396 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033397 ac_cv_cxx_have_bi_iterator=yes
33398else
33399 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033400sed 's/^/| /' conftest.$ac_ext >&5
33401
Reid Spencera773bd52006-08-04 18:18:08 +000033402 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033403fi
Reid Spencera773bd52006-08-04 18:18:08 +000033404
33405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033406 ac_ext=c
33407ac_cpp='$CPP $CPPFLAGS'
33408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33410ac_compiler_gnu=$ac_cv_c_compiler_gnu
33411
33412
33413fi
Reid Spencera773bd52006-08-04 18:18:08 +000033414{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33415echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033416if test "$ac_cv_cxx_have_bi_iterator" = yes
33417then
John Criswell40468462004-09-24 21:19:06 +000033418
33419cat >>confdefs.h <<\_ACEOF
33420#define HAVE_BI_ITERATOR 1
33421_ACEOF
33422
33423else
33424
33425cat >>confdefs.h <<\_ACEOF
33426#define HAVE_BI_ITERATOR 0
33427_ACEOF
33428
John Criswell7a73b802003-06-30 21:59:07 +000033429fi
33430
Reid Spencera773bd52006-08-04 18:18:08 +000033431{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33432echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033433if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33434 echo $ECHO_N "(cached) $ECHO_C" >&6
33435else
33436
Reid Spencera773bd52006-08-04 18:18:08 +000033437 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033438ac_cpp='$CXXCPP $CPPFLAGS'
33439ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33440ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33441ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33442
33443 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033444/* confdefs.h. */
33445_ACEOF
33446cat confdefs.h >>conftest.$ac_ext
33447cat >>conftest.$ac_ext <<_ACEOF
33448/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033449#include <iterator>
33450#ifdef HAVE_NAMESPACES
33451using namespace std;
33452#endif
John Criswell7a73b802003-06-30 21:59:07 +000033453int
33454main ()
33455{
John Criswellc78022e2003-07-29 19:11:58 +000033456forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033457 ;
33458 return 0;
33459}
33460_ACEOF
33461rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033462if { (ac_try="$ac_compile"
33463case "(($ac_try" in
33464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33465 *) ac_try_echo=$ac_try;;
33466esac
33467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33468 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033469 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033470 grep -v '^ *+' conftest.er1 >conftest.err
33471 rm -f conftest.er1
33472 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033474 (exit $ac_status); } &&
33475 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33476 { (case "(($ac_try" in
33477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33478 *) ac_try_echo=$ac_try;;
33479esac
33480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33481 (eval "$ac_try") 2>&5
33482 ac_status=$?
33483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33484 (exit $ac_status); }; } &&
33485 { ac_try='test -s conftest.$ac_objext'
33486 { (case "(($ac_try" in
33487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33488 *) ac_try_echo=$ac_try;;
33489esac
33490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33491 (eval "$ac_try") 2>&5
33492 ac_status=$?
33493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33494 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033495 ac_cv_cxx_have_fwd_iterator=yes
33496else
33497 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033498sed 's/^/| /' conftest.$ac_ext >&5
33499
Reid Spencera773bd52006-08-04 18:18:08 +000033500 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033501fi
Reid Spencera773bd52006-08-04 18:18:08 +000033502
33503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033504 ac_ext=c
33505ac_cpp='$CPP $CPPFLAGS'
33506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33508ac_compiler_gnu=$ac_cv_c_compiler_gnu
33509
33510
33511fi
Reid Spencera773bd52006-08-04 18:18:08 +000033512{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33513echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033514if test "$ac_cv_cxx_have_fwd_iterator" = yes
33515then
John Criswell40468462004-09-24 21:19:06 +000033516
33517cat >>confdefs.h <<\_ACEOF
33518#define HAVE_FWD_ITERATOR 1
33519_ACEOF
33520
33521else
33522
33523cat >>confdefs.h <<\_ACEOF
33524#define HAVE_FWD_ITERATOR 0
33525_ACEOF
33526
John Criswell7a73b802003-06-30 21:59:07 +000033527fi
33528
33529
Reid Spencera773bd52006-08-04 18:18:08 +000033530{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33531echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033532if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33533 echo $ECHO_N "(cached) $ECHO_C" >&6
33534else
Reid Spencera773bd52006-08-04 18:18:08 +000033535 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033536ac_cpp='$CXXCPP $CPPFLAGS'
33537ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33538ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33539ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33540
Reid Spencerabec8f92004-10-27 23:03:44 +000033541 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033542/* confdefs.h. */
33543_ACEOF
33544cat confdefs.h >>conftest.$ac_ext
33545cat >>conftest.$ac_ext <<_ACEOF
33546/* end confdefs.h. */
33547#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033548int
33549main ()
33550{
33551float f; isnan(f);
33552 ;
33553 return 0;
33554}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033555_ACEOF
33556rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033557if { (ac_try="$ac_compile"
33558case "(($ac_try" in
33559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33560 *) ac_try_echo=$ac_try;;
33561esac
33562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33563 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033564 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033565 grep -v '^ *+' conftest.er1 >conftest.err
33566 rm -f conftest.er1
33567 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033569 (exit $ac_status); } &&
33570 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33571 { (case "(($ac_try" in
33572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33573 *) ac_try_echo=$ac_try;;
33574esac
33575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33576 (eval "$ac_try") 2>&5
33577 ac_status=$?
33578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33579 (exit $ac_status); }; } &&
33580 { ac_try='test -s conftest.$ac_objext'
33581 { (case "(($ac_try" in
33582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33583 *) ac_try_echo=$ac_try;;
33584esac
33585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33586 (eval "$ac_try") 2>&5
33587 ac_status=$?
33588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33589 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033590 ac_cv_func_isnan_in_math_h=yes
33591else
33592 echo "$as_me: failed program was:" >&5
33593sed 's/^/| /' conftest.$ac_ext >&5
33594
Reid Spencera773bd52006-08-04 18:18:08 +000033595 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033596fi
Reid Spencera773bd52006-08-04 18:18:08 +000033597
33598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033599 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033600ac_cpp='$CPP $CPPFLAGS'
33601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33603ac_compiler_gnu=$ac_cv_c_compiler_gnu
33604
33605fi
Reid Spencera773bd52006-08-04 18:18:08 +000033606{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33607echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033608
33609
33610if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033611
33612cat >>confdefs.h <<\_ACEOF
33613#define HAVE_ISNAN_IN_MATH_H 1
33614_ACEOF
33615
Reid Spencerabec8f92004-10-27 23:03:44 +000033616fi
33617
Reid Spencera773bd52006-08-04 18:18:08 +000033618{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33619echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033620if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33621 echo $ECHO_N "(cached) $ECHO_C" >&6
33622else
Reid Spencera773bd52006-08-04 18:18:08 +000033623 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033624ac_cpp='$CXXCPP $CPPFLAGS'
33625ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33626ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33627ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33628
Reid Spencerabec8f92004-10-27 23:03:44 +000033629 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033630/* confdefs.h. */
33631_ACEOF
33632cat confdefs.h >>conftest.$ac_ext
33633cat >>conftest.$ac_ext <<_ACEOF
33634/* end confdefs.h. */
33635#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033636int
33637main ()
33638{
33639float f; isnan(f);
33640 ;
33641 return 0;
33642}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033643_ACEOF
33644rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033645if { (ac_try="$ac_compile"
33646case "(($ac_try" in
33647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33648 *) ac_try_echo=$ac_try;;
33649esac
33650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33651 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033652 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033653 grep -v '^ *+' conftest.er1 >conftest.err
33654 rm -f conftest.er1
33655 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033657 (exit $ac_status); } &&
33658 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33659 { (case "(($ac_try" in
33660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33661 *) ac_try_echo=$ac_try;;
33662esac
33663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33664 (eval "$ac_try") 2>&5
33665 ac_status=$?
33666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33667 (exit $ac_status); }; } &&
33668 { ac_try='test -s conftest.$ac_objext'
33669 { (case "(($ac_try" in
33670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33671 *) ac_try_echo=$ac_try;;
33672esac
33673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33674 (eval "$ac_try") 2>&5
33675 ac_status=$?
33676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33677 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033678 ac_cv_func_isnan_in_cmath=yes
33679else
33680 echo "$as_me: failed program was:" >&5
33681sed 's/^/| /' conftest.$ac_ext >&5
33682
Reid Spencera773bd52006-08-04 18:18:08 +000033683 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033684fi
Reid Spencera773bd52006-08-04 18:18:08 +000033685
33686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033687 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033688ac_cpp='$CPP $CPPFLAGS'
33689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33691ac_compiler_gnu=$ac_cv_c_compiler_gnu
33692
33693fi
Reid Spencera773bd52006-08-04 18:18:08 +000033694{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33695echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033696
33697if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033698
33699cat >>confdefs.h <<\_ACEOF
33700#define HAVE_ISNAN_IN_CMATH 1
33701_ACEOF
33702
Reid Spencerabec8f92004-10-27 23:03:44 +000033703fi
33704
Reid Spencera773bd52006-08-04 18:18:08 +000033705{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33706echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033707if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33708 echo $ECHO_N "(cached) $ECHO_C" >&6
33709else
Reid Spencera773bd52006-08-04 18:18:08 +000033710 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033711ac_cpp='$CXXCPP $CPPFLAGS'
33712ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33713ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33714ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33715
Reid Spencerabec8f92004-10-27 23:03:44 +000033716 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033717/* confdefs.h. */
33718_ACEOF
33719cat confdefs.h >>conftest.$ac_ext
33720cat >>conftest.$ac_ext <<_ACEOF
33721/* end confdefs.h. */
33722#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033723int
33724main ()
33725{
33726float f; std::isnan(f);
33727 ;
33728 return 0;
33729}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033730_ACEOF
33731rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033732if { (ac_try="$ac_compile"
33733case "(($ac_try" in
33734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33735 *) ac_try_echo=$ac_try;;
33736esac
33737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33738 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033739 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033740 grep -v '^ *+' conftest.er1 >conftest.err
33741 rm -f conftest.er1
33742 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033744 (exit $ac_status); } &&
33745 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33746 { (case "(($ac_try" in
33747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33748 *) ac_try_echo=$ac_try;;
33749esac
33750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33751 (eval "$ac_try") 2>&5
33752 ac_status=$?
33753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33754 (exit $ac_status); }; } &&
33755 { ac_try='test -s conftest.$ac_objext'
33756 { (case "(($ac_try" in
33757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33758 *) ac_try_echo=$ac_try;;
33759esac
33760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33761 (eval "$ac_try") 2>&5
33762 ac_status=$?
33763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33764 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033765 ac_cv_func_std_isnan_in_cmath=yes
33766else
33767 echo "$as_me: failed program was:" >&5
33768sed 's/^/| /' conftest.$ac_ext >&5
33769
Reid Spencera773bd52006-08-04 18:18:08 +000033770 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033771fi
Reid Spencera773bd52006-08-04 18:18:08 +000033772
33773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033774 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033775ac_cpp='$CPP $CPPFLAGS'
33776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33778ac_compiler_gnu=$ac_cv_c_compiler_gnu
33779
33780fi
Reid Spencera773bd52006-08-04 18:18:08 +000033781{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33782echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033783
33784if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033785
33786cat >>confdefs.h <<\_ACEOF
33787#define HAVE_STD_ISNAN_IN_CMATH 1
33788_ACEOF
33789
Reid Spencerabec8f92004-10-27 23:03:44 +000033790fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033791
33792
Reid Spencera773bd52006-08-04 18:18:08 +000033793{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33794echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033795if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33796 echo $ECHO_N "(cached) $ECHO_C" >&6
33797else
Reid Spencera773bd52006-08-04 18:18:08 +000033798 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033799ac_cpp='$CXXCPP $CPPFLAGS'
33800ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33801ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33802ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33803
Reid Spencerabec8f92004-10-27 23:03:44 +000033804 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033805/* confdefs.h. */
33806_ACEOF
33807cat confdefs.h >>conftest.$ac_ext
33808cat >>conftest.$ac_ext <<_ACEOF
33809/* end confdefs.h. */
33810#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033811int
33812main ()
33813{
33814float f; isinf(f);
33815 ;
33816 return 0;
33817}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033818_ACEOF
33819rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033820if { (ac_try="$ac_compile"
33821case "(($ac_try" in
33822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33823 *) ac_try_echo=$ac_try;;
33824esac
33825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33826 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033827 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033828 grep -v '^ *+' conftest.er1 >conftest.err
33829 rm -f conftest.er1
33830 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033832 (exit $ac_status); } &&
33833 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33834 { (case "(($ac_try" in
33835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33836 *) ac_try_echo=$ac_try;;
33837esac
33838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33839 (eval "$ac_try") 2>&5
33840 ac_status=$?
33841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33842 (exit $ac_status); }; } &&
33843 { ac_try='test -s conftest.$ac_objext'
33844 { (case "(($ac_try" in
33845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33846 *) ac_try_echo=$ac_try;;
33847esac
33848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33849 (eval "$ac_try") 2>&5
33850 ac_status=$?
33851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33852 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033853 ac_cv_func_isinf_in_math_h=yes
33854else
33855 echo "$as_me: failed program was:" >&5
33856sed 's/^/| /' conftest.$ac_ext >&5
33857
Reid Spencera773bd52006-08-04 18:18:08 +000033858 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033859fi
Reid Spencera773bd52006-08-04 18:18:08 +000033860
33861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033862 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033863ac_cpp='$CPP $CPPFLAGS'
33864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33866ac_compiler_gnu=$ac_cv_c_compiler_gnu
33867
33868fi
Reid Spencera773bd52006-08-04 18:18:08 +000033869{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33870echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033871
33872if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033873
33874cat >>confdefs.h <<\_ACEOF
33875#define HAVE_ISINF_IN_MATH_H 1
33876_ACEOF
33877
Reid Spencerabec8f92004-10-27 23:03:44 +000033878fi
33879
Reid Spencera773bd52006-08-04 18:18:08 +000033880{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33881echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033882if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33883 echo $ECHO_N "(cached) $ECHO_C" >&6
33884else
Reid Spencera773bd52006-08-04 18:18:08 +000033885 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033886ac_cpp='$CXXCPP $CPPFLAGS'
33887ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33888ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33889ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33890
Reid Spencerabec8f92004-10-27 23:03:44 +000033891 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033892/* confdefs.h. */
33893_ACEOF
33894cat confdefs.h >>conftest.$ac_ext
33895cat >>conftest.$ac_ext <<_ACEOF
33896/* end confdefs.h. */
33897#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033898int
33899main ()
33900{
33901float f; isinf(f);
33902 ;
33903 return 0;
33904}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033905_ACEOF
33906rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033907if { (ac_try="$ac_compile"
33908case "(($ac_try" in
33909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33910 *) ac_try_echo=$ac_try;;
33911esac
33912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33913 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033914 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033915 grep -v '^ *+' conftest.er1 >conftest.err
33916 rm -f conftest.er1
33917 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033919 (exit $ac_status); } &&
33920 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33921 { (case "(($ac_try" in
33922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33923 *) ac_try_echo=$ac_try;;
33924esac
33925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33926 (eval "$ac_try") 2>&5
33927 ac_status=$?
33928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33929 (exit $ac_status); }; } &&
33930 { ac_try='test -s conftest.$ac_objext'
33931 { (case "(($ac_try" in
33932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33933 *) ac_try_echo=$ac_try;;
33934esac
33935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33936 (eval "$ac_try") 2>&5
33937 ac_status=$?
33938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33939 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033940 ac_cv_func_isinf_in_cmath=yes
33941else
33942 echo "$as_me: failed program was:" >&5
33943sed 's/^/| /' conftest.$ac_ext >&5
33944
Reid Spencera773bd52006-08-04 18:18:08 +000033945 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033946fi
Reid Spencera773bd52006-08-04 18:18:08 +000033947
33948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033949 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033950ac_cpp='$CPP $CPPFLAGS'
33951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33953ac_compiler_gnu=$ac_cv_c_compiler_gnu
33954
33955fi
Reid Spencera773bd52006-08-04 18:18:08 +000033956{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33957echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033958
33959if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033960
33961cat >>confdefs.h <<\_ACEOF
33962#define HAVE_ISINF_IN_CMATH 1
33963_ACEOF
33964
Reid Spencerabec8f92004-10-27 23:03:44 +000033965fi
33966
Reid Spencera773bd52006-08-04 18:18:08 +000033967{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33968echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033969if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33970 echo $ECHO_N "(cached) $ECHO_C" >&6
33971else
Reid Spencera773bd52006-08-04 18:18:08 +000033972 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033973ac_cpp='$CXXCPP $CPPFLAGS'
33974ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33975ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33976ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33977
Reid Spencerabec8f92004-10-27 23:03:44 +000033978 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033979/* confdefs.h. */
33980_ACEOF
33981cat confdefs.h >>conftest.$ac_ext
33982cat >>conftest.$ac_ext <<_ACEOF
33983/* end confdefs.h. */
33984#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033985int
33986main ()
33987{
33988float f; std::isinf(f)}
33989 ;
33990 return 0;
33991}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033992_ACEOF
33993rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033994if { (ac_try="$ac_compile"
33995case "(($ac_try" in
33996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33997 *) ac_try_echo=$ac_try;;
33998esac
33999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34000 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000034001 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034002 grep -v '^ *+' conftest.er1 >conftest.err
34003 rm -f conftest.er1
34004 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000034005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034006 (exit $ac_status); } &&
34007 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34008 { (case "(($ac_try" in
34009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34010 *) ac_try_echo=$ac_try;;
34011esac
34012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34013 (eval "$ac_try") 2>&5
34014 ac_status=$?
34015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34016 (exit $ac_status); }; } &&
34017 { ac_try='test -s conftest.$ac_objext'
34018 { (case "(($ac_try" in
34019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34020 *) ac_try_echo=$ac_try;;
34021esac
34022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34023 (eval "$ac_try") 2>&5
34024 ac_status=$?
34025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34026 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034027 ac_cv_func_std_isinf_in_cmath=yes
34028else
34029 echo "$as_me: failed program was:" >&5
34030sed 's/^/| /' conftest.$ac_ext >&5
34031
Reid Spencera773bd52006-08-04 18:18:08 +000034032 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000034033fi
Reid Spencera773bd52006-08-04 18:18:08 +000034034
34035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000034036 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000034037ac_cpp='$CPP $CPPFLAGS'
34038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34040ac_compiler_gnu=$ac_cv_c_compiler_gnu
34041
34042fi
Reid Spencera773bd52006-08-04 18:18:08 +000034043{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34044echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000034045
34046if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034047
34048cat >>confdefs.h <<\_ACEOF
34049#define HAVE_STD_ISINF_IN_CMATH 1
34050_ACEOF
34051
Reid Spencerabec8f92004-10-27 23:03:44 +000034052fi
34053
Reid Spencera773bd52006-08-04 18:18:08 +000034054{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34055echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000034056if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34057 echo $ECHO_N "(cached) $ECHO_C" >&6
34058else
Reid Spencera773bd52006-08-04 18:18:08 +000034059 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000034060ac_cpp='$CXXCPP $CPPFLAGS'
34061ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34062ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34063ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34064
Reid Spencerabec8f92004-10-27 23:03:44 +000034065 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000034066/* confdefs.h. */
34067_ACEOF
34068cat confdefs.h >>conftest.$ac_ext
34069cat >>conftest.$ac_ext <<_ACEOF
34070/* end confdefs.h. */
34071#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000034072int
34073main ()
34074{
34075float f; finite(f);
34076 ;
34077 return 0;
34078}
Brian Gaeked59a6472004-07-21 03:33:58 +000034079_ACEOF
34080rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034081if { (ac_try="$ac_compile"
34082case "(($ac_try" in
34083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34084 *) ac_try_echo=$ac_try;;
34085esac
34086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34087 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000034088 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034089 grep -v '^ *+' conftest.er1 >conftest.err
34090 rm -f conftest.er1
34091 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000034092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034093 (exit $ac_status); } &&
34094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34095 { (case "(($ac_try" in
34096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34097 *) ac_try_echo=$ac_try;;
34098esac
34099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34100 (eval "$ac_try") 2>&5
34101 ac_status=$?
34102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34103 (exit $ac_status); }; } &&
34104 { ac_try='test -s conftest.$ac_objext'
34105 { (case "(($ac_try" in
34106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34107 *) ac_try_echo=$ac_try;;
34108esac
34109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34110 (eval "$ac_try") 2>&5
34111 ac_status=$?
34112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34113 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000034114 ac_cv_func_finite_in_ieeefp_h=yes
34115else
34116 echo "$as_me: failed program was:" >&5
34117sed 's/^/| /' conftest.$ac_ext >&5
34118
Reid Spencera773bd52006-08-04 18:18:08 +000034119 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000034120fi
Reid Spencera773bd52006-08-04 18:18:08 +000034121
34122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000034123 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000034124ac_cpp='$CPP $CPPFLAGS'
34125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34127ac_compiler_gnu=$ac_cv_c_compiler_gnu
34128
34129fi
Reid Spencera773bd52006-08-04 18:18:08 +000034130{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34131echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000034132
Brian Gaeke6802b552004-10-28 05:06:45 +000034133if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000034134
34135cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000034136#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000034137_ACEOF
34138
Reid Spencerabec8f92004-10-27 23:03:44 +000034139fi
34140
34141
34142
Reid Spencer30fe5262007-01-20 07:48:49 +000034143if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000034144
34145
34146for ac_header in stdlib.h unistd.h
34147do
34148as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000034149if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34152if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034153 echo $ECHO_N "(cached) $ECHO_C" >&6
34154fi
Reid Spencera773bd52006-08-04 18:18:08 +000034155ac_res=`eval echo '${'$as_ac_Header'}'`
34156 { echo "$as_me:$LINENO: result: $ac_res" >&5
34157echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034158else
34159 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000034160{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
34161echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034162cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034163/* confdefs.h. */
34164_ACEOF
34165cat confdefs.h >>conftest.$ac_ext
34166cat >>conftest.$ac_ext <<_ACEOF
34167/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034168$ac_includes_default
34169#include <$ac_header>
34170_ACEOF
34171rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034172if { (ac_try="$ac_compile"
34173case "(($ac_try" in
34174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34175 *) ac_try_echo=$ac_try;;
34176esac
34177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34178 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034179 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034180 grep -v '^ *+' conftest.er1 >conftest.err
34181 rm -f conftest.er1
34182 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000034183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034184 (exit $ac_status); } &&
34185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34186 { (case "(($ac_try" in
34187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34188 *) ac_try_echo=$ac_try;;
34189esac
34190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34191 (eval "$ac_try") 2>&5
34192 ac_status=$?
34193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34194 (exit $ac_status); }; } &&
34195 { ac_try='test -s conftest.$ac_objext'
34196 { (case "(($ac_try" in
34197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34198 *) ac_try_echo=$ac_try;;
34199esac
34200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34201 (eval "$ac_try") 2>&5
34202 ac_status=$?
34203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34204 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034205 ac_header_compiler=yes
34206else
34207 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034208sed 's/^/| /' conftest.$ac_ext >&5
34209
Reid Spencera773bd52006-08-04 18:18:08 +000034210 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000034211fi
Reid Spencera773bd52006-08-04 18:18:08 +000034212
34213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34214{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34215echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034216
34217# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000034218{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
34219echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034220cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034221/* confdefs.h. */
34222_ACEOF
34223cat confdefs.h >>conftest.$ac_ext
34224cat >>conftest.$ac_ext <<_ACEOF
34225/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034226#include <$ac_header>
34227_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034228if { (ac_try="$ac_cpp conftest.$ac_ext"
34229case "(($ac_try" in
34230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34231 *) ac_try_echo=$ac_try;;
34232esac
34233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034235 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000034236 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000034237 rm -f conftest.er1
34238 cat conftest.err >&5
34239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034240 (exit $ac_status); } >/dev/null; then
34241 if test -s conftest.err; then
34242 ac_cpp_err=$ac_c_preproc_warn_flag
34243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34244 else
34245 ac_cpp_err=
34246 fi
34247else
34248 ac_cpp_err=yes
34249fi
34250if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000034251 ac_header_preproc=yes
34252else
34253 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034254sed 's/^/| /' conftest.$ac_ext >&5
34255
John Criswell7a73b802003-06-30 21:59:07 +000034256 ac_header_preproc=no
34257fi
Reid Spencera773bd52006-08-04 18:18:08 +000034258
John Criswell7a73b802003-06-30 21:59:07 +000034259rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000034260{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34261echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034262
34263# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034264case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34265 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000034266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34267echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34269echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34270 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000034271 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000034272 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000034273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34274echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34276echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34278echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34280echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000034281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34282echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34284echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000034285 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000034286## ----------------------------------- ##
34287## Report this to llvmbugs@cs.uiuc.edu ##
34288## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000034289_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000034290 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000034291 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034292esac
Reid Spencera773bd52006-08-04 18:18:08 +000034293{ echo "$as_me:$LINENO: checking for $ac_header" >&5
34294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34295if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034296 echo $ECHO_N "(cached) $ECHO_C" >&6
34297else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034298 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000034299fi
Reid Spencera773bd52006-08-04 18:18:08 +000034300ac_res=`eval echo '${'$as_ac_Header'}'`
34301 { echo "$as_me:$LINENO: result: $ac_res" >&5
34302echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034303
34304fi
34305if test `eval echo '${'$as_ac_Header'}'` = yes; then
34306 cat >>confdefs.h <<_ACEOF
34307#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34308_ACEOF
34309
34310fi
34311
34312done
34313
34314
34315for ac_func in getpagesize
34316do
34317as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000034318{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34319echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34320if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034321 echo $ECHO_N "(cached) $ECHO_C" >&6
34322else
34323 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034324/* confdefs.h. */
34325_ACEOF
34326cat confdefs.h >>conftest.$ac_ext
34327cat >>conftest.$ac_ext <<_ACEOF
34328/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000034329/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34331#define $ac_func innocuous_$ac_func
34332
John Criswell7a73b802003-06-30 21:59:07 +000034333/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000034334 which can conflict with char $ac_func (); below.
34335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34336 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000034337
John Criswell0c38eaf2003-09-10 15:17:25 +000034338#ifdef __STDC__
34339# include <limits.h>
34340#else
34341# include <assert.h>
34342#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000034343
34344#undef $ac_func
34345
Reid Spencera773bd52006-08-04 18:18:08 +000034346/* Override any GCC internal prototype to avoid an error.
34347 Use char because int might match the return type of a GCC
34348 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000034349#ifdef __cplusplus
34350extern "C"
34351#endif
John Criswell7a73b802003-06-30 21:59:07 +000034352char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000034353/* The GNU C library defines this for functions which it implements
34354 to always fail with ENOSYS. Some functions are actually named
34355 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000034356#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000034357choke me
John Criswell7a73b802003-06-30 21:59:07 +000034358#endif
34359
John Criswell0c38eaf2003-09-10 15:17:25 +000034360int
34361main ()
34362{
Reid Spencera773bd52006-08-04 18:18:08 +000034363return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000034364 ;
34365 return 0;
34366}
34367_ACEOF
34368rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034369if { (ac_try="$ac_link"
34370case "(($ac_try" in
34371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34372 *) ac_try_echo=$ac_try;;
34373esac
34374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34375 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034376 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034377 grep -v '^ *+' conftest.er1 >conftest.err
34378 rm -f conftest.er1
34379 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000034380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034381 (exit $ac_status); } &&
34382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34383 { (case "(($ac_try" in
34384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34385 *) ac_try_echo=$ac_try;;
34386esac
34387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34388 (eval "$ac_try") 2>&5
34389 ac_status=$?
34390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34391 (exit $ac_status); }; } &&
34392 { ac_try='test -s conftest$ac_exeext'
34393 { (case "(($ac_try" in
34394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34395 *) ac_try_echo=$ac_try;;
34396esac
34397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34398 (eval "$ac_try") 2>&5
34399 ac_status=$?
34400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34401 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034402 eval "$as_ac_var=yes"
34403else
34404 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034405sed 's/^/| /' conftest.$ac_ext >&5
34406
Reid Spencera773bd52006-08-04 18:18:08 +000034407 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000034408fi
Reid Spencera773bd52006-08-04 18:18:08 +000034409
Bill Wendlingebcceee2009-04-18 11:20:33 +000034410rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034411 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000034412fi
Reid Spencera773bd52006-08-04 18:18:08 +000034413ac_res=`eval echo '${'$as_ac_var'}'`
34414 { echo "$as_me:$LINENO: result: $ac_res" >&5
34415echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034416if test `eval echo '${'$as_ac_var'}'` = yes; then
34417 cat >>confdefs.h <<_ACEOF
34418#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34419_ACEOF
34420
34421fi
34422done
34423
Reid Spencera773bd52006-08-04 18:18:08 +000034424{ echo "$as_me:$LINENO: checking for working mmap" >&5
34425echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034426if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34427 echo $ECHO_N "(cached) $ECHO_C" >&6
34428else
34429 if test "$cross_compiling" = yes; then
34430 ac_cv_func_mmap_fixed_mapped=no
34431else
34432 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034433/* confdefs.h. */
34434_ACEOF
34435cat confdefs.h >>conftest.$ac_ext
34436cat >>conftest.$ac_ext <<_ACEOF
34437/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034438$ac_includes_default
34439/* malloc might have been renamed as rpl_malloc. */
34440#undef malloc
34441
34442/* Thanks to Mike Haertel and Jim Avera for this test.
34443 Here is a matrix of mmap possibilities:
34444 mmap private not fixed
34445 mmap private fixed at somewhere currently unmapped
34446 mmap private fixed at somewhere already mapped
34447 mmap shared not fixed
34448 mmap shared fixed at somewhere currently unmapped
34449 mmap shared fixed at somewhere already mapped
34450 For private mappings, we should verify that changes cannot be read()
34451 back from the file, nor mmap's back from the file at a different
34452 address. (There have been systems where private was not correctly
34453 implemented like the infamous i386 svr4.0, and systems where the
34454 VM page cache was not coherent with the file system buffer cache
34455 like early versions of FreeBSD and possibly contemporary NetBSD.)
34456 For shared mappings, we should conversely verify that changes get
34457 propagated back to all the places they're supposed to be.
34458
34459 Grep wants private fixed already mapped.
34460 The main things grep needs to know about mmap are:
34461 * does it exist and is it safe to write into the mmap'd area
34462 * how to use it (BSD variants) */
34463
34464#include <fcntl.h>
34465#include <sys/mman.h>
34466
Bill Wendlingebcceee2009-04-18 11:20:33 +000034467#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000034468char *malloc ();
34469#endif
34470
34471/* This mess was copied from the GNU getpagesize.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034472#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000034473/* Assume that all systems that can run configure have sys/param.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034474# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000034475# define HAVE_SYS_PARAM_H 1
34476# endif
34477
34478# ifdef _SC_PAGESIZE
34479# define getpagesize() sysconf(_SC_PAGESIZE)
34480# else /* no _SC_PAGESIZE */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034481# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000034482# include <sys/param.h>
34483# ifdef EXEC_PAGESIZE
34484# define getpagesize() EXEC_PAGESIZE
34485# else /* no EXEC_PAGESIZE */
34486# ifdef NBPG
34487# define getpagesize() NBPG * CLSIZE
34488# ifndef CLSIZE
34489# define CLSIZE 1
34490# endif /* no CLSIZE */
34491# else /* no NBPG */
34492# ifdef NBPC
34493# define getpagesize() NBPC
34494# else /* no NBPC */
34495# ifdef PAGESIZE
34496# define getpagesize() PAGESIZE
34497# endif /* PAGESIZE */
34498# endif /* no NBPC */
34499# endif /* no NBPG */
34500# endif /* no EXEC_PAGESIZE */
34501# else /* no HAVE_SYS_PARAM_H */
34502# define getpagesize() 8192 /* punt totally */
34503# endif /* no HAVE_SYS_PARAM_H */
34504# endif /* no _SC_PAGESIZE */
34505
34506#endif /* no HAVE_GETPAGESIZE */
34507
34508int
34509main ()
34510{
34511 char *data, *data2, *data3;
34512 int i, pagesize;
34513 int fd;
34514
34515 pagesize = getpagesize ();
34516
34517 /* First, make a file with some known garbage in it. */
34518 data = (char *) malloc (pagesize);
34519 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000034520 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034521 for (i = 0; i < pagesize; ++i)
34522 *(data + i) = rand ();
34523 umask (0);
34524 fd = creat ("conftest.mmap", 0600);
34525 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034526 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034527 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034528 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034529 close (fd);
34530
34531 /* Next, try to mmap the file at a fixed address which already has
34532 something else allocated at it. If we can, also make sure that
34533 we see the same garbage. */
34534 fd = open ("conftest.mmap", O_RDWR);
34535 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034536 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034537 data2 = (char *) malloc (2 * pagesize);
34538 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000034539 return 1;
34540 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000034541 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000034542 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000034543 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034544 for (i = 0; i < pagesize; ++i)
34545 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034546 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034547
34548 /* Finally, make sure that changes to the mapped area do not
34549 percolate back to the file as seen by read(). (This is a bug on
34550 some variants of i386 svr4.0.) */
34551 for (i = 0; i < pagesize; ++i)
34552 *(data2 + i) = *(data2 + i) + 1;
34553 data3 = (char *) malloc (pagesize);
34554 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000034555 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034556 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034557 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034558 for (i = 0; i < pagesize; ++i)
34559 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034560 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034561 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000034562 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000034563}
34564_ACEOF
34565rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034566if { (ac_try="$ac_link"
34567case "(($ac_try" in
34568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34569 *) ac_try_echo=$ac_try;;
34570esac
34571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34572 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034573 ac_status=$?
34574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034576 { (case "(($ac_try" in
34577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34578 *) ac_try_echo=$ac_try;;
34579esac
34580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34581 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034582 ac_status=$?
34583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34584 (exit $ac_status); }; }; then
34585 ac_cv_func_mmap_fixed_mapped=yes
34586else
34587 echo "$as_me: program exited with status $ac_status" >&5
34588echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034589sed 's/^/| /' conftest.$ac_ext >&5
34590
John Criswell7a73b802003-06-30 21:59:07 +000034591( exit $ac_status )
34592ac_cv_func_mmap_fixed_mapped=no
34593fi
Reid Spencera773bd52006-08-04 18:18:08 +000034594rm -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 +000034595fi
Reid Spencera773bd52006-08-04 18:18:08 +000034596
34597
John Criswell7a73b802003-06-30 21:59:07 +000034598fi
Reid Spencera773bd52006-08-04 18:18:08 +000034599{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34600echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034601if test $ac_cv_func_mmap_fixed_mapped = yes; then
34602
34603cat >>confdefs.h <<\_ACEOF
34604#define HAVE_MMAP 1
34605_ACEOF
34606
34607fi
34608rm -f conftest.mmap
34609
Reid Spencer30fe5262007-01-20 07:48:49 +000034610 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034611echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034612if test "${ac_cv_func_mmap_file+set}" = set; then
34613 echo $ECHO_N "(cached) $ECHO_C" >&6
34614else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034615 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000034616ac_cpp='$CPP $CPPFLAGS'
34617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34619ac_compiler_gnu=$ac_cv_c_compiler_gnu
34620
34621 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034622 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000034623else
34624 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034625
Reid Spencer777ce172004-09-20 04:09:56 +000034626 /* confdefs.h. */
34627_ACEOF
34628cat confdefs.h >>conftest.$ac_ext
34629cat >>conftest.$ac_ext <<_ACEOF
34630/* end confdefs.h. */
34631
John Criswell7a73b802003-06-30 21:59:07 +000034632#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000034633#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000034634#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000034635
34636int
34637main ()
34638{
John Criswell7a73b802003-06-30 21:59:07 +000034639
34640 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000034641 fd = creat ("foo",0777);
34642 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34643 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034644 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000034645 ;
34646 return 0;
34647}
John Criswell7a73b802003-06-30 21:59:07 +000034648_ACEOF
34649rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034650if { (ac_try="$ac_link"
34651case "(($ac_try" in
34652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34653 *) ac_try_echo=$ac_try;;
34654esac
34655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34656 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034657 ac_status=$?
34658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034660 { (case "(($ac_try" in
34661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34662 *) ac_try_echo=$ac_try;;
34663esac
34664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34665 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034666 ac_status=$?
34667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34668 (exit $ac_status); }; }; then
34669 ac_cv_func_mmap_file=yes
34670else
34671 echo "$as_me: program exited with status $ac_status" >&5
34672echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034673sed 's/^/| /' conftest.$ac_ext >&5
34674
John Criswell7a73b802003-06-30 21:59:07 +000034675( exit $ac_status )
34676ac_cv_func_mmap_file=no
34677fi
Reid Spencera773bd52006-08-04 18:18:08 +000034678rm -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 +000034679fi
Reid Spencera773bd52006-08-04 18:18:08 +000034680
34681
John Criswell7a73b802003-06-30 21:59:07 +000034682 ac_ext=c
34683ac_cpp='$CPP $CPPFLAGS'
34684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34686ac_compiler_gnu=$ac_cv_c_compiler_gnu
34687
34688
34689fi
Reid Spencera773bd52006-08-04 18:18:08 +000034690{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34691echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034692if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000034693
34694cat >>confdefs.h <<\_ACEOF
34695#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000034696_ACEOF
34697
34698 MMAP_FILE=yes
34699
34700fi
34701
Reid Spencer30fe5262007-01-20 07:48:49 +000034702 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034703echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034704if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34705 echo $ECHO_N "(cached) $ECHO_C" >&6
34706else
Reid Spencer582a23c2004-12-29 07:07:57 +000034707 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000034708 ac_cv_need_dev_zero_for_mmap=yes
34709 else
34710 ac_cv_need_dev_zero_for_mmap=no
34711 fi
34712
34713fi
Reid Spencera773bd52006-08-04 18:18:08 +000034714{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34715echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034716if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34717
34718cat >>confdefs.h <<\_ACEOF
34719#define NEED_DEV_ZERO_FOR_MMAP 1
34720_ACEOF
34721
34722fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000034723
Reid Spencer30fe5262007-01-20 07:48:49 +000034724 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34725 then
34726 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000034727echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034728 fi
34729 if test "$ac_cv_func_mmap_file" = "no"
34730 then
34731 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034732echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034733 fi
John Criswellb13092b2003-07-22 21:00:24 +000034734fi
John Criswell7a73b802003-06-30 21:59:07 +000034735
Owen Andersona8603702009-05-19 22:18:56 +000034736{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000034737echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034738cat >conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000034739/* confdefs.h. */
34740_ACEOF
34741cat confdefs.h >>conftest.$ac_ext
34742cat >>conftest.$ac_ext <<_ACEOF
34743/* end confdefs.h. */
34744int main() {
Owen Andersona8603702009-05-19 22:18:56 +000034745 volatile unsigned long val = 1;
34746 __sync_synchronize();
34747 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000034748 __sync_add_and_fetch(&val, 1);
34749 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000034750 return 0;
34751 }
Owen Andersond4b272b2009-05-18 23:58:51 +000034752
34753_ACEOF
34754rm -f conftest.$ac_objext conftest$ac_exeext
34755if { (ac_try="$ac_link"
34756case "(($ac_try" in
34757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34758 *) ac_try_echo=$ac_try;;
34759esac
34760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34761 (eval "$ac_link") 2>conftest.er1
34762 ac_status=$?
34763 grep -v '^ *+' conftest.er1 >conftest.err
34764 rm -f conftest.er1
34765 cat conftest.err >&5
34766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34767 (exit $ac_status); } &&
34768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34769 { (case "(($ac_try" in
34770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34771 *) ac_try_echo=$ac_try;;
34772esac
34773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34774 (eval "$ac_try") 2>&5
34775 ac_status=$?
34776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34777 (exit $ac_status); }; } &&
34778 { ac_try='test -s conftest$ac_exeext'
34779 { (case "(($ac_try" in
34780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34781 *) ac_try_echo=$ac_try;;
34782esac
34783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34784 (eval "$ac_try") 2>&5
34785 ac_status=$?
34786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34787 (exit $ac_status); }; }; then
34788 { echo "$as_me:$LINENO: result: yes" >&5
34789echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034790
34791cat >>confdefs.h <<\_ACEOF
34792#define LLVM_MULTITHREADED 1
34793_ACEOF
34794
Owen Andersond4b272b2009-05-18 23:58:51 +000034795else
34796 echo "$as_me: failed program was:" >&5
34797sed 's/^/| /' conftest.$ac_ext >&5
34798
34799 { echo "$as_me:$LINENO: result: no" >&5
34800echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000034801
Owen Andersona8603702009-05-19 22:18:56 +000034802cat >>confdefs.h <<\_ACEOF
34803#define LLVM_MULTITHREADED 0
34804_ACEOF
34805
34806 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34807echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000034808fi
34809
34810rm -f core conftest.err conftest.$ac_objext \
34811 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000034812
34813
John Criswell7a73b802003-06-30 21:59:07 +000034814
Reid Spencer9372f152007-07-30 20:13:24 +000034815
34816for ac_func in __dso_handle
34817do
34818as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34819{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34820echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34821if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34822 echo $ECHO_N "(cached) $ECHO_C" >&6
34823else
34824 cat >conftest.$ac_ext <<_ACEOF
34825/* confdefs.h. */
34826_ACEOF
34827cat confdefs.h >>conftest.$ac_ext
34828cat >>conftest.$ac_ext <<_ACEOF
34829/* end confdefs.h. */
34830/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34832#define $ac_func innocuous_$ac_func
34833
34834/* System header to define __stub macros and hopefully few prototypes,
34835 which can conflict with char $ac_func (); below.
34836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34837 <limits.h> exists even on freestanding compilers. */
34838
34839#ifdef __STDC__
34840# include <limits.h>
34841#else
34842# include <assert.h>
34843#endif
34844
34845#undef $ac_func
34846
34847/* Override any GCC internal prototype to avoid an error.
34848 Use char because int might match the return type of a GCC
34849 builtin and then its argument prototype would still apply. */
34850#ifdef __cplusplus
34851extern "C"
34852#endif
34853char $ac_func ();
34854/* The GNU C library defines this for functions which it implements
34855 to always fail with ENOSYS. Some functions are actually named
34856 something starting with __ and the normal name is an alias. */
34857#if defined __stub_$ac_func || defined __stub___$ac_func
34858choke me
34859#endif
34860
34861int
34862main ()
34863{
34864return $ac_func ();
34865 ;
34866 return 0;
34867}
34868_ACEOF
34869rm -f conftest.$ac_objext conftest$ac_exeext
34870if { (ac_try="$ac_link"
34871case "(($ac_try" in
34872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34873 *) ac_try_echo=$ac_try;;
34874esac
34875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34876 (eval "$ac_link") 2>conftest.er1
34877 ac_status=$?
34878 grep -v '^ *+' conftest.er1 >conftest.err
34879 rm -f conftest.er1
34880 cat conftest.err >&5
34881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034882 (exit $ac_status); } &&
34883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34884 { (case "(($ac_try" in
34885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34886 *) ac_try_echo=$ac_try;;
34887esac
34888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34889 (eval "$ac_try") 2>&5
34890 ac_status=$?
34891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34892 (exit $ac_status); }; } &&
34893 { ac_try='test -s conftest$ac_exeext'
34894 { (case "(($ac_try" in
34895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34896 *) ac_try_echo=$ac_try;;
34897esac
34898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34899 (eval "$ac_try") 2>&5
34900 ac_status=$?
34901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34902 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000034903 eval "$as_ac_var=yes"
34904else
34905 echo "$as_me: failed program was:" >&5
34906sed 's/^/| /' conftest.$ac_ext >&5
34907
34908 eval "$as_ac_var=no"
34909fi
34910
Bill Wendlingebcceee2009-04-18 11:20:33 +000034911rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000034912 conftest$ac_exeext conftest.$ac_ext
34913fi
34914ac_res=`eval echo '${'$as_ac_var'}'`
34915 { echo "$as_me:$LINENO: result: $ac_res" >&5
34916echo "${ECHO_T}$ac_res" >&6; }
34917if test `eval echo '${'$as_ac_var'}'` = yes; then
34918 cat >>confdefs.h <<_ACEOF
34919#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34920_ACEOF
34921
34922fi
34923done
34924
34925
Reid Spencera773bd52006-08-04 18:18:08 +000034926{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34927echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034928if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34929 echo $ECHO_N "(cached) $ECHO_C" >&6
34930else
34931 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000034932if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034933 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000034934 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34935 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034936 if test $? -eq 0 ; then
34937 llvm_cv_llvmgcc_sanity="yes"
34938 fi
34939 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000034940fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034941fi
Reid Spencera773bd52006-08-04 18:18:08 +000034942{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34943echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034944
34945if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000034946 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34947echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000034948 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034949 LLVMCC1=$llvmcc1path
34950
Reid Spencer502935f2004-12-22 05:56:56 +000034951 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034952 LLVMCC1PLUS=$llvmcc1pluspath
34953
Reid Spencer502935f2004-12-22 05:56:56 +000034954 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34955 LLVMGCCDIR=$llvmgccdir
34956
Reid Spencer282d8c12006-12-21 22:55:41 +000034957 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34958 LLVMGCCLIBEXEC=$llvmgcclibexec
34959
Reid Spencerb5d75b82006-05-09 00:31:01 +000034960 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000034961 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34962 LLVMGCC_VERSION=$llvmgccversion
34963
34964 LLVMGCC_MAJVERS=$llvmgccmajvers
34965
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000034966 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000034967 LLVMGCC_LANGS=$llvmgcclangs
34968
34969 { echo "$as_me:$LINENO: result: ok" >&5
34970echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000034971fi
34972
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034973SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000034974
34975
Reid Spencere9de0912004-08-20 09:03:57 +000034976# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034977# information into substitutions that will end up in Makefile.config.in
34978# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000034979if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000034980 prefix="/usr/local"
34981fi
Reid Spencere9de0912004-08-20 09:03:57 +000034982eval LLVM_PREFIX="${prefix}";
34983eval LLVM_BINDIR="${prefix}/bin";
34984eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000034985eval LLVM_DATADIR="${prefix}/share/llvm";
34986eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34987eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000034988eval LLVM_INCLUDEDIR="${prefix}/include";
34989eval LLVM_INFODIR="${prefix}/info";
34990eval LLVM_MANDIR="${prefix}/man";
34991LLVM_CONFIGTIME=`date`
34992
34993
34994
34995
34996
34997
34998
34999
35000
35001
35002
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035003# Place the various directores into the config.h file as #defines so that we
35004# can know about the installation paths within LLVM.
35005
Reid Spencere9de0912004-08-20 09:03:57 +000035006cat >>confdefs.h <<_ACEOF
35007#define LLVM_PREFIX "$LLVM_PREFIX"
35008_ACEOF
35009
35010
35011cat >>confdefs.h <<_ACEOF
35012#define LLVM_BINDIR "$LLVM_BINDIR"
35013_ACEOF
35014
35015
35016cat >>confdefs.h <<_ACEOF
35017#define LLVM_LIBDIR "$LLVM_LIBDIR"
35018_ACEOF
35019
35020
35021cat >>confdefs.h <<_ACEOF
35022#define LLVM_DATADIR "$LLVM_DATADIR"
35023_ACEOF
35024
35025
35026cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000035027#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000035028_ACEOF
35029
35030
35031cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000035032#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000035033_ACEOF
35034
35035
35036cat >>confdefs.h <<_ACEOF
35037#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35038_ACEOF
35039
35040
35041cat >>confdefs.h <<_ACEOF
35042#define LLVM_INFODIR "$LLVM_INFODIR"
35043_ACEOF
35044
35045
35046cat >>confdefs.h <<_ACEOF
35047#define LLVM_MANDIR "$LLVM_MANDIR"
35048_ACEOF
35049
35050
35051cat >>confdefs.h <<_ACEOF
35052#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35053_ACEOF
35054
35055
Eric Christopher790e11c2007-12-01 00:34:39 +000035056cat >>confdefs.h <<_ACEOF
35057#define LLVM_HOSTTRIPLE "$host"
35058_ACEOF
35059
35060
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035061# Determine which bindings to build.
35062if test "$BINDINGS_TO_BUILD" = auto ; then
35063 BINDINGS_TO_BUILD=""
35064 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35065 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35066 fi
35067fi
35068BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35069
35070
35071# This isn't really configurey, but it avoids having to repeat the list in
35072# other files.
35073ALL_BINDINGS=ocaml
35074
35075
Gordon Henriksenf0915682007-10-02 16:42:22 +000035076# Do any work necessary to ensure that bindings have what they need.
35077binding_prereqs_failed=0
35078for a_binding in $BINDINGS_TO_BUILD ; do
35079 case "$a_binding" in
35080 ocaml)
35081 if test "x$OCAMLC" = x ; then
35082 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35083echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35084 binding_prereqs_failed=1
35085 fi
35086 if test "x$OCAMLDEP" = x ; then
35087 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35088echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35089 binding_prereqs_failed=1
35090 fi
35091 if test "x$OCAMLOPT" = x ; then
35092 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35093echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35094 fi
35095 if test "x$with_ocaml_libdir" != xauto ; then
35096 OCAML_LIBDIR=$with_ocaml_libdir
35097
35098 else
35099 ocaml_stdlib="`"$OCAMLC" -where`"
35100 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35101 then
35102 # ocaml stdlib is beneath our prefix; use stdlib
35103 OCAML_LIBDIR=$ocaml_stdlib
35104
35105 else
35106 # ocaml stdlib is outside our prefix; use libdir/ocaml
35107 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35108
35109 fi
35110 fi
35111 ;;
35112 esac
35113done
35114if test "$binding_prereqs_failed" = 1 ; then
35115 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35116echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35117 { (exit 1); exit 1; }; }
35118fi
35119
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035120{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35121echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35122if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35123 echo $ECHO_N "(cached) $ECHO_C" >&6
35124else
35125 ac_ext=cpp
35126ac_cpp='$CXXCPP $CPPFLAGS'
35127ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35128ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35129ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35130
35131 oldcxxflags="$CXXFLAGS"
35132 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35133 cat >conftest.$ac_ext <<_ACEOF
35134/* confdefs.h. */
35135_ACEOF
35136cat confdefs.h >>conftest.$ac_ext
35137cat >>conftest.$ac_ext <<_ACEOF
35138/* end confdefs.h. */
35139
35140int
35141main ()
35142{
35143
35144 ;
35145 return 0;
35146}
35147_ACEOF
35148rm -f conftest.$ac_objext
35149if { (ac_try="$ac_compile"
35150case "(($ac_try" in
35151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35152 *) ac_try_echo=$ac_try;;
35153esac
35154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35155 (eval "$ac_compile") 2>conftest.er1
35156 ac_status=$?
35157 grep -v '^ *+' conftest.er1 >conftest.err
35158 rm -f conftest.er1
35159 cat conftest.err >&5
35160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000035161 (exit $ac_status); } &&
35162 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35163 { (case "(($ac_try" in
35164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35165 *) ac_try_echo=$ac_try;;
35166esac
35167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35168 (eval "$ac_try") 2>&5
35169 ac_status=$?
35170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35171 (exit $ac_status); }; } &&
35172 { ac_try='test -s conftest.$ac_objext'
35173 { (case "(($ac_try" in
35174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35175 *) ac_try_echo=$ac_try;;
35176esac
35177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35178 (eval "$ac_try") 2>&5
35179 ac_status=$?
35180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35181 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035182 llvm_cv_cxx_visibility_inlines_hidden=yes
35183else
35184 echo "$as_me: failed program was:" >&5
35185sed 's/^/| /' conftest.$ac_ext >&5
35186
35187 llvm_cv_cxx_visibility_inlines_hidden=no
35188fi
35189
35190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35191 CXXFLAGS="$oldcxxflags"
35192 ac_ext=c
35193ac_cpp='$CPP $CPPFLAGS'
35194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35196ac_compiler_gnu=$ac_cv_c_compiler_gnu
35197
35198
35199fi
35200{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35201echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35202if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35203 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35204
35205else
35206 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35207
35208fi
35209
Gordon Henriksenf0915682007-10-02 16:42:22 +000035210
Nick Lewycky731c6ab2009-03-05 08:20:44 +000035211if test "$llvm_cv_link_use_r" = "yes" ; then
35212 RPATH="-Wl,-R"
35213else
35214 RPATH="-Wl,-rpath"
35215fi
35216
35217
35218if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35219 RDYNAMIC="-Wl,-export-dynamic"
35220else
35221 RDYNAMIC=""
35222fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000035223
35224
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035225
Reid Spencera773bd52006-08-04 18:18:08 +000035226ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035227
Douglas Gregor1555a232009-06-16 20:12:29 +000035228ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35229
35230ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35231
Reid Spencera773bd52006-08-04 18:18:08 +000035232ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035233
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000035234ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035235
35236
Reid Spencera773bd52006-08-04 18:18:08 +000035237ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035238
35239
Reid Spencerea949cf2006-08-16 00:45:38 +000035240ac_config_files="$ac_config_files llvm.spec"
35241
35242
Reid Spencera773bd52006-08-04 18:18:08 +000035243ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000035244
35245
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035246ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35247
35248
Reid Spencera773bd52006-08-04 18:18:08 +000035249ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000035250
35251
Reid Spencera773bd52006-08-04 18:18:08 +000035252ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000035253
Reid Spencera773bd52006-08-04 18:18:08 +000035254ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035255
35256
Reid Spencera773bd52006-08-04 18:18:08 +000035257ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035258
35259
Reid Spencera773bd52006-08-04 18:18:08 +000035260ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035261
35262
Reid Spencera773bd52006-08-04 18:18:08 +000035263ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035264
35265
Reid Spencer8b2e1412006-11-17 03:32:33 +000035266ac_config_commands="$ac_config_commands runtime/Makefile"
35267
35268
Reid Spencera773bd52006-08-04 18:18:08 +000035269ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035270
35271
Reid Spencera773bd52006-08-04 18:18:08 +000035272ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035273
35274
Bill Wendlingf24eb392009-01-04 23:12:30 +000035275ac_config_commands="$ac_config_commands unittests/Makefile"
35276
35277
Reid Spencera773bd52006-08-04 18:18:08 +000035278ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035279
35280
Reid Spencera773bd52006-08-04 18:18:08 +000035281ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035282
35283
Reid Spencera773bd52006-08-04 18:18:08 +000035284ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035285
35286
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035287ac_config_commands="$ac_config_commands bindings/Makefile"
35288
35289
35290ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35291
35292
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035293
John Criswell7a73b802003-06-30 21:59:07 +000035294cat >confcache <<\_ACEOF
35295# This file is a shell script that caches the results of configure
35296# tests run on this system so they can be shared between configure
35297# scripts and configure runs, see configure's option --config-cache.
35298# It is not useful on other systems. If it contains results you don't
35299# want to keep, you may remove or edit it.
35300#
35301# config.status only pays attention to the cache file if you give it
35302# the --recheck option to rerun configure.
35303#
John Criswell0c38eaf2003-09-10 15:17:25 +000035304# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000035305# loading this file, other *unset* `ac_cv_foo' will be assigned the
35306# following values.
35307
35308_ACEOF
35309
35310# The following way of writing the cache mishandles newlines in values,
35311# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000035312# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000035313# Ultrix sh set writes to stderr and can't be redirected directly,
35314# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000035315(
35316 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35317 eval ac_val=\$$ac_var
35318 case $ac_val in #(
35319 *${as_nl}*)
35320 case $ac_var in #(
35321 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35322echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35323 esac
35324 case $ac_var in #(
35325 _ | IFS | as_nl) ;; #(
35326 *) $as_unset $ac_var ;;
35327 esac ;;
35328 esac
35329 done
35330
John Criswell7a73b802003-06-30 21:59:07 +000035331 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000035332 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35333 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000035334 # `set' does not quote correctly, so add quotes (double-quote
35335 # substitution turns \\\\ into \\, and sed turns \\ into \).
35336 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035337 "s/'/'\\\\''/g;
35338 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000035339 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000035340 *)
35341 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000035342 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000035343 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035344 esac |
35345 sort
35346) |
John Criswell7a73b802003-06-30 21:59:07 +000035347 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000035348 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000035349 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000035350 :clear
John Criswell7a73b802003-06-30 21:59:07 +000035351 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35352 t end
Reid Spencera773bd52006-08-04 18:18:08 +000035353 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35354 :end' >>confcache
35355if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35356 if test -w "$cache_file"; then
35357 test "x$cache_file" != "x/dev/null" &&
35358 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35359echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000035360 cat confcache >$cache_file
35361 else
Reid Spencera773bd52006-08-04 18:18:08 +000035362 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35363echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000035364 fi
35365fi
35366rm -f confcache
35367
35368test "x$prefix" = xNONE && prefix=$ac_default_prefix
35369# Let make expand exec_prefix.
35370test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35371
John Criswell7a73b802003-06-30 21:59:07 +000035372DEFS=-DHAVE_CONFIG_H
35373
John Criswell0c38eaf2003-09-10 15:17:25 +000035374ac_libobjs=
35375ac_ltlibobjs=
35376for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35377 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000035378 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35379 ac_i=`echo "$ac_i" | sed "$ac_script"`
35380 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35381 # will be set to the directory where LIBOBJS objects are built.
35382 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35383 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000035384done
35385LIBOBJS=$ac_libobjs
35386
35387LTLIBOBJS=$ac_ltlibobjs
35388
35389
Reid Spencer2bc7bd52004-11-29 12:29:58 +000035390if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35391 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35392Usually this means the macro was only invoked conditionally." >&5
35393echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35394Usually this means the macro was only invoked conditionally." >&2;}
35395 { (exit 1); exit 1; }; }
35396fi
35397if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35398 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35399Usually this means the macro was only invoked conditionally." >&5
35400echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35401Usually this means the macro was only invoked conditionally." >&2;}
35402 { (exit 1); exit 1; }; }
35403fi
John Criswell7a73b802003-06-30 21:59:07 +000035404
35405: ${CONFIG_STATUS=./config.status}
35406ac_clean_files_save=$ac_clean_files
35407ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35408{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35409echo "$as_me: creating $CONFIG_STATUS" >&6;}
35410cat >$CONFIG_STATUS <<_ACEOF
35411#! $SHELL
35412# Generated by $as_me.
35413# Run this file to recreate the current configuration.
35414# Compiler output produced by configure, useful for debugging
35415# configure, is in config.log if it exists.
35416
35417debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000035418ac_cs_recheck=false
35419ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000035420SHELL=\${CONFIG_SHELL-$SHELL}
35421_ACEOF
35422
35423cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035424## --------------------- ##
35425## M4sh Initialization. ##
35426## --------------------- ##
35427
Bill Wendlingebcceee2009-04-18 11:20:33 +000035428# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000035429if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35430 emulate sh
35431 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035432 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35433 # is contrary to our usage. Disable this feature.
35434 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000035435 setopt NO_GLOB_SUBST
35436else
Bill Wendlingebcceee2009-04-18 11:20:33 +000035437 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000035438fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000035439BIN_SH=xpg4; export BIN_SH # for Tru64
35440DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000035441
John Criswell7a73b802003-06-30 21:59:07 +000035442
Reid Spencera773bd52006-08-04 18:18:08 +000035443# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000035444# Avoid depending upon Character Ranges.
35445as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35446as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35447as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35448as_cr_digits='0123456789'
35449as_cr_alnum=$as_cr_Letters$as_cr_digits
35450
35451# The user is always right.
35452if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000035453 echo "#! /bin/sh" >conf$$.sh
35454 echo "exit 0" >>conf$$.sh
35455 chmod +x conf$$.sh
35456 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035457 PATH_SEPARATOR=';'
35458 else
35459 PATH_SEPARATOR=:
35460 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000035461 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000035462fi
35463
Reid Spencera773bd52006-08-04 18:18:08 +000035464# Support unset when possible.
35465if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35466 as_unset=unset
35467else
35468 as_unset=false
35469fi
John Criswell7a73b802003-06-30 21:59:07 +000035470
Reid Spencera773bd52006-08-04 18:18:08 +000035471
35472# IFS
35473# We need space, tab and new line, in precisely that order. Quoting is
35474# there to prevent editors from complaining about space-tab.
35475# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35476# splitting by setting IFS to empty value.)
35477as_nl='
35478'
35479IFS=" "" $as_nl"
35480
35481# Find who we are. Look in the path if we contain no directory separator.
35482case $0 in
35483 *[\\/]* ) as_myself=$0 ;;
35484 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000035485for as_dir in $PATH
35486do
35487 IFS=$as_save_IFS
35488 test -z "$as_dir" && as_dir=.
35489 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35490done
Reid Spencera773bd52006-08-04 18:18:08 +000035491IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000035492
Reid Spencera773bd52006-08-04 18:18:08 +000035493 ;;
35494esac
35495# We did not find ourselves, most probably we were run as `sh COMMAND'
35496# in which case we are not to be found in the path.
35497if test "x$as_myself" = x; then
35498 as_myself=$0
35499fi
35500if test ! -f "$as_myself"; then
35501 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35502 { (exit 1); exit 1; }
35503fi
35504
35505# Work around bugs in pre-3.0 UWIN ksh.
35506for as_var in ENV MAIL MAILPATH
35507do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35508done
35509PS1='$ '
35510PS2='> '
35511PS4='+ '
35512
35513# NLS nuisances.
35514for as_var in \
35515 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35516 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35517 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000035518do
Reid Spencera773bd52006-08-04 18:18:08 +000035519 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35520 eval $as_var=C; export $as_var
35521 else
35522 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35523 fi
35524done
35525
35526# Required to use basename.
35527if expr a : '\(a\)' >/dev/null 2>&1 &&
35528 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35529 as_expr=expr
35530else
35531 as_expr=false
35532fi
35533
35534if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35535 as_basename=basename
35536else
35537 as_basename=false
35538fi
35539
35540
35541# Name of the executable.
35542as_me=`$as_basename -- "$0" ||
35543$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35544 X"$0" : 'X\(//\)$' \| \
35545 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35546echo X/"$0" |
35547 sed '/^.*\/\([^/][^/]*\)\/*$/{
35548 s//\1/
35549 q
35550 }
35551 /^X\/\(\/\/\)$/{
35552 s//\1/
35553 q
35554 }
35555 /^X\/\(\/\).*/{
35556 s//\1/
35557 q
35558 }
35559 s/.*/./; q'`
35560
35561# CDPATH.
35562$as_unset CDPATH
35563
35564
35565
John Criswell7a73b802003-06-30 21:59:07 +000035566 as_lineno_1=$LINENO
35567 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000035568 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000035569 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000035570
35571 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35572 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000035573 # line-number line after each line using $LINENO; the second 'sed'
35574 # does the real work. The second script uses 'N' to pair each
35575 # line-number line with the line containing $LINENO, and appends
35576 # trailing '-' during substitution so that $LINENO is not a special
35577 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000035578 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000035579 # scripts with optimization help from Paolo Bonzini. Blame Lee
35580 # E. McMahon (1931-1989) for sed's syntax. :-)
35581 sed -n '
35582 p
35583 /[$]LINENO/=
35584 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000035585 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000035586 s/[$]LINENO.*/&-/
35587 t lineno
35588 b
35589 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000035590 N
Reid Spencera773bd52006-08-04 18:18:08 +000035591 :loop
35592 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000035593 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000035594 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000035595 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000035596 chmod +x "$as_me.lineno" ||
35597 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000035598 { (exit 1); exit 1; }; }
35599
35600 # Don't try to exec as it changes $[0], causing all sort of problems
35601 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000035602 # original and so on. Autoconf is especially sensitive to this).
35603 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000035604 # Exit status is that of the last command.
35605 exit
35606}
35607
35608
Reid Spencera773bd52006-08-04 18:18:08 +000035609if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35610 as_dirname=dirname
35611else
35612 as_dirname=false
35613fi
35614
35615ECHO_C= ECHO_N= ECHO_T=
35616case `echo -n x` in
35617-n*)
35618 case `echo 'x\c'` in
35619 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35620 *) ECHO_C='\c';;
35621 esac;;
35622*)
35623 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000035624esac
35625
Reid Spencera773bd52006-08-04 18:18:08 +000035626if expr a : '\(a\)' >/dev/null 2>&1 &&
35627 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000035628 as_expr=expr
35629else
35630 as_expr=false
35631fi
35632
35633rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000035634if test -d conf$$.dir; then
35635 rm -f conf$$.dir/conf$$.file
35636else
35637 rm -f conf$$.dir
35638 mkdir conf$$.dir
35639fi
John Criswell7a73b802003-06-30 21:59:07 +000035640echo >conf$$.file
35641if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000035642 as_ln_s='ln -s'
35643 # ... but there are two gotchas:
35644 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35645 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35646 # In both cases, we have to default to `cp -p'.
35647 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000035648 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000035649elif ln conf$$.file conf$$ 2>/dev/null; then
35650 as_ln_s=ln
35651else
35652 as_ln_s='cp -p'
35653fi
Reid Spencera773bd52006-08-04 18:18:08 +000035654rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35655rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000035656
John Criswell0c38eaf2003-09-10 15:17:25 +000035657if mkdir -p . 2>/dev/null; then
35658 as_mkdir_p=:
35659else
Reid Spencer2706f8c2004-09-19 23:53:36 +000035660 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000035661 as_mkdir_p=false
35662fi
35663
Bill Wendlingebcceee2009-04-18 11:20:33 +000035664# Find out whether ``test -x'' works. Don't use a zero-byte file, as
35665# systems may use methods other than mode bits to determine executability.
35666cat >conf$$.file <<_ASEOF
35667#! /bin/sh
35668exit 0
35669_ASEOF
35670chmod +x conf$$.file
35671if test -x conf$$.file >/dev/null 2>&1; then
35672 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000035673else
Bill Wendlingebcceee2009-04-18 11:20:33 +000035674 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000035675fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000035676rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000035677
35678# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035679as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035680
35681# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035682as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035683
35684
John Criswell7a73b802003-06-30 21:59:07 +000035685exec 6>&1
35686
Reid Spencera773bd52006-08-04 18:18:08 +000035687# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000035688# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000035689# values after options handling.
35690ac_log="
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000035691This file was extended by llvm $as_me 2.6svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +000035692generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000035693
35694 CONFIG_FILES = $CONFIG_FILES
35695 CONFIG_HEADERS = $CONFIG_HEADERS
35696 CONFIG_LINKS = $CONFIG_LINKS
35697 CONFIG_COMMANDS = $CONFIG_COMMANDS
35698 $ $0 $@
35699
Reid Spencera773bd52006-08-04 18:18:08 +000035700on `(hostname || uname -n) 2>/dev/null | sed 1q`
35701"
35702
John Criswell7a73b802003-06-30 21:59:07 +000035703_ACEOF
35704
Reid Spencera773bd52006-08-04 18:18:08 +000035705cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035706# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000035707config_files="$ac_config_files"
35708config_headers="$ac_config_headers"
35709config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000035710
Reid Spencera773bd52006-08-04 18:18:08 +000035711_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035712
35713cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035714ac_cs_usage="\
35715\`$as_me' instantiates files from templates according to the
35716current configuration.
35717
35718Usage: $0 [OPTIONS] [FILE]...
35719
35720 -h, --help print this help, then exit
Bill Wendlingebcceee2009-04-18 11:20:33 +000035721 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000035722 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000035723 -d, --debug don't remove temporary files
35724 --recheck update $as_me by reconfiguring in the same conditions
35725 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035726 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000035727 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035728 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000035729
35730Configuration files:
35731$config_files
35732
35733Configuration headers:
35734$config_headers
35735
John Criswellc764fbc2003-09-06 15:17:13 +000035736Configuration commands:
35737$config_commands
35738
John Criswell7a73b802003-06-30 21:59:07 +000035739Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000035740
Reid Spencera773bd52006-08-04 18:18:08 +000035741_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035742cat >>$CONFIG_STATUS <<_ACEOF
35743ac_cs_version="\\
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000035744llvm config.status 2.6svn
Bill Wendlingebcceee2009-04-18 11:20:33 +000035745configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000035746 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000035747
Reid Spencera773bd52006-08-04 18:18:08 +000035748Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000035749This config.status script is free software; the Free Software Foundation
35750gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000035751
35752ac_pwd='$ac_pwd'
35753srcdir='$srcdir'
35754INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000035755_ACEOF
35756
35757cat >>$CONFIG_STATUS <<\_ACEOF
35758# If no file are specified by the user, then we need to provide default
35759# value. By we need to know if files were specified by the user.
35760ac_need_defaults=:
35761while test $# != 0
35762do
35763 case $1 in
35764 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000035765 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35766 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000035767 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000035768 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035769 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000035770 ac_option=$1
35771 ac_optarg=$2
35772 ac_shift=shift
35773 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035774 esac
35775
John Criswell0c38eaf2003-09-10 15:17:25 +000035776 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000035777 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000035778 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35779 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035780 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35781 echo "$ac_cs_version"; exit ;;
35782 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000035783 debug=: ;;
35784 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000035785 $ac_shift
35786 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035787 ac_need_defaults=false;;
35788 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000035789 $ac_shift
35790 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035791 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000035792 --he | --h)
35793 # Conflict between --help and --header
35794 { echo "$as_me: error: ambiguous option: $1
35795Try \`$0 --help' for more information." >&2
35796 { (exit 1); exit 1; }; };;
35797 --help | --hel | -h )
35798 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000035799 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35800 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35801 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000035802
35803 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000035804 -*) { echo "$as_me: error: unrecognized option: $1
35805Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035806 { (exit 1); exit 1; }; } ;;
35807
Reid Spencera773bd52006-08-04 18:18:08 +000035808 *) ac_config_targets="$ac_config_targets $1"
35809 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000035810
35811 esac
35812 shift
35813done
35814
John Criswell0c38eaf2003-09-10 15:17:25 +000035815ac_configure_extra_args=
35816
35817if $ac_cs_silent; then
35818 exec 6>/dev/null
35819 ac_configure_extra_args="$ac_configure_extra_args --silent"
35820fi
35821
35822_ACEOF
35823cat >>$CONFIG_STATUS <<_ACEOF
35824if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000035825 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35826 CONFIG_SHELL=$SHELL
35827 export CONFIG_SHELL
35828 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000035829fi
35830
John Criswell7a73b802003-06-30 21:59:07 +000035831_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035832cat >>$CONFIG_STATUS <<\_ACEOF
35833exec 5>>config.log
35834{
35835 echo
35836 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35837## Running $as_me. ##
35838_ASBOX
35839 echo "$ac_log"
35840} >&5
John Criswell7a73b802003-06-30 21:59:07 +000035841
Reid Spencera773bd52006-08-04 18:18:08 +000035842_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000035843cat >>$CONFIG_STATUS <<_ACEOF
35844#
Reid Spencera773bd52006-08-04 18:18:08 +000035845# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000035846#
Reid Spencerc0682832005-02-24 19:05:19 +000035847llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000035848
35849_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035850
John Criswell7a73b802003-06-30 21:59:07 +000035851cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035852
35853# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000035854for ac_config_target in $ac_config_targets
35855do
Reid Spencera773bd52006-08-04 18:18:08 +000035856 case $ac_config_target in
35857 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000035858 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35859 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035860 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000035861 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035862 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000035863 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035864 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035865 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035866 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35867 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35868 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35869 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35870 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35871 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035872 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035873 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35874 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000035875 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035876 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35877 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35878 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035879 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35880 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035881
John Criswell7a73b802003-06-30 21:59:07 +000035882 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35883echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35884 { (exit 1); exit 1; }; };;
35885 esac
35886done
35887
Reid Spencera773bd52006-08-04 18:18:08 +000035888
John Criswell7a73b802003-06-30 21:59:07 +000035889# If the user did not use the arguments to specify the items to instantiate,
35890# then the envvar interface is used. Set only those that are not.
35891# We use the long form for the default assignment because of an extremely
35892# bizarre bug on SunOS 4.1.3.
35893if $ac_need_defaults; then
35894 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35895 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000035896 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000035897fi
35898
John Criswell0c38eaf2003-09-10 15:17:25 +000035899# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000035900# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000035901# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000035902# Hook for its removal unless debugging.
35903# Note that there is a small window in which the directory will not be cleaned:
35904# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000035905$debug ||
35906{
Reid Spencera773bd52006-08-04 18:18:08 +000035907 tmp=
35908 trap 'exit_status=$?
35909 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35910' 0
John Criswell7a73b802003-06-30 21:59:07 +000035911 trap '{ (exit 1); exit 1; }' 1 2 13 15
35912}
John Criswell7a73b802003-06-30 21:59:07 +000035913# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000035914
John Criswell7a73b802003-06-30 21:59:07 +000035915{
Reid Spencera773bd52006-08-04 18:18:08 +000035916 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000035917 test -n "$tmp" && test -d "$tmp"
35918} ||
35919{
Reid Spencera773bd52006-08-04 18:18:08 +000035920 tmp=./conf$$-$RANDOM
35921 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000035922} ||
35923{
John Criswell0c38eaf2003-09-10 15:17:25 +000035924 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035925 { (exit 1); exit 1; }
35926}
35927
John Criswell7a73b802003-06-30 21:59:07 +000035928#
Reid Spencera773bd52006-08-04 18:18:08 +000035929# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000035930#
35931
35932# No need to generate the scripts if there are no CONFIG_FILES.
35933# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000035934if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000035935
35936_ACEOF
35937
Reid Spencera773bd52006-08-04 18:18:08 +000035938
35939
35940ac_delim='%!_!# '
35941for ac_last_try in false false false false false :; do
35942 cat >conf$$subs.sed <<_ACEOF
35943SHELL!$SHELL$ac_delim
35944PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35945PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35946PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35947PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35948PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35949PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35950exec_prefix!$exec_prefix$ac_delim
35951prefix!$prefix$ac_delim
35952program_transform_name!$program_transform_name$ac_delim
35953bindir!$bindir$ac_delim
35954sbindir!$sbindir$ac_delim
35955libexecdir!$libexecdir$ac_delim
35956datarootdir!$datarootdir$ac_delim
35957datadir!$datadir$ac_delim
35958sysconfdir!$sysconfdir$ac_delim
35959sharedstatedir!$sharedstatedir$ac_delim
35960localstatedir!$localstatedir$ac_delim
35961includedir!$includedir$ac_delim
35962oldincludedir!$oldincludedir$ac_delim
35963docdir!$docdir$ac_delim
35964infodir!$infodir$ac_delim
35965htmldir!$htmldir$ac_delim
35966dvidir!$dvidir$ac_delim
35967pdfdir!$pdfdir$ac_delim
35968psdir!$psdir$ac_delim
35969libdir!$libdir$ac_delim
35970localedir!$localedir$ac_delim
35971mandir!$mandir$ac_delim
35972DEFS!$DEFS$ac_delim
35973ECHO_C!$ECHO_C$ac_delim
35974ECHO_N!$ECHO_N$ac_delim
35975ECHO_T!$ECHO_T$ac_delim
35976LIBS!$LIBS$ac_delim
35977build_alias!$build_alias$ac_delim
35978host_alias!$host_alias$ac_delim
35979target_alias!$target_alias$ac_delim
35980LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35981subdirs!$subdirs$ac_delim
35982build!$build$ac_delim
35983build_cpu!$build_cpu$ac_delim
35984build_vendor!$build_vendor$ac_delim
35985build_os!$build_os$ac_delim
35986host!$host$ac_delim
35987host_cpu!$host_cpu$ac_delim
35988host_vendor!$host_vendor$ac_delim
35989host_os!$host_os$ac_delim
35990target!$target$ac_delim
35991target_cpu!$target_cpu$ac_delim
35992target_vendor!$target_vendor$ac_delim
35993target_os!$target_os$ac_delim
35994OS!$OS$ac_delim
35995LINKALL!$LINKALL$ac_delim
35996NOLINKALL!$NOLINKALL$ac_delim
35997LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35998LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Bill Wendlinga0833352009-03-12 04:10:09 +000035999ARCH!$ARCH$ac_delim
36000ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036001CC!$CC$ac_delim
36002CFLAGS!$CFLAGS$ac_delim
36003LDFLAGS!$LDFLAGS$ac_delim
36004CPPFLAGS!$CPPFLAGS$ac_delim
36005ac_ct_CC!$ac_ct_CC$ac_delim
36006EXEEXT!$EXEEXT$ac_delim
36007OBJEXT!$OBJEXT$ac_delim
36008CPP!$CPP$ac_delim
36009GREP!$GREP$ac_delim
36010EGREP!$EGREP$ac_delim
36011LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36012BUILD_CC!$BUILD_CC$ac_delim
36013BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000036014BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036015CVSBUILD!$CVSBUILD$ac_delim
36016ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000036017ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036018DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000036019ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36020EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000036021DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036022JIT!$JIT$ac_delim
36023TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36024ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36025ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000036026ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036027TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000036028LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36029LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000036030ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036031EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckye792b1d2009-02-03 07:10:30 +000036032BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000036033ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36034ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036035CXX!$CXX$ac_delim
36036CXXFLAGS!$CXXFLAGS$ac_delim
36037ac_ct_CXX!$ac_ct_CXX$ac_delim
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000036038NM!$NM$ac_delim
36039ifGNUmake!$ifGNUmake$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036040_ACEOF
36041
36042 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36043 break
36044 elif $ac_last_try; then
36045 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36046echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36047 { (exit 1); exit 1; }; }
36048 else
36049 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000036050 fi
Reid Spencera773bd52006-08-04 18:18:08 +000036051done
36052
36053ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36054if test -n "$ac_eof"; then
36055 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36056 ac_eof=`expr $ac_eof + 1`
36057fi
36058
36059cat >>$CONFIG_STATUS <<_ACEOF
36060cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36061/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36062_ACEOF
36063sed '
36064s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36065s/^/s,@/; s/!/@,|#_!!_#|/
36066:n
36067t n
36068s/'"$ac_delim"'$/,g/; t
36069s/$/\\/; p
36070N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36071' >>$CONFIG_STATUS <conf$$subs.sed
36072rm -f conf$$subs.sed
36073cat >>$CONFIG_STATUS <<_ACEOF
36074CEOF$ac_eof
36075_ACEOF
36076
36077
36078ac_delim='%!_!# '
36079for ac_last_try in false false false false false :; do
36080 cat >conf$$subs.sed <<_ACEOF
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000036081LN_S!$LN_S$ac_delim
36082CMP!$CMP$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000036083CP!$CP$ac_delim
36084DATE!$DATE$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000036085FIND!$FIND$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036086MKDIR!$MKDIR$ac_delim
36087MV!$MV$ac_delim
36088RANLIB!$RANLIB$ac_delim
36089RM!$RM$ac_delim
36090SED!$SED$ac_delim
36091TAR!$TAR$ac_delim
36092BINPWD!$BINPWD$ac_delim
36093GRAPHVIZ!$GRAPHVIZ$ac_delim
36094DOT!$DOT$ac_delim
David Greenef0b9eff2009-07-09 17:16:26 +000036095FDP!$FDP$ac_delim
36096NEATO!$NEATO$ac_delim
36097TWOPI!$TWOPI$ac_delim
36098CIRCO!$CIRCO$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036099GV!$GV$ac_delim
36100DOTTY!$DOTTY$ac_delim
36101PERL!$PERL$ac_delim
36102HAVE_PERL!$HAVE_PERL$ac_delim
36103INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36104INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36105INSTALL_DATA!$INSTALL_DATA$ac_delim
36106BZIP2!$BZIP2$ac_delim
36107DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036108GROFF!$GROFF$ac_delim
36109GZIP!$GZIP$ac_delim
36110POD2HTML!$POD2HTML$ac_delim
36111POD2MAN!$POD2MAN$ac_delim
36112RUNTEST!$RUNTEST$ac_delim
36113TCLSH!$TCLSH$ac_delim
36114ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000036115OCAMLC!$OCAMLC$ac_delim
36116OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000036117OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000036118OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000036119GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036120INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36121INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36122CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36123CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36124LIBADD_DL!$LIBADD_DL$ac_delim
36125ECHO!$ECHO$ac_delim
36126AR!$AR$ac_delim
36127STRIP!$STRIP$ac_delim
36128CXXCPP!$CXXCPP$ac_delim
36129F77!$F77$ac_delim
36130FFLAGS!$FFLAGS$ac_delim
36131ac_ct_F77!$ac_ct_F77$ac_delim
36132LIBTOOL!$LIBTOOL$ac_delim
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000036133LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36134LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
Douglas Gregor01746742009-05-11 18:05:52 +000036135LLVMGCC!$LLVMGCC$ac_delim
36136LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000036137USE_UDIS86!$USE_UDIS86$ac_delim
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000036138USE_OPROFILE!$USE_OPROFILE$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000036139HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000036140HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036141ALLOCA!$ALLOCA$ac_delim
36142MMAP_FILE!$MMAP_FILE$ac_delim
36143LLVMCC1!$LLVMCC1$ac_delim
36144LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36145LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000036146LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036147LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36148LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000036149LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036150SHLIBEXT!$SHLIBEXT$ac_delim
36151LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36152LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36153LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36154LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36155LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36156LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36157LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36158LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36159LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36160LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000036161BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36162ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000036163OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000036164ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckye9821dc2009-03-03 04:55:29 +000036165RPATH!$RPATH$ac_delim
Nick Lewycky731c6ab2009-03-05 08:20:44 +000036166RDYNAMIC!$RDYNAMIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036167LIBOBJS!$LIBOBJS$ac_delim
36168LTLIBOBJS!$LTLIBOBJS$ac_delim
36169_ACEOF
36170
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000036171 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then
Reid Spencera773bd52006-08-04 18:18:08 +000036172 break
36173 elif $ac_last_try; then
36174 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36175echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36176 { (exit 1); exit 1; }; }
36177 else
36178 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36179 fi
36180done
36181
36182ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36183if test -n "$ac_eof"; then
36184 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36185 ac_eof=`expr $ac_eof + 1`
36186fi
36187
36188cat >>$CONFIG_STATUS <<_ACEOF
36189cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36190/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36191_ACEOF
36192sed '
36193s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36194s/^/s,@/; s/!/@,|#_!!_#|/
36195:n
36196t n
36197s/'"$ac_delim"'$/,g/; t
36198s/$/\\/; p
36199N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36200' >>$CONFIG_STATUS <conf$$subs.sed
36201rm -f conf$$subs.sed
36202cat >>$CONFIG_STATUS <<_ACEOF
36203:end
36204s/|#_!!_#|//g
36205CEOF$ac_eof
36206_ACEOF
36207
36208
36209# VPATH may cause trouble with some makes, so we remove $(srcdir),
36210# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36211# trailing colons and then remove the whole line if VPATH becomes empty
36212# (actually we leave an empty line to preserve line numbers).
36213if test "x$srcdir" = x.; then
36214 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36215s/:*\$(srcdir):*/:/
36216s/:*\${srcdir}:*/:/
36217s/:*@srcdir@:*/:/
36218s/^\([^=]*=[ ]*\):*/\1/
36219s/:*$//
36220s/^[^=]*=[ ]*$//
36221}'
36222fi
36223
36224cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000036225fi # test -n "$CONFIG_FILES"
36226
Reid Spencera773bd52006-08-04 18:18:08 +000036227
36228for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36229do
36230 case $ac_tag in
36231 :[FHLC]) ac_mode=$ac_tag; continue;;
36232 esac
36233 case $ac_mode$ac_tag in
36234 :[FHL]*:*);;
36235 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36236echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36237 { (exit 1); exit 1; }; };;
36238 :[FH]-) ac_tag=-:-;;
36239 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36240 esac
36241 ac_save_IFS=$IFS
36242 IFS=:
36243 set x $ac_tag
36244 IFS=$ac_save_IFS
36245 shift
36246 ac_file=$1
36247 shift
36248
36249 case $ac_mode in
36250 :L) ac_source=$1;;
36251 :[FH])
36252 ac_file_inputs=
36253 for ac_f
36254 do
36255 case $ac_f in
36256 -) ac_f="$tmp/stdin";;
36257 *) # Look for the file first in the build tree, then in the source tree
36258 # (if the path is not absolute). The absolute path cannot be DOS-style,
36259 # because $ac_f cannot contain `:'.
36260 test -f "$ac_f" ||
36261 case $ac_f in
36262 [\\/$]*) false;;
36263 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36264 esac ||
36265 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36266echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36267 { (exit 1); exit 1; }; };;
36268 esac
36269 ac_file_inputs="$ac_file_inputs $ac_f"
36270 done
36271
36272 # Let's still pretend it is `configure' which instantiates (i.e., don't
36273 # use $as_me), people would be surprised to read:
36274 # /* config.h. Generated by config.status. */
36275 configure_input="Generated from "`IFS=:
36276 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36277 if test x"$ac_file" != x-; then
36278 configure_input="$ac_file. $configure_input"
36279 { echo "$as_me:$LINENO: creating $ac_file" >&5
36280echo "$as_me: creating $ac_file" >&6;}
36281 fi
36282
36283 case $ac_tag in
36284 *:-:* | *:-) cat >"$tmp/stdin";;
36285 esac
36286 ;;
John Criswell7a73b802003-06-30 21:59:07 +000036287 esac
36288
Reid Spencera773bd52006-08-04 18:18:08 +000036289 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000036290$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036291 X"$ac_file" : 'X\(//\)[^/]' \| \
36292 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036293 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000036294echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000036295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36296 s//\1/
36297 q
36298 }
36299 /^X\(\/\/\)[^/].*/{
36300 s//\1/
36301 q
36302 }
36303 /^X\(\/\/\)$/{
36304 s//\1/
36305 q
36306 }
36307 /^X\(\/\).*/{
36308 s//\1/
36309 q
36310 }
36311 s/.*/./; q'`
36312 { as_dir="$ac_dir"
36313 case $as_dir in #(
36314 -*) as_dir=./$as_dir;;
36315 esac
36316 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000036317 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036318 while :; do
36319 case $as_dir in #(
36320 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36321 *) as_qdir=$as_dir;;
36322 esac
36323 as_dirs="'$as_qdir' $as_dirs"
36324 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000036325$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036326 X"$as_dir" : 'X\(//\)[^/]' \| \
36327 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036328 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000036329echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36331 s//\1/
36332 q
36333 }
36334 /^X\(\/\/\)[^/].*/{
36335 s//\1/
36336 q
36337 }
36338 /^X\(\/\/\)$/{
36339 s//\1/
36340 q
36341 }
36342 /^X\(\/\).*/{
36343 s//\1/
36344 q
36345 }
36346 s/.*/./; q'`
36347 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000036348 done
Reid Spencera773bd52006-08-04 18:18:08 +000036349 test -z "$as_dirs" || eval "mkdir $as_dirs"
36350 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36351echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000036352 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000036353 ac_builddir=.
36354
Reid Spencera773bd52006-08-04 18:18:08 +000036355case "$ac_dir" in
36356.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36357*)
John Criswell7a73b802003-06-30 21:59:07 +000036358 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036359 # A ".." for each directory in $ac_dir_suffix.
36360 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36361 case $ac_top_builddir_sub in
36362 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36363 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36364 esac ;;
36365esac
36366ac_abs_top_builddir=$ac_pwd
36367ac_abs_builddir=$ac_pwd$ac_dir_suffix
36368# for backward compatibility:
36369ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000036370
36371case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036372 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000036373 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036374 ac_top_srcdir=$ac_top_builddir_sub
36375 ac_abs_top_srcdir=$ac_pwd ;;
36376 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000036377 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036378 ac_top_srcdir=$srcdir
36379 ac_abs_top_srcdir=$srcdir ;;
36380 *) # Relative name.
36381 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36382 ac_top_srcdir=$ac_top_build_prefix$srcdir
36383 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000036384esac
Reid Spencera773bd52006-08-04 18:18:08 +000036385ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000036386
John Criswell7a73b802003-06-30 21:59:07 +000036387
Reid Spencera773bd52006-08-04 18:18:08 +000036388 case $ac_mode in
36389 :F)
36390 #
36391 # CONFIG_FILE
36392 #
John Criswell7a73b802003-06-30 21:59:07 +000036393
36394 case $INSTALL in
36395 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036396 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000036397 esac
John Criswell7a73b802003-06-30 21:59:07 +000036398_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036399
36400cat >>$CONFIG_STATUS <<\_ACEOF
36401# If the template does not know about datarootdir, expand it.
36402# FIXME: This hack should be removed a few years after 2.60.
36403ac_datarootdir_hack=; ac_datarootdir_seen=
36404
36405case `sed -n '/datarootdir/ {
36406 p
36407 q
36408}
36409/@datadir@/p
36410/@docdir@/p
36411/@infodir@/p
36412/@localedir@/p
36413/@mandir@/p
36414' $ac_file_inputs` in
36415*datarootdir*) ac_datarootdir_seen=yes;;
36416*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36417 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36418echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36419_ACEOF
36420cat >>$CONFIG_STATUS <<_ACEOF
36421 ac_datarootdir_hack='
36422 s&@datadir@&$datadir&g
36423 s&@docdir@&$docdir&g
36424 s&@infodir@&$infodir&g
36425 s&@localedir@&$localedir&g
36426 s&@mandir@&$mandir&g
36427 s&\\\${datarootdir}&$datarootdir&g' ;;
36428esac
36429_ACEOF
36430
36431# Neutralize VPATH when `$srcdir' = `.'.
36432# Shell code in configure.ac might set extrasub.
36433# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000036434cat >>$CONFIG_STATUS <<_ACEOF
36435 sed "$ac_vpsub
36436$extrasub
36437_ACEOF
36438cat >>$CONFIG_STATUS <<\_ACEOF
36439:t
36440/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000036441s&@configure_input@&$configure_input&;t t
36442s&@top_builddir@&$ac_top_builddir_sub&;t t
36443s&@srcdir@&$ac_srcdir&;t t
36444s&@abs_srcdir@&$ac_abs_srcdir&;t t
36445s&@top_srcdir@&$ac_top_srcdir&;t t
36446s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36447s&@builddir@&$ac_builddir&;t t
36448s&@abs_builddir@&$ac_abs_builddir&;t t
36449s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36450s&@INSTALL@&$ac_INSTALL&;t t
36451$ac_datarootdir_hack
36452" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000036453
Reid Spencera773bd52006-08-04 18:18:08 +000036454test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36455 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36456 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36457 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36458which seems to be undefined. Please make sure it is defined." >&5
36459echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36460which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000036461
Reid Spencera773bd52006-08-04 18:18:08 +000036462 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000036463 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000036464 -) cat "$tmp/out"; rm -f "$tmp/out";;
36465 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000036466 esac
Reid Spencera773bd52006-08-04 18:18:08 +000036467 ;;
36468 :H)
36469 #
36470 # CONFIG_HEADER
36471 #
John Criswell7a73b802003-06-30 21:59:07 +000036472_ACEOF
36473
Reid Spencera773bd52006-08-04 18:18:08 +000036474# Transform confdefs.h into a sed script `conftest.defines', that
36475# substitutes the proper values into config.h.in to produce config.h.
36476rm -f conftest.defines conftest.tail
36477# First, append a space to every undef/define line, to ease matching.
36478echo 's/$/ /' >conftest.defines
36479# Then, protect against being on the right side of a sed subst, or in
36480# an unquoted here document, in config.status. If some macros were
36481# called several times there might be several #defines for the same
36482# symbol, which is useless. But do not sort them, since the last
36483# AC_DEFINE must be honored.
36484ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36485# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36486# NAME is the cpp macro being defined, VALUE is the value it is being given.
36487# PARAMS is the parameter list in the macro definition--in most cases, it's
36488# just an empty string.
36489ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36490ac_dB='\\)[ (].*,\\1define\\2'
36491ac_dC=' '
36492ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000036493
Reid Spencera773bd52006-08-04 18:18:08 +000036494uniq confdefs.h |
36495 sed -n '
36496 t rset
36497 :rset
36498 s/^[ ]*#[ ]*define[ ][ ]*//
36499 t ok
36500 d
36501 :ok
36502 s/[\\&,]/\\&/g
36503 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36504 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36505 ' >>conftest.defines
36506
36507# Remove the space that was appended to ease matching.
36508# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000036509# example, in the case of _POSIX_SOURCE, which is predefined and required
36510# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000036511# (The regexp can be short, since the line contains either #define or #undef.)
36512echo 's/ $//
36513s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000036514
Reid Spencera773bd52006-08-04 18:18:08 +000036515# Break up conftest.defines:
36516ac_max_sed_lines=50
36517
36518# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36519# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36520# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36521# et cetera.
36522ac_in='$ac_file_inputs'
36523ac_out='"$tmp/out1"'
36524ac_nxt='"$tmp/out2"'
36525
36526while :
John Criswell7a73b802003-06-30 21:59:07 +000036527do
Reid Spencera773bd52006-08-04 18:18:08 +000036528 # Write a here document:
36529 cat >>$CONFIG_STATUS <<_ACEOF
36530 # First, check the format of the line:
36531 cat >"\$tmp/defines.sed" <<\\CEOF
36532/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36533/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36534b
36535:def
36536_ACEOF
36537 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036538 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036539 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36540 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36541 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36542 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000036543 rm -f conftest.defines
36544 mv conftest.tail conftest.defines
36545done
Reid Spencera773bd52006-08-04 18:18:08 +000036546rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000036547
Reid Spencera773bd52006-08-04 18:18:08 +000036548echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036549cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000036550 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000036551 echo "/* $configure_input */" >"$tmp/config.h"
36552 cat "$ac_result" >>"$tmp/config.h"
36553 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000036554 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36555echo "$as_me: $ac_file is unchanged" >&6;}
36556 else
John Criswell7a73b802003-06-30 21:59:07 +000036557 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000036558 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000036559 fi
36560 else
Reid Spencera773bd52006-08-04 18:18:08 +000036561 echo "/* $configure_input */"
36562 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000036563 fi
Reid Spencera773bd52006-08-04 18:18:08 +000036564 rm -f "$tmp/out12"
36565 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036566
Reid Spencera773bd52006-08-04 18:18:08 +000036567 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36568echo "$as_me: executing $ac_file commands" >&6;}
36569 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036570 esac
John Criswell7a73b802003-06-30 21:59:07 +000036571
Reid Spencera773bd52006-08-04 18:18:08 +000036572
36573 case $ac_file$ac_mode in
36574 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36575 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
36576 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36577 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
36578 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36579 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
36580 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36581 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000036582 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36583 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036584 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36585 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
36586 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36587 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000036588 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36589 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036590 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36591 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
36592 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36593 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
36594 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36595 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000036596 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36597 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36598 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36599 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036600
36601 esac
36602done # for ac_tag
36603
John Criswell7a73b802003-06-30 21:59:07 +000036604
36605{ (exit 0); exit 0; }
36606_ACEOF
36607chmod +x $CONFIG_STATUS
36608ac_clean_files=$ac_clean_files_save
36609
36610
36611# configure is writing to config.log, and then calls config.status.
36612# config.status does its own redirection, appending to config.log.
36613# Unfortunately, on DOS this fails, as config.log is still kept open
36614# by configure, so config.status won't be able to write to it; its
36615# output is simply discarded. So we exec the FD to /dev/null,
36616# effectively closing config.log, so it can be properly (re)opened and
36617# appended to by config.status. When coming back to configure, we
36618# need to make the FD available again.
36619if test "$no_create" != yes; then
36620 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000036621 ac_config_status_args=
36622 test "$silent" = yes &&
36623 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000036624 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000036625 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000036626 exec 5>>config.log
36627 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36628 # would make configure fail if this is the last instruction.
36629 $ac_cs_success || { (exit 1); exit 1; }
36630fi
36631
John Criswell12399a12003-09-30 15:55:44 +000036632#
36633# CONFIG_SUBDIRS section.
36634#
36635if test "$no_recursion" != yes; then
36636
36637 # Remove --cache-file and --srcdir arguments so they do not pile up.
36638 ac_sub_configure_args=
36639 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000036640 eval "set x $ac_configure_args"
36641 shift
36642 for ac_arg
36643 do
John Criswell12399a12003-09-30 15:55:44 +000036644 if test -n "$ac_prev"; then
36645 ac_prev=
36646 continue
36647 fi
36648 case $ac_arg in
36649 -cache-file | --cache-file | --cache-fil | --cache-fi \
36650 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36651 ac_prev=cache_file ;;
36652 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36653 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36654 | --c=*)
36655 ;;
36656 --config-cache | -C)
36657 ;;
36658 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36659 ac_prev=srcdir ;;
36660 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36661 ;;
36662 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36663 ac_prev=prefix ;;
36664 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36665 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036666 *)
36667 case $ac_arg in
36668 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36669 esac
36670 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000036671 esac
36672 done
36673
36674 # Always prepend --prefix to ensure using the same prefix
36675 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000036676 ac_arg="--prefix=$prefix"
36677 case $ac_arg in
36678 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36679 esac
Bill Wendlingebcceee2009-04-18 11:20:33 +000036680 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000036681
36682 ac_popdir=`pwd`
36683 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36684
36685 # Do not complain, so a configure script can configure whichever
36686 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000036687 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000036688
Reid Spencera773bd52006-08-04 18:18:08 +000036689 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36690 echo "$as_me:$LINENO: $ac_msg" >&5
36691 echo "$ac_msg" >&6
36692 { as_dir="$ac_dir"
36693 case $as_dir in #(
36694 -*) as_dir=./$as_dir;;
36695 esac
36696 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000036697 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036698 while :; do
36699 case $as_dir in #(
36700 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36701 *) as_qdir=$as_dir;;
36702 esac
36703 as_dirs="'$as_qdir' $as_dirs"
36704 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000036705$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036706 X"$as_dir" : 'X\(//\)[^/]' \| \
36707 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036708 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000036709echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36711 s//\1/
36712 q
36713 }
36714 /^X\(\/\/\)[^/].*/{
36715 s//\1/
36716 q
36717 }
36718 /^X\(\/\/\)$/{
36719 s//\1/
36720 q
36721 }
36722 /^X\(\/\).*/{
36723 s//\1/
36724 q
36725 }
36726 s/.*/./; q'`
36727 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000036728 done
Reid Spencera773bd52006-08-04 18:18:08 +000036729 test -z "$as_dirs" || eval "mkdir $as_dirs"
36730 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36731echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000036732 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000036733 ac_builddir=.
36734
Reid Spencera773bd52006-08-04 18:18:08 +000036735case "$ac_dir" in
36736.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36737*)
John Criswell12399a12003-09-30 15:55:44 +000036738 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036739 # A ".." for each directory in $ac_dir_suffix.
36740 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36741 case $ac_top_builddir_sub in
36742 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36743 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36744 esac ;;
36745esac
36746ac_abs_top_builddir=$ac_pwd
36747ac_abs_builddir=$ac_pwd$ac_dir_suffix
36748# for backward compatibility:
36749ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000036750
36751case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036752 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000036753 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036754 ac_top_srcdir=$ac_top_builddir_sub
36755 ac_abs_top_srcdir=$ac_pwd ;;
36756 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000036757 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036758 ac_top_srcdir=$srcdir
36759 ac_abs_top_srcdir=$srcdir ;;
36760 *) # Relative name.
36761 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36762 ac_top_srcdir=$ac_top_build_prefix$srcdir
36763 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000036764esac
Reid Spencera773bd52006-08-04 18:18:08 +000036765ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000036766
36767
Reid Spencera773bd52006-08-04 18:18:08 +000036768 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000036769
36770 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000036771 if test -f "$ac_srcdir/configure.gnu"; then
36772 ac_sub_configure=$ac_srcdir/configure.gnu
36773 elif test -f "$ac_srcdir/configure"; then
36774 ac_sub_configure=$ac_srcdir/configure
36775 elif test -f "$ac_srcdir/configure.in"; then
36776 # This should be Cygnus configure.
36777 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000036778 else
36779 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36780echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36781 ac_sub_configure=
36782 fi
36783
36784 # The recursion is here.
36785 if test -n "$ac_sub_configure"; then
36786 # Make the cache file name correct relative to the subdirectory.
36787 case $cache_file in
36788 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036789 *) # Relative name.
36790 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000036791 esac
36792
Reid Spencera773bd52006-08-04 18:18:08 +000036793 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36794echo "$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 +000036795 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000036796 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36797 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000036798 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000036799echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36800 { (exit 1); exit 1; }; }
36801 fi
36802
Reid Spencera773bd52006-08-04 18:18:08 +000036803 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000036804 done
36805fi
36806