blob: 6d0aef781e1e0a51c05325ae468325cc18a55875 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattner953042b2009-08-22 04:37:30 +00003# Generated by GNU Autoconf 2.60 for llvm 2.7svn.
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 Lattnerc2264592009-08-22 21:01:26 +000012# Copyright (c) 2003-2009 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 Lattner953042b2009-08-22 04:37:30 +0000718PACKAGE_VERSION='2.7svn'
719PACKAGE_STRING='llvm 2.7svn'
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
Anton Korobeynikov0855f102009-08-18 00:40:51 +0000811HOST_OS
812TARGET_OS
Reid Spencera773bd52006-08-04 18:18:08 +0000813LINKALL
814NOLINKALL
815LLVM_ON_UNIX
816LLVM_ON_WIN32
Nick Lewycky83fc4472009-09-29 05:48:51 +0000817ARCH
818ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +0000819CC
820CFLAGS
821LDFLAGS
822CPPFLAGS
823ac_ct_CC
824EXEEXT
825OBJEXT
826CPP
827GREP
828EGREP
829LLVM_CROSS_COMPILING
830BUILD_CC
831BUILD_EXEEXT
Jim Grosbach673612e2008-10-02 22:56:44 +0000832BUILD_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000833CVSBUILD
834ENABLE_OPTIMIZED
David Greene2a5a12c2009-04-17 14:50:39 +0000835ENABLE_PROFILING
Reid Spencera773bd52006-08-04 18:18:08 +0000836DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000837ENABLE_EXPENSIVE_CHECKS
838EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000839DEBUG_RUNTIME
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +0000840DEBUG_SYMBOLS
Reid Spencera773bd52006-08-04 18:18:08 +0000841JIT
842TARGET_HAS_JIT
843ENABLE_DOXYGEN
844ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000845ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000846TARGETS_TO_BUILD
Douglas Gregor1555a232009-06-16 20:12:29 +0000847LLVM_ENUM_TARGETS
848LLVM_ENUM_ASM_PRINTERS
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +0000849LLVM_ENUM_ASM_PARSERS
Reid Spencer65c5d752006-11-05 17:08:18 +0000850ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000851EXTRA_OPTIONS
Nick Lewyckye792b1d2009-02-03 07:10:30 +0000852BINUTILS_INCDIR
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +0000853ENABLE_LLVMC_DYNAMIC
854ENABLE_LLVMC_DYNAMIC_PLUGINS
Reid Spencera773bd52006-08-04 18:18:08 +0000855CXX
856CXXFLAGS
857ac_ct_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000858NM
859ifGNUmake
860LN_S
861CMP
862CP
863DATE
864FIND
865MKDIR
866MV
867RANLIB
868RM
869SED
870TAR
871BINPWD
872GRAPHVIZ
873DOT
David Greenef0b9eff2009-07-09 17:16:26 +0000874FDP
875NEATO
876TWOPI
877CIRCO
Reid Spencera773bd52006-08-04 18:18:08 +0000878GV
879DOTTY
880PERL
881HAVE_PERL
882INSTALL_PROGRAM
883INSTALL_SCRIPT
884INSTALL_DATA
885BZIP2
886DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000887GROFF
888GZIP
889POD2HTML
890POD2MAN
891RUNTEST
892TCLSH
893ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000894OCAMLC
895OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000896OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000897OCAMLDOC
Torok Edwincc499a42008-10-22 09:56:27 +0000898GAS
Reid Spencera773bd52006-08-04 18:18:08 +0000899INSTALL_LTDL_TRUE
900INSTALL_LTDL_FALSE
901CONVENIENCE_LTDL_TRUE
902CONVENIENCE_LTDL_FALSE
903LIBADD_DL
904ECHO
905AR
906STRIP
907CXXCPP
908F77
909FFLAGS
910ac_ct_F77
911LIBTOOL
Mikhail Glushenkov4558f482009-04-21 19:46:10 +0000912LLVMGCCCOMMAND
913LLVMGXXCOMMAND
Douglas Gregor01746742009-05-11 18:05:52 +0000914LLVMGCC
915LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000916USE_UDIS86
Jeffrey Yasskina93e7702009-07-10 21:09:55 +0000917USE_OPROFILE
Reid Spencer1000b732006-12-01 00:37:14 +0000918HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000919HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000920ALLOCA
921MMAP_FILE
922LLVMCC1
923LLVMCC1PLUS
924LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000925LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000926LLVMGCC_VERSION
927LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000928LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000929SHLIBEXT
930LLVM_PREFIX
931LLVM_BINDIR
932LLVM_LIBDIR
933LLVM_DATADIR
934LLVM_DOCSDIR
935LLVM_ETCDIR
936LLVM_INCLUDEDIR
937LLVM_INFODIR
938LLVM_MANDIR
939LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000940BINDINGS_TO_BUILD
941ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000942OCAML_LIBDIR
Daniel Dunbardcf114e2008-08-30 01:16:19 +0000943ENABLE_VISIBILITY_INLINES_HIDDEN
Nick Lewyckye9821dc2009-03-03 04:55:29 +0000944RPATH
Nick Lewycky731c6ab2009-03-05 08:20:44 +0000945RDYNAMIC
Reid Spencera773bd52006-08-04 18:18:08 +0000946LIBOBJS
947LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000948ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000949 ac_precious_vars='build_alias
950host_alias
951target_alias
952CC
953CFLAGS
954LDFLAGS
955CPPFLAGS
956CPP
957CXX
958CXXFLAGS
959CCC
Reid Spencera773bd52006-08-04 18:18:08 +0000960CXXCPP
961F77
962FFLAGS'
963ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000964projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000965projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000966projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000967projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000968projects/llvm-reopt
969projects/llvm-gcc
970projects/llvm-java
971projects/llvm-tv
972projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000973projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000974projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000975
976# Initialize some variables set by options.
977ac_init_help=
978ac_init_version=false
979# The variables have the same names as the options, with
980# dashes changed to underlines.
981cache_file=/dev/null
982exec_prefix=NONE
983no_create=
984no_recursion=
985prefix=NONE
986program_prefix=NONE
987program_suffix=NONE
988program_transform_name=s,x,x,
989silent=
990site=
991srcdir=
992verbose=
993x_includes=NONE
994x_libraries=NONE
995
996# Installation directory options.
997# These are left unexpanded so users can "make install exec_prefix=/foo"
998# and all the variables that are supposed to be based on exec_prefix
999# by default will actually change.
1000# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +00001001# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +00001002bindir='${exec_prefix}/bin'
1003sbindir='${exec_prefix}/sbin'
1004libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +00001005datarootdir='${prefix}/share'
1006datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +00001007sysconfdir='${prefix}/etc'
1008sharedstatedir='${prefix}/com'
1009localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +00001010includedir='${prefix}/include'
1011oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +00001012docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1013infodir='${datarootdir}/info'
1014htmldir='${docdir}'
1015dvidir='${docdir}'
1016pdfdir='${docdir}'
1017psdir='${docdir}'
1018libdir='${exec_prefix}/lib'
1019localedir='${datarootdir}/locale'
1020mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001021
1022ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001023ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001024for ac_option
1025do
1026 # If the previous option needs an argument, assign it.
1027 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001028 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001029 ac_prev=
1030 continue
1031 fi
1032
Reid Spencera773bd52006-08-04 18:18:08 +00001033 case $ac_option in
1034 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1035 *) ac_optarg=yes ;;
1036 esac
John Criswell7a73b802003-06-30 21:59:07 +00001037
1038 # Accept the important Cygnus configure options, so we can diagnose typos.
1039
Reid Spencera773bd52006-08-04 18:18:08 +00001040 case $ac_dashdash$ac_option in
1041 --)
1042 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001043
1044 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1045 ac_prev=bindir ;;
1046 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1047 bindir=$ac_optarg ;;
1048
1049 -build | --build | --buil | --bui | --bu)
1050 ac_prev=build_alias ;;
1051 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1052 build_alias=$ac_optarg ;;
1053
1054 -cache-file | --cache-file | --cache-fil | --cache-fi \
1055 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1056 ac_prev=cache_file ;;
1057 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1058 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1059 cache_file=$ac_optarg ;;
1060
1061 --config-cache | -C)
1062 cache_file=config.cache ;;
1063
Reid Spencera773bd52006-08-04 18:18:08 +00001064 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001065 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001066 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001067 datadir=$ac_optarg ;;
1068
Reid Spencera773bd52006-08-04 18:18:08 +00001069 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1070 | --dataroo | --dataro | --datar)
1071 ac_prev=datarootdir ;;
1072 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1073 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1074 datarootdir=$ac_optarg ;;
1075
John Criswell7a73b802003-06-30 21:59:07 +00001076 -disable-* | --disable-*)
1077 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001079 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001080 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1081 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001082 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001083 eval enable_$ac_feature=no ;;
1084
1085 -docdir | --docdir | --docdi | --doc | --do)
1086 ac_prev=docdir ;;
1087 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1088 docdir=$ac_optarg ;;
1089
1090 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1091 ac_prev=dvidir ;;
1092 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1093 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001094
1095 -enable-* | --enable-*)
1096 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001098 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001099 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1100 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001101 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001102 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001103
1104 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1105 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1106 | --exec | --exe | --ex)
1107 ac_prev=exec_prefix ;;
1108 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1109 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1110 | --exec=* | --exe=* | --ex=*)
1111 exec_prefix=$ac_optarg ;;
1112
1113 -gas | --gas | --ga | --g)
1114 # Obsolete; use --with-gas.
1115 with_gas=yes ;;
1116
1117 -help | --help | --hel | --he | -h)
1118 ac_init_help=long ;;
1119 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1120 ac_init_help=recursive ;;
1121 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1122 ac_init_help=short ;;
1123
1124 -host | --host | --hos | --ho)
1125 ac_prev=host_alias ;;
1126 -host=* | --host=* | --hos=* | --ho=*)
1127 host_alias=$ac_optarg ;;
1128
Reid Spencera773bd52006-08-04 18:18:08 +00001129 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1130 ac_prev=htmldir ;;
1131 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1132 | --ht=*)
1133 htmldir=$ac_optarg ;;
1134
John Criswell7a73b802003-06-30 21:59:07 +00001135 -includedir | --includedir | --includedi | --included | --include \
1136 | --includ | --inclu | --incl | --inc)
1137 ac_prev=includedir ;;
1138 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1139 | --includ=* | --inclu=* | --incl=* | --inc=*)
1140 includedir=$ac_optarg ;;
1141
1142 -infodir | --infodir | --infodi | --infod | --info | --inf)
1143 ac_prev=infodir ;;
1144 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1145 infodir=$ac_optarg ;;
1146
1147 -libdir | --libdir | --libdi | --libd)
1148 ac_prev=libdir ;;
1149 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1150 libdir=$ac_optarg ;;
1151
1152 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1153 | --libexe | --libex | --libe)
1154 ac_prev=libexecdir ;;
1155 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1156 | --libexe=* | --libex=* | --libe=*)
1157 libexecdir=$ac_optarg ;;
1158
Reid Spencera773bd52006-08-04 18:18:08 +00001159 -localedir | --localedir | --localedi | --localed | --locale)
1160 ac_prev=localedir ;;
1161 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1162 localedir=$ac_optarg ;;
1163
John Criswell7a73b802003-06-30 21:59:07 +00001164 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001165 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001166 ac_prev=localstatedir ;;
1167 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001168 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001169 localstatedir=$ac_optarg ;;
1170
1171 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1172 ac_prev=mandir ;;
1173 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1174 mandir=$ac_optarg ;;
1175
1176 -nfp | --nfp | --nf)
1177 # Obsolete; use --without-fp.
1178 with_fp=no ;;
1179
1180 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1181 | --no-cr | --no-c | -n)
1182 no_create=yes ;;
1183
1184 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1185 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1186 no_recursion=yes ;;
1187
1188 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1189 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1190 | --oldin | --oldi | --old | --ol | --o)
1191 ac_prev=oldincludedir ;;
1192 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1193 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1194 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1195 oldincludedir=$ac_optarg ;;
1196
1197 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1198 ac_prev=prefix ;;
1199 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1200 prefix=$ac_optarg ;;
1201
1202 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1203 | --program-pre | --program-pr | --program-p)
1204 ac_prev=program_prefix ;;
1205 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1206 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1207 program_prefix=$ac_optarg ;;
1208
1209 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1210 | --program-suf | --program-su | --program-s)
1211 ac_prev=program_suffix ;;
1212 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1213 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1214 program_suffix=$ac_optarg ;;
1215
1216 -program-transform-name | --program-transform-name \
1217 | --program-transform-nam | --program-transform-na \
1218 | --program-transform-n | --program-transform- \
1219 | --program-transform | --program-transfor \
1220 | --program-transfo | --program-transf \
1221 | --program-trans | --program-tran \
1222 | --progr-tra | --program-tr | --program-t)
1223 ac_prev=program_transform_name ;;
1224 -program-transform-name=* | --program-transform-name=* \
1225 | --program-transform-nam=* | --program-transform-na=* \
1226 | --program-transform-n=* | --program-transform-=* \
1227 | --program-transform=* | --program-transfor=* \
1228 | --program-transfo=* | --program-transf=* \
1229 | --program-trans=* | --program-tran=* \
1230 | --progr-tra=* | --program-tr=* | --program-t=*)
1231 program_transform_name=$ac_optarg ;;
1232
Reid Spencera773bd52006-08-04 18:18:08 +00001233 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1234 ac_prev=pdfdir ;;
1235 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1236 pdfdir=$ac_optarg ;;
1237
1238 -psdir | --psdir | --psdi | --psd | --ps)
1239 ac_prev=psdir ;;
1240 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1241 psdir=$ac_optarg ;;
1242
John Criswell7a73b802003-06-30 21:59:07 +00001243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244 | -silent | --silent | --silen | --sile | --sil)
1245 silent=yes ;;
1246
1247 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1248 ac_prev=sbindir ;;
1249 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1250 | --sbi=* | --sb=*)
1251 sbindir=$ac_optarg ;;
1252
1253 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1254 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1255 | --sharedst | --shareds | --shared | --share | --shar \
1256 | --sha | --sh)
1257 ac_prev=sharedstatedir ;;
1258 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1259 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1260 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1261 | --sha=* | --sh=*)
1262 sharedstatedir=$ac_optarg ;;
1263
1264 -site | --site | --sit)
1265 ac_prev=site ;;
1266 -site=* | --site=* | --sit=*)
1267 site=$ac_optarg ;;
1268
1269 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1270 ac_prev=srcdir ;;
1271 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1272 srcdir=$ac_optarg ;;
1273
1274 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1275 | --syscon | --sysco | --sysc | --sys | --sy)
1276 ac_prev=sysconfdir ;;
1277 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1278 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1279 sysconfdir=$ac_optarg ;;
1280
1281 -target | --target | --targe | --targ | --tar | --ta | --t)
1282 ac_prev=target_alias ;;
1283 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1284 target_alias=$ac_optarg ;;
1285
1286 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1287 verbose=yes ;;
1288
1289 -version | --version | --versio | --versi | --vers | -V)
1290 ac_init_version=: ;;
1291
1292 -with-* | --with-*)
1293 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1294 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001295 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001296 { echo "$as_me: error: invalid package name: $ac_package" >&2
1297 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001298 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001299 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001300
1301 -without-* | --without-*)
1302 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001304 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001305 { echo "$as_me: error: invalid package name: $ac_package" >&2
1306 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001307 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001308 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001309
1310 --x)
1311 # Obsolete; use --with-x.
1312 with_x=yes ;;
1313
1314 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315 | --x-incl | --x-inc | --x-in | --x-i)
1316 ac_prev=x_includes ;;
1317 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1319 x_includes=$ac_optarg ;;
1320
1321 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323 ac_prev=x_libraries ;;
1324 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1326 x_libraries=$ac_optarg ;;
1327
1328 -*) { echo "$as_me: error: unrecognized option: $ac_option
1329Try \`$0 --help' for more information." >&2
1330 { (exit 1); exit 1; }; }
1331 ;;
1332
1333 *=*)
1334 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335 # Reject names that are not valid shell variable names.
1336 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1337 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1338 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001339 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001340 export $ac_envvar ;;
1341
1342 *)
1343 # FIXME: should be removed in autoconf 3.0.
1344 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1348 ;;
1349
1350 esac
1351done
1352
1353if test -n "$ac_prev"; then
1354 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1355 { echo "$as_me: error: missing argument to $ac_option" >&2
1356 { (exit 1); exit 1; }; }
1357fi
1358
Reid Spencera773bd52006-08-04 18:18:08 +00001359# Be sure to have absolute directory names.
1360for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1361 datadir sysconfdir sharedstatedir localstatedir includedir \
1362 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1363 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001364do
Reid Spencera773bd52006-08-04 18:18:08 +00001365 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001366 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001367 [\\/$]* | ?:[\\/]* ) continue;;
1368 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001369 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001370 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1371 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001372done
1373
1374# There might be people who depend on the old broken behavior: `$host'
1375# used to hold the argument of --host etc.
1376# FIXME: To remove some day.
1377build=$build_alias
1378host=$host_alias
1379target=$target_alias
1380
1381# FIXME: To remove some day.
1382if test "x$host_alias" != x; then
1383 if test "x$build_alias" = x; then
1384 cross_compiling=maybe
1385 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1386 If a cross compiler is detected then cross compile mode will be used." >&2
1387 elif test "x$build_alias" != "x$host_alias"; then
1388 cross_compiling=yes
1389 fi
1390fi
1391
1392ac_tool_prefix=
1393test -n "$host_alias" && ac_tool_prefix=$host_alias-
1394
1395test "$silent" = yes && exec 6>/dev/null
1396
1397
Reid Spencera773bd52006-08-04 18:18:08 +00001398ac_pwd=`pwd` && test -n "$ac_pwd" &&
1399ac_ls_di=`ls -di .` &&
1400ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1401 { echo "$as_me: error: Working directory cannot be determined" >&2
1402 { (exit 1); exit 1; }; }
1403test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1404 { echo "$as_me: error: pwd does not report name of working directory" >&2
1405 { (exit 1); exit 1; }; }
1406
1407
John Criswell7a73b802003-06-30 21:59:07 +00001408# Find the source files, if location was not specified.
1409if test -z "$srcdir"; then
1410 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001411 # Try the directory containing this script, then the parent directory.
1412 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001413$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001414 X"$0" : 'X\(//\)[^/]' \| \
1415 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001417echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1419 s//\1/
1420 q
1421 }
1422 /^X\(\/\/\)[^/].*/{
1423 s//\1/
1424 q
1425 }
1426 /^X\(\/\/\)$/{
1427 s//\1/
1428 q
1429 }
1430 /^X\(\/\).*/{
1431 s//\1/
1432 q
1433 }
1434 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001435 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001436 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001437 srcdir=..
1438 fi
1439else
1440 ac_srcdir_defaulted=no
1441fi
Reid Spencera773bd52006-08-04 18:18:08 +00001442if test ! -r "$srcdir/$ac_unique_file"; then
1443 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1444 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001445 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001446fi
Reid Spencera773bd52006-08-04 18:18:08 +00001447ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1448ac_abs_confdir=`(
1449 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001450 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001451 pwd)`
1452# When building in place, set srcdir=.
1453if test "$ac_abs_confdir" = "$ac_pwd"; then
1454 srcdir=.
1455fi
1456# Remove unnecessary trailing slashes from srcdir.
1457# Double slashes in file names in object file debugging info
1458# mess up M-x gdb in Emacs.
1459case $srcdir in
1460*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1461esac
1462for ac_var in $ac_precious_vars; do
1463 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1464 eval ac_env_${ac_var}_value=\$${ac_var}
1465 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1466 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1467done
John Criswell7a73b802003-06-30 21:59:07 +00001468
1469#
1470# Report the --help message.
1471#
1472if test "$ac_init_help" = "long"; then
1473 # Omit some internal or obsolete options to make the list less imposing.
1474 # This message is too long to be a string in the A/UX 3.1 sh.
1475 cat <<_ACEOF
Tanya Lattner953042b2009-08-22 04:37:30 +00001476\`configure' configures llvm 2.7svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001477
1478Usage: $0 [OPTION]... [VAR=VALUE]...
1479
1480To assign environment variables (e.g., CC, CFLAGS...), specify them as
1481VAR=VALUE. See below for descriptions of some of the useful variables.
1482
1483Defaults for the options are specified in brackets.
1484
1485Configuration:
1486 -h, --help display this help and exit
1487 --help=short display options specific to this package
1488 --help=recursive display the short help of all the included packages
1489 -V, --version display version information and exit
1490 -q, --quiet, --silent do not print \`checking...' messages
1491 --cache-file=FILE cache test results in FILE [disabled]
1492 -C, --config-cache alias for \`--cache-file=config.cache'
1493 -n, --no-create do not create output files
1494 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1495
John Criswell7a73b802003-06-30 21:59:07 +00001496Installation directories:
1497 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001498 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001499 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001500 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001501
1502By default, \`make install' will install all the files in
1503\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1504an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1505for instance \`--prefix=\$HOME'.
1506
1507For better control, use the options below.
1508
1509Fine tuning of the installation directories:
1510 --bindir=DIR user executables [EPREFIX/bin]
1511 --sbindir=DIR system admin executables [EPREFIX/sbin]
1512 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001513 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1514 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1515 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1516 --libdir=DIR object code libraries [EPREFIX/lib]
1517 --includedir=DIR C header files [PREFIX/include]
1518 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001519 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1520 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1521 --infodir=DIR info documentation [DATAROOTDIR/info]
1522 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1523 --mandir=DIR man documentation [DATAROOTDIR/man]
1524 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1525 --htmldir=DIR html documentation [DOCDIR]
1526 --dvidir=DIR dvi documentation [DOCDIR]
1527 --pdfdir=DIR pdf documentation [DOCDIR]
1528 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001529_ACEOF
1530
1531 cat <<\_ACEOF
1532
1533System types:
1534 --build=BUILD configure for building on BUILD [guessed]
1535 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1536 --target=TARGET configure for building compilers for TARGET [HOST]
1537_ACEOF
1538fi
1539
1540if test -n "$ac_init_help"; then
1541 case $ac_init_help in
Tanya Lattner953042b2009-08-22 04:37:30 +00001542 short | recursive ) echo "Configuration of llvm 2.7svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001543 esac
1544 cat <<\_ACEOF
1545
1546Optional Features:
1547 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1548 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001549 --enable-optimized Compile with optimizations enabled (default is NO)
1550 --enable-profiling Compile with profiling enabled (default is NO)
1551 --enable-assertions Compile with assertion checks enabled (default is
1552 YES)
David Greenea696d242007-06-28 19:36:08 +00001553 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001554 Compile with expensive debug checks enabled (default
1555 is NO)
1556 --enable-debug-runtime Build runtime libs with debug symbols (default is
1557 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001558 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1559 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001560 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001561 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001562 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001563 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001564 is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001565 --enable-targets Build specific host targets: all or
1566 target1,target2,... Valid targets are: host, x86,
1567 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1568 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1569 and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001570 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1571 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001572 --enable-bindings Build specific language bindings:
1573 all,auto,none,{binding-name} (default=auto)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001574 --enable-libffi Check for the presence of libffi (default is YES)
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00001575 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1576 Win32)
1577 --enable-llvmc-dynamic-plugins
1578 Enable dynamic LLVMC plugins (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001579 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001580 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001581 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001582 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001583 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001584 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001585 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001586 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001587 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001588
1589Optional Packages:
1590 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1591 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001592 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1593 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001594 --with-llvmgcc Specify location of llvm-gcc driver (default
1595 searches PATH)
1596 --with-llvmgxx Specify location of llvm-g++ driver (default
1597 searches PATH)
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001598 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001599 --with-ocaml-libdir Specify install location for ocaml bindings (default
1600 is stdlib)
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001601 --with-binutils-include Specify path to binutils/include/ containing
1602 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001603 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001604 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1605 --with-pic try to use only PIC/non-PIC objects [default=use
1606 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001607 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001608 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001609 --with-oprofile=<prefix>
1610 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001611
1612Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001613 CC C compiler command
1614 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001615 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1616 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001617 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1618 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001619 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001620 CXX C++ compiler command
1621 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001622 CXXCPP C++ preprocessor
1623 F77 Fortran 77 compiler command
1624 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001625
1626Use these variables to override the choices made by `configure' or to help
1627it to find libraries and programs with nonstandard names/locations.
1628
1629Report bugs to <llvmbugs@cs.uiuc.edu>.
1630_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001631ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001632fi
1633
1634if test "$ac_init_help" = "recursive"; then
1635 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001636 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001637 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001638 ac_builddir=.
1639
Reid Spencera773bd52006-08-04 18:18:08 +00001640case "$ac_dir" in
1641.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1642*)
John Criswell7a73b802003-06-30 21:59:07 +00001643 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001644 # A ".." for each directory in $ac_dir_suffix.
1645 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1646 case $ac_top_builddir_sub in
1647 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1649 esac ;;
1650esac
1651ac_abs_top_builddir=$ac_pwd
1652ac_abs_builddir=$ac_pwd$ac_dir_suffix
1653# for backward compatibility:
1654ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001655
1656case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001657 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001658 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001659 ac_top_srcdir=$ac_top_builddir_sub
1660 ac_abs_top_srcdir=$ac_pwd ;;
1661 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001662 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001663 ac_top_srcdir=$srcdir
1664 ac_abs_top_srcdir=$srcdir ;;
1665 *) # Relative name.
1666 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1667 ac_top_srcdir=$ac_top_build_prefix$srcdir
1668 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001669esac
Reid Spencera773bd52006-08-04 18:18:08 +00001670ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001671
Reid Spencera773bd52006-08-04 18:18:08 +00001672 cd "$ac_dir" || { ac_status=$?; continue; }
1673 # Check for guested configure.
1674 if test -f "$ac_srcdir/configure.gnu"; then
1675 echo &&
1676 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1677 elif test -f "$ac_srcdir/configure"; then
1678 echo &&
1679 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001680 else
1681 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001682 fi || ac_status=$?
1683 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001684 done
1685fi
1686
Reid Spencera773bd52006-08-04 18:18:08 +00001687test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001688if $ac_init_version; then
1689 cat <<\_ACEOF
Tanya Lattner953042b2009-08-22 04:37:30 +00001690llvm configure 2.7svn
Bill Wendlingebcceee2009-04-18 11:20:33 +00001691generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001692
Reid Spencera773bd52006-08-04 18:18:08 +00001693Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16942002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001695This configure script is free software; the Free Software Foundation
1696gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001697
Tanya Lattnerc2264592009-08-22 21:01:26 +00001698Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001699_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001700 exit
John Criswell7a73b802003-06-30 21:59:07 +00001701fi
Reid Spencera773bd52006-08-04 18:18:08 +00001702cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001703This file contains any messages produced by compilers while
1704running configure, to aid debugging if configure makes a mistake.
1705
Tanya Lattner953042b2009-08-22 04:37:30 +00001706It was created by llvm $as_me 2.7svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +00001707generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001708
1709 $ $0 $@
1710
1711_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001712exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001713{
1714cat <<_ASUNAME
1715## --------- ##
1716## Platform. ##
1717## --------- ##
1718
1719hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1720uname -m = `(uname -m) 2>/dev/null || echo unknown`
1721uname -r = `(uname -r) 2>/dev/null || echo unknown`
1722uname -s = `(uname -s) 2>/dev/null || echo unknown`
1723uname -v = `(uname -v) 2>/dev/null || echo unknown`
1724
1725/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1726/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1727
1728/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1729/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1730/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001731/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001732/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1733/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1734/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1735
1736_ASUNAME
1737
1738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1739for as_dir in $PATH
1740do
1741 IFS=$as_save_IFS
1742 test -z "$as_dir" && as_dir=.
1743 echo "PATH: $as_dir"
1744done
Reid Spencera773bd52006-08-04 18:18:08 +00001745IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001746
1747} >&5
1748
1749cat >&5 <<_ACEOF
1750
1751
1752## ----------- ##
1753## Core tests. ##
1754## ----------- ##
1755
1756_ACEOF
1757
1758
1759# Keep a trace of the command line.
1760# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001761# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001762# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001763# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001764ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001765ac_configure_args0=
1766ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001767ac_must_keep_next=false
1768for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001769do
John Criswell0c38eaf2003-09-10 15:17:25 +00001770 for ac_arg
1771 do
1772 case $ac_arg in
1773 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1774 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1775 | -silent | --silent | --silen | --sile | --sil)
1776 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001777 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001778 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1779 esac
1780 case $ac_pass in
1781 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1782 2)
1783 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1784 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001785 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001786 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001787 case $ac_arg in
1788 *=* | --config-cache | -C | -disable-* | --disable-* \
1789 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1790 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1791 | -with-* | --with-* | -without-* | --without-* | --x)
1792 case "$ac_configure_args0 " in
1793 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1794 esac
1795 ;;
1796 -* ) ac_must_keep_next=true ;;
1797 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001798 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001799 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001800 ;;
1801 esac
1802 done
John Criswell7a73b802003-06-30 21:59:07 +00001803done
John Criswell0c38eaf2003-09-10 15:17:25 +00001804$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1805$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 +00001806
1807# When interrupted or exit'd, cleanup temporary files, and complete
1808# config.log. We remove comments because anyway the quotes in there
1809# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001810# WARNING: Use '\'' to represent an apostrophe within the trap.
1811# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001812trap 'exit_status=$?
1813 # Save into config.log some information that might help in debugging.
1814 {
1815 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001816
John Criswell7a73b802003-06-30 21:59:07 +00001817 cat <<\_ASBOX
1818## ---------------- ##
1819## Cache variables. ##
1820## ---------------- ##
1821_ASBOX
1822 echo
1823 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001824(
1825 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1826 eval ac_val=\$$ac_var
1827 case $ac_val in #(
1828 *${as_nl}*)
1829 case $ac_var in #(
1830 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1831echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1832 esac
1833 case $ac_var in #(
1834 _ | IFS | as_nl) ;; #(
1835 *) $as_unset $ac_var ;;
1836 esac ;;
1837 esac
1838 done
John Criswell7a73b802003-06-30 21:59:07 +00001839 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001840 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1841 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001842 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001843 "s/'\''/'\''\\\\'\'''\''/g;
1844 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1845 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001846 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001847 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001848 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001849 esac |
1850 sort
1851)
John Criswell7a73b802003-06-30 21:59:07 +00001852 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001853
1854 cat <<\_ASBOX
1855## ----------------- ##
1856## Output variables. ##
1857## ----------------- ##
1858_ASBOX
1859 echo
1860 for ac_var in $ac_subst_vars
1861 do
Reid Spencera773bd52006-08-04 18:18:08 +00001862 eval ac_val=\$$ac_var
1863 case $ac_val in
1864 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1865 esac
1866 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001867 done | sort
1868 echo
1869
1870 if test -n "$ac_subst_files"; then
1871 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001872## ------------------- ##
1873## File substitutions. ##
1874## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001875_ASBOX
1876 echo
1877 for ac_var in $ac_subst_files
1878 do
Reid Spencera773bd52006-08-04 18:18:08 +00001879 eval ac_val=\$$ac_var
1880 case $ac_val in
1881 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1882 esac
1883 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001884 done | sort
1885 echo
1886 fi
1887
John Criswell7a73b802003-06-30 21:59:07 +00001888 if test -s confdefs.h; then
1889 cat <<\_ASBOX
1890## ----------- ##
1891## confdefs.h. ##
1892## ----------- ##
1893_ASBOX
1894 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001895 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001896 echo
1897 fi
1898 test "$ac_signal" != 0 &&
1899 echo "$as_me: caught signal $ac_signal"
1900 echo "$as_me: exit $exit_status"
1901 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001902 rm -f core *.core core.conftest.* &&
1903 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001904 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001905' 0
John Criswell7a73b802003-06-30 21:59:07 +00001906for ac_signal in 1 2 13 15; do
1907 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1908done
1909ac_signal=0
1910
1911# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001912rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001913
1914# Predefined preprocessor variables.
1915
1916cat >>confdefs.h <<_ACEOF
1917#define PACKAGE_NAME "$PACKAGE_NAME"
1918_ACEOF
1919
1920
1921cat >>confdefs.h <<_ACEOF
1922#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1923_ACEOF
1924
1925
1926cat >>confdefs.h <<_ACEOF
1927#define PACKAGE_VERSION "$PACKAGE_VERSION"
1928_ACEOF
1929
1930
1931cat >>confdefs.h <<_ACEOF
1932#define PACKAGE_STRING "$PACKAGE_STRING"
1933_ACEOF
1934
1935
1936cat >>confdefs.h <<_ACEOF
1937#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1938_ACEOF
1939
1940
1941# Let the site file select an alternate cache file if it wants to.
1942# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001943if test -n "$CONFIG_SITE"; then
1944 set x "$CONFIG_SITE"
1945elif test "x$prefix" != xNONE; then
1946 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1947else
1948 set x "$ac_default_prefix/share/config.site" \
1949 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001950fi
Reid Spencera773bd52006-08-04 18:18:08 +00001951shift
1952for ac_site_file
1953do
John Criswell7a73b802003-06-30 21:59:07 +00001954 if test -r "$ac_site_file"; then
1955 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1956echo "$as_me: loading site script $ac_site_file" >&6;}
1957 sed 's/^/| /' "$ac_site_file" >&5
1958 . "$ac_site_file"
1959 fi
1960done
1961
1962if test -r "$cache_file"; then
1963 # Some versions of bash will fail to source /dev/null (special
1964 # files actually), so we avoid doing that.
1965 if test -f "$cache_file"; then
1966 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1967echo "$as_me: loading cache $cache_file" >&6;}
1968 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001969 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1970 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001971 esac
1972 fi
1973else
1974 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1975echo "$as_me: creating cache $cache_file" >&6;}
1976 >$cache_file
1977fi
1978
1979# Check that the precious variables saved in the cache have kept the same
1980# value.
1981ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001982for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001983 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1984 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001985 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1986 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001987 case $ac_old_set,$ac_new_set in
1988 set,)
1989 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1990echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1991 ac_cache_corrupted=: ;;
1992 ,set)
1993 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1994echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1995 ac_cache_corrupted=: ;;
1996 ,);;
1997 *)
1998 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001999 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002000echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00002001 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002002echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00002003 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002004echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00002005 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00002006 fi;;
2007 esac
2008 # Pass precious variables to config.status.
2009 if test "$ac_new_set" = set; then
2010 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00002011 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00002012 *) ac_arg=$ac_var=$ac_new_val ;;
2013 esac
2014 case " $ac_configure_args " in
2015 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2016 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2017 esac
2018 fi
2019done
2020if $ac_cache_corrupted; then
2021 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2022echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2023 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2024echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2025 { (exit 1); exit 1; }; }
2026fi
2027
Reid Spencera773bd52006-08-04 18:18:08 +00002028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
John Criswell7a73b802003-06-30 21:59:07 +00002052ac_ext=c
2053ac_cpp='$CPP $CPPFLAGS'
2054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2056ac_compiler_gnu=$ac_cv_c_compiler_gnu
2057
2058
2059
Tanya Lattnerc2264592009-08-22 21:01:26 +00002060LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002061
2062
2063
2064
2065
2066
2067
John Criswell7a73b802003-06-30 21:59:07 +00002068ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002069for ac_dir in autoconf "$srcdir"/autoconf; do
2070 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002071 ac_aux_dir=$ac_dir
2072 ac_install_sh="$ac_aux_dir/install-sh -c"
2073 break
Reid Spencera773bd52006-08-04 18:18:08 +00002074 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002075 ac_aux_dir=$ac_dir
2076 ac_install_sh="$ac_aux_dir/install.sh -c"
2077 break
Reid Spencera773bd52006-08-04 18:18:08 +00002078 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002079 ac_aux_dir=$ac_dir
2080 ac_install_sh="$ac_aux_dir/shtool install -c"
2081 break
2082 fi
2083done
2084if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002085 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2086echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002087 { (exit 1); exit 1; }; }
2088fi
Reid Spencera773bd52006-08-04 18:18:08 +00002089
2090# These three variables are undocumented and unsupported,
2091# and are intended to be withdrawn in a future Autoconf release.
2092# They can cause serious problems if a builder's source tree is in a directory
2093# whose full name contains unusual characters.
2094ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2095ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2096ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2097
John Criswell7a73b802003-06-30 21:59:07 +00002098
John Criswell392aaa32003-07-22 19:18:09 +00002099
Reid Spencer2706f8c2004-09-19 23:53:36 +00002100if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002101 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2102 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002103echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2104 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002105 fi
John Criswell93e1c722003-09-15 17:04:06 +00002106fi
2107
John Criswell33a911a2003-11-25 20:36:46 +00002108for i in `ls ${srcdir}/projects`
2109do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002110 if test -d ${srcdir}/projects/${i} ; then
2111 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002112 CVS) ;;
2113 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002114 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002115 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002116 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002117 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002118 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002119 # llvm-test is the old name of the test-suite, kept here for backwards
2120 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002121 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002122 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002123 test-suite) subdirs="$subdirs projects/test-suite"
2124 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002125 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002126;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002127 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002128 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002129 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002130 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002131 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002132 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002133 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002134 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002135 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002136 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002137 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002138 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002139 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002140 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2141echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002142 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002143 esac
John Criswell33a911a2003-11-25 20:36:46 +00002144 fi
2145done
John Criswell559a6c12003-09-30 16:31:48 +00002146
John Criswell7a73b802003-06-30 21:59:07 +00002147
2148# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002149$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2150 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2151echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002152 { (exit 1); exit 1; }; }
2153
Reid Spencera773bd52006-08-04 18:18:08 +00002154{ echo "$as_me:$LINENO: checking build system type" >&5
2155echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002156if test "${ac_cv_build+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2158else
Reid Spencera773bd52006-08-04 18:18:08 +00002159 ac_build_alias=$build_alias
2160test "x$ac_build_alias" = x &&
2161 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2162test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002163 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2164echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2165 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002166ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2167 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2168echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002169 { (exit 1); exit 1; }; }
2170
2171fi
Reid Spencera773bd52006-08-04 18:18:08 +00002172{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2173echo "${ECHO_T}$ac_cv_build" >&6; }
2174case $ac_cv_build in
2175*-*-*) ;;
2176*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2177echo "$as_me: error: invalid value of canonical build" >&2;}
2178 { (exit 1); exit 1; }; };;
2179esac
John Criswell7a73b802003-06-30 21:59:07 +00002180build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002181ac_save_IFS=$IFS; IFS='-'
2182set x $ac_cv_build
2183shift
2184build_cpu=$1
2185build_vendor=$2
2186shift; shift
2187# Remember, the first character of IFS is used to create $*,
2188# except with old shells:
2189build_os=$*
2190IFS=$ac_save_IFS
2191case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002192
2193
Reid Spencera773bd52006-08-04 18:18:08 +00002194{ echo "$as_me:$LINENO: checking host system type" >&5
2195echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002196if test "${ac_cv_host+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2198else
Reid Spencera773bd52006-08-04 18:18:08 +00002199 if test "x$host_alias" = x; then
2200 ac_cv_host=$ac_cv_build
2201else
2202 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2203 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2204echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002205 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002206fi
John Criswell7a73b802003-06-30 21:59:07 +00002207
2208fi
Reid Spencera773bd52006-08-04 18:18:08 +00002209{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2210echo "${ECHO_T}$ac_cv_host" >&6; }
2211case $ac_cv_host in
2212*-*-*) ;;
2213*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2214echo "$as_me: error: invalid value of canonical host" >&2;}
2215 { (exit 1); exit 1; }; };;
2216esac
John Criswell7a73b802003-06-30 21:59:07 +00002217host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002218ac_save_IFS=$IFS; IFS='-'
2219set x $ac_cv_host
2220shift
2221host_cpu=$1
2222host_vendor=$2
2223shift; shift
2224# Remember, the first character of IFS is used to create $*,
2225# except with old shells:
2226host_os=$*
2227IFS=$ac_save_IFS
2228case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002229
2230
Reid Spencera773bd52006-08-04 18:18:08 +00002231{ echo "$as_me:$LINENO: checking target system type" >&5
2232echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002233if test "${ac_cv_target+set}" = set; then
2234 echo $ECHO_N "(cached) $ECHO_C" >&6
2235else
Reid Spencera773bd52006-08-04 18:18:08 +00002236 if test "x$target_alias" = x; then
2237 ac_cv_target=$ac_cv_host
2238else
2239 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2240 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2241echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002242 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002243fi
John Criswell7a73b802003-06-30 21:59:07 +00002244
2245fi
Reid Spencera773bd52006-08-04 18:18:08 +00002246{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2247echo "${ECHO_T}$ac_cv_target" >&6; }
2248case $ac_cv_target in
2249*-*-*) ;;
2250*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2251echo "$as_me: error: invalid value of canonical target" >&2;}
2252 { (exit 1); exit 1; }; };;
2253esac
John Criswell7a73b802003-06-30 21:59:07 +00002254target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002255ac_save_IFS=$IFS; IFS='-'
2256set x $ac_cv_target
2257shift
2258target_cpu=$1
2259target_vendor=$2
2260shift; shift
2261# Remember, the first character of IFS is used to create $*,
2262# except with old shells:
2263target_os=$*
2264IFS=$ac_save_IFS
2265case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002266
2267
2268# The aliases save the names the user supplied, while $host etc.
2269# will get canonicalized.
2270test -n "$target_alias" &&
2271 test "$program_prefix$program_suffix$program_transform_name" = \
2272 NONENONEs,x,x, &&
2273 program_prefix=${target_alias}-
2274
Reid Spencera773bd52006-08-04 18:18:08 +00002275{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2276echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002277if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002278 echo $ECHO_N "(cached) $ECHO_C" >&6
2279else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002280 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002281 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002282 llvm_cv_link_all_option="-Wl,--whole-archive"
2283 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002284 llvm_cv_os_type="AIX"
2285 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002286 *-*-irix*)
2287 llvm_cv_link_all_option="-Wl,--whole-archive"
2288 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2289 llvm_cv_os_type="IRIX"
2290 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002291 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002292 llvm_cv_link_all_option="-Wl,--whole-archive"
2293 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002294 llvm_cv_os_type="Cygwin"
2295 llvm_cv_platform_type="Unix" ;;
2296 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002297 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002298 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002299 llvm_cv_os_type="Darwin"
2300 llvm_cv_platform_type="Unix" ;;
2301 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002302 llvm_cv_link_all_option="-Wl,--whole-archive"
2303 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002304 llvm_cv_os_type="FreeBSD"
2305 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002306 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002307 llvm_cv_link_all_option="-Wl,--whole-archive"
2308 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002309 llvm_cv_os_type="OpenBSD"
2310 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002311 *-*-netbsd*)
2312 llvm_cv_link_all_option="-Wl,--whole-archive"
2313 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2314 llvm_cv_os_type="NetBSD"
2315 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002316 *-*-dragonfly*)
2317 llvm_cv_link_all_option="-Wl,--whole-archive"
2318 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2319 llvm_cv_os_type="DragonFly"
2320 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002321 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002322 llvm_cv_link_all_option="-Wl,--whole-archive"
2323 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002324 llvm_cv_os_type="HP-UX"
2325 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002326 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002327 llvm_cv_link_all_option="-Wl,--whole-archive"
2328 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002329 llvm_cv_os_type="Interix"
2330 llvm_cv_platform_type="Unix" ;;
2331 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002332 llvm_cv_link_all_option="-Wl,--whole-archive"
2333 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002334 llvm_cv_os_type="Linux"
2335 llvm_cv_platform_type="Unix" ;;
2336 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002337 llvm_cv_link_all_option="-Wl,-z,allextract"
2338 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002339 llvm_cv_os_type="SunOS"
2340 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002341 *-*-auroraux*)
2342 llvm_cv_link_all_option="-Wl,-z,allextract"
2343 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2344 llvm_cv_os_type="AuroraUX"
2345 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002346 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002347 llvm_cv_link_all_option="-Wl,--whole-archive"
2348 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002349 llvm_cv_os_type="Win32"
2350 llvm_cv_platform_type="Win32" ;;
2351 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002352 llvm_cv_link_all_option="-Wl,--whole-archive"
2353 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002354 llvm_cv_os_type="MingW"
2355 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002356 *-*-haiku*)
2357 llvm_cv_link_all_option="-Wl,--whole-archive"
2358 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2359 llvm_cv_os_type="Haiku"
2360 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002361 *-unknown-eabi*)
2362 llvm_cv_link_all_option="-Wl,--whole-archive"
2363 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2364 llvm_cv_os_type="Freestanding"
2365 llvm_cv_platform_type="Unix" ;;
2366 *-unknown-elf*)
2367 llvm_cv_link_all_option="-Wl,--whole-archive"
2368 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2369 llvm_cv_os_type="Freestanding"
2370 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002371 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002372 llvm_cv_link_all_option=""
2373 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002374 llvm_cv_os_type="Unknown"
2375 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002376esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002377fi
Reid Spencera773bd52006-08-04 18:18:08 +00002378{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2379echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002380
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002381{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2382echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2383if test "${llvm_cv_target_os_type+set}" = set; then
2384 echo $ECHO_N "(cached) $ECHO_C" >&6
2385else
2386 case $target in
2387 *-*-aix*)
2388 llvm_cv_target_os_type="AIX" ;;
2389 *-*-irix*)
2390 llvm_cv_target_os_type="IRIX" ;;
2391 *-*-cygwin*)
2392 llvm_cv_target_os_type="Cygwin" ;;
2393 *-*-darwin*)
2394 llvm_cv_target_os_type="Darwin" ;;
2395 *-*-freebsd*)
2396 llvm_cv_target_os_type="FreeBSD" ;;
2397 *-*-openbsd*)
2398 llvm_cv_target_os_type="OpenBSD" ;;
2399 *-*-netbsd*)
2400 llvm_cv_target_os_type="NetBSD" ;;
2401 *-*-dragonfly*)
2402 llvm_cv_target_os_type="DragonFly" ;;
2403 *-*-hpux*)
2404 llvm_cv_target_os_type="HP-UX" ;;
2405 *-*-interix*)
2406 llvm_cv_target_os_type="Interix" ;;
2407 *-*-linux*)
2408 llvm_cv_target_os_type="Linux" ;;
2409 *-*-solaris*)
2410 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002411 *-*-auroraux*)
2412 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002413 *-*-win32*)
2414 llvm_cv_target_os_type="Win32" ;;
2415 *-*-mingw*)
2416 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002417 *-*-haiku*)
2418 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002419 *-unknown-eabi*)
2420 llvm_cv_target_os_type="Freestanding" ;;
2421 *)
2422 llvm_cv_target_os_type="Unknown" ;;
2423esac
2424fi
2425{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2426echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2427
Reid Spencer7b3e8512004-12-24 06:29:05 +00002428if test "$llvm_cv_os_type" = "Unknown" ; then
2429 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2430echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002431 { (exit 1); exit 1; }; }
2432fi
2433
Reid Spencer7b3e8512004-12-24 06:29:05 +00002434OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002435
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002436HOST_OS=$llvm_cv_os_type
2437
2438TARGET_OS=$llvm_cv_target_os_type
2439
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002440
Reid Spencera773bd52006-08-04 18:18:08 +00002441LINKALL=$llvm_cv_link_all_option
2442
2443NOLINKALL=$llvm_cv_no_link_all_option
2444
2445
Reid Spencer7b3e8512004-12-24 06:29:05 +00002446case $llvm_cv_platform_type in
2447 Unix)
2448
2449cat >>confdefs.h <<\_ACEOF
2450#define LLVM_ON_UNIX 1
2451_ACEOF
2452
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002453 LLVM_ON_UNIX=1
2454
2455 LLVM_ON_WIN32=0
2456
Reid Spencer7b3e8512004-12-24 06:29:05 +00002457 ;;
2458 Win32)
2459
2460cat >>confdefs.h <<\_ACEOF
2461#define LLVM_ON_WIN32 1
2462_ACEOF
2463
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002464 LLVM_ON_UNIX=0
2465
2466 LLVM_ON_WIN32=1
2467
Reid Spencer7b3e8512004-12-24 06:29:05 +00002468 ;;
2469esac
2470
Reid Spencera773bd52006-08-04 18:18:08 +00002471{ echo "$as_me:$LINENO: checking target architecture" >&5
2472echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002473if test "${llvm_cv_target_arch+set}" = set; then
2474 echo $ECHO_N "(cached) $ECHO_C" >&6
2475else
2476 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002477 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002478 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002479 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2480 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002481 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002482 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002483 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002484 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002485 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002486 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002487 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002488 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002489 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002490esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002491fi
Reid Spencera773bd52006-08-04 18:18:08 +00002492{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2493echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002494
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002495if test "$llvm_cv_target_arch" = "Unknown" ; then
2496 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2497echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2498fi
John Criswell76595452003-07-01 22:07:39 +00002499
Nick Lewycky83fc4472009-09-29 05:48:51 +00002500# Determine the LLVM native architecture for the target
2501case "$llvm_cv_target_arch" in
2502 x86) LLVM_NATIVE_ARCH="X86" ;;
2503 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2504 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2505esac
2506
2507ARCH=$llvm_cv_target_arch
2508
2509
2510ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002511ac_cpp='$CPP $CPPFLAGS'
2512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2514ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002515if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002516 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2517set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002518{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002520if test "${ac_cv_prog_CC+set}" = set; then
2521 echo $ECHO_N "(cached) $ECHO_C" >&6
2522else
2523 if test -n "$CC"; then
2524 ac_cv_prog_CC="$CC" # Let the user override the test.
2525else
2526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527for as_dir in $PATH
2528do
2529 IFS=$as_save_IFS
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002532 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 +00002533 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2535 break 2
2536 fi
2537done
2538done
Reid Spencera773bd52006-08-04 18:18:08 +00002539IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002540
2541fi
2542fi
2543CC=$ac_cv_prog_CC
2544if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002545 { echo "$as_me:$LINENO: result: $CC" >&5
2546echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002547else
Reid Spencera773bd52006-08-04 18:18:08 +00002548 { echo "$as_me:$LINENO: result: no" >&5
2549echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002550fi
2551
Reid Spencera773bd52006-08-04 18:18:08 +00002552
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002553fi
2554if test -z "$ac_cv_prog_CC"; then
2555 ac_ct_CC=$CC
2556 # Extract the first word of "gcc", so it can be a program name with args.
2557set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002558{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002560if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2561 echo $ECHO_N "(cached) $ECHO_C" >&6
2562else
2563 if test -n "$ac_ct_CC"; then
2564 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2565else
2566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567for as_dir in $PATH
2568do
2569 IFS=$as_save_IFS
2570 test -z "$as_dir" && as_dir=.
2571 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002572 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 +00002573 ac_cv_prog_ac_ct_CC="gcc"
2574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2575 break 2
2576 fi
2577done
2578done
Reid Spencera773bd52006-08-04 18:18:08 +00002579IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002580
2581fi
2582fi
2583ac_ct_CC=$ac_cv_prog_ac_ct_CC
2584if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002585 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2586echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002587else
Reid Spencera773bd52006-08-04 18:18:08 +00002588 { echo "$as_me:$LINENO: result: no" >&5
2589echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002590fi
2591
Reid Spencera773bd52006-08-04 18:18:08 +00002592 if test "x$ac_ct_CC" = x; then
2593 CC=""
2594 else
2595 case $cross_compiling:$ac_tool_warned in
2596yes:)
2597{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2598whose name does not start with the host triplet. If you think this
2599configuration is useful to you, please write to autoconf@gnu.org." >&5
2600echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2601whose name does not start with the host triplet. If you think this
2602configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2603ac_tool_warned=yes ;;
2604esac
2605 CC=$ac_ct_CC
2606 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002607else
2608 CC="$ac_cv_prog_CC"
2609fi
2610
2611if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002612 if test -n "$ac_tool_prefix"; then
2613 # 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 +00002614set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002615{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002617if test "${ac_cv_prog_CC+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2619else
2620 if test -n "$CC"; then
2621 ac_cv_prog_CC="$CC" # Let the user override the test.
2622else
2623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624for as_dir in $PATH
2625do
2626 IFS=$as_save_IFS
2627 test -z "$as_dir" && as_dir=.
2628 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002629 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 +00002630 ac_cv_prog_CC="${ac_tool_prefix}cc"
2631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2632 break 2
2633 fi
2634done
2635done
Reid Spencera773bd52006-08-04 18:18:08 +00002636IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002637
2638fi
2639fi
2640CC=$ac_cv_prog_CC
2641if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002642 { echo "$as_me:$LINENO: result: $CC" >&5
2643echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002644else
Reid Spencera773bd52006-08-04 18:18:08 +00002645 { echo "$as_me:$LINENO: result: no" >&5
2646echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002647fi
2648
Reid Spencera773bd52006-08-04 18:18:08 +00002649
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002650 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002651fi
2652if test -z "$CC"; then
2653 # Extract the first word of "cc", so it can be a program name with args.
2654set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002655{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002657if test "${ac_cv_prog_CC+set}" = set; then
2658 echo $ECHO_N "(cached) $ECHO_C" >&6
2659else
2660 if test -n "$CC"; then
2661 ac_cv_prog_CC="$CC" # Let the user override the test.
2662else
2663 ac_prog_rejected=no
2664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665for as_dir in $PATH
2666do
2667 IFS=$as_save_IFS
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002670 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 +00002671 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2672 ac_prog_rejected=yes
2673 continue
2674 fi
2675 ac_cv_prog_CC="cc"
2676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2677 break 2
2678 fi
2679done
2680done
Reid Spencera773bd52006-08-04 18:18:08 +00002681IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002682
2683if test $ac_prog_rejected = yes; then
2684 # We found a bogon in the path, so make sure we never use it.
2685 set dummy $ac_cv_prog_CC
2686 shift
2687 if test $# != 0; then
2688 # We chose a different compiler from the bogus one.
2689 # However, it has the same basename, so the bogon will be chosen
2690 # first if we set CC to just the basename; use the full file name.
2691 shift
2692 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2693 fi
2694fi
2695fi
2696fi
2697CC=$ac_cv_prog_CC
2698if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002699 { echo "$as_me:$LINENO: result: $CC" >&5
2700echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002701else
Reid Spencera773bd52006-08-04 18:18:08 +00002702 { echo "$as_me:$LINENO: result: no" >&5
2703echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002704fi
2705
Reid Spencera773bd52006-08-04 18:18:08 +00002706
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002707fi
2708if test -z "$CC"; then
2709 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002710 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002711 do
2712 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2713set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002714{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002716if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002717 echo $ECHO_N "(cached) $ECHO_C" >&6
2718else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002719 if test -n "$CC"; then
2720 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002721else
2722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723for as_dir in $PATH
2724do
2725 IFS=$as_save_IFS
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002728 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 +00002729 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2731 break 2
2732 fi
2733done
2734done
Reid Spencera773bd52006-08-04 18:18:08 +00002735IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002736
2737fi
2738fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002739CC=$ac_cv_prog_CC
2740if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002741 { echo "$as_me:$LINENO: result: $CC" >&5
2742echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002743else
Reid Spencera773bd52006-08-04 18:18:08 +00002744 { echo "$as_me:$LINENO: result: no" >&5
2745echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002746fi
2747
Reid Spencera773bd52006-08-04 18:18:08 +00002748
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002749 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002750 done
2751fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002752if test -z "$CC"; then
2753 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002754 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002755do
2756 # Extract the first word of "$ac_prog", so it can be a program name with args.
2757set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002758{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002760if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002761 echo $ECHO_N "(cached) $ECHO_C" >&6
2762else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002763 if test -n "$ac_ct_CC"; then
2764 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002765else
2766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767for as_dir in $PATH
2768do
2769 IFS=$as_save_IFS
2770 test -z "$as_dir" && as_dir=.
2771 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002772 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 +00002773 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2775 break 2
2776 fi
2777done
2778done
Reid Spencera773bd52006-08-04 18:18:08 +00002779IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002780
2781fi
2782fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002783ac_ct_CC=$ac_cv_prog_ac_ct_CC
2784if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002785 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2786echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002787else
Reid Spencera773bd52006-08-04 18:18:08 +00002788 { echo "$as_me:$LINENO: result: no" >&5
2789echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002790fi
2791
Reid Spencera773bd52006-08-04 18:18:08 +00002792
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002793 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002794done
John Criswell7a73b802003-06-30 21:59:07 +00002795
Reid Spencera773bd52006-08-04 18:18:08 +00002796 if test "x$ac_ct_CC" = x; then
2797 CC=""
2798 else
2799 case $cross_compiling:$ac_tool_warned in
2800yes:)
2801{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2802whose name does not start with the host triplet. If you think this
2803configuration is useful to you, please write to autoconf@gnu.org." >&5
2804echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2805whose name does not start with the host triplet. If you think this
2806configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2807ac_tool_warned=yes ;;
2808esac
2809 CC=$ac_ct_CC
2810 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002811fi
2812
John Criswell7a73b802003-06-30 21:59:07 +00002813fi
2814
2815
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002816test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2817See \`config.log' for more details." >&5
2818echo "$as_me: error: no acceptable C compiler found in \$PATH
2819See \`config.log' for more details." >&2;}
2820 { (exit 1); exit 1; }; }
2821
John Criswell7a73b802003-06-30 21:59:07 +00002822# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002823echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002824ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002825{ (ac_try="$ac_compiler --version >&5"
2826case "(($ac_try" in
2827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828 *) ac_try_echo=$ac_try;;
2829esac
2830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2831 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002832 ac_status=$?
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002835{ (ac_try="$ac_compiler -v >&5"
2836case "(($ac_try" in
2837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838 *) ac_try_echo=$ac_try;;
2839esac
2840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2841 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002842 ac_status=$?
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002845{ (ac_try="$ac_compiler -V >&5"
2846case "(($ac_try" in
2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848 *) ac_try_echo=$ac_try;;
2849esac
2850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002852 ac_status=$?
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }
2855
2856cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002857/* confdefs.h. */
2858_ACEOF
2859cat confdefs.h >>conftest.$ac_ext
2860cat >>conftest.$ac_ext <<_ACEOF
2861/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002862
John Criswell7a73b802003-06-30 21:59:07 +00002863int
2864main ()
2865{
2866
2867 ;
2868 return 0;
2869}
2870_ACEOF
2871ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002872ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002873# Try to create an executable without -o first, disregard a.out.
2874# It will help us diagnose broken compilers, and finding out an intuition
2875# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002876{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2877echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002878ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002879#
2880# List of possible output files, starting from the most likely.
2881# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2882# only as a last resort. b.out is created by i960 compilers.
2883ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2884#
2885# The IRIX 6 linker writes into existing files which may not be
2886# executable, retaining their permissions. Remove them first so a
2887# subsequent execution test works.
2888ac_rmfiles=
2889for ac_file in $ac_files
2890do
2891 case $ac_file in
2892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2893 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2894 esac
2895done
2896rm -f $ac_rmfiles
2897
2898if { (ac_try="$ac_link_default"
2899case "(($ac_try" in
2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901 *) ac_try_echo=$ac_try;;
2902esac
2903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002905 ac_status=$?
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002908 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2909# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2910# in a Makefile. We should not override ac_cv_exeext if it was cached,
2911# so that the user can short-circuit this test for compilers unknown to
2912# Autoconf.
Bill Wendlingebcceee2009-04-18 11:20:33 +00002913for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002914do
2915 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002916 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002918 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002919 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002920 # We found the default executable, but exeext='' is most
2921 # certainly right.
2922 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002923 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002924 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2925 then :; else
2926 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2927 fi
2928 # We set ac_cv_exeext here because the later test for it is not
2929 # safe: cross compilers may not add the suffix if given an `-o'
2930 # argument, so we may need to know it at that point already.
2931 # Even if this section looks crufty: it has the advantage of
2932 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002933 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002934 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002935 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002936 esac
2937done
Reid Spencera773bd52006-08-04 18:18:08 +00002938test "$ac_cv_exeext" = no && ac_cv_exeext=
2939
John Criswell7a73b802003-06-30 21:59:07 +00002940else
2941 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002942sed 's/^/| /' conftest.$ac_ext >&5
2943
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002944{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002945See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002946echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002947See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002948 { (exit 77); exit 77; }; }
2949fi
2950
2951ac_exeext=$ac_cv_exeext
Bill Wendlingebcceee2009-04-18 11:20:33 +00002952{ echo "$as_me:$LINENO: result: $ac_file" >&5
2953echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002954
Reid Spencera773bd52006-08-04 18:18:08 +00002955# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002956# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002957{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2958echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002959# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2960# If not cross compiling, check that we can run a simple program.
2961if test "$cross_compiling" != yes; then
2962 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002963 { (case "(($ac_try" in
2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2966esac
2967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002969 ac_status=$?
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; }; then
2972 cross_compiling=no
2973 else
2974 if test "$cross_compiling" = maybe; then
2975 cross_compiling=yes
2976 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002977 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002978If you meant to cross compile, use \`--host'.
2979See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002980echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002981If you meant to cross compile, use \`--host'.
2982See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002983 { (exit 1); exit 1; }; }
2984 fi
2985 fi
2986fi
Reid Spencera773bd52006-08-04 18:18:08 +00002987{ echo "$as_me:$LINENO: result: yes" >&5
2988echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002989
John Criswell0c38eaf2003-09-10 15:17:25 +00002990rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002991ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002992# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002993# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002994{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2995echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2996{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2997echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002998
Reid Spencera773bd52006-08-04 18:18:08 +00002999{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3000echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3001if { (ac_try="$ac_link"
3002case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3005esac
3006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003008 ac_status=$?
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; then
3011 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3012# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3013# work properly (i.e., refer to `conftest.exe'), while it won't with
3014# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00003015for ac_file in conftest.exe conftest conftest.*; do
3016 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00003017 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00003018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00003019 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00003020 break;;
John Criswell7a73b802003-06-30 21:59:07 +00003021 * ) break;;
3022 esac
3023done
3024else
John Criswell0c38eaf2003-09-10 15:17:25 +00003025 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3026See \`config.log' for more details." >&5
3027echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3028See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003029 { (exit 1); exit 1; }; }
3030fi
3031
3032rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003033{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3034echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003035
3036rm -f conftest.$ac_ext
3037EXEEXT=$ac_cv_exeext
3038ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00003039{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3040echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003041if test "${ac_cv_objext+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
3043else
3044 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003045/* confdefs.h. */
3046_ACEOF
3047cat confdefs.h >>conftest.$ac_ext
3048cat >>conftest.$ac_ext <<_ACEOF
3049/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003050
John Criswell7a73b802003-06-30 21:59:07 +00003051int
3052main ()
3053{
3054
3055 ;
3056 return 0;
3057}
3058_ACEOF
3059rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00003060if { (ac_try="$ac_compile"
3061case "(($ac_try" in
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3064esac
3065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003067 ac_status=$?
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003070 for ac_file in conftest.o conftest.obj conftest.*; do
3071 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00003072 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00003073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00003074 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3075 break;;
3076 esac
3077done
3078else
3079 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003080sed 's/^/| /' conftest.$ac_ext >&5
3081
3082{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3083See \`config.log' for more details." >&5
3084echo "$as_me: error: cannot compute suffix of object files: cannot compile
3085See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003086 { (exit 1); exit 1; }; }
3087fi
3088
3089rm -f conftest.$ac_cv_objext conftest.$ac_ext
3090fi
Reid Spencera773bd52006-08-04 18:18:08 +00003091{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3092echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003093OBJEXT=$ac_cv_objext
3094ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00003095{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3096echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003097if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003098 echo $ECHO_N "(cached) $ECHO_C" >&6
3099else
3100 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003101/* confdefs.h. */
3102_ACEOF
3103cat confdefs.h >>conftest.$ac_ext
3104cat >>conftest.$ac_ext <<_ACEOF
3105/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003106
John Criswell7a73b802003-06-30 21:59:07 +00003107int
3108main ()
3109{
3110#ifndef __GNUC__
3111 choke me
3112#endif
3113
3114 ;
3115 return 0;
3116}
3117_ACEOF
3118rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003119if { (ac_try="$ac_compile"
3120case "(($ac_try" in
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3123esac
3124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003126 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003127 grep -v '^ *+' conftest.er1 >conftest.err
3128 rm -f conftest.er1
3129 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003131 (exit $ac_status); } &&
3132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3133 { (case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3136esac
3137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_try") 2>&5
3139 ac_status=$?
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; } &&
3142 { ac_try='test -s conftest.$ac_objext'
3143 { (case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146esac
3147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_try") 2>&5
3149 ac_status=$?
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003152 ac_compiler_gnu=yes
3153else
3154 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003155sed 's/^/| /' conftest.$ac_ext >&5
3156
Reid Spencera773bd52006-08-04 18:18:08 +00003157 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003158fi
Reid Spencera773bd52006-08-04 18:18:08 +00003159
3160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003161ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003162
3163fi
Reid Spencera773bd52006-08-04 18:18:08 +00003164{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3165echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003166GCC=`test $ac_compiler_gnu = yes && echo yes`
3167ac_test_CFLAGS=${CFLAGS+set}
3168ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003169{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3170echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003171if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003172 echo $ECHO_N "(cached) $ECHO_C" >&6
3173else
Reid Spencera773bd52006-08-04 18:18:08 +00003174 ac_save_c_werror_flag=$ac_c_werror_flag
3175 ac_c_werror_flag=yes
3176 ac_cv_prog_cc_g=no
3177 CFLAGS="-g"
3178 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003179/* confdefs.h. */
3180_ACEOF
3181cat confdefs.h >>conftest.$ac_ext
3182cat >>conftest.$ac_ext <<_ACEOF
3183/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003184
John Criswell7a73b802003-06-30 21:59:07 +00003185int
3186main ()
3187{
3188
3189 ;
3190 return 0;
3191}
3192_ACEOF
3193rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003194if { (ac_try="$ac_compile"
3195case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198esac
3199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003201 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003202 grep -v '^ *+' conftest.er1 >conftest.err
3203 rm -f conftest.er1
3204 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003206 (exit $ac_status); } &&
3207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3208 { (case "(($ac_try" in
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3211esac
3212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3213 (eval "$ac_try") 2>&5
3214 ac_status=$?
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); }; } &&
3217 { ac_try='test -s conftest.$ac_objext'
3218 { (case "(($ac_try" in
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3221esac
3222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223 (eval "$ac_try") 2>&5
3224 ac_status=$?
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003227 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003228else
3229 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003230sed 's/^/| /' conftest.$ac_ext >&5
3231
Reid Spencera773bd52006-08-04 18:18:08 +00003232 CFLAGS=""
3233 cat >conftest.$ac_ext <<_ACEOF
3234/* confdefs.h. */
3235_ACEOF
3236cat confdefs.h >>conftest.$ac_ext
3237cat >>conftest.$ac_ext <<_ACEOF
3238/* end confdefs.h. */
3239
3240int
3241main ()
3242{
3243
3244 ;
3245 return 0;
3246}
3247_ACEOF
3248rm -f conftest.$ac_objext
3249if { (ac_try="$ac_compile"
3250case "(($ac_try" in
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3253esac
3254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3255 (eval "$ac_compile") 2>conftest.er1
3256 ac_status=$?
3257 grep -v '^ *+' conftest.er1 >conftest.err
3258 rm -f conftest.er1
3259 cat conftest.err >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003261 (exit $ac_status); } &&
3262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3263 { (case "(($ac_try" in
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3266esac
3267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3268 (eval "$ac_try") 2>&5
3269 ac_status=$?
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }; } &&
3272 { ac_try='test -s conftest.$ac_objext'
3273 { (case "(($ac_try" in
3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3276esac
3277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3278 (eval "$ac_try") 2>&5
3279 ac_status=$?
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003282 :
3283else
3284 echo "$as_me: failed program was:" >&5
3285sed 's/^/| /' conftest.$ac_ext >&5
3286
3287 ac_c_werror_flag=$ac_save_c_werror_flag
3288 CFLAGS="-g"
3289 cat >conftest.$ac_ext <<_ACEOF
3290/* confdefs.h. */
3291_ACEOF
3292cat confdefs.h >>conftest.$ac_ext
3293cat >>conftest.$ac_ext <<_ACEOF
3294/* end confdefs.h. */
3295
3296int
3297main ()
3298{
3299
3300 ;
3301 return 0;
3302}
3303_ACEOF
3304rm -f conftest.$ac_objext
3305if { (ac_try="$ac_compile"
3306case "(($ac_try" in
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3309esac
3310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3311 (eval "$ac_compile") 2>conftest.er1
3312 ac_status=$?
3313 grep -v '^ *+' conftest.er1 >conftest.err
3314 rm -f conftest.er1
3315 cat conftest.err >&5
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003317 (exit $ac_status); } &&
3318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3319 { (case "(($ac_try" in
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3322esac
3323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324 (eval "$ac_try") 2>&5
3325 ac_status=$?
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; } &&
3328 { ac_try='test -s conftest.$ac_objext'
3329 { (case "(($ac_try" in
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3332esac
3333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3334 (eval "$ac_try") 2>&5
3335 ac_status=$?
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003338 ac_cv_prog_cc_g=yes
3339else
3340 echo "$as_me: failed program was:" >&5
3341sed 's/^/| /' conftest.$ac_ext >&5
3342
3343
John Criswell7a73b802003-06-30 21:59:07 +00003344fi
Reid Spencera773bd52006-08-04 18:18:08 +00003345
3346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003347fi
Reid Spencera773bd52006-08-04 18:18:08 +00003348
3349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3350fi
3351
3352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3353 ac_c_werror_flag=$ac_save_c_werror_flag
3354fi
3355{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3356echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003357if test "$ac_test_CFLAGS" = set; then
3358 CFLAGS=$ac_save_CFLAGS
3359elif test $ac_cv_prog_cc_g = yes; then
3360 if test "$GCC" = yes; then
3361 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003362 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003363 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003364 fi
3365else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003366 if test "$GCC" = yes; then
3367 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003368 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003369 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003370 fi
3371fi
Reid Spencera773bd52006-08-04 18:18:08 +00003372{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3373echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3374if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003375 echo $ECHO_N "(cached) $ECHO_C" >&6
3376else
Reid Spencera773bd52006-08-04 18:18:08 +00003377 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003378ac_save_CC=$CC
3379cat >conftest.$ac_ext <<_ACEOF
3380/* confdefs.h. */
3381_ACEOF
3382cat confdefs.h >>conftest.$ac_ext
3383cat >>conftest.$ac_ext <<_ACEOF
3384/* end confdefs.h. */
3385#include <stdarg.h>
3386#include <stdio.h>
3387#include <sys/types.h>
3388#include <sys/stat.h>
3389/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3390struct buf { int x; };
3391FILE * (*rcsopen) (struct buf *, struct stat *, int);
3392static char *e (p, i)
3393 char **p;
3394 int i;
3395{
3396 return p[i];
3397}
3398static char *f (char * (*g) (char **, int), char **p, ...)
3399{
3400 char *s;
3401 va_list v;
3402 va_start (v,p);
3403 s = g (p, va_arg (v,int));
3404 va_end (v);
3405 return s;
3406}
3407
3408/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3409 function prototypes and stuff, but not '\xHH' hex character constants.
3410 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003411 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003412 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3413 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003414 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003415int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3416
Reid Spencera773bd52006-08-04 18:18:08 +00003417/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3418 inside strings and character constants. */
3419#define FOO(x) 'x'
3420int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3421
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003422int test (int i, double x);
3423struct s1 {int (*f) (int a);};
3424struct s2 {int (*f) (double a);};
3425int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3426int argc;
3427char **argv;
3428int
3429main ()
3430{
3431return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3432 ;
3433 return 0;
3434}
3435_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003436for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3437 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003438do
3439 CC="$ac_save_CC $ac_arg"
3440 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003441if { (ac_try="$ac_compile"
3442case "(($ac_try" in
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3445esac
3446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3447 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003448 ac_status=$?
3449 grep -v '^ *+' conftest.er1 >conftest.err
3450 rm -f conftest.er1
3451 cat conftest.err >&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003453 (exit $ac_status); } &&
3454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3455 { (case "(($ac_try" in
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3458esac
3459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3460 (eval "$ac_try") 2>&5
3461 ac_status=$?
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; } &&
3464 { ac_try='test -s conftest.$ac_objext'
3465 { (case "(($ac_try" in
3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467 *) ac_try_echo=$ac_try;;
3468esac
3469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3470 (eval "$ac_try") 2>&5
3471 ac_status=$?
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003474 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003475else
3476 echo "$as_me: failed program was:" >&5
3477sed 's/^/| /' conftest.$ac_ext >&5
3478
Reid Spencera773bd52006-08-04 18:18:08 +00003479
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003480fi
Reid Spencera773bd52006-08-04 18:18:08 +00003481
3482rm -f core conftest.err conftest.$ac_objext
3483 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003484done
Reid Spencera773bd52006-08-04 18:18:08 +00003485rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003486CC=$ac_save_CC
3487
3488fi
Reid Spencera773bd52006-08-04 18:18:08 +00003489# AC_CACHE_VAL
3490case "x$ac_cv_prog_cc_c89" in
3491 x)
3492 { echo "$as_me:$LINENO: result: none needed" >&5
3493echo "${ECHO_T}none needed" >&6; } ;;
3494 xno)
3495 { echo "$as_me:$LINENO: result: unsupported" >&5
3496echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003497 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003498 CC="$CC $ac_cv_prog_cc_c89"
3499 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3500echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003501esac
3502
John Criswell0c38eaf2003-09-10 15:17:25 +00003503
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003504ac_ext=c
3505ac_cpp='$CPP $CPPFLAGS'
3506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3508ac_compiler_gnu=$ac_cv_c_compiler_gnu
3509
3510
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003511ac_ext=c
3512ac_cpp='$CPP $CPPFLAGS'
3513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3515ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003516{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3517echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003518# On Suns, sometimes $CPP names a directory.
3519if test -n "$CPP" && test -d "$CPP"; then
3520 CPP=
3521fi
3522if test -z "$CPP"; then
3523 if test "${ac_cv_prog_CPP+set}" = set; then
3524 echo $ECHO_N "(cached) $ECHO_C" >&6
3525else
3526 # Double quotes because CPP needs to be expanded
3527 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3528 do
3529 ac_preproc_ok=false
3530for ac_c_preproc_warn_flag in '' yes
3531do
3532 # Use a header file that comes with gcc, so configuring glibc
3533 # with a fresh cross-compiler works.
3534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3535 # <limits.h> exists even on freestanding compilers.
3536 # On the NeXT, cc -E runs the code through the compiler's parser,
3537 # not just through cpp. "Syntax error" is here to catch this case.
3538 cat >conftest.$ac_ext <<_ACEOF
3539/* confdefs.h. */
3540_ACEOF
3541cat confdefs.h >>conftest.$ac_ext
3542cat >>conftest.$ac_ext <<_ACEOF
3543/* end confdefs.h. */
3544#ifdef __STDC__
3545# include <limits.h>
3546#else
3547# include <assert.h>
3548#endif
3549 Syntax error
3550_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003551if { (ac_try="$ac_cpp conftest.$ac_ext"
3552case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3555esac
3556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003558 ac_status=$?
3559 grep -v '^ *+' conftest.er1 >conftest.err
3560 rm -f conftest.er1
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003563 (exit $ac_status); } >/dev/null; then
3564 if test -s conftest.err; then
3565 ac_cpp_err=$ac_c_preproc_warn_flag
3566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3567 else
3568 ac_cpp_err=
3569 fi
3570else
3571 ac_cpp_err=yes
3572fi
3573if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003574 :
3575else
3576 echo "$as_me: failed program was:" >&5
3577sed 's/^/| /' conftest.$ac_ext >&5
3578
3579 # Broken: fails on valid input.
3580continue
3581fi
Reid Spencera773bd52006-08-04 18:18:08 +00003582
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003583rm -f conftest.err conftest.$ac_ext
3584
Reid Spencera773bd52006-08-04 18:18:08 +00003585 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003586 # can be detected and how.
3587 cat >conftest.$ac_ext <<_ACEOF
3588/* confdefs.h. */
3589_ACEOF
3590cat confdefs.h >>conftest.$ac_ext
3591cat >>conftest.$ac_ext <<_ACEOF
3592/* end confdefs.h. */
3593#include <ac_nonexistent.h>
3594_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003595if { (ac_try="$ac_cpp conftest.$ac_ext"
3596case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3599esac
3600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003602 ac_status=$?
3603 grep -v '^ *+' conftest.er1 >conftest.err
3604 rm -f conftest.er1
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003607 (exit $ac_status); } >/dev/null; then
3608 if test -s conftest.err; then
3609 ac_cpp_err=$ac_c_preproc_warn_flag
3610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3611 else
3612 ac_cpp_err=
3613 fi
3614else
3615 ac_cpp_err=yes
3616fi
3617if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003618 # Broken: success on invalid input.
3619continue
3620else
3621 echo "$as_me: failed program was:" >&5
3622sed 's/^/| /' conftest.$ac_ext >&5
3623
3624 # Passes both tests.
3625ac_preproc_ok=:
3626break
3627fi
Reid Spencera773bd52006-08-04 18:18:08 +00003628
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003629rm -f conftest.err conftest.$ac_ext
3630
3631done
3632# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3633rm -f conftest.err conftest.$ac_ext
3634if $ac_preproc_ok; then
3635 break
3636fi
3637
3638 done
3639 ac_cv_prog_CPP=$CPP
3640
3641fi
3642 CPP=$ac_cv_prog_CPP
3643else
3644 ac_cv_prog_CPP=$CPP
3645fi
Reid Spencera773bd52006-08-04 18:18:08 +00003646{ echo "$as_me:$LINENO: result: $CPP" >&5
3647echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003648ac_preproc_ok=false
3649for ac_c_preproc_warn_flag in '' yes
3650do
3651 # Use a header file that comes with gcc, so configuring glibc
3652 # with a fresh cross-compiler works.
3653 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3654 # <limits.h> exists even on freestanding compilers.
3655 # On the NeXT, cc -E runs the code through the compiler's parser,
3656 # not just through cpp. "Syntax error" is here to catch this case.
3657 cat >conftest.$ac_ext <<_ACEOF
3658/* confdefs.h. */
3659_ACEOF
3660cat confdefs.h >>conftest.$ac_ext
3661cat >>conftest.$ac_ext <<_ACEOF
3662/* end confdefs.h. */
3663#ifdef __STDC__
3664# include <limits.h>
3665#else
3666# include <assert.h>
3667#endif
3668 Syntax error
3669_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003670if { (ac_try="$ac_cpp conftest.$ac_ext"
3671case "(($ac_try" in
3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673 *) ac_try_echo=$ac_try;;
3674esac
3675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003677 ac_status=$?
3678 grep -v '^ *+' conftest.er1 >conftest.err
3679 rm -f conftest.er1
3680 cat conftest.err >&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003682 (exit $ac_status); } >/dev/null; then
3683 if test -s conftest.err; then
3684 ac_cpp_err=$ac_c_preproc_warn_flag
3685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3686 else
3687 ac_cpp_err=
3688 fi
3689else
3690 ac_cpp_err=yes
3691fi
3692if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003693 :
3694else
3695 echo "$as_me: failed program was:" >&5
3696sed 's/^/| /' conftest.$ac_ext >&5
3697
3698 # Broken: fails on valid input.
3699continue
3700fi
Reid Spencera773bd52006-08-04 18:18:08 +00003701
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003702rm -f conftest.err conftest.$ac_ext
3703
Reid Spencera773bd52006-08-04 18:18:08 +00003704 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003705 # can be detected and how.
3706 cat >conftest.$ac_ext <<_ACEOF
3707/* confdefs.h. */
3708_ACEOF
3709cat confdefs.h >>conftest.$ac_ext
3710cat >>conftest.$ac_ext <<_ACEOF
3711/* end confdefs.h. */
3712#include <ac_nonexistent.h>
3713_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003714if { (ac_try="$ac_cpp conftest.$ac_ext"
3715case "(($ac_try" in
3716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717 *) ac_try_echo=$ac_try;;
3718esac
3719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003721 ac_status=$?
3722 grep -v '^ *+' conftest.er1 >conftest.err
3723 rm -f conftest.er1
3724 cat conftest.err >&5
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003726 (exit $ac_status); } >/dev/null; then
3727 if test -s conftest.err; then
3728 ac_cpp_err=$ac_c_preproc_warn_flag
3729 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3730 else
3731 ac_cpp_err=
3732 fi
3733else
3734 ac_cpp_err=yes
3735fi
3736if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003737 # Broken: success on invalid input.
3738continue
3739else
3740 echo "$as_me: failed program was:" >&5
3741sed 's/^/| /' conftest.$ac_ext >&5
3742
3743 # Passes both tests.
3744ac_preproc_ok=:
3745break
3746fi
Reid Spencera773bd52006-08-04 18:18:08 +00003747
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003748rm -f conftest.err conftest.$ac_ext
3749
3750done
3751# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3752rm -f conftest.err conftest.$ac_ext
3753if $ac_preproc_ok; then
3754 :
3755else
3756 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3757See \`config.log' for more details." >&5
3758echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3759See \`config.log' for more details." >&2;}
3760 { (exit 1); exit 1; }; }
3761fi
3762
John Criswell7a73b802003-06-30 21:59:07 +00003763ac_ext=c
3764ac_cpp='$CPP $CPPFLAGS'
3765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767ac_compiler_gnu=$ac_cv_c_compiler_gnu
3768
John Criswell7a73b802003-06-30 21:59:07 +00003769
Reid Spencera773bd52006-08-04 18:18:08 +00003770{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3771echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003772if test "${ac_cv_path_GREP+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3774else
Reid Spencera773bd52006-08-04 18:18:08 +00003775 # Extract the first word of "grep ggrep" to use in msg output
3776if test -z "$GREP"; then
3777set dummy grep ggrep; ac_prog_name=$2
3778if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003779 echo $ECHO_N "(cached) $ECHO_C" >&6
3780else
Reid Spencera773bd52006-08-04 18:18:08 +00003781 ac_path_GREP_found=false
3782# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003784for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003785do
3786 IFS=$as_save_IFS
3787 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003788 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003789 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003790 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003791 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003792 # Check for GNU ac_path_GREP and select it if it is found.
3793 # Check for GNU $ac_path_GREP
3794case `"$ac_path_GREP" --version 2>&1` in
3795*GNU*)
3796 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3797*)
3798 ac_count=0
3799 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3800 while :
3801 do
3802 cat "conftest.in" "conftest.in" >"conftest.tmp"
3803 mv "conftest.tmp" "conftest.in"
3804 cp "conftest.in" "conftest.nl"
3805 echo 'GREP' >> "conftest.nl"
3806 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3807 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3808 ac_count=`expr $ac_count + 1`
3809 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3810 # Best one so far, save it but keep looking for a better one
3811 ac_cv_path_GREP="$ac_path_GREP"
3812 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003813 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003814 # 10*(2^10) chars as input seems more than enough
3815 test $ac_count -gt 10 && break
3816 done
3817 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3818esac
3819
3820
3821 $ac_path_GREP_found && break 3
3822 done
3823done
3824
3825done
3826IFS=$as_save_IFS
3827
3828
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003829fi
Reid Spencera773bd52006-08-04 18:18:08 +00003830
3831GREP="$ac_cv_path_GREP"
3832if test -z "$GREP"; then
3833 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3834echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3835 { (exit 1); exit 1; }; }
3836fi
3837
3838else
3839 ac_cv_path_GREP=$GREP
3840fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003841
John Criswell7a73b802003-06-30 21:59:07 +00003842
Reid Spencera773bd52006-08-04 18:18:08 +00003843fi
3844{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3845echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3846 GREP="$ac_cv_path_GREP"
3847
3848
3849{ echo "$as_me:$LINENO: checking for egrep" >&5
3850echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3851if test "${ac_cv_path_EGREP+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3853else
3854 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3855 then ac_cv_path_EGREP="$GREP -E"
3856 else
3857 # Extract the first word of "egrep" to use in msg output
3858if test -z "$EGREP"; then
3859set dummy egrep; ac_prog_name=$2
3860if test "${ac_cv_path_EGREP+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
3862else
3863 ac_path_EGREP_found=false
3864# Loop through the user's path and test for each of PROGNAME-LIST
3865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3867do
3868 IFS=$as_save_IFS
3869 test -z "$as_dir" && as_dir=.
3870 for ac_prog in egrep; do
3871 for ac_exec_ext in '' $ac_executable_extensions; do
3872 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003873 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003874 # Check for GNU ac_path_EGREP and select it if it is found.
3875 # Check for GNU $ac_path_EGREP
3876case `"$ac_path_EGREP" --version 2>&1` in
3877*GNU*)
3878 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3879*)
3880 ac_count=0
3881 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3882 while :
3883 do
3884 cat "conftest.in" "conftest.in" >"conftest.tmp"
3885 mv "conftest.tmp" "conftest.in"
3886 cp "conftest.in" "conftest.nl"
3887 echo 'EGREP' >> "conftest.nl"
3888 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3889 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3890 ac_count=`expr $ac_count + 1`
3891 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3892 # Best one so far, save it but keep looking for a better one
3893 ac_cv_path_EGREP="$ac_path_EGREP"
3894 ac_path_EGREP_max=$ac_count
3895 fi
3896 # 10*(2^10) chars as input seems more than enough
3897 test $ac_count -gt 10 && break
3898 done
3899 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3900esac
3901
3902
3903 $ac_path_EGREP_found && break 3
3904 done
3905done
3906
3907done
3908IFS=$as_save_IFS
3909
3910
3911fi
3912
3913EGREP="$ac_cv_path_EGREP"
3914if test -z "$EGREP"; then
3915 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3916echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3917 { (exit 1); exit 1; }; }
3918fi
3919
3920else
3921 ac_cv_path_EGREP=$EGREP
3922fi
3923
3924
3925 fi
3926fi
3927{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3928echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3929 EGREP="$ac_cv_path_EGREP"
3930
3931
3932{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3933echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003934if test "${ac_cv_header_stdc+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3936else
3937 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003938/* confdefs.h. */
3939_ACEOF
3940cat confdefs.h >>conftest.$ac_ext
3941cat >>conftest.$ac_ext <<_ACEOF
3942/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003943#include <stdlib.h>
3944#include <stdarg.h>
3945#include <string.h>
3946#include <float.h>
3947
John Criswell0c38eaf2003-09-10 15:17:25 +00003948int
3949main ()
3950{
3951
3952 ;
3953 return 0;
3954}
John Criswell7a73b802003-06-30 21:59:07 +00003955_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003956rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003957if { (ac_try="$ac_compile"
3958case "(($ac_try" in
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3961esac
3962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3963 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003964 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003965 grep -v '^ *+' conftest.er1 >conftest.err
3966 rm -f conftest.er1
3967 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003969 (exit $ac_status); } &&
3970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3971 { (case "(($ac_try" in
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3974esac
3975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3976 (eval "$ac_try") 2>&5
3977 ac_status=$?
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }; } &&
3980 { ac_try='test -s conftest.$ac_objext'
3981 { (case "(($ac_try" in
3982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983 *) ac_try_echo=$ac_try;;
3984esac
3985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3986 (eval "$ac_try") 2>&5
3987 ac_status=$?
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003990 ac_cv_header_stdc=yes
3991else
3992 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003993sed 's/^/| /' conftest.$ac_ext >&5
3994
Reid Spencera773bd52006-08-04 18:18:08 +00003995 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003996fi
Reid Spencera773bd52006-08-04 18:18:08 +00003997
3998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003999
4000if test $ac_cv_header_stdc = yes; then
4001 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4002 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004003/* confdefs.h. */
4004_ACEOF
4005cat confdefs.h >>conftest.$ac_ext
4006cat >>conftest.$ac_ext <<_ACEOF
4007/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004008#include <string.h>
4009
4010_ACEOF
4011if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004012 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004013 :
4014else
4015 ac_cv_header_stdc=no
4016fi
4017rm -f conftest*
4018
4019fi
4020
4021if test $ac_cv_header_stdc = yes; then
4022 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4023 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004024/* confdefs.h. */
4025_ACEOF
4026cat confdefs.h >>conftest.$ac_ext
4027cat >>conftest.$ac_ext <<_ACEOF
4028/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004029#include <stdlib.h>
4030
4031_ACEOF
4032if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004033 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004034 :
4035else
4036 ac_cv_header_stdc=no
4037fi
4038rm -f conftest*
4039
4040fi
4041
4042if test $ac_cv_header_stdc = yes; then
4043 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4044 if test "$cross_compiling" = yes; then
4045 :
4046else
4047 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004048/* confdefs.h. */
4049_ACEOF
4050cat confdefs.h >>conftest.$ac_ext
4051cat >>conftest.$ac_ext <<_ACEOF
4052/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004053#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004054#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004055#if ((' ' & 0x0FF) == 0x020)
4056# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4057# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4058#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004059# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004060 (('a' <= (c) && (c) <= 'i') \
4061 || ('j' <= (c) && (c) <= 'r') \
4062 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004063# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4064#endif
4065
4066#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4067int
4068main ()
4069{
4070 int i;
4071 for (i = 0; i < 256; i++)
4072 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004073 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004074 return 2;
4075 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004076}
4077_ACEOF
4078rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00004079if { (ac_try="$ac_link"
4080case "(($ac_try" in
4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4083esac
4084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004086 ac_status=$?
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00004089 { (case "(($ac_try" in
4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4092esac
4093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4094 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004095 ac_status=$?
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; }; then
4098 :
4099else
4100 echo "$as_me: program exited with status $ac_status" >&5
4101echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004102sed 's/^/| /' conftest.$ac_ext >&5
4103
John Criswell7a73b802003-06-30 21:59:07 +00004104( exit $ac_status )
4105ac_cv_header_stdc=no
4106fi
Reid Spencera773bd52006-08-04 18:18:08 +00004107rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4108fi
4109
4110
John Criswell7a73b802003-06-30 21:59:07 +00004111fi
4112fi
Reid Spencera773bd52006-08-04 18:18:08 +00004113{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4114echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004115if test $ac_cv_header_stdc = yes; then
4116
4117cat >>confdefs.h <<\_ACEOF
4118#define STDC_HEADERS 1
4119_ACEOF
4120
4121fi
4122
Reid Spencera773bd52006-08-04 18:18:08 +00004123# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4134 inttypes.h stdint.h unistd.h
4135do
4136as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4137{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4138echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4139if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4140 echo $ECHO_N "(cached) $ECHO_C" >&6
4141else
4142 cat >conftest.$ac_ext <<_ACEOF
4143/* confdefs.h. */
4144_ACEOF
4145cat confdefs.h >>conftest.$ac_ext
4146cat >>conftest.$ac_ext <<_ACEOF
4147/* end confdefs.h. */
4148$ac_includes_default
4149
4150#include <$ac_header>
4151_ACEOF
4152rm -f conftest.$ac_objext
4153if { (ac_try="$ac_compile"
4154case "(($ac_try" in
4155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156 *) ac_try_echo=$ac_try;;
4157esac
4158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159 (eval "$ac_compile") 2>conftest.er1
4160 ac_status=$?
4161 grep -v '^ *+' conftest.er1 >conftest.err
4162 rm -f conftest.er1
4163 cat conftest.err >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004165 (exit $ac_status); } &&
4166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4167 { (case "(($ac_try" in
4168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169 *) ac_try_echo=$ac_try;;
4170esac
4171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4172 (eval "$ac_try") 2>&5
4173 ac_status=$?
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); }; } &&
4176 { ac_try='test -s conftest.$ac_objext'
4177 { (case "(($ac_try" in
4178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4179 *) ac_try_echo=$ac_try;;
4180esac
4181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4182 (eval "$ac_try") 2>&5
4183 ac_status=$?
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004186 eval "$as_ac_Header=yes"
4187else
4188 echo "$as_me: failed program was:" >&5
4189sed 's/^/| /' conftest.$ac_ext >&5
4190
4191 eval "$as_ac_Header=no"
4192fi
4193
4194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4195fi
4196ac_res=`eval echo '${'$as_ac_Header'}'`
4197 { echo "$as_me:$LINENO: result: $ac_res" >&5
4198echo "${ECHO_T}$ac_res" >&6; }
4199if test `eval echo '${'$as_ac_Header'}'` = yes; then
4200 cat >>confdefs.h <<_ACEOF
4201#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4202_ACEOF
4203
4204fi
4205
4206done
4207
4208
4209{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4210echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4211if test "${ac_cv_c_bigendian+set}" = set; then
4212 echo $ECHO_N "(cached) $ECHO_C" >&6
4213else
4214 # See if sys/param.h defines the BYTE_ORDER macro.
4215cat >conftest.$ac_ext <<_ACEOF
4216/* confdefs.h. */
4217_ACEOF
4218cat confdefs.h >>conftest.$ac_ext
4219cat >>conftest.$ac_ext <<_ACEOF
4220/* end confdefs.h. */
4221#include <sys/types.h>
4222#include <sys/param.h>
4223
4224int
4225main ()
4226{
Bill Wendlingebcceee2009-04-18 11:20:33 +00004227#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004228 bogus endian macros
4229#endif
4230
4231 ;
4232 return 0;
4233}
4234_ACEOF
4235rm -f conftest.$ac_objext
4236if { (ac_try="$ac_compile"
4237case "(($ac_try" in
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4240esac
4241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4242 (eval "$ac_compile") 2>conftest.er1
4243 ac_status=$?
4244 grep -v '^ *+' conftest.er1 >conftest.err
4245 rm -f conftest.er1
4246 cat conftest.err >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004248 (exit $ac_status); } &&
4249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4250 { (case "(($ac_try" in
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4253esac
4254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4255 (eval "$ac_try") 2>&5
4256 ac_status=$?
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; } &&
4259 { ac_try='test -s conftest.$ac_objext'
4260 { (case "(($ac_try" in
4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262 *) ac_try_echo=$ac_try;;
4263esac
4264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265 (eval "$ac_try") 2>&5
4266 ac_status=$?
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004269 # It does; now see whether it defined to BIG_ENDIAN or not.
4270cat >conftest.$ac_ext <<_ACEOF
4271/* confdefs.h. */
4272_ACEOF
4273cat confdefs.h >>conftest.$ac_ext
4274cat >>conftest.$ac_ext <<_ACEOF
4275/* end confdefs.h. */
4276#include <sys/types.h>
4277#include <sys/param.h>
4278
4279int
4280main ()
4281{
4282#if BYTE_ORDER != BIG_ENDIAN
4283 not big endian
4284#endif
4285
4286 ;
4287 return 0;
4288}
4289_ACEOF
4290rm -f conftest.$ac_objext
4291if { (ac_try="$ac_compile"
4292case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4295esac
4296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4297 (eval "$ac_compile") 2>conftest.er1
4298 ac_status=$?
4299 grep -v '^ *+' conftest.er1 >conftest.err
4300 rm -f conftest.er1
4301 cat conftest.err >&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004303 (exit $ac_status); } &&
4304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4305 { (case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4308esac
4309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_try") 2>&5
4311 ac_status=$?
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }; } &&
4314 { ac_try='test -s conftest.$ac_objext'
4315 { (case "(($ac_try" in
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4318esac
4319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320 (eval "$ac_try") 2>&5
4321 ac_status=$?
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004324 ac_cv_c_bigendian=yes
4325else
4326 echo "$as_me: failed program was:" >&5
4327sed 's/^/| /' conftest.$ac_ext >&5
4328
4329 ac_cv_c_bigendian=no
4330fi
4331
4332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4333else
4334 echo "$as_me: failed program was:" >&5
4335sed 's/^/| /' conftest.$ac_ext >&5
4336
4337 # It does not; compile a test program.
4338if test "$cross_compiling" = yes; then
4339 # try to guess the endianness by grepping values into an object file
4340 ac_cv_c_bigendian=unknown
4341 cat >conftest.$ac_ext <<_ACEOF
4342/* confdefs.h. */
4343_ACEOF
4344cat confdefs.h >>conftest.$ac_ext
4345cat >>conftest.$ac_ext <<_ACEOF
4346/* end confdefs.h. */
4347short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4348short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4349void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4350short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4351short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4352void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4353int
4354main ()
4355{
4356 _ascii (); _ebcdic ();
4357 ;
4358 return 0;
4359}
4360_ACEOF
4361rm -f conftest.$ac_objext
4362if { (ac_try="$ac_compile"
4363case "(($ac_try" in
4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365 *) ac_try_echo=$ac_try;;
4366esac
4367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4368 (eval "$ac_compile") 2>conftest.er1
4369 ac_status=$?
4370 grep -v '^ *+' conftest.er1 >conftest.err
4371 rm -f conftest.er1
4372 cat conftest.err >&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004374 (exit $ac_status); } &&
4375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4376 { (case "(($ac_try" in
4377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378 *) ac_try_echo=$ac_try;;
4379esac
4380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4381 (eval "$ac_try") 2>&5
4382 ac_status=$?
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); }; } &&
4385 { ac_try='test -s conftest.$ac_objext'
4386 { (case "(($ac_try" in
4387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4388 *) ac_try_echo=$ac_try;;
4389esac
4390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4391 (eval "$ac_try") 2>&5
4392 ac_status=$?
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004395 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4396 ac_cv_c_bigendian=yes
4397fi
4398if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4399 if test "$ac_cv_c_bigendian" = unknown; then
4400 ac_cv_c_bigendian=no
4401 else
4402 # finding both strings is unlikely to happen, but who knows?
4403 ac_cv_c_bigendian=unknown
4404 fi
4405fi
4406else
4407 echo "$as_me: failed program was:" >&5
4408sed 's/^/| /' conftest.$ac_ext >&5
4409
4410
4411fi
4412
4413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4414else
4415 cat >conftest.$ac_ext <<_ACEOF
4416/* confdefs.h. */
4417_ACEOF
4418cat confdefs.h >>conftest.$ac_ext
4419cat >>conftest.$ac_ext <<_ACEOF
4420/* end confdefs.h. */
4421$ac_includes_default
4422int
4423main ()
4424{
4425
4426 /* Are we little or big endian? From Harbison&Steele. */
4427 union
4428 {
4429 long int l;
4430 char c[sizeof (long int)];
4431 } u;
4432 u.l = 1;
4433 return u.c[sizeof (long int) - 1] == 1;
4434
4435 ;
4436 return 0;
4437}
4438_ACEOF
4439rm -f conftest$ac_exeext
4440if { (ac_try="$ac_link"
4441case "(($ac_try" in
4442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443 *) ac_try_echo=$ac_try;;
4444esac
4445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4446 (eval "$ac_link") 2>&5
4447 ac_status=$?
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4450 { (case "(($ac_try" in
4451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452 *) ac_try_echo=$ac_try;;
4453esac
4454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4455 (eval "$ac_try") 2>&5
4456 ac_status=$?
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); }; }; then
4459 ac_cv_c_bigendian=no
4460else
4461 echo "$as_me: program exited with status $ac_status" >&5
4462echo "$as_me: failed program was:" >&5
4463sed 's/^/| /' conftest.$ac_ext >&5
4464
4465( exit $ac_status )
4466ac_cv_c_bigendian=yes
4467fi
4468rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4469fi
4470
4471
4472fi
4473
4474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4475fi
4476{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4477echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4478case $ac_cv_c_bigendian in
4479 yes)
4480 ENDIAN=big
4481 ;;
4482 no)
4483 ENDIAN=little
4484 ;;
4485 *)
4486 { { echo "$as_me:$LINENO: error: unknown endianness
4487presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4488echo "$as_me: error: unknown endianness
4489presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4490 { (exit 1); exit 1; }; } ;;
4491esac
4492
4493
4494if test "$cross_compiling" = yes; then
4495 LLVM_CROSS_COMPILING=1
4496
4497
4498{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4499echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4500if test "${ac_cv_build_exeext+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4502else
4503 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4504 ac_cv_build_exeext=.exe
4505else
4506 ac_build_prefix=${build_alias}-
4507
4508 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4509set dummy ${ac_build_prefix}gcc; ac_word=$2
4510{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4512if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4514else
4515 if test -n "$BUILD_CC"; then
4516 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4517else
4518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519for as_dir in $PATH
4520do
4521 IFS=$as_save_IFS
4522 test -z "$as_dir" && as_dir=.
4523 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004524 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 +00004525 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4527 break 2
4528 fi
4529done
4530done
4531IFS=$as_save_IFS
4532
4533fi
4534fi
4535BUILD_CC=$ac_cv_prog_BUILD_CC
4536if test -n "$BUILD_CC"; then
4537 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4538echo "${ECHO_T}$BUILD_CC" >&6; }
4539else
4540 { echo "$as_me:$LINENO: result: no" >&5
4541echo "${ECHO_T}no" >&6; }
4542fi
4543
4544
4545 if test -z "$BUILD_CC"; then
4546 # Extract the first word of "gcc", so it can be a program name with args.
4547set dummy gcc; ac_word=$2
4548{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4550if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4552else
4553 if test -n "$BUILD_CC"; then
4554 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4555else
4556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557for as_dir in $PATH
4558do
4559 IFS=$as_save_IFS
4560 test -z "$as_dir" && as_dir=.
4561 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004562 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 +00004563 ac_cv_prog_BUILD_CC="gcc"
4564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 break 2
4566 fi
4567done
4568done
4569IFS=$as_save_IFS
4570
4571fi
4572fi
4573BUILD_CC=$ac_cv_prog_BUILD_CC
4574if test -n "$BUILD_CC"; then
4575 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4576echo "${ECHO_T}$BUILD_CC" >&6; }
4577else
4578 { echo "$as_me:$LINENO: result: no" >&5
4579echo "${ECHO_T}no" >&6; }
4580fi
4581
4582
4583 if test -z "$BUILD_CC"; then
4584 # Extract the first word of "cc", so it can be a program name with args.
4585set dummy cc; ac_word=$2
4586{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4588if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4590else
4591 if test -n "$BUILD_CC"; then
4592 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4593else
4594 ac_prog_rejected=no
4595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596for as_dir in $PATH
4597do
4598 IFS=$as_save_IFS
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004601 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 +00004602 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4603 ac_prog_rejected=yes
4604 continue
4605 fi
4606 ac_cv_prog_BUILD_CC="cc"
4607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 break 2
4609 fi
4610done
4611done
4612IFS=$as_save_IFS
4613
4614if test $ac_prog_rejected = yes; then
4615 # We found a bogon in the path, so make sure we never use it.
4616 set dummy $ac_cv_prog_BUILD_CC
4617 shift
4618 if test $# != 0; then
4619 # We chose a different compiler from the bogus one.
4620 # However, it has the same basename, so the bogon will be chosen
4621 # first if we set BUILD_CC to just the basename; use the full file name.
4622 shift
4623 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4624 fi
4625fi
4626fi
4627fi
4628BUILD_CC=$ac_cv_prog_BUILD_CC
4629if test -n "$BUILD_CC"; then
4630 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4631echo "${ECHO_T}$BUILD_CC" >&6; }
4632else
4633 { echo "$as_me:$LINENO: result: no" >&5
4634echo "${ECHO_T}no" >&6; }
4635fi
4636
4637
4638 fi
4639 fi
4640 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4641echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4642 { (exit 1); exit 1; }; }
4643 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4644 rm -f conftest*
4645 echo 'int main () { return 0; }' > conftest.$ac_ext
4646 ac_cv_build_exeext=
4647 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4648 (eval $ac_build_link) 2>&5
4649 ac_status=$?
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); }; then
4652 for file in conftest.*; do
4653 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004654 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004655 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4656 esac
4657 done
4658 else
4659 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4660echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4661 { (exit 1); exit 1; }; }
4662 fi
4663 rm -f conftest*
4664 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4665fi
4666fi
4667
4668BUILD_EXEEXT=""
4669test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4670{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4671echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4672ac_build_exeext=$BUILD_EXEEXT
4673
Jim Grosbach673612e2008-10-02 22:56:44 +00004674 ac_build_prefix=${build_alias}-
4675 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4676set dummy ${ac_build_prefix}g++; ac_word=$2
4677{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4679if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4681else
4682 if test -n "$BUILD_CXX"; then
4683 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4684else
4685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686for as_dir in $PATH
4687do
4688 IFS=$as_save_IFS
4689 test -z "$as_dir" && as_dir=.
4690 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004691 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 +00004692 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4694 break 2
4695 fi
4696done
4697done
4698IFS=$as_save_IFS
4699
4700fi
4701fi
4702BUILD_CXX=$ac_cv_prog_BUILD_CXX
4703if test -n "$BUILD_CXX"; then
4704 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4705echo "${ECHO_T}$BUILD_CXX" >&6; }
4706else
4707 { echo "$as_me:$LINENO: result: no" >&5
4708echo "${ECHO_T}no" >&6; }
4709fi
4710
4711
4712 if test -z "$BUILD_CXX"; then
4713 # Extract the first word of "g++", so it can be a program name with args.
4714set dummy g++; ac_word=$2
4715{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4717if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4719else
4720 if test -n "$BUILD_CXX"; then
4721 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4722else
4723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724for as_dir in $PATH
4725do
4726 IFS=$as_save_IFS
4727 test -z "$as_dir" && as_dir=.
4728 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004729 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 +00004730 ac_cv_prog_BUILD_CXX="g++"
4731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 break 2
4733 fi
4734done
4735done
4736IFS=$as_save_IFS
4737
4738fi
4739fi
4740BUILD_CXX=$ac_cv_prog_BUILD_CXX
4741if test -n "$BUILD_CXX"; then
4742 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4743echo "${ECHO_T}$BUILD_CXX" >&6; }
4744else
4745 { echo "$as_me:$LINENO: result: no" >&5
4746echo "${ECHO_T}no" >&6; }
4747fi
4748
4749
4750 if test -z "$BUILD_CXX"; then
4751 # Extract the first word of "c++", so it can be a program name with args.
4752set dummy c++; ac_word=$2
4753{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4755if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4756 echo $ECHO_N "(cached) $ECHO_C" >&6
4757else
4758 if test -n "$BUILD_CXX"; then
4759 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4760else
4761 ac_prog_rejected=no
4762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763for as_dir in $PATH
4764do
4765 IFS=$as_save_IFS
4766 test -z "$as_dir" && as_dir=.
4767 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004768 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 +00004769 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4770 ac_prog_rejected=yes
4771 continue
4772 fi
4773 ac_cv_prog_BUILD_CXX="c++"
4774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4775 break 2
4776 fi
4777done
4778done
4779IFS=$as_save_IFS
4780
4781if test $ac_prog_rejected = yes; then
4782 # We found a bogon in the path, so make sure we never use it.
4783 set dummy $ac_cv_prog_BUILD_CXX
4784 shift
4785 if test $# != 0; then
4786 # We chose a different compiler from the bogus one.
4787 # However, it has the same basename, so the bogon will be chosen
4788 # first if we set BUILD_CXX to just the basename; use the full file name.
4789 shift
4790 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4791 fi
4792fi
4793fi
4794fi
4795BUILD_CXX=$ac_cv_prog_BUILD_CXX
4796if test -n "$BUILD_CXX"; then
4797 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4798echo "${ECHO_T}$BUILD_CXX" >&6; }
4799else
4800 { echo "$as_me:$LINENO: result: no" >&5
4801echo "${ECHO_T}no" >&6; }
4802fi
4803
4804
4805 fi
4806 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004807else
4808 LLVM_CROSS_COMPILING=0
4809
4810fi
4811
Nick Lewycky5b28f862009-04-10 05:18:27 +00004812if 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 +00004813 cvsbuild="yes"
4814 optimize="no"
4815 CVSBUILD=CVSBUILD=1
4816
4817else
4818 cvsbuild="no"
4819 optimize="yes"
4820fi
4821
4822
4823# Check whether --enable-optimized was given.
4824if test "${enable_optimized+set}" = set; then
4825 enableval=$enable_optimized;
4826else
4827 enableval=$optimize
4828fi
4829
4830if test ${enableval} = "no" ; then
4831 ENABLE_OPTIMIZED=
4832
4833else
4834 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4835
4836fi
4837
David Greene2a5a12c2009-04-17 14:50:39 +00004838# Check whether --enable-profiling was given.
4839if test "${enable_profiling+set}" = set; then
4840 enableval=$enable_profiling;
4841else
4842 enableval="no"
4843fi
4844
4845if test ${enableval} = "no" ; then
4846 ENABLE_PROFILING=
4847
4848else
4849 ENABLE_PROFILING=ENABLE_PROFILING=1
4850
4851fi
4852
Reid Spencera773bd52006-08-04 18:18:08 +00004853# Check whether --enable-assertions was given.
4854if test "${enable_assertions+set}" = set; then
4855 enableval=$enable_assertions;
4856else
4857 enableval="yes"
4858fi
4859
4860if test ${enableval} = "yes" ; then
4861 DISABLE_ASSERTIONS=
4862
4863else
4864 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4865
4866fi
4867
David Greenea696d242007-06-28 19:36:08 +00004868# Check whether --enable-expensive-checks was given.
4869if test "${enable_expensive_checks+set}" = set; then
4870 enableval=$enable_expensive_checks;
4871else
4872 enableval="no"
4873fi
4874
4875if test ${enableval} = "yes" ; then
4876 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4877
4878 EXPENSIVE_CHECKS=yes
4879
4880else
4881 ENABLE_EXPENSIVE_CHECKS=
4882
4883 EXPENSIVE_CHECKS=no
4884
4885fi
4886
Reid Spencer8b2e1412006-11-17 03:32:33 +00004887# Check whether --enable-debug-runtime was given.
4888if test "${enable_debug_runtime+set}" = set; then
4889 enableval=$enable_debug_runtime;
4890else
4891 enableval=no
4892fi
4893
4894if test ${enableval} = "no" ; then
4895 DEBUG_RUNTIME=
4896
4897else
4898 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4899
4900fi
4901
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004902# Check whether --enable-debug-symbols was given.
4903if test "${enable_debug_symbols+set}" = set; then
4904 enableval=$enable_debug_symbols;
4905else
4906 enableval=no
4907fi
4908
4909if test ${enableval} = "no" ; then
4910 DEBUG_SYMBOLS=
4911
4912else
4913 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4914
4915fi
4916
Reid Spencera773bd52006-08-04 18:18:08 +00004917# Check whether --enable-jit was given.
4918if test "${enable_jit+set}" = set; then
4919 enableval=$enable_jit;
4920else
4921 enableval=default
4922fi
4923
4924if test ${enableval} = "no"
4925then
4926 JIT=
4927
4928else
4929 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004930 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004931 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004932 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004933 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004934 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004935 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004936 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004937 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004938 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004939 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004940 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004941 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004942 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004943 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004944 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004945 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004946 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004947 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004948 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004949 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004950 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004951 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004952 Blackfin) TARGET_HAS_JIT=0
4953 ;;
4954 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004955 ;;
4956 esac
4957fi
4958
4959# Check whether --enable-doxygen was given.
4960if test "${enable_doxygen+set}" = set; then
4961 enableval=$enable_doxygen;
4962else
4963 enableval=default
4964fi
4965
4966case "$enableval" in
4967 yes) ENABLE_DOXYGEN=1
4968 ;;
4969 no) ENABLE_DOXYGEN=0
4970 ;;
4971 default) ENABLE_DOXYGEN=0
4972 ;;
4973 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4974echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4975 { (exit 1); exit 1; }; } ;;
4976esac
4977
4978# Check whether --enable-threads was given.
4979if test "${enable_threads+set}" = set; then
4980 enableval=$enable_threads;
4981else
Reid Spencer65c5d752006-11-05 17:08:18 +00004982 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004983fi
4984
4985case "$enableval" in
4986 yes) ENABLE_THREADS=1
4987 ;;
4988 no) ENABLE_THREADS=0
4989 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004990 default) ENABLE_THREADS=1
4991 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004992 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4993echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4994 { (exit 1); exit 1; }; } ;;
4995esac
4996
Owen Andersona8603702009-05-19 22:18:56 +00004997cat >>confdefs.h <<_ACEOF
4998#define ENABLE_THREADS $ENABLE_THREADS
4999_ACEOF
5000
5001
Reid Spencer89b0d992006-12-16 22:07:52 +00005002# Check whether --enable-pic was given.
5003if test "${enable_pic+set}" = set; then
5004 enableval=$enable_pic;
5005else
5006 enableval=default
5007fi
5008
5009case "$enableval" in
5010 yes) ENABLE_PIC=1
5011 ;;
5012 no) ENABLE_PIC=0
5013 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005014 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005015 ;;
5016 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5017echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5018 { (exit 1); exit 1; }; } ;;
5019esac
5020
5021cat >>confdefs.h <<_ACEOF
5022#define ENABLE_PIC $ENABLE_PIC
5023_ACEOF
5024
5025
Reid Spencera773bd52006-08-04 18:18:08 +00005026TARGETS_TO_BUILD=""
5027# Check whether --enable-targets was given.
5028if test "${enable_targets+set}" = set; then
5029 enableval=$enable_targets;
5030else
5031 enableval=all
5032fi
5033
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005034if test "$enableval" = host-only ; then
5035 enableval=host
5036fi
Reid Spencera773bd52006-08-04 18:18:08 +00005037case "$enableval" in
Jakob Stoklund Olesen73b7bb72009-08-02 17:32:37 +00005038 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005039 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5040 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005041 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5042 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5043 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5044 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5045 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5046 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5047 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5048 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5049 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5050 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5051 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5052 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5053 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5054 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5055 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5056 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005057 host) case "$llvm_cv_target_arch" in
5058 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5059 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5060 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5061 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5062 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5063 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5064 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5065 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5066 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5067 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5068 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5069 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5070 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5071 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5072echo "$as_me: error: Can not set target to build" >&2;}
5073 { (exit 1); exit 1; }; } ;;
5074 esac ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005075 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5076echo "$as_me: error: Unrecognized target $a_target" >&2;}
5077 { (exit 1); exit 1; }; } ;;
5078 esac
5079 done
5080 ;;
5081esac
Reid Spencera773bd52006-08-04 18:18:08 +00005082TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5083
5084
Douglas Gregor0711c302009-06-17 00:43:20 +00005085# Determine whether we are building LLVM support for the native architecture.
5086# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5087for a_target in $TARGETS_TO_BUILD; do
5088 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00005089 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00005090
5091cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00005092#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00005093_ACEOF
5094
5095 fi
5096done
5097
Douglas Gregor1555a232009-06-16 20:12:29 +00005098# Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005099# Targets.def, AsmPrinters.def, and AsmParsers.def.
Douglas Gregor1555a232009-06-16 20:12:29 +00005100LLVM_ENUM_TARGETS=""
5101LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005102LLVM_ENUM_ASM_PARSERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005103for target_to_build in $TARGETS_TO_BUILD; do
5104 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5105 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5106 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5107 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005108 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5109 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5110 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005111done
5112
5113
5114
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005115
Reid Spencer65c5d752006-11-05 17:08:18 +00005116# Check whether --enable-cbe-printf-a was given.
5117if test "${enable_cbe_printf_a+set}" = set; then
5118 enableval=$enable_cbe_printf_a;
5119else
5120 enableval=default
5121fi
5122
5123case "$enableval" in
5124 yes) ENABLE_CBE_PRINTF_A=1
5125 ;;
5126 no) ENABLE_CBE_PRINTF_A=0
5127 ;;
5128 default) ENABLE_CBE_PRINTF_A=1
5129 ;;
5130 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5131echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5132 { (exit 1); exit 1; }; } ;;
5133esac
5134
5135cat >>confdefs.h <<_ACEOF
5136#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5137_ACEOF
5138
5139
Reid Spencera773bd52006-08-04 18:18:08 +00005140
5141# Check whether --with-llvmgccdir was given.
5142if test "${with_llvmgccdir+set}" = set; then
5143 withval=$with_llvmgccdir;
5144else
5145 withval=default
5146fi
5147
5148case "$withval" in
5149 default) WITH_LLVMGCCDIR=default ;;
5150 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5151 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5152echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5153 { (exit 1); exit 1; }; } ;;
5154esac
5155
5156
Devang Patel5d28b882007-12-04 22:54:47 +00005157# Check whether --with-llvmgcc was given.
5158if test "${with_llvmgcc+set}" = set; then
5159 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5160 WITH_LLVMGCCDIR=""
5161fi
5162
5163
5164
5165# Check whether --with-llvmgxx was given.
5166if test "${with_llvmgxx+set}" = set; then
5167 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5168 WITH_LLVMGCCDIR=""
5169fi
5170
Douglas Gregor01746742009-05-11 18:05:52 +00005171
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005172if test -n "$LLVMGCC"; then
5173 LLVMGCCCOMMAND="$LLVMGCC"
5174fi
5175
5176if test -n "$LLVMGXX"; then
5177 LLVMGXXCOMMAND="$LLVMGXX"
5178fi
Devang Patel5d28b882007-12-04 22:54:47 +00005179
5180if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5181 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5182echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5183 { (exit 1); exit 1; }; };
5184fi
5185
5186if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5187 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5188echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5189 { (exit 1); exit 1; }; };
5190fi
5191
5192
Reid Spencera773bd52006-08-04 18:18:08 +00005193# Check whether --with-extra-options was given.
5194if test "${with_extra_options+set}" = set; then
5195 withval=$with_extra_options;
5196else
5197 withval=default
5198fi
5199
5200case "$withval" in
5201 default) EXTRA_OPTIONS= ;;
5202 *) EXTRA_OPTIONS=$withval ;;
5203esac
5204EXTRA_OPTIONS=$EXTRA_OPTIONS
5205
5206
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005207# Check whether --enable-bindings was given.
5208if test "${enable_bindings+set}" = set; then
5209 enableval=$enable_bindings;
5210else
5211 enableval=default
5212fi
5213
5214BINDINGS_TO_BUILD=""
5215case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005216 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005217 all ) BINDINGS_TO_BUILD="ocaml" ;;
5218 none | no) BINDINGS_TO_BUILD="" ;;
5219 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5220 case "$a_binding" in
5221 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5222 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5223echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5224 { (exit 1); exit 1; }; } ;;
5225 esac
5226 done
5227 ;;
5228esac
5229
Reid Spencera773bd52006-08-04 18:18:08 +00005230
Gordon Henriksenf0915682007-10-02 16:42:22 +00005231# Check whether --with-ocaml-libdir was given.
5232if test "${with_ocaml_libdir+set}" = set; then
5233 withval=$with_ocaml_libdir;
5234else
5235 withval=auto
5236fi
5237
5238case "$withval" in
5239 auto) with_ocaml_libdir="$withval" ;;
5240 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5241 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5242echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5243 { (exit 1); exit 1; }; } ;;
5244esac
5245
5246
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005247# Check whether --with-binutils-include was given.
5248if test "${with_binutils_include+set}" = set; then
5249 withval=$with_binutils_include;
5250else
5251 withval=default
5252fi
5253
5254case "$withval" in
5255 default) WITH_BINUTILS_INCDIR=default ;;
5256 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5257 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5258echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5259 { (exit 1); exit 1; }; } ;;
5260esac
5261if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5262 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5263
5264 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5265 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5266 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5267echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5268 { (exit 1); exit 1; }; };
5269 fi
5270fi
5271
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005272# Check whether --enable-libffi was given.
5273if test "${enable_libffi+set}" = set; then
5274 enableval=$enable_libffi;
5275else
5276 enableval=yes
5277fi
5278
5279case "$enableval" in
5280 yes) llvm_cv_enable_libffi="yes" ;;
5281 no) llvm_cv_enable_libffi="no" ;;
5282 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5283echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5284 { (exit 1); exit 1; }; } ;;
5285esac
5286
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005287if test "$llvm_cv_os_type" = "Win32" ; then
5288 llvmc_dynamic="yes"
5289else
5290 llvmc_dynamic="no"
5291fi
5292
5293# Check whether --enable-llvmc-dynamic was given.
5294if test "${enable_llvmc_dynamic+set}" = set; then
5295 enableval=$enable_llvmc_dynamic;
5296else
5297 enableval=$llvmc_dynamic
5298fi
5299
5300if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5301 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5302
5303else
5304 ENABLE_LLVMC_DYNAMIC=
5305
5306fi
5307
5308# Check whether --enable-llvmc-dynamic-plugins was given.
5309if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5310 enableval=$enable_llvmc_dynamic_plugins;
5311else
5312 enableval=yes
5313fi
5314
5315if test ${enableval} = "yes" ; then
5316 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5317
5318else
5319 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5320
5321fi
5322
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005323
Reid Spencera773bd52006-08-04 18:18:08 +00005324ac_ext=c
5325ac_cpp='$CPP $CPPFLAGS'
5326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5328ac_compiler_gnu=$ac_cv_c_compiler_gnu
5329{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5330echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5331# On Suns, sometimes $CPP names a directory.
5332if test -n "$CPP" && test -d "$CPP"; then
5333 CPP=
5334fi
5335if test -z "$CPP"; then
5336 if test "${ac_cv_prog_CPP+set}" = set; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5338else
5339 # Double quotes because CPP needs to be expanded
5340 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5341 do
5342 ac_preproc_ok=false
5343for ac_c_preproc_warn_flag in '' yes
5344do
5345 # Use a header file that comes with gcc, so configuring glibc
5346 # with a fresh cross-compiler works.
5347 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5348 # <limits.h> exists even on freestanding compilers.
5349 # On the NeXT, cc -E runs the code through the compiler's parser,
5350 # not just through cpp. "Syntax error" is here to catch this case.
5351 cat >conftest.$ac_ext <<_ACEOF
5352/* confdefs.h. */
5353_ACEOF
5354cat confdefs.h >>conftest.$ac_ext
5355cat >>conftest.$ac_ext <<_ACEOF
5356/* end confdefs.h. */
5357#ifdef __STDC__
5358# include <limits.h>
5359#else
5360# include <assert.h>
5361#endif
5362 Syntax error
5363_ACEOF
5364if { (ac_try="$ac_cpp conftest.$ac_ext"
5365case "(($ac_try" in
5366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5367 *) ac_try_echo=$ac_try;;
5368esac
5369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5371 ac_status=$?
5372 grep -v '^ *+' conftest.er1 >conftest.err
5373 rm -f conftest.er1
5374 cat conftest.err >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005376 (exit $ac_status); } >/dev/null; then
5377 if test -s conftest.err; then
5378 ac_cpp_err=$ac_c_preproc_warn_flag
5379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5380 else
5381 ac_cpp_err=
5382 fi
5383else
5384 ac_cpp_err=yes
5385fi
5386if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005387 :
5388else
5389 echo "$as_me: failed program was:" >&5
5390sed 's/^/| /' conftest.$ac_ext >&5
5391
5392 # Broken: fails on valid input.
5393continue
5394fi
5395
5396rm -f conftest.err conftest.$ac_ext
5397
5398 # OK, works on sane cases. Now check whether nonexistent headers
5399 # can be detected and how.
5400 cat >conftest.$ac_ext <<_ACEOF
5401/* confdefs.h. */
5402_ACEOF
5403cat confdefs.h >>conftest.$ac_ext
5404cat >>conftest.$ac_ext <<_ACEOF
5405/* end confdefs.h. */
5406#include <ac_nonexistent.h>
5407_ACEOF
5408if { (ac_try="$ac_cpp conftest.$ac_ext"
5409case "(($ac_try" in
5410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5411 *) ac_try_echo=$ac_try;;
5412esac
5413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5415 ac_status=$?
5416 grep -v '^ *+' conftest.er1 >conftest.err
5417 rm -f conftest.er1
5418 cat conftest.err >&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005420 (exit $ac_status); } >/dev/null; then
5421 if test -s conftest.err; then
5422 ac_cpp_err=$ac_c_preproc_warn_flag
5423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5424 else
5425 ac_cpp_err=
5426 fi
5427else
5428 ac_cpp_err=yes
5429fi
5430if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005431 # Broken: success on invalid input.
5432continue
5433else
5434 echo "$as_me: failed program was:" >&5
5435sed 's/^/| /' conftest.$ac_ext >&5
5436
5437 # Passes both tests.
5438ac_preproc_ok=:
5439break
5440fi
5441
5442rm -f conftest.err conftest.$ac_ext
5443
5444done
5445# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5446rm -f conftest.err conftest.$ac_ext
5447if $ac_preproc_ok; then
5448 break
5449fi
5450
5451 done
5452 ac_cv_prog_CPP=$CPP
5453
5454fi
5455 CPP=$ac_cv_prog_CPP
5456else
5457 ac_cv_prog_CPP=$CPP
5458fi
5459{ echo "$as_me:$LINENO: result: $CPP" >&5
5460echo "${ECHO_T}$CPP" >&6; }
5461ac_preproc_ok=false
5462for ac_c_preproc_warn_flag in '' yes
5463do
5464 # Use a header file that comes with gcc, so configuring glibc
5465 # with a fresh cross-compiler works.
5466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5467 # <limits.h> exists even on freestanding compilers.
5468 # On the NeXT, cc -E runs the code through the compiler's parser,
5469 # not just through cpp. "Syntax error" is here to catch this case.
5470 cat >conftest.$ac_ext <<_ACEOF
5471/* confdefs.h. */
5472_ACEOF
5473cat confdefs.h >>conftest.$ac_ext
5474cat >>conftest.$ac_ext <<_ACEOF
5475/* end confdefs.h. */
5476#ifdef __STDC__
5477# include <limits.h>
5478#else
5479# include <assert.h>
5480#endif
5481 Syntax error
5482_ACEOF
5483if { (ac_try="$ac_cpp conftest.$ac_ext"
5484case "(($ac_try" in
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5487esac
5488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5490 ac_status=$?
5491 grep -v '^ *+' conftest.er1 >conftest.err
5492 rm -f conftest.er1
5493 cat conftest.err >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005495 (exit $ac_status); } >/dev/null; then
5496 if test -s conftest.err; then
5497 ac_cpp_err=$ac_c_preproc_warn_flag
5498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5499 else
5500 ac_cpp_err=
5501 fi
5502else
5503 ac_cpp_err=yes
5504fi
5505if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005506 :
5507else
5508 echo "$as_me: failed program was:" >&5
5509sed 's/^/| /' conftest.$ac_ext >&5
5510
5511 # Broken: fails on valid input.
5512continue
5513fi
5514
5515rm -f conftest.err conftest.$ac_ext
5516
5517 # OK, works on sane cases. Now check whether nonexistent headers
5518 # can be detected and how.
5519 cat >conftest.$ac_ext <<_ACEOF
5520/* confdefs.h. */
5521_ACEOF
5522cat confdefs.h >>conftest.$ac_ext
5523cat >>conftest.$ac_ext <<_ACEOF
5524/* end confdefs.h. */
5525#include <ac_nonexistent.h>
5526_ACEOF
5527if { (ac_try="$ac_cpp conftest.$ac_ext"
5528case "(($ac_try" in
5529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5530 *) ac_try_echo=$ac_try;;
5531esac
5532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5534 ac_status=$?
5535 grep -v '^ *+' conftest.er1 >conftest.err
5536 rm -f conftest.er1
5537 cat conftest.err >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005539 (exit $ac_status); } >/dev/null; then
5540 if test -s conftest.err; then
5541 ac_cpp_err=$ac_c_preproc_warn_flag
5542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5543 else
5544 ac_cpp_err=
5545 fi
5546else
5547 ac_cpp_err=yes
5548fi
5549if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005550 # Broken: success on invalid input.
5551continue
5552else
5553 echo "$as_me: failed program was:" >&5
5554sed 's/^/| /' conftest.$ac_ext >&5
5555
5556 # Passes both tests.
5557ac_preproc_ok=:
5558break
5559fi
5560
5561rm -f conftest.err conftest.$ac_ext
5562
5563done
5564# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5565rm -f conftest.err conftest.$ac_ext
5566if $ac_preproc_ok; then
5567 :
5568else
5569 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5570See \`config.log' for more details." >&5
5571echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5572See \`config.log' for more details." >&2;}
5573 { (exit 1); exit 1; }; }
5574fi
5575
5576ac_ext=c
5577ac_cpp='$CPP $CPPFLAGS'
5578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5580ac_compiler_gnu=$ac_cv_c_compiler_gnu
5581
5582ac_ext=c
5583ac_cpp='$CPP $CPPFLAGS'
5584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5586ac_compiler_gnu=$ac_cv_c_compiler_gnu
5587if test -n "$ac_tool_prefix"; then
5588 for ac_prog in gcc
5589 do
5590 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5591set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5592{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5594if test "${ac_cv_prog_CC+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5596else
5597 if test -n "$CC"; then
5598 ac_cv_prog_CC="$CC" # Let the user override the test.
5599else
5600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601for as_dir in $PATH
5602do
5603 IFS=$as_save_IFS
5604 test -z "$as_dir" && as_dir=.
5605 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005606 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 +00005607 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5609 break 2
5610 fi
5611done
5612done
5613IFS=$as_save_IFS
5614
5615fi
5616fi
5617CC=$ac_cv_prog_CC
5618if test -n "$CC"; then
5619 { echo "$as_me:$LINENO: result: $CC" >&5
5620echo "${ECHO_T}$CC" >&6; }
5621else
5622 { echo "$as_me:$LINENO: result: no" >&5
5623echo "${ECHO_T}no" >&6; }
5624fi
5625
5626
5627 test -n "$CC" && break
5628 done
5629fi
5630if test -z "$CC"; then
5631 ac_ct_CC=$CC
5632 for ac_prog in gcc
5633do
5634 # Extract the first word of "$ac_prog", so it can be a program name with args.
5635set dummy $ac_prog; ac_word=$2
5636{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5638if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5640else
5641 if test -n "$ac_ct_CC"; then
5642 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5643else
5644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645for as_dir in $PATH
5646do
5647 IFS=$as_save_IFS
5648 test -z "$as_dir" && as_dir=.
5649 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005650 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 +00005651 ac_cv_prog_ac_ct_CC="$ac_prog"
5652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5653 break 2
5654 fi
5655done
5656done
5657IFS=$as_save_IFS
5658
5659fi
5660fi
5661ac_ct_CC=$ac_cv_prog_ac_ct_CC
5662if test -n "$ac_ct_CC"; then
5663 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5664echo "${ECHO_T}$ac_ct_CC" >&6; }
5665else
5666 { echo "$as_me:$LINENO: result: no" >&5
5667echo "${ECHO_T}no" >&6; }
5668fi
5669
5670
5671 test -n "$ac_ct_CC" && break
5672done
5673
5674 if test "x$ac_ct_CC" = x; then
5675 CC=""
5676 else
5677 case $cross_compiling:$ac_tool_warned in
5678yes:)
5679{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5680whose name does not start with the host triplet. If you think this
5681configuration is useful to you, please write to autoconf@gnu.org." >&5
5682echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5683whose name does not start with the host triplet. If you think this
5684configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5685ac_tool_warned=yes ;;
5686esac
5687 CC=$ac_ct_CC
5688 fi
5689fi
5690
5691
5692test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5693See \`config.log' for more details." >&5
5694echo "$as_me: error: no acceptable C compiler found in \$PATH
5695See \`config.log' for more details." >&2;}
5696 { (exit 1); exit 1; }; }
5697
5698# Provide some information about the compiler.
5699echo "$as_me:$LINENO: checking for C compiler version" >&5
5700ac_compiler=`set X $ac_compile; echo $2`
5701{ (ac_try="$ac_compiler --version >&5"
5702case "(($ac_try" in
5703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704 *) ac_try_echo=$ac_try;;
5705esac
5706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5707 (eval "$ac_compiler --version >&5") 2>&5
5708 ac_status=$?
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); }
5711{ (ac_try="$ac_compiler -v >&5"
5712case "(($ac_try" in
5713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5714 *) ac_try_echo=$ac_try;;
5715esac
5716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5717 (eval "$ac_compiler -v >&5") 2>&5
5718 ac_status=$?
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }
5721{ (ac_try="$ac_compiler -V >&5"
5722case "(($ac_try" in
5723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724 *) ac_try_echo=$ac_try;;
5725esac
5726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5727 (eval "$ac_compiler -V >&5") 2>&5
5728 ac_status=$?
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }
5731
5732{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5733echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5734if test "${ac_cv_c_compiler_gnu+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5736else
5737 cat >conftest.$ac_ext <<_ACEOF
5738/* confdefs.h. */
5739_ACEOF
5740cat confdefs.h >>conftest.$ac_ext
5741cat >>conftest.$ac_ext <<_ACEOF
5742/* end confdefs.h. */
5743
5744int
5745main ()
5746{
5747#ifndef __GNUC__
5748 choke me
5749#endif
5750
5751 ;
5752 return 0;
5753}
5754_ACEOF
5755rm -f conftest.$ac_objext
5756if { (ac_try="$ac_compile"
5757case "(($ac_try" in
5758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5759 *) ac_try_echo=$ac_try;;
5760esac
5761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5762 (eval "$ac_compile") 2>conftest.er1
5763 ac_status=$?
5764 grep -v '^ *+' conftest.er1 >conftest.err
5765 rm -f conftest.er1
5766 cat conftest.err >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005768 (exit $ac_status); } &&
5769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5770 { (case "(($ac_try" in
5771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772 *) ac_try_echo=$ac_try;;
5773esac
5774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775 (eval "$ac_try") 2>&5
5776 ac_status=$?
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; } &&
5779 { ac_try='test -s conftest.$ac_objext'
5780 { (case "(($ac_try" in
5781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782 *) ac_try_echo=$ac_try;;
5783esac
5784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5785 (eval "$ac_try") 2>&5
5786 ac_status=$?
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005789 ac_compiler_gnu=yes
5790else
5791 echo "$as_me: failed program was:" >&5
5792sed 's/^/| /' conftest.$ac_ext >&5
5793
5794 ac_compiler_gnu=no
5795fi
5796
5797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798ac_cv_c_compiler_gnu=$ac_compiler_gnu
5799
5800fi
5801{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5802echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5803GCC=`test $ac_compiler_gnu = yes && echo yes`
5804ac_test_CFLAGS=${CFLAGS+set}
5805ac_save_CFLAGS=$CFLAGS
5806{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5807echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5808if test "${ac_cv_prog_cc_g+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5810else
5811 ac_save_c_werror_flag=$ac_c_werror_flag
5812 ac_c_werror_flag=yes
5813 ac_cv_prog_cc_g=no
5814 CFLAGS="-g"
5815 cat >conftest.$ac_ext <<_ACEOF
5816/* confdefs.h. */
5817_ACEOF
5818cat confdefs.h >>conftest.$ac_ext
5819cat >>conftest.$ac_ext <<_ACEOF
5820/* end confdefs.h. */
5821
5822int
5823main ()
5824{
5825
5826 ;
5827 return 0;
5828}
5829_ACEOF
5830rm -f conftest.$ac_objext
5831if { (ac_try="$ac_compile"
5832case "(($ac_try" in
5833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834 *) ac_try_echo=$ac_try;;
5835esac
5836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5837 (eval "$ac_compile") 2>conftest.er1
5838 ac_status=$?
5839 grep -v '^ *+' conftest.er1 >conftest.err
5840 rm -f conftest.er1
5841 cat conftest.err >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005843 (exit $ac_status); } &&
5844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5845 { (case "(($ac_try" in
5846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5847 *) ac_try_echo=$ac_try;;
5848esac
5849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5850 (eval "$ac_try") 2>&5
5851 ac_status=$?
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; } &&
5854 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005864 ac_cv_prog_cc_g=yes
5865else
5866 echo "$as_me: failed program was:" >&5
5867sed 's/^/| /' conftest.$ac_ext >&5
5868
5869 CFLAGS=""
5870 cat >conftest.$ac_ext <<_ACEOF
5871/* confdefs.h. */
5872_ACEOF
5873cat confdefs.h >>conftest.$ac_ext
5874cat >>conftest.$ac_ext <<_ACEOF
5875/* end confdefs.h. */
5876
5877int
5878main ()
5879{
5880
5881 ;
5882 return 0;
5883}
5884_ACEOF
5885rm -f conftest.$ac_objext
5886if { (ac_try="$ac_compile"
5887case "(($ac_try" in
5888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889 *) ac_try_echo=$ac_try;;
5890esac
5891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5892 (eval "$ac_compile") 2>conftest.er1
5893 ac_status=$?
5894 grep -v '^ *+' conftest.er1 >conftest.err
5895 rm -f conftest.er1
5896 cat conftest.err >&5
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005898 (exit $ac_status); } &&
5899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5900 { (case "(($ac_try" in
5901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5902 *) ac_try_echo=$ac_try;;
5903esac
5904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5905 (eval "$ac_try") 2>&5
5906 ac_status=$?
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); }; } &&
5909 { ac_try='test -s conftest.$ac_objext'
5910 { (case "(($ac_try" in
5911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912 *) ac_try_echo=$ac_try;;
5913esac
5914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915 (eval "$ac_try") 2>&5
5916 ac_status=$?
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005919 :
5920else
5921 echo "$as_me: failed program was:" >&5
5922sed 's/^/| /' conftest.$ac_ext >&5
5923
5924 ac_c_werror_flag=$ac_save_c_werror_flag
5925 CFLAGS="-g"
5926 cat >conftest.$ac_ext <<_ACEOF
5927/* confdefs.h. */
5928_ACEOF
5929cat confdefs.h >>conftest.$ac_ext
5930cat >>conftest.$ac_ext <<_ACEOF
5931/* end confdefs.h. */
5932
5933int
5934main ()
5935{
5936
5937 ;
5938 return 0;
5939}
5940_ACEOF
5941rm -f conftest.$ac_objext
5942if { (ac_try="$ac_compile"
5943case "(($ac_try" in
5944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5945 *) ac_try_echo=$ac_try;;
5946esac
5947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5948 (eval "$ac_compile") 2>conftest.er1
5949 ac_status=$?
5950 grep -v '^ *+' conftest.er1 >conftest.err
5951 rm -f conftest.er1
5952 cat conftest.err >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005954 (exit $ac_status); } &&
5955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5956 { (case "(($ac_try" in
5957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5958 *) ac_try_echo=$ac_try;;
5959esac
5960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5961 (eval "$ac_try") 2>&5
5962 ac_status=$?
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); }; } &&
5965 { ac_try='test -s conftest.$ac_objext'
5966 { (case "(($ac_try" in
5967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5968 *) ac_try_echo=$ac_try;;
5969esac
5970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5971 (eval "$ac_try") 2>&5
5972 ac_status=$?
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005975 ac_cv_prog_cc_g=yes
5976else
5977 echo "$as_me: failed program was:" >&5
5978sed 's/^/| /' conftest.$ac_ext >&5
5979
5980
5981fi
5982
5983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5984fi
5985
5986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5987fi
5988
5989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5990 ac_c_werror_flag=$ac_save_c_werror_flag
5991fi
5992{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5993echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5994if test "$ac_test_CFLAGS" = set; then
5995 CFLAGS=$ac_save_CFLAGS
5996elif test $ac_cv_prog_cc_g = yes; then
5997 if test "$GCC" = yes; then
5998 CFLAGS="-g -O2"
5999 else
6000 CFLAGS="-g"
6001 fi
6002else
6003 if test "$GCC" = yes; then
6004 CFLAGS="-O2"
6005 else
6006 CFLAGS=
6007 fi
6008fi
6009{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6010echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6011if test "${ac_cv_prog_cc_c89+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6013else
6014 ac_cv_prog_cc_c89=no
6015ac_save_CC=$CC
6016cat >conftest.$ac_ext <<_ACEOF
6017/* confdefs.h. */
6018_ACEOF
6019cat confdefs.h >>conftest.$ac_ext
6020cat >>conftest.$ac_ext <<_ACEOF
6021/* end confdefs.h. */
6022#include <stdarg.h>
6023#include <stdio.h>
6024#include <sys/types.h>
6025#include <sys/stat.h>
6026/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6027struct buf { int x; };
6028FILE * (*rcsopen) (struct buf *, struct stat *, int);
6029static char *e (p, i)
6030 char **p;
6031 int i;
6032{
6033 return p[i];
6034}
6035static char *f (char * (*g) (char **, int), char **p, ...)
6036{
6037 char *s;
6038 va_list v;
6039 va_start (v,p);
6040 s = g (p, va_arg (v,int));
6041 va_end (v);
6042 return s;
6043}
6044
6045/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6046 function prototypes and stuff, but not '\xHH' hex character constants.
6047 These don't provoke an error unfortunately, instead are silently treated
6048 as 'x'. The following induces an error, until -std is added to get
6049 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6050 array size at least. It's necessary to write '\x00'==0 to get something
6051 that's true only with -std. */
6052int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6053
6054/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6055 inside strings and character constants. */
6056#define FOO(x) 'x'
6057int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6058
6059int test (int i, double x);
6060struct s1 {int (*f) (int a);};
6061struct s2 {int (*f) (double a);};
6062int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6063int argc;
6064char **argv;
6065int
6066main ()
6067{
6068return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6069 ;
6070 return 0;
6071}
6072_ACEOF
6073for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6074 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6075do
6076 CC="$ac_save_CC $ac_arg"
6077 rm -f conftest.$ac_objext
6078if { (ac_try="$ac_compile"
6079case "(($ac_try" in
6080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6081 *) ac_try_echo=$ac_try;;
6082esac
6083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6084 (eval "$ac_compile") 2>conftest.er1
6085 ac_status=$?
6086 grep -v '^ *+' conftest.er1 >conftest.err
6087 rm -f conftest.er1
6088 cat conftest.err >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006090 (exit $ac_status); } &&
6091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6092 { (case "(($ac_try" in
6093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094 *) ac_try_echo=$ac_try;;
6095esac
6096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6097 (eval "$ac_try") 2>&5
6098 ac_status=$?
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); }; } &&
6101 { ac_try='test -s conftest.$ac_objext'
6102 { (case "(($ac_try" in
6103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6104 *) ac_try_echo=$ac_try;;
6105esac
6106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6107 (eval "$ac_try") 2>&5
6108 ac_status=$?
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006111 ac_cv_prog_cc_c89=$ac_arg
6112else
6113 echo "$as_me: failed program was:" >&5
6114sed 's/^/| /' conftest.$ac_ext >&5
6115
6116
6117fi
6118
6119rm -f core conftest.err conftest.$ac_objext
6120 test "x$ac_cv_prog_cc_c89" != "xno" && break
6121done
6122rm -f conftest.$ac_ext
6123CC=$ac_save_CC
6124
6125fi
6126# AC_CACHE_VAL
6127case "x$ac_cv_prog_cc_c89" in
6128 x)
6129 { echo "$as_me:$LINENO: result: none needed" >&5
6130echo "${ECHO_T}none needed" >&6; } ;;
6131 xno)
6132 { echo "$as_me:$LINENO: result: unsupported" >&5
6133echo "${ECHO_T}unsupported" >&6; } ;;
6134 *)
6135 CC="$CC $ac_cv_prog_cc_c89"
6136 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6137echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6138esac
6139
6140
6141ac_ext=c
6142ac_cpp='$CPP $CPPFLAGS'
6143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6145ac_compiler_gnu=$ac_cv_c_compiler_gnu
6146
6147ac_ext=cpp
6148ac_cpp='$CXXCPP $CPPFLAGS'
6149ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6150ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6151ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6152if test -z "$CXX"; then
6153 if test -n "$CCC"; then
6154 CXX=$CCC
6155 else
6156 if test -n "$ac_tool_prefix"; then
6157 for ac_prog in g++
6158 do
6159 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6160set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6161{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6163if test "${ac_cv_prog_CXX+set}" = set; then
6164 echo $ECHO_N "(cached) $ECHO_C" >&6
6165else
6166 if test -n "$CXX"; then
6167 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6168else
6169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170for as_dir in $PATH
6171do
6172 IFS=$as_save_IFS
6173 test -z "$as_dir" && as_dir=.
6174 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006175 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 +00006176 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6178 break 2
6179 fi
6180done
6181done
6182IFS=$as_save_IFS
6183
6184fi
6185fi
6186CXX=$ac_cv_prog_CXX
6187if test -n "$CXX"; then
6188 { echo "$as_me:$LINENO: result: $CXX" >&5
6189echo "${ECHO_T}$CXX" >&6; }
6190else
6191 { echo "$as_me:$LINENO: result: no" >&5
6192echo "${ECHO_T}no" >&6; }
6193fi
6194
6195
6196 test -n "$CXX" && break
6197 done
6198fi
6199if test -z "$CXX"; then
6200 ac_ct_CXX=$CXX
6201 for ac_prog in g++
6202do
6203 # Extract the first word of "$ac_prog", so it can be a program name with args.
6204set dummy $ac_prog; ac_word=$2
6205{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6207if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6209else
6210 if test -n "$ac_ct_CXX"; then
6211 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6212else
6213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214for as_dir in $PATH
6215do
6216 IFS=$as_save_IFS
6217 test -z "$as_dir" && as_dir=.
6218 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006219 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 +00006220 ac_cv_prog_ac_ct_CXX="$ac_prog"
6221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6222 break 2
6223 fi
6224done
6225done
6226IFS=$as_save_IFS
6227
6228fi
6229fi
6230ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6231if test -n "$ac_ct_CXX"; then
6232 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6233echo "${ECHO_T}$ac_ct_CXX" >&6; }
6234else
6235 { echo "$as_me:$LINENO: result: no" >&5
6236echo "${ECHO_T}no" >&6; }
6237fi
6238
6239
6240 test -n "$ac_ct_CXX" && break
6241done
6242
6243 if test "x$ac_ct_CXX" = x; then
6244 CXX="g++"
6245 else
6246 case $cross_compiling:$ac_tool_warned in
6247yes:)
6248{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6249whose name does not start with the host triplet. If you think this
6250configuration is useful to you, please write to autoconf@gnu.org." >&5
6251echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6252whose name does not start with the host triplet. If you think this
6253configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6254ac_tool_warned=yes ;;
6255esac
6256 CXX=$ac_ct_CXX
6257 fi
6258fi
6259
6260 fi
6261fi
6262# Provide some information about the compiler.
6263echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6264ac_compiler=`set X $ac_compile; echo $2`
6265{ (ac_try="$ac_compiler --version >&5"
6266case "(($ac_try" in
6267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268 *) ac_try_echo=$ac_try;;
6269esac
6270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271 (eval "$ac_compiler --version >&5") 2>&5
6272 ac_status=$?
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }
6275{ (ac_try="$ac_compiler -v >&5"
6276case "(($ac_try" in
6277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6278 *) ac_try_echo=$ac_try;;
6279esac
6280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6281 (eval "$ac_compiler -v >&5") 2>&5
6282 ac_status=$?
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); }
6285{ (ac_try="$ac_compiler -V >&5"
6286case "(($ac_try" in
6287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6288 *) ac_try_echo=$ac_try;;
6289esac
6290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6291 (eval "$ac_compiler -V >&5") 2>&5
6292 ac_status=$?
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }
6295
6296{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6297echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6298if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6300else
6301 cat >conftest.$ac_ext <<_ACEOF
6302/* confdefs.h. */
6303_ACEOF
6304cat confdefs.h >>conftest.$ac_ext
6305cat >>conftest.$ac_ext <<_ACEOF
6306/* end confdefs.h. */
6307
6308int
6309main ()
6310{
6311#ifndef __GNUC__
6312 choke me
6313#endif
6314
6315 ;
6316 return 0;
6317}
6318_ACEOF
6319rm -f conftest.$ac_objext
6320if { (ac_try="$ac_compile"
6321case "(($ac_try" in
6322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6323 *) ac_try_echo=$ac_try;;
6324esac
6325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6326 (eval "$ac_compile") 2>conftest.er1
6327 ac_status=$?
6328 grep -v '^ *+' conftest.er1 >conftest.err
6329 rm -f conftest.er1
6330 cat conftest.err >&5
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006332 (exit $ac_status); } &&
6333 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6334 { (case "(($ac_try" in
6335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336 *) ac_try_echo=$ac_try;;
6337esac
6338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6339 (eval "$ac_try") 2>&5
6340 ac_status=$?
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); }; } &&
6343 { ac_try='test -s conftest.$ac_objext'
6344 { (case "(($ac_try" in
6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6347esac
6348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349 (eval "$ac_try") 2>&5
6350 ac_status=$?
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006353 ac_compiler_gnu=yes
6354else
6355 echo "$as_me: failed program was:" >&5
6356sed 's/^/| /' conftest.$ac_ext >&5
6357
6358 ac_compiler_gnu=no
6359fi
6360
6361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6362ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6363
6364fi
6365{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6366echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6367GXX=`test $ac_compiler_gnu = yes && echo yes`
6368ac_test_CXXFLAGS=${CXXFLAGS+set}
6369ac_save_CXXFLAGS=$CXXFLAGS
6370{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6371echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6372if test "${ac_cv_prog_cxx_g+set}" = set; then
6373 echo $ECHO_N "(cached) $ECHO_C" >&6
6374else
6375 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6376 ac_cxx_werror_flag=yes
6377 ac_cv_prog_cxx_g=no
6378 CXXFLAGS="-g"
6379 cat >conftest.$ac_ext <<_ACEOF
6380/* confdefs.h. */
6381_ACEOF
6382cat confdefs.h >>conftest.$ac_ext
6383cat >>conftest.$ac_ext <<_ACEOF
6384/* end confdefs.h. */
6385
6386int
6387main ()
6388{
6389
6390 ;
6391 return 0;
6392}
6393_ACEOF
6394rm -f conftest.$ac_objext
6395if { (ac_try="$ac_compile"
6396case "(($ac_try" in
6397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398 *) ac_try_echo=$ac_try;;
6399esac
6400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6401 (eval "$ac_compile") 2>conftest.er1
6402 ac_status=$?
6403 grep -v '^ *+' conftest.er1 >conftest.err
6404 rm -f conftest.er1
6405 cat conftest.err >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006407 (exit $ac_status); } &&
6408 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6409 { (case "(($ac_try" in
6410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6411 *) ac_try_echo=$ac_try;;
6412esac
6413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6414 (eval "$ac_try") 2>&5
6415 ac_status=$?
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); }; } &&
6418 { ac_try='test -s conftest.$ac_objext'
6419 { (case "(($ac_try" in
6420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6421 *) ac_try_echo=$ac_try;;
6422esac
6423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424 (eval "$ac_try") 2>&5
6425 ac_status=$?
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006428 ac_cv_prog_cxx_g=yes
6429else
6430 echo "$as_me: failed program was:" >&5
6431sed 's/^/| /' conftest.$ac_ext >&5
6432
6433 CXXFLAGS=""
6434 cat >conftest.$ac_ext <<_ACEOF
6435/* confdefs.h. */
6436_ACEOF
6437cat confdefs.h >>conftest.$ac_ext
6438cat >>conftest.$ac_ext <<_ACEOF
6439/* end confdefs.h. */
6440
6441int
6442main ()
6443{
6444
6445 ;
6446 return 0;
6447}
6448_ACEOF
6449rm -f conftest.$ac_objext
6450if { (ac_try="$ac_compile"
6451case "(($ac_try" in
6452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6453 *) ac_try_echo=$ac_try;;
6454esac
6455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6456 (eval "$ac_compile") 2>conftest.er1
6457 ac_status=$?
6458 grep -v '^ *+' conftest.er1 >conftest.err
6459 rm -f conftest.er1
6460 cat conftest.err >&5
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006462 (exit $ac_status); } &&
6463 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6464 { (case "(($ac_try" in
6465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6466 *) ac_try_echo=$ac_try;;
6467esac
6468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6469 (eval "$ac_try") 2>&5
6470 ac_status=$?
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); }; } &&
6473 { ac_try='test -s conftest.$ac_objext'
6474 { (case "(($ac_try" in
6475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6476 *) ac_try_echo=$ac_try;;
6477esac
6478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6479 (eval "$ac_try") 2>&5
6480 ac_status=$?
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006483 :
6484else
6485 echo "$as_me: failed program was:" >&5
6486sed 's/^/| /' conftest.$ac_ext >&5
6487
6488 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6489 CXXFLAGS="-g"
6490 cat >conftest.$ac_ext <<_ACEOF
6491/* confdefs.h. */
6492_ACEOF
6493cat confdefs.h >>conftest.$ac_ext
6494cat >>conftest.$ac_ext <<_ACEOF
6495/* end confdefs.h. */
6496
6497int
6498main ()
6499{
6500
6501 ;
6502 return 0;
6503}
6504_ACEOF
6505rm -f conftest.$ac_objext
6506if { (ac_try="$ac_compile"
6507case "(($ac_try" in
6508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6509 *) ac_try_echo=$ac_try;;
6510esac
6511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6512 (eval "$ac_compile") 2>conftest.er1
6513 ac_status=$?
6514 grep -v '^ *+' conftest.er1 >conftest.err
6515 rm -f conftest.er1
6516 cat conftest.err >&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006518 (exit $ac_status); } &&
6519 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6520 { (case "(($ac_try" in
6521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6522 *) ac_try_echo=$ac_try;;
6523esac
6524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6525 (eval "$ac_try") 2>&5
6526 ac_status=$?
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); }; } &&
6529 { ac_try='test -s conftest.$ac_objext'
6530 { (case "(($ac_try" in
6531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6532 *) ac_try_echo=$ac_try;;
6533esac
6534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6535 (eval "$ac_try") 2>&5
6536 ac_status=$?
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006539 ac_cv_prog_cxx_g=yes
6540else
6541 echo "$as_me: failed program was:" >&5
6542sed 's/^/| /' conftest.$ac_ext >&5
6543
6544
6545fi
6546
6547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6548fi
6549
6550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6551fi
6552
6553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6554 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6555fi
6556{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6557echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6558if test "$ac_test_CXXFLAGS" = set; then
6559 CXXFLAGS=$ac_save_CXXFLAGS
6560elif test $ac_cv_prog_cxx_g = yes; then
6561 if test "$GXX" = yes; then
6562 CXXFLAGS="-g -O2"
6563 else
6564 CXXFLAGS="-g"
6565 fi
6566else
6567 if test "$GXX" = yes; then
6568 CXXFLAGS="-O2"
6569 else
6570 CXXFLAGS=
6571 fi
6572fi
6573ac_ext=c
6574ac_cpp='$CPP $CPPFLAGS'
6575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6577ac_compiler_gnu=$ac_cv_c_compiler_gnu
6578
Reid Spencera773bd52006-08-04 18:18:08 +00006579
6580{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6581echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6582if test "${lt_cv_path_NM+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6584else
6585 if test -n "$NM"; then
6586 # Let the user override the test.
6587 lt_cv_path_NM="$NM"
6588else
6589 lt_nm_to_check="${ac_tool_prefix}nm"
6590 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6591 lt_nm_to_check="$lt_nm_to_check nm"
6592 fi
6593 for lt_tmp_nm in $lt_nm_to_check; do
6594 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6595 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6596 IFS="$lt_save_ifs"
6597 test -z "$ac_dir" && ac_dir=.
6598 tmp_nm="$ac_dir/$lt_tmp_nm"
6599 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6600 # Check to see if the nm accepts a BSD-compat flag.
6601 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6602 # nm: unknown option "B" ignored
6603 # Tru64's nm complains that /dev/null is an invalid object file
6604 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6605 */dev/null* | *'Invalid file or object type'*)
6606 lt_cv_path_NM="$tmp_nm -B"
6607 break
6608 ;;
6609 *)
6610 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6611 */dev/null*)
6612 lt_cv_path_NM="$tmp_nm -p"
6613 break
6614 ;;
6615 *)
6616 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6617 continue # so that we can try to find one that supports BSD flags
6618 ;;
6619 esac
6620 ;;
6621 esac
6622 fi
6623 done
6624 IFS="$lt_save_ifs"
6625 done
6626 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6627fi
6628fi
6629{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6630echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6631NM="$lt_cv_path_NM"
6632
6633
6634
6635{ echo "$as_me:$LINENO: checking for GNU make" >&5
6636echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6637if test "${llvm_cv_gnu_make_command+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6639else
6640 llvm_cv_gnu_make_command=''
6641 for a in "$MAKE" make gmake gnumake ; do
6642 if test -z "$a" ; then continue ; fi ;
6643 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6644 then
6645 llvm_cv_gnu_make_command=$a ;
6646 break;
6647 fi
6648 done
6649fi
6650{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6651echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6652 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6653 ifGNUmake='' ;
6654 else
6655 ifGNUmake='#' ;
6656 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6657echo "${ECHO_T}\"Not found\"" >&6; };
6658 fi
6659
6660
6661{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6662echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6663LN_S=$as_ln_s
6664if test "$LN_S" = "ln -s"; then
6665 { echo "$as_me:$LINENO: result: yes" >&5
6666echo "${ECHO_T}yes" >&6; }
6667else
6668 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6669echo "${ECHO_T}no, using $LN_S" >&6; }
6670fi
6671
6672# Extract the first word of "cmp", so it can be a program name with args.
6673set dummy cmp; ac_word=$2
6674{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6676if test "${ac_cv_path_CMP+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
6678else
6679 case $CMP in
6680 [\\/]* | ?:[\\/]*)
6681 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6682 ;;
6683 *)
6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685for as_dir in $PATH
6686do
6687 IFS=$as_save_IFS
6688 test -z "$as_dir" && as_dir=.
6689 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006691 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6693 break 2
6694 fi
6695done
6696done
6697IFS=$as_save_IFS
6698
6699 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6700 ;;
6701esac
6702fi
6703CMP=$ac_cv_path_CMP
6704if test -n "$CMP"; then
6705 { echo "$as_me:$LINENO: result: $CMP" >&5
6706echo "${ECHO_T}$CMP" >&6; }
6707else
6708 { echo "$as_me:$LINENO: result: no" >&5
6709echo "${ECHO_T}no" >&6; }
6710fi
6711
6712
6713# Extract the first word of "cp", so it can be a program name with args.
6714set dummy cp; ac_word=$2
6715{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6717if test "${ac_cv_path_CP+set}" = set; then
6718 echo $ECHO_N "(cached) $ECHO_C" >&6
6719else
6720 case $CP in
6721 [\\/]* | ?:[\\/]*)
6722 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6723 ;;
6724 *)
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726for as_dir in $PATH
6727do
6728 IFS=$as_save_IFS
6729 test -z "$as_dir" && as_dir=.
6730 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006732 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6734 break 2
6735 fi
6736done
6737done
6738IFS=$as_save_IFS
6739
6740 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6741 ;;
6742esac
6743fi
6744CP=$ac_cv_path_CP
6745if test -n "$CP"; then
6746 { echo "$as_me:$LINENO: result: $CP" >&5
6747echo "${ECHO_T}$CP" >&6; }
6748else
6749 { echo "$as_me:$LINENO: result: no" >&5
6750echo "${ECHO_T}no" >&6; }
6751fi
6752
6753
6754# Extract the first word of "date", so it can be a program name with args.
6755set dummy date; ac_word=$2
6756{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6758if test "${ac_cv_path_DATE+set}" = set; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6760else
6761 case $DATE in
6762 [\\/]* | ?:[\\/]*)
6763 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6764 ;;
6765 *)
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767for as_dir in $PATH
6768do
6769 IFS=$as_save_IFS
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006773 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6775 break 2
6776 fi
6777done
6778done
6779IFS=$as_save_IFS
6780
6781 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6782 ;;
6783esac
6784fi
6785DATE=$ac_cv_path_DATE
6786if test -n "$DATE"; then
6787 { echo "$as_me:$LINENO: result: $DATE" >&5
6788echo "${ECHO_T}$DATE" >&6; }
6789else
6790 { echo "$as_me:$LINENO: result: no" >&5
6791echo "${ECHO_T}no" >&6; }
6792fi
6793
6794
6795# Extract the first word of "find", so it can be a program name with args.
6796set dummy find; ac_word=$2
6797{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6799if test "${ac_cv_path_FIND+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6801else
6802 case $FIND in
6803 [\\/]* | ?:[\\/]*)
6804 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6805 ;;
6806 *)
6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808for as_dir in $PATH
6809do
6810 IFS=$as_save_IFS
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006814 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6816 break 2
6817 fi
6818done
6819done
6820IFS=$as_save_IFS
6821
6822 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6823 ;;
6824esac
6825fi
6826FIND=$ac_cv_path_FIND
6827if test -n "$FIND"; then
6828 { echo "$as_me:$LINENO: result: $FIND" >&5
6829echo "${ECHO_T}$FIND" >&6; }
6830else
6831 { echo "$as_me:$LINENO: result: no" >&5
6832echo "${ECHO_T}no" >&6; }
6833fi
6834
6835
6836# Extract the first word of "grep", so it can be a program name with args.
6837set dummy grep; ac_word=$2
6838{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6840if test "${ac_cv_path_GREP+set}" = set; then
6841 echo $ECHO_N "(cached) $ECHO_C" >&6
6842else
6843 case $GREP in
6844 [\\/]* | ?:[\\/]*)
6845 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6846 ;;
6847 *)
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849for as_dir in $PATH
6850do
6851 IFS=$as_save_IFS
6852 test -z "$as_dir" && as_dir=.
6853 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006855 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6857 break 2
6858 fi
6859done
6860done
6861IFS=$as_save_IFS
6862
6863 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6864 ;;
6865esac
6866fi
6867GREP=$ac_cv_path_GREP
6868if test -n "$GREP"; then
6869 { echo "$as_me:$LINENO: result: $GREP" >&5
6870echo "${ECHO_T}$GREP" >&6; }
6871else
6872 { echo "$as_me:$LINENO: result: no" >&5
6873echo "${ECHO_T}no" >&6; }
6874fi
6875
6876
6877# Extract the first word of "mkdir", so it can be a program name with args.
6878set dummy mkdir; ac_word=$2
6879{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6881if test "${ac_cv_path_MKDIR+set}" = set; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
6883else
6884 case $MKDIR in
6885 [\\/]* | ?:[\\/]*)
6886 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6887 ;;
6888 *)
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890for as_dir in $PATH
6891do
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006896 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 break 2
6899 fi
6900done
6901done
6902IFS=$as_save_IFS
6903
6904 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6905 ;;
6906esac
6907fi
6908MKDIR=$ac_cv_path_MKDIR
6909if test -n "$MKDIR"; then
6910 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6911echo "${ECHO_T}$MKDIR" >&6; }
6912else
6913 { echo "$as_me:$LINENO: result: no" >&5
6914echo "${ECHO_T}no" >&6; }
6915fi
6916
6917
6918# Extract the first word of "mv", so it can be a program name with args.
6919set dummy mv; ac_word=$2
6920{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6922if test "${ac_cv_path_MV+set}" = set; then
6923 echo $ECHO_N "(cached) $ECHO_C" >&6
6924else
6925 case $MV in
6926 [\\/]* | ?:[\\/]*)
6927 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6928 ;;
6929 *)
6930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931for as_dir in $PATH
6932do
6933 IFS=$as_save_IFS
6934 test -z "$as_dir" && as_dir=.
6935 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006937 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6939 break 2
6940 fi
6941done
6942done
6943IFS=$as_save_IFS
6944
6945 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6946 ;;
6947esac
6948fi
6949MV=$ac_cv_path_MV
6950if test -n "$MV"; then
6951 { echo "$as_me:$LINENO: result: $MV" >&5
6952echo "${ECHO_T}$MV" >&6; }
6953else
6954 { echo "$as_me:$LINENO: result: no" >&5
6955echo "${ECHO_T}no" >&6; }
6956fi
6957
6958
6959if test -n "$ac_tool_prefix"; then
6960 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6961set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6962{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6964if test "${ac_cv_prog_RANLIB+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6966else
6967 if test -n "$RANLIB"; then
6968 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6969else
6970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971for as_dir in $PATH
6972do
6973 IFS=$as_save_IFS
6974 test -z "$as_dir" && as_dir=.
6975 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006977 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6979 break 2
6980 fi
6981done
6982done
6983IFS=$as_save_IFS
6984
6985fi
6986fi
6987RANLIB=$ac_cv_prog_RANLIB
6988if test -n "$RANLIB"; then
6989 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6990echo "${ECHO_T}$RANLIB" >&6; }
6991else
6992 { echo "$as_me:$LINENO: result: no" >&5
6993echo "${ECHO_T}no" >&6; }
6994fi
6995
6996
6997fi
6998if test -z "$ac_cv_prog_RANLIB"; then
6999 ac_ct_RANLIB=$RANLIB
7000 # Extract the first word of "ranlib", so it can be a program name with args.
7001set dummy ranlib; ac_word=$2
7002{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7004if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7006else
7007 if test -n "$ac_ct_RANLIB"; then
7008 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7009else
7010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011for as_dir in $PATH
7012do
7013 IFS=$as_save_IFS
7014 test -z "$as_dir" && as_dir=.
7015 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007017 ac_cv_prog_ac_ct_RANLIB="ranlib"
7018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7019 break 2
7020 fi
7021done
7022done
7023IFS=$as_save_IFS
7024
7025fi
7026fi
7027ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7028if test -n "$ac_ct_RANLIB"; then
7029 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7030echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7031else
7032 { echo "$as_me:$LINENO: result: no" >&5
7033echo "${ECHO_T}no" >&6; }
7034fi
7035
7036 if test "x$ac_ct_RANLIB" = x; then
7037 RANLIB=":"
7038 else
7039 case $cross_compiling:$ac_tool_warned in
7040yes:)
7041{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7042whose name does not start with the host triplet. If you think this
7043configuration is useful to you, please write to autoconf@gnu.org." >&5
7044echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7045whose name does not start with the host triplet. If you think this
7046configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7047ac_tool_warned=yes ;;
7048esac
7049 RANLIB=$ac_ct_RANLIB
7050 fi
7051else
7052 RANLIB="$ac_cv_prog_RANLIB"
7053fi
7054
7055# Extract the first word of "rm", so it can be a program name with args.
7056set dummy rm; ac_word=$2
7057{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7059if test "${ac_cv_path_RM+set}" = set; then
7060 echo $ECHO_N "(cached) $ECHO_C" >&6
7061else
7062 case $RM in
7063 [\\/]* | ?:[\\/]*)
7064 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7065 ;;
7066 *)
7067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068for as_dir in $PATH
7069do
7070 IFS=$as_save_IFS
7071 test -z "$as_dir" && as_dir=.
7072 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007074 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7076 break 2
7077 fi
7078done
7079done
7080IFS=$as_save_IFS
7081
7082 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7083 ;;
7084esac
7085fi
7086RM=$ac_cv_path_RM
7087if test -n "$RM"; then
7088 { echo "$as_me:$LINENO: result: $RM" >&5
7089echo "${ECHO_T}$RM" >&6; }
7090else
7091 { echo "$as_me:$LINENO: result: no" >&5
7092echo "${ECHO_T}no" >&6; }
7093fi
7094
7095
7096# Extract the first word of "sed", so it can be a program name with args.
7097set dummy sed; ac_word=$2
7098{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7100if test "${ac_cv_path_SED+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
7102else
7103 case $SED in
7104 [\\/]* | ?:[\\/]*)
7105 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7106 ;;
7107 *)
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109for as_dir in $PATH
7110do
7111 IFS=$as_save_IFS
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007115 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 break 2
7118 fi
7119done
7120done
7121IFS=$as_save_IFS
7122
7123 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7124 ;;
7125esac
7126fi
7127SED=$ac_cv_path_SED
7128if test -n "$SED"; then
7129 { echo "$as_me:$LINENO: result: $SED" >&5
7130echo "${ECHO_T}$SED" >&6; }
7131else
7132 { echo "$as_me:$LINENO: result: no" >&5
7133echo "${ECHO_T}no" >&6; }
7134fi
7135
7136
7137# Extract the first word of "tar", so it can be a program name with args.
7138set dummy tar; ac_word=$2
7139{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7141if test "${ac_cv_path_TAR+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7143else
7144 case $TAR in
7145 [\\/]* | ?:[\\/]*)
7146 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7147 ;;
7148 *)
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150for as_dir in $PATH
7151do
7152 IFS=$as_save_IFS
7153 test -z "$as_dir" && as_dir=.
7154 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007156 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7158 break 2
7159 fi
7160done
7161done
7162IFS=$as_save_IFS
7163
7164 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7165 ;;
7166esac
7167fi
7168TAR=$ac_cv_path_TAR
7169if test -n "$TAR"; then
7170 { echo "$as_me:$LINENO: result: $TAR" >&5
7171echo "${ECHO_T}$TAR" >&6; }
7172else
7173 { echo "$as_me:$LINENO: result: no" >&5
7174echo "${ECHO_T}no" >&6; }
7175fi
7176
7177
7178# Extract the first word of "pwd", so it can be a program name with args.
7179set dummy pwd; ac_word=$2
7180{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7182if test "${ac_cv_path_BINPWD+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7184else
7185 case $BINPWD in
7186 [\\/]* | ?:[\\/]*)
7187 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7188 ;;
7189 *)
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191for as_dir in $PATH
7192do
7193 IFS=$as_save_IFS
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007197 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7199 break 2
7200 fi
7201done
7202done
7203IFS=$as_save_IFS
7204
7205 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7206 ;;
7207esac
7208fi
7209BINPWD=$ac_cv_path_BINPWD
7210if test -n "$BINPWD"; then
7211 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7212echo "${ECHO_T}$BINPWD" >&6; }
7213else
7214 { echo "$as_me:$LINENO: result: no" >&5
7215echo "${ECHO_T}no" >&6; }
7216fi
7217
7218
7219
7220# Extract the first word of "Graphviz", so it can be a program name with args.
7221set dummy Graphviz; ac_word=$2
7222{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7224if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7226else
7227 case $GRAPHVIZ in
7228 [\\/]* | ?:[\\/]*)
7229 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7230 ;;
7231 *)
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233for as_dir in $PATH
7234do
7235 IFS=$as_save_IFS
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007239 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 break 2
7242 fi
7243done
7244done
7245IFS=$as_save_IFS
7246
7247 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7248 ;;
7249esac
7250fi
7251GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7252if test -n "$GRAPHVIZ"; then
7253 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7254echo "${ECHO_T}$GRAPHVIZ" >&6; }
7255else
7256 { echo "$as_me:$LINENO: result: no" >&5
7257echo "${ECHO_T}no" >&6; }
7258fi
7259
7260
7261if test "$GRAPHVIZ" != "echo Graphviz" ; then
7262
7263cat >>confdefs.h <<\_ACEOF
7264#define HAVE_GRAPHVIZ 1
7265_ACEOF
7266
Jeff Cohen28783c32007-01-12 18:22:38 +00007267 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007268 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7269 fi
7270
7271cat >>confdefs.h <<_ACEOF
7272#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7273_ACEOF
7274
7275fi
7276# Extract the first word of "dot", so it can be a program name with args.
7277set dummy dot; ac_word=$2
7278{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7280if test "${ac_cv_path_DOT+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7282else
7283 case $DOT in
7284 [\\/]* | ?:[\\/]*)
7285 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7286 ;;
7287 *)
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289for as_dir in $PATH
7290do
7291 IFS=$as_save_IFS
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007295 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7297 break 2
7298 fi
7299done
7300done
7301IFS=$as_save_IFS
7302
7303 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7304 ;;
7305esac
7306fi
7307DOT=$ac_cv_path_DOT
7308if test -n "$DOT"; then
7309 { echo "$as_me:$LINENO: result: $DOT" >&5
7310echo "${ECHO_T}$DOT" >&6; }
7311else
7312 { echo "$as_me:$LINENO: result: no" >&5
7313echo "${ECHO_T}no" >&6; }
7314fi
7315
7316
7317if test "$DOT" != "echo dot" ; then
7318
7319cat >>confdefs.h <<\_ACEOF
7320#define HAVE_DOT 1
7321_ACEOF
7322
Jeff Cohen28783c32007-01-12 18:22:38 +00007323 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007324 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7325 fi
7326
7327cat >>confdefs.h <<_ACEOF
7328#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7329_ACEOF
7330
7331fi
David Greenef0b9eff2009-07-09 17:16:26 +00007332# Extract the first word of "fdp", so it can be a program name with args.
7333set dummy fdp; ac_word=$2
7334{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7336if test "${ac_cv_path_FDP+set}" = set; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7338else
7339 case $FDP in
7340 [\\/]* | ?:[\\/]*)
7341 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7342 ;;
7343 *)
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345for as_dir in $PATH
7346do
7347 IFS=$as_save_IFS
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7351 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 break 2
7354 fi
7355done
7356done
7357IFS=$as_save_IFS
7358
7359 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7360 ;;
7361esac
7362fi
7363FDP=$ac_cv_path_FDP
7364if test -n "$FDP"; then
7365 { echo "$as_me:$LINENO: result: $FDP" >&5
7366echo "${ECHO_T}$FDP" >&6; }
7367else
7368 { echo "$as_me:$LINENO: result: no" >&5
7369echo "${ECHO_T}no" >&6; }
7370fi
7371
7372
7373if test "$FDP" != "echo fdp" ; then
7374
7375cat >>confdefs.h <<\_ACEOF
7376#define HAVE_FDP 1
7377_ACEOF
7378
7379 if test "$llvm_cv_os_type" = "MingW" ; then
7380 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7381 fi
7382
7383cat >>confdefs.h <<_ACEOF
7384#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7385_ACEOF
7386
7387fi
7388# Extract the first word of "neato", so it can be a program name with args.
7389set dummy neato; ac_word=$2
7390{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7392if test "${ac_cv_path_NEATO+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7394else
7395 case $NEATO in
7396 [\\/]* | ?:[\\/]*)
7397 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7398 ;;
7399 *)
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401for as_dir in $PATH
7402do
7403 IFS=$as_save_IFS
7404 test -z "$as_dir" && as_dir=.
7405 for ac_exec_ext in '' $ac_executable_extensions; do
7406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7407 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7409 break 2
7410 fi
7411done
7412done
7413IFS=$as_save_IFS
7414
7415 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7416 ;;
7417esac
7418fi
7419NEATO=$ac_cv_path_NEATO
7420if test -n "$NEATO"; then
7421 { echo "$as_me:$LINENO: result: $NEATO" >&5
7422echo "${ECHO_T}$NEATO" >&6; }
7423else
7424 { echo "$as_me:$LINENO: result: no" >&5
7425echo "${ECHO_T}no" >&6; }
7426fi
7427
7428
7429if test "$NEATO" != "echo neato" ; then
7430
7431cat >>confdefs.h <<\_ACEOF
7432#define HAVE_NEATO 1
7433_ACEOF
7434
7435 if test "$llvm_cv_os_type" = "MingW" ; then
7436 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7437 fi
7438
7439cat >>confdefs.h <<_ACEOF
7440#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7441_ACEOF
7442
7443fi
7444# Extract the first word of "twopi", so it can be a program name with args.
7445set dummy twopi; ac_word=$2
7446{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7448if test "${ac_cv_path_TWOPI+set}" = set; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7450else
7451 case $TWOPI in
7452 [\\/]* | ?:[\\/]*)
7453 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7454 ;;
7455 *)
7456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457for as_dir in $PATH
7458do
7459 IFS=$as_save_IFS
7460 test -z "$as_dir" && as_dir=.
7461 for ac_exec_ext in '' $ac_executable_extensions; do
7462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7463 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7465 break 2
7466 fi
7467done
7468done
7469IFS=$as_save_IFS
7470
7471 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7472 ;;
7473esac
7474fi
7475TWOPI=$ac_cv_path_TWOPI
7476if test -n "$TWOPI"; then
7477 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7478echo "${ECHO_T}$TWOPI" >&6; }
7479else
7480 { echo "$as_me:$LINENO: result: no" >&5
7481echo "${ECHO_T}no" >&6; }
7482fi
7483
7484
7485if test "$TWOPI" != "echo twopi" ; then
7486
7487cat >>confdefs.h <<\_ACEOF
7488#define HAVE_TWOPI 1
7489_ACEOF
7490
7491 if test "$llvm_cv_os_type" = "MingW" ; then
7492 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7493 fi
7494
7495cat >>confdefs.h <<_ACEOF
7496#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7497_ACEOF
7498
7499fi
7500# Extract the first word of "circo", so it can be a program name with args.
7501set dummy circo; ac_word=$2
7502{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7504if test "${ac_cv_path_CIRCO+set}" = set; then
7505 echo $ECHO_N "(cached) $ECHO_C" >&6
7506else
7507 case $CIRCO in
7508 [\\/]* | ?:[\\/]*)
7509 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7510 ;;
7511 *)
7512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513for as_dir in $PATH
7514do
7515 IFS=$as_save_IFS
7516 test -z "$as_dir" && as_dir=.
7517 for ac_exec_ext in '' $ac_executable_extensions; do
7518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7519 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7521 break 2
7522 fi
7523done
7524done
7525IFS=$as_save_IFS
7526
7527 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7528 ;;
7529esac
7530fi
7531CIRCO=$ac_cv_path_CIRCO
7532if test -n "$CIRCO"; then
7533 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7534echo "${ECHO_T}$CIRCO" >&6; }
7535else
7536 { echo "$as_me:$LINENO: result: no" >&5
7537echo "${ECHO_T}no" >&6; }
7538fi
7539
7540
7541if test "$CIRCO" != "echo circo" ; then
7542
7543cat >>confdefs.h <<\_ACEOF
7544#define HAVE_CIRCO 1
7545_ACEOF
7546
7547 if test "$llvm_cv_os_type" = "MingW" ; then
7548 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7549 fi
7550
7551cat >>confdefs.h <<_ACEOF
7552#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7553_ACEOF
7554
7555fi
Reid Spencera773bd52006-08-04 18:18:08 +00007556for ac_prog in gv gsview32
7557do
7558 # Extract the first word of "$ac_prog", so it can be a program name with args.
7559set dummy $ac_prog; ac_word=$2
7560{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7562if test "${ac_cv_path_GV+set}" = set; then
7563 echo $ECHO_N "(cached) $ECHO_C" >&6
7564else
7565 case $GV in
7566 [\\/]* | ?:[\\/]*)
7567 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7568 ;;
7569 *)
7570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7571for as_dir in $PATH
7572do
7573 IFS=$as_save_IFS
7574 test -z "$as_dir" && as_dir=.
7575 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007576 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 +00007577 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7579 break 2
7580 fi
7581done
7582done
7583IFS=$as_save_IFS
7584
7585 ;;
7586esac
7587fi
7588GV=$ac_cv_path_GV
7589if test -n "$GV"; then
7590 { echo "$as_me:$LINENO: result: $GV" >&5
7591echo "${ECHO_T}$GV" >&6; }
7592else
7593 { echo "$as_me:$LINENO: result: no" >&5
7594echo "${ECHO_T}no" >&6; }
7595fi
7596
7597
7598 test -n "$GV" && break
7599done
7600test -n "$GV" || GV="echo gv"
7601
7602if test "$GV" != "echo gv" ; then
7603
7604cat >>confdefs.h <<\_ACEOF
7605#define HAVE_GV 1
7606_ACEOF
7607
Jeff Cohen28783c32007-01-12 18:22:38 +00007608 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007609 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7610 fi
7611
7612cat >>confdefs.h <<_ACEOF
7613#define LLVM_PATH_GV "$GV${EXEEXT}"
7614_ACEOF
7615
7616fi
7617# Extract the first word of "dotty", so it can be a program name with args.
7618set dummy dotty; ac_word=$2
7619{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7621if test "${ac_cv_path_DOTTY+set}" = set; then
7622 echo $ECHO_N "(cached) $ECHO_C" >&6
7623else
7624 case $DOTTY in
7625 [\\/]* | ?:[\\/]*)
7626 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7627 ;;
7628 *)
7629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630for as_dir in $PATH
7631do
7632 IFS=$as_save_IFS
7633 test -z "$as_dir" && as_dir=.
7634 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007635 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 +00007636 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7638 break 2
7639 fi
7640done
7641done
7642IFS=$as_save_IFS
7643
7644 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7645 ;;
7646esac
7647fi
7648DOTTY=$ac_cv_path_DOTTY
7649if test -n "$DOTTY"; then
7650 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7651echo "${ECHO_T}$DOTTY" >&6; }
7652else
7653 { echo "$as_me:$LINENO: result: no" >&5
7654echo "${ECHO_T}no" >&6; }
7655fi
7656
7657
7658if test "$DOTTY" != "echo dotty" ; then
7659
7660cat >>confdefs.h <<\_ACEOF
7661#define HAVE_DOTTY 1
7662_ACEOF
7663
Jeff Cohen28783c32007-01-12 18:22:38 +00007664 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007665 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7666 fi
7667
7668cat >>confdefs.h <<_ACEOF
7669#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7670_ACEOF
7671
7672fi
7673
7674
7675# Extract the first word of "perl", so it can be a program name with args.
7676set dummy perl; ac_word=$2
7677{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7679if test "${ac_cv_path_PERL+set}" = set; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7681else
7682 case $PERL in
7683 [\\/]* | ?:[\\/]*)
7684 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7685 ;;
7686 *)
7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688for as_dir in $PATH
7689do
7690 IFS=$as_save_IFS
7691 test -z "$as_dir" && as_dir=.
7692 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007693 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 +00007694 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7696 break 2
7697 fi
7698done
7699done
7700IFS=$as_save_IFS
7701
7702 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7703 ;;
7704esac
7705fi
7706PERL=$ac_cv_path_PERL
7707if test -n "$PERL"; then
7708 { echo "$as_me:$LINENO: result: $PERL" >&5
7709echo "${ECHO_T}$PERL" >&6; }
7710else
7711 { echo "$as_me:$LINENO: result: no" >&5
7712echo "${ECHO_T}no" >&6; }
7713fi
7714
7715
7716if test "$PERL" != "none"; then
7717 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7718echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7719 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7720 { echo "$as_me:$LINENO: result: yes" >&5
7721echo "${ECHO_T}yes" >&6; }
7722 else
7723 PERL=none
7724 { echo "$as_me:$LINENO: result: not found" >&5
7725echo "${ECHO_T}not found" >&6; }
7726 fi
7727fi
7728
7729
7730if test x"$PERL" = xnone; then
7731 HAVE_PERL=0
7732
Reid Spencer59807fa2007-05-17 18:11:03 +00007733 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7734echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7735 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007736else
7737 HAVE_PERL=1
7738
7739fi
7740
7741# Find a good install program. We prefer a C program (faster),
7742# so one script is as good as another. But avoid the broken or
7743# incompatible versions:
7744# SysV /etc/install, /usr/sbin/install
7745# SunOS /usr/etc/install
7746# IRIX /sbin/install
7747# AIX /bin/install
7748# AmigaOS /C/install, which installs bootblocks on floppy discs
7749# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7750# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7751# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7752# OS/2's system install, which has a completely different semantic
7753# ./install, which can be erroneously created by make from ./install.sh.
7754{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7755echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7756if test -z "$INSTALL"; then
7757if test "${ac_cv_path_install+set}" = set; then
7758 echo $ECHO_N "(cached) $ECHO_C" >&6
7759else
7760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761for as_dir in $PATH
7762do
7763 IFS=$as_save_IFS
7764 test -z "$as_dir" && as_dir=.
7765 # Account for people who put trailing slashes in PATH elements.
7766case $as_dir/ in
7767 ./ | .// | /cC/* | \
7768 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7769 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7770 /usr/ucb/* ) ;;
7771 *)
7772 # OSF1 and SCO ODT 3.0 have their own names for install.
7773 # Don't use installbsd from OSF since it installs stuff as root
7774 # by default.
7775 for ac_prog in ginstall scoinst install; do
7776 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007777 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 +00007778 if test $ac_prog = install &&
7779 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7780 # AIX install. It has an incompatible calling convention.
7781 :
7782 elif test $ac_prog = install &&
7783 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7784 # program-specific install script used by HP pwplus--don't use.
7785 :
7786 else
7787 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7788 break 3
7789 fi
7790 fi
7791 done
7792 done
7793 ;;
7794esac
7795done
7796IFS=$as_save_IFS
7797
7798
7799fi
7800 if test "${ac_cv_path_install+set}" = set; then
7801 INSTALL=$ac_cv_path_install
7802 else
7803 # As a last resort, use the slow shell script. Don't cache a
7804 # value for INSTALL within a source directory, because that will
7805 # break other packages using the cache if that directory is
7806 # removed, or if the value is a relative name.
7807 INSTALL=$ac_install_sh
7808 fi
7809fi
7810{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7811echo "${ECHO_T}$INSTALL" >&6; }
7812
7813# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7814# It thinks the first close brace ends the variable substitution.
7815test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7816
7817test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7818
7819test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7820
7821
7822# Extract the first word of "bzip2", so it can be a program name with args.
7823set dummy bzip2; ac_word=$2
7824{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7826if test "${ac_cv_path_BZIP2+set}" = set; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
7828else
7829 case $BZIP2 in
7830 [\\/]* | ?:[\\/]*)
7831 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7832 ;;
7833 *)
7834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835for as_dir in $PATH
7836do
7837 IFS=$as_save_IFS
7838 test -z "$as_dir" && as_dir=.
7839 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007840 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 +00007841 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7843 break 2
7844 fi
7845done
7846done
7847IFS=$as_save_IFS
7848
Reid Spencera773bd52006-08-04 18:18:08 +00007849 ;;
7850esac
7851fi
7852BZIP2=$ac_cv_path_BZIP2
7853if test -n "$BZIP2"; then
7854 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7855echo "${ECHO_T}$BZIP2" >&6; }
7856else
7857 { echo "$as_me:$LINENO: result: no" >&5
7858echo "${ECHO_T}no" >&6; }
7859fi
7860
7861
7862# Extract the first word of "doxygen", so it can be a program name with args.
7863set dummy doxygen; ac_word=$2
7864{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7866if test "${ac_cv_path_DOXYGEN+set}" = set; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
7868else
7869 case $DOXYGEN in
7870 [\\/]* | ?:[\\/]*)
7871 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7872 ;;
7873 *)
7874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7875for as_dir in $PATH
7876do
7877 IFS=$as_save_IFS
7878 test -z "$as_dir" && as_dir=.
7879 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007880 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 +00007881 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7883 break 2
7884 fi
7885done
7886done
7887IFS=$as_save_IFS
7888
Reid Spencera773bd52006-08-04 18:18:08 +00007889 ;;
7890esac
7891fi
7892DOXYGEN=$ac_cv_path_DOXYGEN
7893if test -n "$DOXYGEN"; then
7894 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7895echo "${ECHO_T}$DOXYGEN" >&6; }
7896else
7897 { echo "$as_me:$LINENO: result: no" >&5
7898echo "${ECHO_T}no" >&6; }
7899fi
7900
7901
Reid Spencera773bd52006-08-04 18:18:08 +00007902# Extract the first word of "groff", so it can be a program name with args.
7903set dummy groff; ac_word=$2
7904{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7906if test "${ac_cv_path_GROFF+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7908else
7909 case $GROFF in
7910 [\\/]* | ?:[\\/]*)
7911 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7912 ;;
7913 *)
7914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7915for as_dir in $PATH
7916do
7917 IFS=$as_save_IFS
7918 test -z "$as_dir" && as_dir=.
7919 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007920 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 +00007921 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7923 break 2
7924 fi
7925done
7926done
7927IFS=$as_save_IFS
7928
Reid Spencera773bd52006-08-04 18:18:08 +00007929 ;;
7930esac
7931fi
7932GROFF=$ac_cv_path_GROFF
7933if test -n "$GROFF"; then
7934 { echo "$as_me:$LINENO: result: $GROFF" >&5
7935echo "${ECHO_T}$GROFF" >&6; }
7936else
7937 { echo "$as_me:$LINENO: result: no" >&5
7938echo "${ECHO_T}no" >&6; }
7939fi
7940
7941
7942# Extract the first word of "gzip", so it can be a program name with args.
7943set dummy gzip; ac_word=$2
7944{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7946if test "${ac_cv_path_GZIP+set}" = set; then
7947 echo $ECHO_N "(cached) $ECHO_C" >&6
7948else
7949 case $GZIP in
7950 [\\/]* | ?:[\\/]*)
7951 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7952 ;;
7953 *)
7954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7955for as_dir in $PATH
7956do
7957 IFS=$as_save_IFS
7958 test -z "$as_dir" && as_dir=.
7959 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007960 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 +00007961 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7963 break 2
7964 fi
7965done
7966done
7967IFS=$as_save_IFS
7968
Reid Spencera773bd52006-08-04 18:18:08 +00007969 ;;
7970esac
7971fi
7972GZIP=$ac_cv_path_GZIP
7973if test -n "$GZIP"; then
7974 { echo "$as_me:$LINENO: result: $GZIP" >&5
7975echo "${ECHO_T}$GZIP" >&6; }
7976else
7977 { echo "$as_me:$LINENO: result: no" >&5
7978echo "${ECHO_T}no" >&6; }
7979fi
7980
7981
7982# Extract the first word of "pod2html", so it can be a program name with args.
7983set dummy pod2html; ac_word=$2
7984{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7986if test "${ac_cv_path_POD2HTML+set}" = set; then
7987 echo $ECHO_N "(cached) $ECHO_C" >&6
7988else
7989 case $POD2HTML in
7990 [\\/]* | ?:[\\/]*)
7991 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7992 ;;
7993 *)
7994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7995for as_dir in $PATH
7996do
7997 IFS=$as_save_IFS
7998 test -z "$as_dir" && as_dir=.
7999 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008000 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 +00008001 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8003 break 2
8004 fi
8005done
8006done
8007IFS=$as_save_IFS
8008
Reid Spencera773bd52006-08-04 18:18:08 +00008009 ;;
8010esac
8011fi
8012POD2HTML=$ac_cv_path_POD2HTML
8013if test -n "$POD2HTML"; then
8014 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8015echo "${ECHO_T}$POD2HTML" >&6; }
8016else
8017 { echo "$as_me:$LINENO: result: no" >&5
8018echo "${ECHO_T}no" >&6; }
8019fi
8020
8021
8022# Extract the first word of "pod2man", so it can be a program name with args.
8023set dummy pod2man; ac_word=$2
8024{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8026if test "${ac_cv_path_POD2MAN+set}" = set; then
8027 echo $ECHO_N "(cached) $ECHO_C" >&6
8028else
8029 case $POD2MAN in
8030 [\\/]* | ?:[\\/]*)
8031 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8032 ;;
8033 *)
8034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8035for as_dir in $PATH
8036do
8037 IFS=$as_save_IFS
8038 test -z "$as_dir" && as_dir=.
8039 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008040 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 +00008041 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8043 break 2
8044 fi
8045done
8046done
8047IFS=$as_save_IFS
8048
Reid Spencera773bd52006-08-04 18:18:08 +00008049 ;;
8050esac
8051fi
8052POD2MAN=$ac_cv_path_POD2MAN
8053if test -n "$POD2MAN"; then
8054 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8055echo "${ECHO_T}$POD2MAN" >&6; }
8056else
8057 { echo "$as_me:$LINENO: result: no" >&5
8058echo "${ECHO_T}no" >&6; }
8059fi
8060
8061
8062# Extract the first word of "runtest", so it can be a program name with args.
8063set dummy runtest; ac_word=$2
8064{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8066if test "${ac_cv_path_RUNTEST+set}" = set; then
8067 echo $ECHO_N "(cached) $ECHO_C" >&6
8068else
8069 case $RUNTEST in
8070 [\\/]* | ?:[\\/]*)
8071 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8072 ;;
8073 *)
8074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8075for as_dir in $PATH
8076do
8077 IFS=$as_save_IFS
8078 test -z "$as_dir" && as_dir=.
8079 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008080 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 +00008081 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8083 break 2
8084 fi
8085done
8086done
8087IFS=$as_save_IFS
8088
Reid Spencera773bd52006-08-04 18:18:08 +00008089 ;;
8090esac
8091fi
8092RUNTEST=$ac_cv_path_RUNTEST
8093if test -n "$RUNTEST"; then
8094 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8095echo "${ECHO_T}$RUNTEST" >&6; }
8096else
8097 { echo "$as_me:$LINENO: result: no" >&5
8098echo "${ECHO_T}no" >&6; }
8099fi
8100
8101
8102
8103no_itcl=true
8104{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8105echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8106
8107# Check whether --with-tclinclude was given.
8108if test "${with_tclinclude+set}" = set; then
8109 withval=$with_tclinclude; with_tclinclude=${withval}
8110else
8111 with_tclinclude=''
8112fi
8113
8114if test "${ac_cv_path_tclsh+set}" = set; then
8115 echo $ECHO_N "(cached) $ECHO_C" >&6
8116else
8117
8118if test x"${with_tclinclude}" != x ; then
8119 if test -f ${with_tclinclude}/tclsh ; then
8120 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8121 elif test -f ${with_tclinclude}/src/tclsh ; then
8122 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8123 else
8124 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8125echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8126 { (exit 1); exit 1; }; }
8127 fi
8128fi
8129
8130if test x"${ac_cv_path_tclsh}" = x ; then
8131 { echo "$as_me:$LINENO: result: none" >&5
8132echo "${ECHO_T}none" >&6; }
8133 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
8134do
8135 # Extract the first word of "$ac_prog", so it can be a program name with args.
8136set dummy $ac_prog; ac_word=$2
8137{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8139if test "${ac_cv_path_TCLSH+set}" = set; then
8140 echo $ECHO_N "(cached) $ECHO_C" >&6
8141else
8142 case $TCLSH in
8143 [\\/]* | ?:[\\/]*)
8144 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8145 ;;
8146 *)
8147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8148for as_dir in $PATH
8149do
8150 IFS=$as_save_IFS
8151 test -z "$as_dir" && as_dir=.
8152 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008153 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 +00008154 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8156 break 2
8157 fi
8158done
8159done
8160IFS=$as_save_IFS
8161
8162 ;;
8163esac
8164fi
8165TCLSH=$ac_cv_path_TCLSH
8166if test -n "$TCLSH"; then
8167 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8168echo "${ECHO_T}$TCLSH" >&6; }
8169else
8170 { echo "$as_me:$LINENO: result: no" >&5
8171echo "${ECHO_T}no" >&6; }
8172fi
8173
8174
8175 test -n "$TCLSH" && break
8176done
8177
8178 if test x"${TCLSH}" = x ; then
8179 ac_cv_path_tclsh='';
8180 else
8181 ac_cv_path_tclsh="${TCLSH}";
8182 fi
8183else
8184 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8185echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8186 TCLSH="${ac_cv_path_tclsh}"
8187
8188fi
8189
8190fi
8191
8192# Extract the first word of "zip", so it can be a program name with args.
8193set dummy zip; ac_word=$2
8194{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8196if test "${ac_cv_path_ZIP+set}" = set; then
8197 echo $ECHO_N "(cached) $ECHO_C" >&6
8198else
8199 case $ZIP in
8200 [\\/]* | ?:[\\/]*)
8201 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8202 ;;
8203 *)
8204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205for as_dir in $PATH
8206do
8207 IFS=$as_save_IFS
8208 test -z "$as_dir" && as_dir=.
8209 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008210 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 +00008211 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8213 break 2
8214 fi
8215done
8216done
8217IFS=$as_save_IFS
8218
Reid Spencera773bd52006-08-04 18:18:08 +00008219 ;;
8220esac
8221fi
8222ZIP=$ac_cv_path_ZIP
8223if test -n "$ZIP"; then
8224 { echo "$as_me:$LINENO: result: $ZIP" >&5
8225echo "${ECHO_T}$ZIP" >&6; }
8226else
8227 { echo "$as_me:$LINENO: result: no" >&5
8228echo "${ECHO_T}no" >&6; }
8229fi
8230
8231
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008232for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008233do
8234 # Extract the first word of "$ac_prog", so it can be a program name with args.
8235set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008236{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8238if test "${ac_cv_path_OCAMLC+set}" = set; then
8239 echo $ECHO_N "(cached) $ECHO_C" >&6
8240else
8241 case $OCAMLC in
8242 [\\/]* | ?:[\\/]*)
8243 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8244 ;;
8245 *)
8246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8247for as_dir in $PATH
8248do
8249 IFS=$as_save_IFS
8250 test -z "$as_dir" && as_dir=.
8251 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008252 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 +00008253 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8255 break 2
8256 fi
8257done
8258done
8259IFS=$as_save_IFS
8260
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008261 ;;
8262esac
8263fi
8264OCAMLC=$ac_cv_path_OCAMLC
8265if test -n "$OCAMLC"; then
8266 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8267echo "${ECHO_T}$OCAMLC" >&6; }
8268else
8269 { echo "$as_me:$LINENO: result: no" >&5
8270echo "${ECHO_T}no" >&6; }
8271fi
8272
8273
Gordon Henriksene7072162008-03-07 18:20:01 +00008274 test -n "$OCAMLC" && break
8275done
8276
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008277for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008278do
8279 # Extract the first word of "$ac_prog", so it can be a program name with args.
8280set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008281{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8283if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
8285else
8286 case $OCAMLOPT in
8287 [\\/]* | ?:[\\/]*)
8288 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8289 ;;
8290 *)
8291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8292for as_dir in $PATH
8293do
8294 IFS=$as_save_IFS
8295 test -z "$as_dir" && as_dir=.
8296 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008297 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 +00008298 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8300 break 2
8301 fi
8302done
8303done
8304IFS=$as_save_IFS
8305
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008306 ;;
8307esac
8308fi
8309OCAMLOPT=$ac_cv_path_OCAMLOPT
8310if test -n "$OCAMLOPT"; then
8311 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8312echo "${ECHO_T}$OCAMLOPT" >&6; }
8313else
8314 { echo "$as_me:$LINENO: result: no" >&5
8315echo "${ECHO_T}no" >&6; }
8316fi
8317
8318
Gordon Henriksene7072162008-03-07 18:20:01 +00008319 test -n "$OCAMLOPT" && break
8320done
8321
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008322for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008323do
8324 # Extract the first word of "$ac_prog", so it can be a program name with args.
8325set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008326{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8328if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8329 echo $ECHO_N "(cached) $ECHO_C" >&6
8330else
8331 case $OCAMLDEP in
8332 [\\/]* | ?:[\\/]*)
8333 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8334 ;;
8335 *)
8336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8337for as_dir in $PATH
8338do
8339 IFS=$as_save_IFS
8340 test -z "$as_dir" && as_dir=.
8341 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008342 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 +00008343 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8345 break 2
8346 fi
8347done
8348done
8349IFS=$as_save_IFS
8350
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008351 ;;
8352esac
8353fi
8354OCAMLDEP=$ac_cv_path_OCAMLDEP
8355if test -n "$OCAMLDEP"; then
8356 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8357echo "${ECHO_T}$OCAMLDEP" >&6; }
8358else
8359 { echo "$as_me:$LINENO: result: no" >&5
8360echo "${ECHO_T}no" >&6; }
8361fi
8362
8363
Gordon Henriksene7072162008-03-07 18:20:01 +00008364 test -n "$OCAMLDEP" && break
8365done
8366
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008367for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008368do
8369 # Extract the first word of "$ac_prog", so it can be a program name with args.
8370set dummy $ac_prog; ac_word=$2
8371{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8373if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8374 echo $ECHO_N "(cached) $ECHO_C" >&6
8375else
8376 case $OCAMLDOC in
8377 [\\/]* | ?:[\\/]*)
8378 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8379 ;;
8380 *)
8381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8382for as_dir in $PATH
8383do
8384 IFS=$as_save_IFS
8385 test -z "$as_dir" && as_dir=.
8386 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008387 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 +00008388 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8390 break 2
8391 fi
8392done
8393done
8394IFS=$as_save_IFS
8395
8396 ;;
8397esac
8398fi
8399OCAMLDOC=$ac_cv_path_OCAMLDOC
8400if test -n "$OCAMLDOC"; then
8401 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8402echo "${ECHO_T}$OCAMLDOC" >&6; }
8403else
8404 { echo "$as_me:$LINENO: result: no" >&5
8405echo "${ECHO_T}no" >&6; }
8406fi
8407
8408
8409 test -n "$OCAMLDOC" && break
8410done
8411
Torok Edwincc499a42008-10-22 09:56:27 +00008412for ac_prog in gas as
8413do
8414 # Extract the first word of "$ac_prog", so it can be a program name with args.
8415set dummy $ac_prog; ac_word=$2
8416{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8418if test "${ac_cv_path_GAS+set}" = set; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8420else
8421 case $GAS in
8422 [\\/]* | ?:[\\/]*)
8423 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8424 ;;
8425 *)
8426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8427for as_dir in $PATH
8428do
8429 IFS=$as_save_IFS
8430 test -z "$as_dir" && as_dir=.
8431 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008432 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 +00008433 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8435 break 2
8436 fi
8437done
8438done
8439IFS=$as_save_IFS
8440
8441 ;;
8442esac
8443fi
8444GAS=$ac_cv_path_GAS
8445if test -n "$GAS"; then
8446 { echo "$as_me:$LINENO: result: $GAS" >&5
8447echo "${ECHO_T}$GAS" >&6; }
8448else
8449 { echo "$as_me:$LINENO: result: no" >&5
8450echo "${ECHO_T}no" >&6; }
8451fi
8452
8453
8454 test -n "$GAS" && break
8455done
8456
Reid Spencera773bd52006-08-04 18:18:08 +00008457
8458{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8459echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8460if test "${llvm_cv_link_use_r+set}" = set; then
8461 echo $ECHO_N "(cached) $ECHO_C" >&6
8462else
8463 ac_ext=c
8464ac_cpp='$CPP $CPPFLAGS'
8465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8467ac_compiler_gnu=$ac_cv_c_compiler_gnu
8468
8469 oldcflags="$CFLAGS"
8470 CFLAGS="$CFLAGS -Wl,-R."
8471 cat >conftest.$ac_ext <<_ACEOF
8472/* confdefs.h. */
8473_ACEOF
8474cat confdefs.h >>conftest.$ac_ext
8475cat >>conftest.$ac_ext <<_ACEOF
8476/* end confdefs.h. */
8477
8478int
8479main ()
8480{
8481int main() { return 0; }
8482 ;
8483 return 0;
8484}
8485_ACEOF
8486rm -f conftest.$ac_objext conftest$ac_exeext
8487if { (ac_try="$ac_link"
8488case "(($ac_try" in
8489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8490 *) ac_try_echo=$ac_try;;
8491esac
8492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8493 (eval "$ac_link") 2>conftest.er1
8494 ac_status=$?
8495 grep -v '^ *+' conftest.er1 >conftest.err
8496 rm -f conftest.er1
8497 cat conftest.err >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008499 (exit $ac_status); } &&
8500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8501 { (case "(($ac_try" in
8502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503 *) ac_try_echo=$ac_try;;
8504esac
8505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8506 (eval "$ac_try") 2>&5
8507 ac_status=$?
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; } &&
8510 { ac_try='test -s conftest$ac_exeext'
8511 { (case "(($ac_try" in
8512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8513 *) ac_try_echo=$ac_try;;
8514esac
8515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8516 (eval "$ac_try") 2>&5
8517 ac_status=$?
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008520 llvm_cv_link_use_r=yes
8521else
8522 echo "$as_me: failed program was:" >&5
8523sed 's/^/| /' conftest.$ac_ext >&5
8524
8525 llvm_cv_link_use_r=no
8526fi
8527
Bill Wendlingebcceee2009-04-18 11:20:33 +00008528rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008529 conftest$ac_exeext conftest.$ac_ext
8530 CFLAGS="$oldcflags"
8531 ac_ext=c
8532ac_cpp='$CPP $CPPFLAGS'
8533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8535ac_compiler_gnu=$ac_cv_c_compiler_gnu
8536
8537
8538fi
8539{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8540echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8541if test "$llvm_cv_link_use_r" = yes ; then
8542
8543cat >>confdefs.h <<\_ACEOF
8544#define HAVE_LINK_R 1
8545_ACEOF
8546
8547 fi
8548
8549
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008550{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8551echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8552if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8553 echo $ECHO_N "(cached) $ECHO_C" >&6
8554else
8555 ac_ext=c
8556ac_cpp='$CPP $CPPFLAGS'
8557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8559ac_compiler_gnu=$ac_cv_c_compiler_gnu
8560
8561 oldcflags="$CFLAGS"
8562 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8563 cat >conftest.$ac_ext <<_ACEOF
8564/* confdefs.h. */
8565_ACEOF
8566cat confdefs.h >>conftest.$ac_ext
8567cat >>conftest.$ac_ext <<_ACEOF
8568/* end confdefs.h. */
8569
8570int
8571main ()
8572{
8573int main() { return 0; }
8574 ;
8575 return 0;
8576}
8577_ACEOF
8578rm -f conftest.$ac_objext conftest$ac_exeext
8579if { (ac_try="$ac_link"
8580case "(($ac_try" in
8581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8582 *) ac_try_echo=$ac_try;;
8583esac
8584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8585 (eval "$ac_link") 2>conftest.er1
8586 ac_status=$?
8587 grep -v '^ *+' conftest.er1 >conftest.err
8588 rm -f conftest.er1
8589 cat conftest.err >&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008591 (exit $ac_status); } &&
8592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8593 { (case "(($ac_try" in
8594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595 *) ac_try_echo=$ac_try;;
8596esac
8597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8598 (eval "$ac_try") 2>&5
8599 ac_status=$?
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); }; } &&
8602 { ac_try='test -s conftest$ac_exeext'
8603 { (case "(($ac_try" in
8604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605 *) ac_try_echo=$ac_try;;
8606esac
8607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8608 (eval "$ac_try") 2>&5
8609 ac_status=$?
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008612 llvm_cv_link_use_export_dynamic=yes
8613else
8614 echo "$as_me: failed program was:" >&5
8615sed 's/^/| /' conftest.$ac_ext >&5
8616
8617 llvm_cv_link_use_export_dynamic=no
8618fi
8619
Bill Wendlingebcceee2009-04-18 11:20:33 +00008620rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008621 conftest$ac_exeext conftest.$ac_ext
8622 CFLAGS="$oldcflags"
8623 ac_ext=c
8624ac_cpp='$CPP $CPPFLAGS'
8625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8627ac_compiler_gnu=$ac_cv_c_compiler_gnu
8628
8629
8630fi
8631{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8632echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8633if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8634
8635cat >>confdefs.h <<\_ACEOF
8636#define HAVE_LINK_EXPORT_DYNAMIC 1
8637_ACEOF
8638
8639 fi
8640
8641
Reid Spencera773bd52006-08-04 18:18:08 +00008642
8643
8644{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8645echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8646if test "${ac_cv_c_const+set}" = set; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8648else
8649 cat >conftest.$ac_ext <<_ACEOF
8650/* confdefs.h. */
8651_ACEOF
8652cat confdefs.h >>conftest.$ac_ext
8653cat >>conftest.$ac_ext <<_ACEOF
8654/* end confdefs.h. */
8655
8656int
8657main ()
8658{
8659/* FIXME: Include the comments suggested by Paul. */
8660#ifndef __cplusplus
8661 /* Ultrix mips cc rejects this. */
8662 typedef int charset[2];
Bill Wendlingebcceee2009-04-18 11:20:33 +00008663 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008664 /* SunOS 4.1.1 cc rejects this. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008665 char const *const *ccp;
8666 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008667 /* NEC SVR4.0.2 mips cc rejects this. */
8668 struct point {int x, y;};
8669 static struct point const zero = {0,0};
8670 /* AIX XL C 1.02.0.0 rejects this.
8671 It does not let you subtract one const X* pointer from another in
8672 an arm of an if-expression whose if-part is not a constant
8673 expression */
8674 const char *g = "string";
Bill Wendlingebcceee2009-04-18 11:20:33 +00008675 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008676 /* HPUX 7.0 cc rejects these. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008677 ++ccp;
8678 p = (char**) ccp;
8679 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008680 { /* SCO 3.2v4 cc rejects this. */
8681 char *t;
8682 char const *s = 0 ? (char *) 0 : (char const *) 0;
8683
8684 *t++ = 0;
8685 if (s) return 0;
8686 }
8687 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8688 int x[] = {25, 17};
8689 const int *foo = &x[0];
8690 ++foo;
8691 }
8692 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8693 typedef const int *iptr;
8694 iptr p = 0;
8695 ++p;
8696 }
8697 { /* AIX XL C 1.02.0.0 rejects this saying
8698 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8699 struct s { int j; const int *ap[3]; };
8700 struct s *b; b->j = 5;
8701 }
8702 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8703 const int foo = 10;
8704 if (!foo) return 0;
8705 }
Bill Wendlingebcceee2009-04-18 11:20:33 +00008706 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008707#endif
8708
8709 ;
8710 return 0;
8711}
8712_ACEOF
8713rm -f conftest.$ac_objext
8714if { (ac_try="$ac_compile"
8715case "(($ac_try" in
8716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8717 *) ac_try_echo=$ac_try;;
8718esac
8719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8720 (eval "$ac_compile") 2>conftest.er1
8721 ac_status=$?
8722 grep -v '^ *+' conftest.er1 >conftest.err
8723 rm -f conftest.er1
8724 cat conftest.err >&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008726 (exit $ac_status); } &&
8727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8728 { (case "(($ac_try" in
8729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8730 *) ac_try_echo=$ac_try;;
8731esac
8732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8733 (eval "$ac_try") 2>&5
8734 ac_status=$?
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); }; } &&
8737 { ac_try='test -s conftest.$ac_objext'
8738 { (case "(($ac_try" in
8739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8740 *) ac_try_echo=$ac_try;;
8741esac
8742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8743 (eval "$ac_try") 2>&5
8744 ac_status=$?
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008747 ac_cv_c_const=yes
8748else
8749 echo "$as_me: failed program was:" >&5
8750sed 's/^/| /' conftest.$ac_ext >&5
8751
8752 ac_cv_c_const=no
8753fi
8754
8755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8756fi
8757{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8758echo "${ECHO_T}$ac_cv_c_const" >&6; }
8759if test $ac_cv_c_const = no; then
8760
8761cat >>confdefs.h <<\_ACEOF
8762#define const
8763_ACEOF
8764
8765fi
8766
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008767
8768
8769
8770
8771
8772ac_header_dirent=no
8773for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8774 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008775{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8776echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8777if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008778 echo $ECHO_N "(cached) $ECHO_C" >&6
8779else
8780 cat >conftest.$ac_ext <<_ACEOF
8781/* confdefs.h. */
8782_ACEOF
8783cat confdefs.h >>conftest.$ac_ext
8784cat >>conftest.$ac_ext <<_ACEOF
8785/* end confdefs.h. */
8786#include <sys/types.h>
8787#include <$ac_hdr>
8788
8789int
8790main ()
8791{
8792if ((DIR *) 0)
8793return 0;
8794 ;
8795 return 0;
8796}
8797_ACEOF
8798rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008799if { (ac_try="$ac_compile"
8800case "(($ac_try" in
8801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8802 *) ac_try_echo=$ac_try;;
8803esac
8804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8805 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008806 ac_status=$?
8807 grep -v '^ *+' conftest.er1 >conftest.err
8808 rm -f conftest.er1
8809 cat conftest.err >&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008811 (exit $ac_status); } &&
8812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8813 { (case "(($ac_try" in
8814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8815 *) ac_try_echo=$ac_try;;
8816esac
8817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8818 (eval "$ac_try") 2>&5
8819 ac_status=$?
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); }; } &&
8822 { ac_try='test -s conftest.$ac_objext'
8823 { (case "(($ac_try" in
8824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8825 *) ac_try_echo=$ac_try;;
8826esac
8827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8828 (eval "$ac_try") 2>&5
8829 ac_status=$?
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008832 eval "$as_ac_Header=yes"
8833else
8834 echo "$as_me: failed program was:" >&5
8835sed 's/^/| /' conftest.$ac_ext >&5
8836
Reid Spencera773bd52006-08-04 18:18:08 +00008837 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008838fi
Reid Spencera773bd52006-08-04 18:18:08 +00008839
8840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008841fi
Reid Spencera773bd52006-08-04 18:18:08 +00008842ac_res=`eval echo '${'$as_ac_Header'}'`
8843 { echo "$as_me:$LINENO: result: $ac_res" >&5
8844echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008845if test `eval echo '${'$as_ac_Header'}'` = yes; then
8846 cat >>confdefs.h <<_ACEOF
8847#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8848_ACEOF
8849
8850ac_header_dirent=$ac_hdr; break
8851fi
8852
8853done
8854# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8855if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008856 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8857echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008858if test "${ac_cv_search_opendir+set}" = set; then
8859 echo $ECHO_N "(cached) $ECHO_C" >&6
8860else
8861 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008862cat >conftest.$ac_ext <<_ACEOF
8863/* confdefs.h. */
8864_ACEOF
8865cat confdefs.h >>conftest.$ac_ext
8866cat >>conftest.$ac_ext <<_ACEOF
8867/* end confdefs.h. */
8868
Reid Spencera773bd52006-08-04 18:18:08 +00008869/* Override any GCC internal prototype to avoid an error.
8870 Use char because int might match the return type of a GCC
8871 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008872#ifdef __cplusplus
8873extern "C"
8874#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008875char opendir ();
8876int
8877main ()
8878{
Reid Spencera773bd52006-08-04 18:18:08 +00008879return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008880 ;
8881 return 0;
8882}
8883_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008884for ac_lib in '' dir; do
8885 if test -z "$ac_lib"; then
8886 ac_res="none required"
8887 else
8888 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008889 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008890 fi
8891 rm -f conftest.$ac_objext conftest$ac_exeext
8892if { (ac_try="$ac_link"
8893case "(($ac_try" in
8894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8895 *) ac_try_echo=$ac_try;;
8896esac
8897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8898 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008899 ac_status=$?
8900 grep -v '^ *+' conftest.er1 >conftest.err
8901 rm -f conftest.er1
8902 cat conftest.err >&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008904 (exit $ac_status); } &&
8905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8906 { (case "(($ac_try" in
8907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8908 *) ac_try_echo=$ac_try;;
8909esac
8910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8911 (eval "$ac_try") 2>&5
8912 ac_status=$?
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); }; } &&
8915 { ac_try='test -s conftest$ac_exeext'
8916 { (case "(($ac_try" in
8917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8918 *) ac_try_echo=$ac_try;;
8919esac
8920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8921 (eval "$ac_try") 2>&5
8922 ac_status=$?
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008925 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008926else
8927 echo "$as_me: failed program was:" >&5
8928sed 's/^/| /' conftest.$ac_ext >&5
8929
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008930
8931fi
8932
Bill Wendlingebcceee2009-04-18 11:20:33 +00008933rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008934 conftest$ac_exeext
8935 if test "${ac_cv_search_opendir+set}" = set; then
8936 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008937fi
John Criswell7a73b802003-06-30 21:59:07 +00008938done
Reid Spencera773bd52006-08-04 18:18:08 +00008939if test "${ac_cv_search_opendir+set}" = set; then
8940 :
8941else
8942 ac_cv_search_opendir=no
8943fi
8944rm conftest.$ac_ext
8945LIBS=$ac_func_search_save_LIBS
8946fi
8947{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8948echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8949ac_res=$ac_cv_search_opendir
8950if test "$ac_res" != no; then
8951 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008952
Reid Spencera773bd52006-08-04 18:18:08 +00008953fi
8954
8955else
8956 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8957echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8958if test "${ac_cv_search_opendir+set}" = set; then
8959 echo $ECHO_N "(cached) $ECHO_C" >&6
8960else
8961 ac_func_search_save_LIBS=$LIBS
8962cat >conftest.$ac_ext <<_ACEOF
8963/* confdefs.h. */
8964_ACEOF
8965cat confdefs.h >>conftest.$ac_ext
8966cat >>conftest.$ac_ext <<_ACEOF
8967/* end confdefs.h. */
8968
8969/* Override any GCC internal prototype to avoid an error.
8970 Use char because int might match the return type of a GCC
8971 builtin and then its argument prototype would still apply. */
8972#ifdef __cplusplus
8973extern "C"
8974#endif
8975char opendir ();
8976int
8977main ()
8978{
8979return opendir ();
8980 ;
8981 return 0;
8982}
8983_ACEOF
8984for ac_lib in '' x; do
8985 if test -z "$ac_lib"; then
8986 ac_res="none required"
8987 else
8988 ac_res=-l$ac_lib
8989 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8990 fi
8991 rm -f conftest.$ac_objext conftest$ac_exeext
8992if { (ac_try="$ac_link"
8993case "(($ac_try" in
8994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8995 *) ac_try_echo=$ac_try;;
8996esac
8997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8998 (eval "$ac_link") 2>conftest.er1
8999 ac_status=$?
9000 grep -v '^ *+' conftest.er1 >conftest.err
9001 rm -f conftest.er1
9002 cat conftest.err >&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009004 (exit $ac_status); } &&
9005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9006 { (case "(($ac_try" in
9007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9008 *) ac_try_echo=$ac_try;;
9009esac
9010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9011 (eval "$ac_try") 2>&5
9012 ac_status=$?
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); }; } &&
9015 { ac_try='test -s conftest$ac_exeext'
9016 { (case "(($ac_try" in
9017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9018 *) ac_try_echo=$ac_try;;
9019esac
9020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9021 (eval "$ac_try") 2>&5
9022 ac_status=$?
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009025 ac_cv_search_opendir=$ac_res
9026else
9027 echo "$as_me: failed program was:" >&5
9028sed 's/^/| /' conftest.$ac_ext >&5
9029
9030
9031fi
9032
Bill Wendlingebcceee2009-04-18 11:20:33 +00009033rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00009034 conftest$ac_exeext
9035 if test "${ac_cv_search_opendir+set}" = set; then
9036 break
9037fi
9038done
9039if test "${ac_cv_search_opendir+set}" = set; then
9040 :
9041else
9042 ac_cv_search_opendir=no
9043fi
9044rm conftest.$ac_ext
9045LIBS=$ac_func_search_save_LIBS
9046fi
9047{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9048echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9049ac_res=$ac_cv_search_opendir
9050if test "$ac_res" != no; then
9051 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9052
9053fi
9054
9055fi
John Criswell7a73b802003-06-30 21:59:07 +00009056
9057
9058for ac_header in dlfcn.h
9059do
9060as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00009061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9063echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9064if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00009065 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00009066fi
Reid Spencera773bd52006-08-04 18:18:08 +00009067ac_res=`eval echo '${'$as_ac_Header'}'`
9068 { echo "$as_me:$LINENO: result: $ac_res" >&5
9069echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00009070else
Brian Gaeke0a621332004-09-08 20:38:05 +00009071 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00009072{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9073echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009074cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009075/* confdefs.h. */
9076_ACEOF
9077cat confdefs.h >>conftest.$ac_ext
9078cat >>conftest.$ac_ext <<_ACEOF
9079/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00009080$ac_includes_default
9081#include <$ac_header>
9082_ACEOF
9083rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00009084if { (ac_try="$ac_compile"
9085case "(($ac_try" in
9086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9087 *) ac_try_echo=$ac_try;;
9088esac
9089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9090 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00009091 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009092 grep -v '^ *+' conftest.er1 >conftest.err
9093 rm -f conftest.er1
9094 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00009095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009096 (exit $ac_status); } &&
9097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9098 { (case "(($ac_try" in
9099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9100 *) ac_try_echo=$ac_try;;
9101esac
9102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9103 (eval "$ac_try") 2>&5
9104 ac_status=$?
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); }; } &&
9107 { ac_try='test -s conftest.$ac_objext'
9108 { (case "(($ac_try" in
9109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9110 *) ac_try_echo=$ac_try;;
9111esac
9112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9113 (eval "$ac_try") 2>&5
9114 ac_status=$?
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009117 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00009118else
9119 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009120sed 's/^/| /' conftest.$ac_ext >&5
9121
Reid Spencera773bd52006-08-04 18:18:08 +00009122 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00009123fi
Reid Spencera773bd52006-08-04 18:18:08 +00009124
9125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9126{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9127echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009128
9129# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00009130{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9131echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009132cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00009133/* confdefs.h. */
9134_ACEOF
9135cat confdefs.h >>conftest.$ac_ext
9136cat >>conftest.$ac_ext <<_ACEOF
9137/* end confdefs.h. */
9138#include <$ac_header>
9139_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009140if { (ac_try="$ac_cpp conftest.$ac_ext"
9141case "(($ac_try" in
9142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9143 *) ac_try_echo=$ac_try;;
9144esac
9145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00009147 ac_status=$?
9148 grep -v '^ *+' conftest.er1 >conftest.err
9149 rm -f conftest.er1
9150 cat conftest.err >&5
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009152 (exit $ac_status); } >/dev/null; then
9153 if test -s conftest.err; then
9154 ac_cpp_err=$ac_c_preproc_warn_flag
9155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9156 else
9157 ac_cpp_err=
9158 fi
9159else
9160 ac_cpp_err=yes
9161fi
9162if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009163 ac_header_preproc=yes
9164else
9165 echo "$as_me: failed program was:" >&5
9166sed 's/^/| /' conftest.$ac_ext >&5
9167
9168 ac_header_preproc=no
9169fi
Reid Spencera773bd52006-08-04 18:18:08 +00009170
Brian Gaeke0a621332004-09-08 20:38:05 +00009171rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00009172{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9173echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009174
9175# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009176case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9177 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00009178 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9179echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9181echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9182 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00009183 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009184 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00009185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9186echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9188echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9189 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9190echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9191 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9192echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00009193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9194echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009195 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9196echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00009197 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00009198## ----------------------------------- ##
9199## Report this to llvmbugs@cs.uiuc.edu ##
9200## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00009201_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00009202 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00009203 ;;
9204esac
Reid Spencera773bd52006-08-04 18:18:08 +00009205{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9206echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9207if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009208 echo $ECHO_N "(cached) $ECHO_C" >&6
9209else
Reid Spencer2706f8c2004-09-19 23:53:36 +00009210 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00009211fi
Reid Spencera773bd52006-08-04 18:18:08 +00009212ac_res=`eval echo '${'$as_ac_Header'}'`
9213 { echo "$as_me:$LINENO: result: $ac_res" >&5
9214echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009215
9216fi
John Criswell7a73b802003-06-30 21:59:07 +00009217if test `eval echo '${'$as_ac_Header'}'` = yes; then
9218 cat >>confdefs.h <<_ACEOF
9219#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9220_ACEOF
9221
9222fi
9223
9224done
9225
Reid Spencera773bd52006-08-04 18:18:08 +00009226# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009227if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009228 enableval=$enable_ltdl_install;
9229fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009230
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009231
Bill Wendlingebcceee2009-04-18 11:20:33 +00009232
9233
9234if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009235 INSTALL_LTDL_TRUE=
9236 INSTALL_LTDL_FALSE='#'
9237else
9238 INSTALL_LTDL_TRUE='#'
9239 INSTALL_LTDL_FALSE=
9240fi
9241
Bill Wendlingebcceee2009-04-18 11:20:33 +00009242
9243
9244if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009245 CONVENIENCE_LTDL_TRUE=
9246 CONVENIENCE_LTDL_FALSE='#'
9247else
9248 CONVENIENCE_LTDL_TRUE='#'
9249 CONVENIENCE_LTDL_FALSE=
9250fi
9251
9252
Reid Spencera773bd52006-08-04 18:18:08 +00009253{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9254echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009255library_names_spec=
9256libname_spec='lib$name'
9257soname_spec=
9258shrext_cmds=".so"
9259postinstall_cmds=
9260postuninstall_cmds=
9261finish_cmds=
9262finish_eval=
9263shlibpath_var=
9264shlibpath_overrides_runpath=unknown
9265version_type=none
9266dynamic_linker="$host_os ld.so"
9267sys_lib_dlsearch_path_spec="/lib /usr/lib"
9268if test "$GCC" = yes; then
9269 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9270 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9271 # if the path contains ";" then we assume it to be the separator
9272 # otherwise default to the standard path separator (i.e. ":") - it is
9273 # assumed that no part of a normal pathname contains ";" but that should
9274 # okay in the real world where ";" in dirpaths is itself problematic.
9275 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9276 else
9277 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9278 fi
9279else
9280 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9281fi
9282need_lib_prefix=unknown
9283hardcode_into_libs=no
9284
9285# when you set need_version to no, make sure it does not cause -set_version
9286# flags to be left without arguments
9287need_version=unknown
9288
9289case $host_os in
9290aix3*)
9291 version_type=linux
9292 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9293 shlibpath_var=LIBPATH
9294
9295 # AIX 3 has no versioning support, so we append a major version to the name.
9296 soname_spec='${libname}${release}${shared_ext}$major'
9297 ;;
9298
9299aix4* | aix5*)
9300 version_type=linux
9301 need_lib_prefix=no
9302 need_version=no
9303 hardcode_into_libs=yes
9304 if test "$host_cpu" = ia64; then
9305 # AIX 5 supports IA64
9306 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9307 shlibpath_var=LD_LIBRARY_PATH
9308 else
9309 # With GCC up to 2.95.x, collect2 would create an import file
9310 # for dependence libraries. The import file would start with
9311 # the line `#! .'. This would cause the generated library to
9312 # depend on `.', always an invalid library. This was fixed in
9313 # development snapshots of GCC prior to 3.0.
9314 case $host_os in
9315 aix4 | aix4.[01] | aix4.[01].*)
9316 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9317 echo ' yes '
9318 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9319 :
9320 else
9321 can_build_shared=no
9322 fi
9323 ;;
9324 esac
9325 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9326 # soname into executable. Probably we can add versioning support to
9327 # collect2, so additional links can be useful in future.
9328 if test "$aix_use_runtimelinking" = yes; then
9329 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9330 # instead of lib<name>.a to let people know that these are not
9331 # typical AIX shared libraries.
9332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9333 else
9334 # We preserve .a as extension for shared libraries through AIX4.2
9335 # and later when we are not doing run time linking.
9336 library_names_spec='${libname}${release}.a $libname.a'
9337 soname_spec='${libname}${release}${shared_ext}$major'
9338 fi
9339 shlibpath_var=LIBPATH
9340 fi
9341 ;;
9342
9343amigaos*)
9344 library_names_spec='$libname.ixlibrary $libname.a'
9345 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9346 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'
9347 ;;
9348
9349beos*)
9350 library_names_spec='${libname}${shared_ext}'
9351 dynamic_linker="$host_os ld.so"
9352 shlibpath_var=LIBRARY_PATH
9353 ;;
9354
9355bsdi[45]*)
9356 version_type=linux
9357 need_version=no
9358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9359 soname_spec='${libname}${release}${shared_ext}$major'
9360 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9361 shlibpath_var=LD_LIBRARY_PATH
9362 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9363 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9364 # the default ld.so.conf also contains /usr/contrib/lib and
9365 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9366 # libtool to hard-code these into programs
9367 ;;
9368
9369cygwin* | mingw* | pw32*)
9370 version_type=windows
9371 shrext_cmds=".dll"
9372 need_version=no
9373 need_lib_prefix=no
9374
9375 case $GCC,$host_os in
9376 yes,cygwin* | yes,mingw* | yes,pw32*)
9377 library_names_spec='$libname.dll.a'
9378 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9379 postinstall_cmds='base_file=`basename \${file}`~
9380 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9381 dldir=$destdir/`dirname \$dlpath`~
9382 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009383 $install_prog $dir/$dlname \$dldir/$dlname~
9384 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009385 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9386 dlpath=$dir/\$dldll~
9387 $rm \$dlpath'
9388 shlibpath_overrides_runpath=yes
9389
9390 case $host_os in
9391 cygwin*)
9392 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9393 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9394 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9395 ;;
9396 mingw*)
9397 # MinGW DLLs use traditional 'lib' prefix
9398 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9399 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9400 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9401 # It is most probably a Windows format PATH printed by
9402 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9403 # path with ; separators, and with drive letters. We can handle the
9404 # drive letters (cygwin fileutils understands them), so leave them,
9405 # especially as we might pass files found there to a mingw objdump,
9406 # which wouldn't understand a cygwinified path. Ahh.
9407 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9408 else
9409 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9410 fi
9411 ;;
9412 pw32*)
9413 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009414 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 +00009415 ;;
9416 esac
9417 ;;
9418
9419 *)
9420 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9421 ;;
9422 esac
9423 dynamic_linker='Win32 ld.exe'
9424 # FIXME: first we should search . and the directory the executable is in
9425 shlibpath_var=PATH
9426 ;;
9427
9428darwin* | rhapsody*)
9429 dynamic_linker="$host_os dyld"
9430 version_type=darwin
9431 need_lib_prefix=no
9432 need_version=no
9433 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9434 soname_spec='${libname}${release}${major}$shared_ext'
9435 shlibpath_overrides_runpath=yes
9436 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009437 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009438 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9439 if test "$GCC" = yes; then
9440 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"`
9441 else
9442 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9443 fi
9444 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9445 ;;
9446
9447dgux*)
9448 version_type=linux
9449 need_lib_prefix=no
9450 need_version=no
9451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9452 soname_spec='${libname}${release}${shared_ext}$major'
9453 shlibpath_var=LD_LIBRARY_PATH
9454 ;;
9455
9456freebsd1*)
9457 dynamic_linker=no
9458 ;;
9459
9460kfreebsd*-gnu)
9461 version_type=linux
9462 need_lib_prefix=no
9463 need_version=no
9464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9465 soname_spec='${libname}${release}${shared_ext}$major'
9466 shlibpath_var=LD_LIBRARY_PATH
9467 shlibpath_overrides_runpath=no
9468 hardcode_into_libs=yes
9469 dynamic_linker='GNU ld.so'
9470 ;;
9471
Reid Spencera773bd52006-08-04 18:18:08 +00009472freebsd* | dragonfly*)
9473 # DragonFly does not have aout. When/if they implement a new
9474 # versioning mechanism, adjust this.
9475 if test -x /usr/bin/objformat; then
9476 objformat=`/usr/bin/objformat`
9477 else
9478 case $host_os in
9479 freebsd[123]*) objformat=aout ;;
9480 *) objformat=elf ;;
9481 esac
9482 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009483 version_type=freebsd-$objformat
9484 case $version_type in
9485 freebsd-elf*)
9486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9487 need_version=no
9488 need_lib_prefix=no
9489 ;;
9490 freebsd-*)
9491 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9492 need_version=yes
9493 ;;
9494 esac
9495 shlibpath_var=LD_LIBRARY_PATH
9496 case $host_os in
9497 freebsd2*)
9498 shlibpath_overrides_runpath=yes
9499 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009500 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009501 shlibpath_overrides_runpath=yes
9502 hardcode_into_libs=yes
9503 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009504 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9505 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009506 shlibpath_overrides_runpath=no
9507 hardcode_into_libs=yes
9508 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009509 freebsd*) # from 4.6 on
9510 shlibpath_overrides_runpath=yes
9511 hardcode_into_libs=yes
9512 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009513 esac
9514 ;;
9515
9516gnu*)
9517 version_type=linux
9518 need_lib_prefix=no
9519 need_version=no
9520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9521 soname_spec='${libname}${release}${shared_ext}$major'
9522 shlibpath_var=LD_LIBRARY_PATH
9523 hardcode_into_libs=yes
9524 ;;
9525
9526hpux9* | hpux10* | hpux11*)
9527 # Give a soname corresponding to the major version so that dld.sl refuses to
9528 # link against other versions.
9529 version_type=sunos
9530 need_lib_prefix=no
9531 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009532 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009533 ia64*)
9534 shrext_cmds='.so'
9535 hardcode_into_libs=yes
9536 dynamic_linker="$host_os dld.so"
9537 shlibpath_var=LD_LIBRARY_PATH
9538 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9540 soname_spec='${libname}${release}${shared_ext}$major'
9541 if test "X$HPUX_IA64_MODE" = X32; then
9542 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9543 else
9544 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9545 fi
9546 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9547 ;;
9548 hppa*64*)
9549 shrext_cmds='.sl'
9550 hardcode_into_libs=yes
9551 dynamic_linker="$host_os dld.sl"
9552 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9553 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9555 soname_spec='${libname}${release}${shared_ext}$major'
9556 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9557 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9558 ;;
9559 *)
9560 shrext_cmds='.sl'
9561 dynamic_linker="$host_os dld.sl"
9562 shlibpath_var=SHLIB_PATH
9563 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9565 soname_spec='${libname}${release}${shared_ext}$major'
9566 ;;
9567 esac
9568 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9569 postinstall_cmds='chmod 555 $lib'
9570 ;;
9571
Reid Spencera773bd52006-08-04 18:18:08 +00009572interix3*)
9573 version_type=linux
9574 need_lib_prefix=no
9575 need_version=no
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='Interix 3.x ld.so.1 (PE, like ELF)'
9579 shlibpath_var=LD_LIBRARY_PATH
9580 shlibpath_overrides_runpath=no
9581 hardcode_into_libs=yes
9582 ;;
9583
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009584irix5* | irix6* | nonstopux*)
9585 case $host_os in
9586 nonstopux*) version_type=nonstopux ;;
9587 *)
9588 if test "$lt_cv_prog_gnu_ld" = yes; then
9589 version_type=linux
9590 else
9591 version_type=irix
9592 fi ;;
9593 esac
9594 need_lib_prefix=no
9595 need_version=no
9596 soname_spec='${libname}${release}${shared_ext}$major'
9597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9598 case $host_os in
9599 irix5* | nonstopux*)
9600 libsuff= shlibsuff=
9601 ;;
9602 *)
9603 case $LD in # libtool.m4 will add one of these switches to LD
9604 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9605 libsuff= shlibsuff= libmagic=32-bit;;
9606 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9607 libsuff=32 shlibsuff=N32 libmagic=N32;;
9608 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9609 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9610 *) libsuff= shlibsuff= libmagic=never-match;;
9611 esac
9612 ;;
9613 esac
9614 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9615 shlibpath_overrides_runpath=no
9616 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9617 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9618 hardcode_into_libs=yes
9619 ;;
9620
9621# No shared lib support for Linux oldld, aout, or coff.
9622linux*oldld* | linux*aout* | linux*coff*)
9623 dynamic_linker=no
9624 ;;
9625
9626# This must be Linux ELF.
9627linux*)
9628 version_type=linux
9629 need_lib_prefix=no
9630 need_version=no
9631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9632 soname_spec='${libname}${release}${shared_ext}$major'
9633 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9634 shlibpath_var=LD_LIBRARY_PATH
9635 shlibpath_overrides_runpath=no
9636 # This implies no fast_install, which is unacceptable.
9637 # Some rework will be needed to allow for fast_install
9638 # before this can be enabled.
9639 hardcode_into_libs=yes
9640
9641 # Append ld.so.conf contents to the search path
9642 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009643 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 +00009644 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9645 fi
9646
9647 # We used to test for /lib/ld.so.1 and disable shared libraries on
9648 # powerpc, because MkLinux only supported shared libraries with the
9649 # GNU dynamic linker. Since this was broken with cross compilers,
9650 # most powerpc-linux boxes support dynamic linking these days and
9651 # people can always --disable-shared, the test was removed, and we
9652 # assume the GNU/Linux dynamic linker is in use.
9653 dynamic_linker='GNU/Linux ld.so'
9654 ;;
9655
9656knetbsd*-gnu)
9657 version_type=linux
9658 need_lib_prefix=no
9659 need_version=no
9660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9661 soname_spec='${libname}${release}${shared_ext}$major'
9662 shlibpath_var=LD_LIBRARY_PATH
9663 shlibpath_overrides_runpath=no
9664 hardcode_into_libs=yes
9665 dynamic_linker='GNU ld.so'
9666 ;;
9667
9668netbsd*)
9669 version_type=sunos
9670 need_lib_prefix=no
9671 need_version=no
9672 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9674 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9675 dynamic_linker='NetBSD (a.out) ld.so'
9676 else
9677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9678 soname_spec='${libname}${release}${shared_ext}$major'
9679 dynamic_linker='NetBSD ld.elf_so'
9680 fi
9681 shlibpath_var=LD_LIBRARY_PATH
9682 shlibpath_overrides_runpath=yes
9683 hardcode_into_libs=yes
9684 ;;
9685
9686newsos6)
9687 version_type=linux
9688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9689 shlibpath_var=LD_LIBRARY_PATH
9690 shlibpath_overrides_runpath=yes
9691 ;;
9692
9693nto-qnx*)
9694 version_type=linux
9695 need_lib_prefix=no
9696 need_version=no
9697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9698 soname_spec='${libname}${release}${shared_ext}$major'
9699 shlibpath_var=LD_LIBRARY_PATH
9700 shlibpath_overrides_runpath=yes
9701 ;;
9702
9703openbsd*)
9704 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009705 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009706 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009707 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9708 case $host_os in
9709 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9710 *) need_version=no ;;
9711 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9713 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9714 shlibpath_var=LD_LIBRARY_PATH
9715 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9716 case $host_os in
9717 openbsd2.[89] | openbsd2.[89].*)
9718 shlibpath_overrides_runpath=no
9719 ;;
9720 *)
9721 shlibpath_overrides_runpath=yes
9722 ;;
9723 esac
9724 else
9725 shlibpath_overrides_runpath=yes
9726 fi
9727 ;;
9728
9729os2*)
9730 libname_spec='$name'
9731 shrext_cmds=".dll"
9732 need_lib_prefix=no
9733 library_names_spec='$libname${shared_ext} $libname.a'
9734 dynamic_linker='OS/2 ld.exe'
9735 shlibpath_var=LIBPATH
9736 ;;
9737
9738osf3* | osf4* | osf5*)
9739 version_type=osf
9740 need_lib_prefix=no
9741 need_version=no
9742 soname_spec='${libname}${release}${shared_ext}$major'
9743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9744 shlibpath_var=LD_LIBRARY_PATH
9745 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9746 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9747 ;;
9748
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009749solaris*)
9750 version_type=linux
9751 need_lib_prefix=no
9752 need_version=no
9753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9754 soname_spec='${libname}${release}${shared_ext}$major'
9755 shlibpath_var=LD_LIBRARY_PATH
9756 shlibpath_overrides_runpath=yes
9757 hardcode_into_libs=yes
9758 # ldd complains unless libraries are executable
9759 postinstall_cmds='chmod +x $lib'
9760 ;;
9761
9762sunos4*)
9763 version_type=sunos
9764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9765 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9766 shlibpath_var=LD_LIBRARY_PATH
9767 shlibpath_overrides_runpath=yes
9768 if test "$with_gnu_ld" = yes; then
9769 need_lib_prefix=no
9770 fi
9771 need_version=yes
9772 ;;
9773
Reid Spencera773bd52006-08-04 18:18:08 +00009774sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009775 version_type=linux
9776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9777 soname_spec='${libname}${release}${shared_ext}$major'
9778 shlibpath_var=LD_LIBRARY_PATH
9779 case $host_vendor in
9780 sni)
9781 shlibpath_overrides_runpath=no
9782 need_lib_prefix=no
9783 export_dynamic_flag_spec='${wl}-Blargedynsym'
9784 runpath_var=LD_RUN_PATH
9785 ;;
9786 siemens)
9787 need_lib_prefix=no
9788 ;;
9789 motorola)
9790 need_lib_prefix=no
9791 need_version=no
9792 shlibpath_overrides_runpath=no
9793 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9794 ;;
9795 esac
9796 ;;
9797
9798sysv4*MP*)
9799 if test -d /usr/nec ;then
9800 version_type=linux
9801 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9802 soname_spec='$libname${shared_ext}.$major'
9803 shlibpath_var=LD_LIBRARY_PATH
9804 fi
9805 ;;
9806
Reid Spencera773bd52006-08-04 18:18:08 +00009807sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9808 version_type=freebsd-elf
9809 need_lib_prefix=no
9810 need_version=no
9811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9812 soname_spec='${libname}${release}${shared_ext}$major'
9813 shlibpath_var=LD_LIBRARY_PATH
9814 hardcode_into_libs=yes
9815 if test "$with_gnu_ld" = yes; then
9816 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9817 shlibpath_overrides_runpath=no
9818 else
9819 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9820 shlibpath_overrides_runpath=yes
9821 case $host_os in
9822 sco3.2v5*)
9823 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9824 ;;
9825 esac
9826 fi
9827 sys_lib_dlsearch_path_spec='/usr/lib'
9828 ;;
9829
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009830uts4*)
9831 version_type=linux
9832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9833 soname_spec='${libname}${release}${shared_ext}$major'
9834 shlibpath_var=LD_LIBRARY_PATH
9835 ;;
9836
9837*)
9838 dynamic_linker=no
9839 ;;
9840esac
Reid Spencera773bd52006-08-04 18:18:08 +00009841{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9842echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009843test "$dynamic_linker" = no && can_build_shared=no
9844
Reid Spencera773bd52006-08-04 18:18:08 +00009845variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9846if test "$GCC" = yes; then
9847 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9848fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009849
Reid Spencera773bd52006-08-04 18:18:08 +00009850
9851{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9852echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009853if test "${libltdl_cv_shlibext+set}" = set; then
9854 echo $ECHO_N "(cached) $ECHO_C" >&6
9855else
9856
9857module=yes
9858eval libltdl_cv_shlibext=$shrext_cmds
9859
9860fi
Reid Spencera773bd52006-08-04 18:18:08 +00009861{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9862echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009863if test -n "$libltdl_cv_shlibext"; then
9864
9865cat >>confdefs.h <<_ACEOF
9866#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9867_ACEOF
9868
9869fi
9870
9871
Reid Spencera773bd52006-08-04 18:18:08 +00009872{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9873echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009874if test "${libltdl_cv_shlibpath_var+set}" = set; then
9875 echo $ECHO_N "(cached) $ECHO_C" >&6
9876else
9877 libltdl_cv_shlibpath_var="$shlibpath_var"
9878fi
Reid Spencera773bd52006-08-04 18:18:08 +00009879{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9880echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009881if test -n "$libltdl_cv_shlibpath_var"; then
9882
9883cat >>confdefs.h <<_ACEOF
9884#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9885_ACEOF
9886
9887fi
9888
9889
Reid Spencera773bd52006-08-04 18:18:08 +00009890{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9891echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009892if test "${libltdl_cv_sys_search_path+set}" = set; then
9893 echo $ECHO_N "(cached) $ECHO_C" >&6
9894else
9895 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9896fi
Reid Spencera773bd52006-08-04 18:18:08 +00009897{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9898echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009899if test -n "$libltdl_cv_sys_search_path"; then
9900 sys_search_path=
9901 for dir in $libltdl_cv_sys_search_path; do
9902 if test -z "$sys_search_path"; then
9903 sys_search_path="$dir"
9904 else
9905 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9906 fi
9907 done
9908
9909cat >>confdefs.h <<_ACEOF
9910#define LTDL_SYSSEARCHPATH "$sys_search_path"
9911_ACEOF
9912
9913fi
9914
Reid Spencera773bd52006-08-04 18:18:08 +00009915{ echo "$as_me:$LINENO: checking for objdir" >&5
9916echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009917if test "${libltdl_cv_objdir+set}" = set; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
9919else
9920 libltdl_cv_objdir="$objdir"
9921 if test -n "$objdir"; then
9922 :
9923 else
9924 rm -f .libs 2>/dev/null
9925 mkdir .libs 2>/dev/null
9926 if test -d .libs; then
9927 libltdl_cv_objdir=.libs
9928 else
9929 # MS-DOS does not allow filenames that begin with a dot.
9930 libltdl_cv_objdir=_libs
9931 fi
9932 rmdir .libs 2>/dev/null
9933 fi
9934
9935fi
Reid Spencera773bd52006-08-04 18:18:08 +00009936{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9937echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009938
9939cat >>confdefs.h <<_ACEOF
9940#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9941_ACEOF
9942
9943
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009944
9945
9946
9947
9948# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009949{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9950echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009951if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9952 echo $ECHO_N "(cached) $ECHO_C" >&6
9953else
9954
9955# These are sane defaults that work on at least a few old systems.
9956# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9957
9958# Character class describing NM global symbol codes.
9959symcode='[BCDEGRST]'
9960
9961# Regexp to match symbols that can be accessed directly from C.
9962sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9963
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009964# Transform an extracted symbol line into a proper C declaration
9965lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9966
9967# Transform an extracted symbol line into symbol name and symbol address
9968lt_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'"
9969
9970# Define system-specific variables.
9971case $host_os in
9972aix*)
9973 symcode='[BCDT]'
9974 ;;
9975cygwin* | mingw* | pw32*)
9976 symcode='[ABCDGISTW]'
9977 ;;
9978hpux*) # Its linker distinguishes data from code symbols
9979 if test "$host_cpu" = ia64; then
9980 symcode='[ABCDEGRST]'
9981 fi
9982 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9983 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'"
9984 ;;
9985linux*)
9986 if test "$host_cpu" = ia64; then
9987 symcode='[ABCDGIRSTW]'
9988 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9989 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'"
9990 fi
9991 ;;
9992irix* | nonstopux*)
9993 symcode='[BCDEGRST]'
9994 ;;
9995osf*)
9996 symcode='[BCDEGQRST]'
9997 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009998solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009999 symcode='[BDRT]'
10000 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010001sco3.2v5*)
10002 symcode='[DT]'
10003 ;;
10004sysv4.2uw2*)
10005 symcode='[DT]'
10006 ;;
10007sysv5* | sco5v6* | unixware* | OpenUNIX*)
10008 symcode='[ABDT]'
10009 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010010sysv4)
10011 symcode='[DFNSTU]'
10012 ;;
10013esac
10014
10015# Handle CRLF in mingw tool chain
10016opt_cr=
10017case $build_os in
10018mingw*)
10019 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10020 ;;
10021esac
10022
10023# If we're using GNU nm, then use its standard symbol codes.
10024case `$NM -V 2>&1` in
10025*GNU* | *'with BFD'*)
10026 symcode='[ABCDGIRSTW]' ;;
10027esac
10028
10029# Try without a prefix undercore, then with it.
10030for ac_symprfx in "" "_"; do
10031
Reid Spencera773bd52006-08-04 18:18:08 +000010032 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10033 symxfrm="\\1 $ac_symprfx\\2 \\2"
10034
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010035 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010036 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 +000010037
10038 # Check to see that the pipe works correctly.
10039 pipe_works=no
10040
10041 rm -f conftest*
10042 cat > conftest.$ac_ext <<EOF
10043#ifdef __cplusplus
10044extern "C" {
10045#endif
10046char nm_test_var;
10047void nm_test_func(){}
10048#ifdef __cplusplus
10049}
10050#endif
10051int main(){nm_test_var='a';nm_test_func();return(0);}
10052EOF
10053
10054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10055 (eval $ac_compile) 2>&5
10056 ac_status=$?
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); }; then
10059 # Now try to grab the symbols.
10060 nlist=conftest.nm
10061 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10062 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10063 ac_status=$?
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); } && test -s "$nlist"; then
10066 # Try sorting and uniquifying the output.
10067 if sort "$nlist" | uniq > "$nlist"T; then
10068 mv -f "$nlist"T "$nlist"
10069 else
10070 rm -f "$nlist"T
10071 fi
10072
10073 # Make sure that we snagged all the symbols we need.
10074 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10075 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10076 cat <<EOF > conftest.$ac_ext
10077#ifdef __cplusplus
10078extern "C" {
10079#endif
10080
10081EOF
10082 # Now generate the symbol file.
10083 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10084
10085 cat <<EOF >> conftest.$ac_ext
10086#if defined (__STDC__) && __STDC__
10087# define lt_ptr_t void *
10088#else
10089# define lt_ptr_t char *
10090# define const
10091#endif
10092
10093/* The mapping between symbol names and symbols. */
10094const struct {
10095 const char *name;
10096 lt_ptr_t address;
10097}
10098lt_preloaded_symbols[] =
10099{
10100EOF
10101 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10102 cat <<\EOF >> conftest.$ac_ext
10103 {0, (lt_ptr_t) 0}
10104};
10105
10106#ifdef __cplusplus
10107}
10108#endif
10109EOF
10110 # Now try linking the two files.
10111 mv conftest.$ac_objext conftstm.$ac_objext
10112 lt_save_LIBS="$LIBS"
10113 lt_save_CFLAGS="$CFLAGS"
10114 LIBS="conftstm.$ac_objext"
10115 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10117 (eval $ac_link) 2>&5
10118 ac_status=$?
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10121 pipe_works=yes
10122 fi
10123 LIBS="$lt_save_LIBS"
10124 CFLAGS="$lt_save_CFLAGS"
10125 else
10126 echo "cannot find nm_test_func in $nlist" >&5
10127 fi
10128 else
10129 echo "cannot find nm_test_var in $nlist" >&5
10130 fi
10131 else
10132 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10133 fi
10134 else
10135 echo "$progname: failed program was:" >&5
10136 cat conftest.$ac_ext >&5
10137 fi
10138 rm -f conftest* conftst*
10139
10140 # Do not use the global_symbol_pipe unless it works.
10141 if test "$pipe_works" = yes; then
10142 break
10143 else
10144 lt_cv_sys_global_symbol_pipe=
10145 fi
10146done
10147
10148fi
10149
10150if test -z "$lt_cv_sys_global_symbol_pipe"; then
10151 lt_cv_sys_global_symbol_to_cdecl=
10152fi
10153if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000010154 { echo "$as_me:$LINENO: result: failed" >&5
10155echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010156else
Reid Spencera773bd52006-08-04 18:18:08 +000010157 { echo "$as_me:$LINENO: result: ok" >&5
10158echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010159fi
10160
10161
Reid Spencera773bd52006-08-04 18:18:08 +000010162{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10163echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010164if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10165 echo $ECHO_N "(cached) $ECHO_C" >&6
10166else
10167 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10168 libltdl_cv_preloaded_symbols=yes
10169 else
10170 libltdl_cv_preloaded_symbols=no
10171 fi
10172
10173fi
Reid Spencera773bd52006-08-04 18:18:08 +000010174{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10175echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010176if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10177
10178cat >>confdefs.h <<\_ACEOF
10179#define HAVE_PRELOADED_SYMBOLS 1
10180_ACEOF
10181
10182fi
10183
10184LIBADD_DL=
10185
10186ac_ext=c
10187ac_cpp='$CPP $CPPFLAGS'
10188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10190ac_compiler_gnu=$ac_cv_c_compiler_gnu
10191
10192
Reid Spencera773bd52006-08-04 18:18:08 +000010193{ echo "$as_me:$LINENO: checking for shl_load" >&5
10194echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010195if test "${ac_cv_func_shl_load+set}" = set; then
10196 echo $ECHO_N "(cached) $ECHO_C" >&6
10197else
10198 cat >conftest.$ac_ext <<_ACEOF
10199/* confdefs.h. */
10200_ACEOF
10201cat confdefs.h >>conftest.$ac_ext
10202cat >>conftest.$ac_ext <<_ACEOF
10203/* end confdefs.h. */
10204/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10206#define shl_load innocuous_shl_load
10207
10208/* System header to define __stub macros and hopefully few prototypes,
10209 which can conflict with char shl_load (); below.
10210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10211 <limits.h> exists even on freestanding compilers. */
10212
10213#ifdef __STDC__
10214# include <limits.h>
10215#else
10216# include <assert.h>
10217#endif
10218
10219#undef shl_load
10220
Reid Spencera773bd52006-08-04 18:18:08 +000010221/* Override any GCC internal prototype to avoid an error.
10222 Use char because int might match the return type of a GCC
10223 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010224#ifdef __cplusplus
10225extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010226#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010227char shl_load ();
10228/* The GNU C library defines this for functions which it implements
10229 to always fail with ENOSYS. Some functions are actually named
10230 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010231#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010232choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010233#endif
10234
10235int
10236main ()
10237{
Reid Spencera773bd52006-08-04 18:18:08 +000010238return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010239 ;
10240 return 0;
10241}
10242_ACEOF
10243rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010244if { (ac_try="$ac_link"
10245case "(($ac_try" in
10246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247 *) ac_try_echo=$ac_try;;
10248esac
10249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010251 ac_status=$?
10252 grep -v '^ *+' conftest.er1 >conftest.err
10253 rm -f conftest.er1
10254 cat conftest.err >&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010256 (exit $ac_status); } &&
10257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10258 { (case "(($ac_try" in
10259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10260 *) ac_try_echo=$ac_try;;
10261esac
10262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10263 (eval "$ac_try") 2>&5
10264 ac_status=$?
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; } &&
10267 { ac_try='test -s conftest$ac_exeext'
10268 { (case "(($ac_try" in
10269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10270 *) ac_try_echo=$ac_try;;
10271esac
10272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10273 (eval "$ac_try") 2>&5
10274 ac_status=$?
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010277 ac_cv_func_shl_load=yes
10278else
10279 echo "$as_me: failed program was:" >&5
10280sed 's/^/| /' conftest.$ac_ext >&5
10281
Reid Spencera773bd52006-08-04 18:18:08 +000010282 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010283fi
Reid Spencera773bd52006-08-04 18:18:08 +000010284
Bill Wendlingebcceee2009-04-18 11:20:33 +000010285rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010286 conftest$ac_exeext conftest.$ac_ext
10287fi
Reid Spencera773bd52006-08-04 18:18:08 +000010288{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10289echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010290if test $ac_cv_func_shl_load = yes; then
10291
10292cat >>confdefs.h <<\_ACEOF
10293#define HAVE_SHL_LOAD 1
10294_ACEOF
10295
10296else
Reid Spencera773bd52006-08-04 18:18:08 +000010297 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10298echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010299if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
10301else
10302 ac_check_lib_save_LIBS=$LIBS
10303LIBS="-ldld $LIBS"
10304cat >conftest.$ac_ext <<_ACEOF
10305/* confdefs.h. */
10306_ACEOF
10307cat confdefs.h >>conftest.$ac_ext
10308cat >>conftest.$ac_ext <<_ACEOF
10309/* end confdefs.h. */
10310
Reid Spencera773bd52006-08-04 18:18:08 +000010311/* Override any GCC internal prototype to avoid an error.
10312 Use char because int might match the return type of a GCC
10313 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010314#ifdef __cplusplus
10315extern "C"
10316#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010317char shl_load ();
10318int
10319main ()
10320{
Reid Spencera773bd52006-08-04 18:18:08 +000010321return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010322 ;
10323 return 0;
10324}
10325_ACEOF
10326rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010327if { (ac_try="$ac_link"
10328case "(($ac_try" in
10329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10330 *) ac_try_echo=$ac_try;;
10331esac
10332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10333 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010334 ac_status=$?
10335 grep -v '^ *+' conftest.er1 >conftest.err
10336 rm -f conftest.er1
10337 cat conftest.err >&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010339 (exit $ac_status); } &&
10340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10341 { (case "(($ac_try" in
10342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10343 *) ac_try_echo=$ac_try;;
10344esac
10345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10346 (eval "$ac_try") 2>&5
10347 ac_status=$?
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); }; } &&
10350 { ac_try='test -s conftest$ac_exeext'
10351 { (case "(($ac_try" in
10352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10353 *) ac_try_echo=$ac_try;;
10354esac
10355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10356 (eval "$ac_try") 2>&5
10357 ac_status=$?
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010360 ac_cv_lib_dld_shl_load=yes
10361else
10362 echo "$as_me: failed program was:" >&5
10363sed 's/^/| /' conftest.$ac_ext >&5
10364
Reid Spencera773bd52006-08-04 18:18:08 +000010365 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010366fi
Reid Spencera773bd52006-08-04 18:18:08 +000010367
Bill Wendlingebcceee2009-04-18 11:20:33 +000010368rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010369 conftest$ac_exeext conftest.$ac_ext
10370LIBS=$ac_check_lib_save_LIBS
10371fi
Reid Spencera773bd52006-08-04 18:18:08 +000010372{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10373echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010374if test $ac_cv_lib_dld_shl_load = yes; then
10375
10376cat >>confdefs.h <<\_ACEOF
10377#define HAVE_SHL_LOAD 1
10378_ACEOF
10379
10380 LIBADD_DL="$LIBADD_DL -ldld"
10381else
Reid Spencera773bd52006-08-04 18:18:08 +000010382 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10383echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010384if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
10386else
10387 ac_check_lib_save_LIBS=$LIBS
10388LIBS="-ldl $LIBS"
10389cat >conftest.$ac_ext <<_ACEOF
10390/* confdefs.h. */
10391_ACEOF
10392cat confdefs.h >>conftest.$ac_ext
10393cat >>conftest.$ac_ext <<_ACEOF
10394/* end confdefs.h. */
10395
Reid Spencera773bd52006-08-04 18:18:08 +000010396/* Override any GCC internal prototype to avoid an error.
10397 Use char because int might match the return type of a GCC
10398 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010399#ifdef __cplusplus
10400extern "C"
10401#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010402char dlopen ();
10403int
10404main ()
10405{
Reid Spencera773bd52006-08-04 18:18:08 +000010406return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010407 ;
10408 return 0;
10409}
10410_ACEOF
10411rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010412if { (ac_try="$ac_link"
10413case "(($ac_try" in
10414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415 *) ac_try_echo=$ac_try;;
10416esac
10417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010419 ac_status=$?
10420 grep -v '^ *+' conftest.er1 >conftest.err
10421 rm -f conftest.er1
10422 cat conftest.err >&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010424 (exit $ac_status); } &&
10425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10426 { (case "(($ac_try" in
10427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10428 *) ac_try_echo=$ac_try;;
10429esac
10430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10431 (eval "$ac_try") 2>&5
10432 ac_status=$?
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; } &&
10435 { ac_try='test -s conftest$ac_exeext'
10436 { (case "(($ac_try" in
10437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10438 *) ac_try_echo=$ac_try;;
10439esac
10440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10441 (eval "$ac_try") 2>&5
10442 ac_status=$?
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010445 ac_cv_lib_dl_dlopen=yes
10446else
10447 echo "$as_me: failed program was:" >&5
10448sed 's/^/| /' conftest.$ac_ext >&5
10449
Reid Spencera773bd52006-08-04 18:18:08 +000010450 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010451fi
Reid Spencera773bd52006-08-04 18:18:08 +000010452
Bill Wendlingebcceee2009-04-18 11:20:33 +000010453rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010454 conftest$ac_exeext conftest.$ac_ext
10455LIBS=$ac_check_lib_save_LIBS
10456fi
Reid Spencera773bd52006-08-04 18:18:08 +000010457{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10458echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010459if test $ac_cv_lib_dl_dlopen = yes; then
10460
10461cat >>confdefs.h <<\_ACEOF
10462#define HAVE_LIBDL 1
10463_ACEOF
10464
10465 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10466else
10467 cat >conftest.$ac_ext <<_ACEOF
10468/* confdefs.h. */
10469_ACEOF
10470cat confdefs.h >>conftest.$ac_ext
10471cat >>conftest.$ac_ext <<_ACEOF
10472/* end confdefs.h. */
10473#if HAVE_DLFCN_H
10474# include <dlfcn.h>
10475#endif
10476
10477int
10478main ()
10479{
10480dlopen(0, 0);
10481 ;
10482 return 0;
10483}
10484_ACEOF
10485rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010486if { (ac_try="$ac_link"
10487case "(($ac_try" in
10488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10489 *) ac_try_echo=$ac_try;;
10490esac
10491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10492 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010493 ac_status=$?
10494 grep -v '^ *+' conftest.er1 >conftest.err
10495 rm -f conftest.er1
10496 cat conftest.err >&5
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010498 (exit $ac_status); } &&
10499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10500 { (case "(($ac_try" in
10501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10502 *) ac_try_echo=$ac_try;;
10503esac
10504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10505 (eval "$ac_try") 2>&5
10506 ac_status=$?
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); }; } &&
10509 { ac_try='test -s conftest$ac_exeext'
10510 { (case "(($ac_try" in
10511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10512 *) ac_try_echo=$ac_try;;
10513esac
10514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10515 (eval "$ac_try") 2>&5
10516 ac_status=$?
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010519
10520cat >>confdefs.h <<\_ACEOF
10521#define HAVE_LIBDL 1
10522_ACEOF
10523 libltdl_cv_func_dlopen="yes"
10524else
10525 echo "$as_me: failed program was:" >&5
10526sed 's/^/| /' conftest.$ac_ext >&5
10527
Reid Spencera773bd52006-08-04 18:18:08 +000010528 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10529echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010530if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10531 echo $ECHO_N "(cached) $ECHO_C" >&6
10532else
10533 ac_check_lib_save_LIBS=$LIBS
10534LIBS="-lsvld $LIBS"
10535cat >conftest.$ac_ext <<_ACEOF
10536/* confdefs.h. */
10537_ACEOF
10538cat confdefs.h >>conftest.$ac_ext
10539cat >>conftest.$ac_ext <<_ACEOF
10540/* end confdefs.h. */
10541
Reid Spencera773bd52006-08-04 18:18:08 +000010542/* Override any GCC internal prototype to avoid an error.
10543 Use char because int might match the return type of a GCC
10544 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010545#ifdef __cplusplus
10546extern "C"
10547#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010548char dlopen ();
10549int
10550main ()
10551{
Reid Spencera773bd52006-08-04 18:18:08 +000010552return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010553 ;
10554 return 0;
10555}
10556_ACEOF
10557rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010558if { (ac_try="$ac_link"
10559case "(($ac_try" in
10560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10561 *) ac_try_echo=$ac_try;;
10562esac
10563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10564 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010565 ac_status=$?
10566 grep -v '^ *+' conftest.er1 >conftest.err
10567 rm -f conftest.er1
10568 cat conftest.err >&5
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010570 (exit $ac_status); } &&
10571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10572 { (case "(($ac_try" in
10573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10574 *) ac_try_echo=$ac_try;;
10575esac
10576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10577 (eval "$ac_try") 2>&5
10578 ac_status=$?
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; } &&
10581 { ac_try='test -s conftest$ac_exeext'
10582 { (case "(($ac_try" in
10583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10584 *) ac_try_echo=$ac_try;;
10585esac
10586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10587 (eval "$ac_try") 2>&5
10588 ac_status=$?
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010591 ac_cv_lib_svld_dlopen=yes
10592else
10593 echo "$as_me: failed program was:" >&5
10594sed 's/^/| /' conftest.$ac_ext >&5
10595
Reid Spencera773bd52006-08-04 18:18:08 +000010596 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010597fi
Reid Spencera773bd52006-08-04 18:18:08 +000010598
Bill Wendlingebcceee2009-04-18 11:20:33 +000010599rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010600 conftest$ac_exeext conftest.$ac_ext
10601LIBS=$ac_check_lib_save_LIBS
10602fi
Reid Spencera773bd52006-08-04 18:18:08 +000010603{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10604echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010605if test $ac_cv_lib_svld_dlopen = yes; then
10606
10607cat >>confdefs.h <<\_ACEOF
10608#define HAVE_LIBDL 1
10609_ACEOF
10610
10611 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10612else
Reid Spencera773bd52006-08-04 18:18:08 +000010613 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10614echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010615if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10616 echo $ECHO_N "(cached) $ECHO_C" >&6
10617else
10618 ac_check_lib_save_LIBS=$LIBS
10619LIBS="-ldld $LIBS"
10620cat >conftest.$ac_ext <<_ACEOF
10621/* confdefs.h. */
10622_ACEOF
10623cat confdefs.h >>conftest.$ac_ext
10624cat >>conftest.$ac_ext <<_ACEOF
10625/* end confdefs.h. */
10626
Reid Spencera773bd52006-08-04 18:18:08 +000010627/* Override any GCC internal prototype to avoid an error.
10628 Use char because int might match the return type of a GCC
10629 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010630#ifdef __cplusplus
10631extern "C"
10632#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010633char dld_link ();
10634int
10635main ()
10636{
Reid Spencera773bd52006-08-04 18:18:08 +000010637return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010638 ;
10639 return 0;
10640}
10641_ACEOF
10642rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010643if { (ac_try="$ac_link"
10644case "(($ac_try" in
10645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10646 *) ac_try_echo=$ac_try;;
10647esac
10648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10649 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010650 ac_status=$?
10651 grep -v '^ *+' conftest.er1 >conftest.err
10652 rm -f conftest.er1
10653 cat conftest.err >&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010655 (exit $ac_status); } &&
10656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10657 { (case "(($ac_try" in
10658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10659 *) ac_try_echo=$ac_try;;
10660esac
10661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10662 (eval "$ac_try") 2>&5
10663 ac_status=$?
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; } &&
10666 { ac_try='test -s conftest$ac_exeext'
10667 { (case "(($ac_try" in
10668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10669 *) ac_try_echo=$ac_try;;
10670esac
10671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10672 (eval "$ac_try") 2>&5
10673 ac_status=$?
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010676 ac_cv_lib_dld_dld_link=yes
10677else
10678 echo "$as_me: failed program was:" >&5
10679sed 's/^/| /' conftest.$ac_ext >&5
10680
Reid Spencera773bd52006-08-04 18:18:08 +000010681 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010682fi
Reid Spencera773bd52006-08-04 18:18:08 +000010683
Bill Wendlingebcceee2009-04-18 11:20:33 +000010684rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010685 conftest$ac_exeext conftest.$ac_ext
10686LIBS=$ac_check_lib_save_LIBS
10687fi
Reid Spencera773bd52006-08-04 18:18:08 +000010688{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10689echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010690if test $ac_cv_lib_dld_dld_link = yes; then
10691
10692cat >>confdefs.h <<\_ACEOF
10693#define HAVE_DLD 1
10694_ACEOF
10695
10696 LIBADD_DL="$LIBADD_DL -ldld"
10697else
Reid Spencera773bd52006-08-04 18:18:08 +000010698 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10699echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010700if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10701 echo $ECHO_N "(cached) $ECHO_C" >&6
10702else
10703 cat >conftest.$ac_ext <<_ACEOF
10704/* confdefs.h. */
10705_ACEOF
10706cat confdefs.h >>conftest.$ac_ext
10707cat >>conftest.$ac_ext <<_ACEOF
10708/* end confdefs.h. */
10709/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10711#define _dyld_func_lookup innocuous__dyld_func_lookup
10712
10713/* System header to define __stub macros and hopefully few prototypes,
10714 which can conflict with char _dyld_func_lookup (); below.
10715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10716 <limits.h> exists even on freestanding compilers. */
10717
10718#ifdef __STDC__
10719# include <limits.h>
10720#else
10721# include <assert.h>
10722#endif
10723
10724#undef _dyld_func_lookup
10725
Reid Spencera773bd52006-08-04 18:18:08 +000010726/* Override any GCC internal prototype to avoid an error.
10727 Use char because int might match the return type of a GCC
10728 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010729#ifdef __cplusplus
10730extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010731#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010732char _dyld_func_lookup ();
10733/* The GNU C library defines this for functions which it implements
10734 to always fail with ENOSYS. Some functions are actually named
10735 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010736#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010737choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010738#endif
10739
10740int
10741main ()
10742{
Reid Spencera773bd52006-08-04 18:18:08 +000010743return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010744 ;
10745 return 0;
10746}
10747_ACEOF
10748rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010749if { (ac_try="$ac_link"
10750case "(($ac_try" in
10751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10752 *) ac_try_echo=$ac_try;;
10753esac
10754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10755 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010756 ac_status=$?
10757 grep -v '^ *+' conftest.er1 >conftest.err
10758 rm -f conftest.er1
10759 cat conftest.err >&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010761 (exit $ac_status); } &&
10762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10763 { (case "(($ac_try" in
10764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765 *) ac_try_echo=$ac_try;;
10766esac
10767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10768 (eval "$ac_try") 2>&5
10769 ac_status=$?
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); }; } &&
10772 { ac_try='test -s conftest$ac_exeext'
10773 { (case "(($ac_try" in
10774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10775 *) ac_try_echo=$ac_try;;
10776esac
10777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10778 (eval "$ac_try") 2>&5
10779 ac_status=$?
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010782 ac_cv_func__dyld_func_lookup=yes
10783else
10784 echo "$as_me: failed program was:" >&5
10785sed 's/^/| /' conftest.$ac_ext >&5
10786
Reid Spencera773bd52006-08-04 18:18:08 +000010787 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010788fi
Reid Spencera773bd52006-08-04 18:18:08 +000010789
Bill Wendlingebcceee2009-04-18 11:20:33 +000010790rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010791 conftest$ac_exeext conftest.$ac_ext
10792fi
Reid Spencera773bd52006-08-04 18:18:08 +000010793{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10794echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010795if test $ac_cv_func__dyld_func_lookup = yes; then
10796
10797cat >>confdefs.h <<\_ACEOF
10798#define HAVE_DYLD 1
10799_ACEOF
10800
10801fi
10802
10803
10804fi
10805
10806
10807fi
10808
10809
10810fi
Reid Spencera773bd52006-08-04 18:18:08 +000010811
Bill Wendlingebcceee2009-04-18 11:20:33 +000010812rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010813 conftest$ac_exeext conftest.$ac_ext
10814
10815fi
10816
10817
10818fi
10819
10820
10821fi
10822
10823
10824if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10825then
10826 lt_save_LIBS="$LIBS"
10827 LIBS="$LIBS $LIBADD_DL"
10828
10829for ac_func in dlerror
10830do
10831as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010832{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10833echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10834if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010835 echo $ECHO_N "(cached) $ECHO_C" >&6
10836else
10837 cat >conftest.$ac_ext <<_ACEOF
10838/* confdefs.h. */
10839_ACEOF
10840cat confdefs.h >>conftest.$ac_ext
10841cat >>conftest.$ac_ext <<_ACEOF
10842/* end confdefs.h. */
10843/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10845#define $ac_func innocuous_$ac_func
10846
10847/* System header to define __stub macros and hopefully few prototypes,
10848 which can conflict with char $ac_func (); below.
10849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10850 <limits.h> exists even on freestanding compilers. */
10851
10852#ifdef __STDC__
10853# include <limits.h>
10854#else
10855# include <assert.h>
10856#endif
10857
10858#undef $ac_func
10859
Reid Spencera773bd52006-08-04 18:18:08 +000010860/* Override any GCC internal prototype to avoid an error.
10861 Use char because int might match the return type of a GCC
10862 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010863#ifdef __cplusplus
10864extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010865#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010866char $ac_func ();
10867/* The GNU C library defines this for functions which it implements
10868 to always fail with ENOSYS. Some functions are actually named
10869 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010870#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010871choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010872#endif
10873
10874int
10875main ()
10876{
Reid Spencera773bd52006-08-04 18:18:08 +000010877return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010878 ;
10879 return 0;
10880}
10881_ACEOF
10882rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010883if { (ac_try="$ac_link"
10884case "(($ac_try" in
10885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10886 *) ac_try_echo=$ac_try;;
10887esac
10888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10889 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010890 ac_status=$?
10891 grep -v '^ *+' conftest.er1 >conftest.err
10892 rm -f conftest.er1
10893 cat conftest.err >&5
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010895 (exit $ac_status); } &&
10896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10897 { (case "(($ac_try" in
10898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10899 *) ac_try_echo=$ac_try;;
10900esac
10901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10902 (eval "$ac_try") 2>&5
10903 ac_status=$?
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); }; } &&
10906 { ac_try='test -s conftest$ac_exeext'
10907 { (case "(($ac_try" in
10908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10909 *) ac_try_echo=$ac_try;;
10910esac
10911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10912 (eval "$ac_try") 2>&5
10913 ac_status=$?
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010916 eval "$as_ac_var=yes"
10917else
10918 echo "$as_me: failed program was:" >&5
10919sed 's/^/| /' conftest.$ac_ext >&5
10920
Reid Spencera773bd52006-08-04 18:18:08 +000010921 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010922fi
Reid Spencera773bd52006-08-04 18:18:08 +000010923
Bill Wendlingebcceee2009-04-18 11:20:33 +000010924rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010925 conftest$ac_exeext conftest.$ac_ext
10926fi
Reid Spencera773bd52006-08-04 18:18:08 +000010927ac_res=`eval echo '${'$as_ac_var'}'`
10928 { echo "$as_me:$LINENO: result: $ac_res" >&5
10929echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010930if test `eval echo '${'$as_ac_var'}'` = yes; then
10931 cat >>confdefs.h <<_ACEOF
10932#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10933_ACEOF
10934
10935fi
10936done
10937
10938 LIBS="$lt_save_LIBS"
10939fi
10940ac_ext=c
10941ac_cpp='$CPP $CPPFLAGS'
10942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10944ac_compiler_gnu=$ac_cv_c_compiler_gnu
10945
10946
10947
Reid Spencera773bd52006-08-04 18:18:08 +000010948{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10949echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010950if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10951 echo $ECHO_N "(cached) $ECHO_C" >&6
10952else
10953 ac_cv_sys_symbol_underscore=no
10954 cat > conftest.$ac_ext <<EOF
10955void nm_test_func(){}
10956int main(){nm_test_func;return 0;}
10957EOF
10958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10959 (eval $ac_compile) 2>&5
10960 ac_status=$?
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); }; then
10963 # Now try to grab the symbols.
10964 ac_nlist=conftest.nm
10965 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10966 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10967 ac_status=$?
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); } && test -s "$ac_nlist"; then
10970 # See whether the symbols have a leading underscore.
10971 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10972 ac_cv_sys_symbol_underscore=yes
10973 else
10974 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10975 :
10976 else
10977 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10978 fi
10979 fi
10980 else
10981 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10982 fi
10983 else
10984 echo "configure: failed program was:" >&5
10985 cat conftest.c >&5
10986 fi
10987 rm -rf conftest*
10988
10989fi
Reid Spencera773bd52006-08-04 18:18:08 +000010990{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10991echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010992
10993
10994if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10995 if test x"$libltdl_cv_func_dlopen" = xyes ||
10996 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010997 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10998echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010999if test "${libltdl_cv_need_uscore+set}" = set; then
11000 echo $ECHO_N "(cached) $ECHO_C" >&6
11001else
11002 libltdl_cv_need_uscore=unknown
11003 save_LIBS="$LIBS"
11004 LIBS="$LIBS $LIBADD_DL"
11005 if test "$cross_compiling" = yes; then :
11006 libltdl_cv_need_uscore=cross
11007else
11008 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11009 lt_status=$lt_dlunknown
11010 cat > conftest.$ac_ext <<EOF
Edward O'Callaghan2b19d692009-10-14 00:44:50 +000011011#line 11011 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011012#include "confdefs.h"
11013
11014#if HAVE_DLFCN_H
11015#include <dlfcn.h>
11016#endif
11017
11018#include <stdio.h>
11019
11020#ifdef RTLD_GLOBAL
11021# define LT_DLGLOBAL RTLD_GLOBAL
11022#else
11023# ifdef DL_GLOBAL
11024# define LT_DLGLOBAL DL_GLOBAL
11025# else
11026# define LT_DLGLOBAL 0
11027# endif
11028#endif
11029
11030/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11031 find out it does not work in some platform. */
11032#ifndef LT_DLLAZY_OR_NOW
11033# ifdef RTLD_LAZY
11034# define LT_DLLAZY_OR_NOW RTLD_LAZY
11035# else
11036# ifdef DL_LAZY
11037# define LT_DLLAZY_OR_NOW DL_LAZY
11038# else
11039# ifdef RTLD_NOW
11040# define LT_DLLAZY_OR_NOW RTLD_NOW
11041# else
11042# ifdef DL_NOW
11043# define LT_DLLAZY_OR_NOW DL_NOW
11044# else
11045# define LT_DLLAZY_OR_NOW 0
11046# endif
11047# endif
11048# endif
11049# endif
11050#endif
11051
11052#ifdef __cplusplus
11053extern "C" void exit (int);
11054#endif
11055
11056void fnord() { int i=42;}
11057int main ()
11058{
11059 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11060 int status = $lt_dlunknown;
11061
11062 if (self)
11063 {
11064 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11065 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11066 /* dlclose (self); */
11067 }
Reid Spencera773bd52006-08-04 18:18:08 +000011068 else
11069 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011070
11071 exit (status);
11072}
11073EOF
11074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11075 (eval $ac_link) 2>&5
11076 ac_status=$?
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011079 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011080 lt_status=$?
11081 case x$lt_status in
11082 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11083 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011084 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011085 esac
11086 else :
11087 # compilation failed
11088
11089 fi
11090fi
11091rm -fr conftest*
11092
11093 LIBS="$save_LIBS"
11094
11095fi
Reid Spencera773bd52006-08-04 18:18:08 +000011096{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11097echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011098 fi
11099fi
11100
11101if test x"$libltdl_cv_need_uscore" = xyes; then
11102
11103cat >>confdefs.h <<\_ACEOF
11104#define NEED_USCORE 1
11105_ACEOF
11106
11107fi
11108
11109
Reid Spencera773bd52006-08-04 18:18:08 +000011110{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11111echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011112if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6
11114else
11115 # PORTME does your system automatically load deplibs for dlopen?
11116 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11117 # For now, we just catch OSes we know something about -- in the
11118 # future, we'll try test this programmatically.
11119 libltdl_cv_sys_dlopen_deplibs=unknown
11120 case "$host_os" in
11121 aix3*|aix4.1.*|aix4.2.*)
11122 # Unknown whether this is true for these versions of AIX, but
11123 # we want this `case' here to explicitly catch those versions.
11124 libltdl_cv_sys_dlopen_deplibs=unknown
11125 ;;
11126 aix[45]*)
11127 libltdl_cv_sys_dlopen_deplibs=yes
11128 ;;
11129 darwin*)
11130 # Assuming the user has installed a libdl from somewhere, this is true
11131 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11132 libltdl_cv_sys_dlopen_deplibs=yes
11133 ;;
11134 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11135 # GNU and its variants, using gnu ld.so (Glibc)
11136 libltdl_cv_sys_dlopen_deplibs=yes
11137 ;;
11138 hpux10*|hpux11*)
11139 libltdl_cv_sys_dlopen_deplibs=yes
11140 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011141 interix*)
11142 libltdl_cv_sys_dlopen_deplibs=yes
11143 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011144 irix[12345]*|irix6.[01]*)
11145 # Catch all versions of IRIX before 6.2, and indicate that we don't
11146 # know how it worked for any of those versions.
11147 libltdl_cv_sys_dlopen_deplibs=unknown
11148 ;;
11149 irix*)
11150 # The case above catches anything before 6.2, and it's known that
11151 # at 6.2 and later dlopen does load deplibs.
11152 libltdl_cv_sys_dlopen_deplibs=yes
11153 ;;
11154 netbsd*)
11155 libltdl_cv_sys_dlopen_deplibs=yes
11156 ;;
11157 openbsd*)
11158 libltdl_cv_sys_dlopen_deplibs=yes
11159 ;;
11160 osf[1234]*)
11161 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11162 # it did *not* use an RPATH in a shared library to find objects the
11163 # library depends on, so we explictly say `no'.
11164 libltdl_cv_sys_dlopen_deplibs=no
11165 ;;
11166 osf5.0|osf5.0a|osf5.1)
11167 # dlopen *does* load deplibs and with the right loader patch applied
11168 # it even uses RPATH in a shared library to search for shared objects
11169 # that the library depends on, but there's no easy way to know if that
11170 # patch is installed. Since this is the case, all we can really
11171 # say is unknown -- it depends on the patch being installed. If
11172 # it is, this changes to `yes'. Without it, it would be `no'.
11173 libltdl_cv_sys_dlopen_deplibs=unknown
11174 ;;
11175 osf*)
11176 # the two cases above should catch all versions of osf <= 5.1. Read
11177 # the comments above for what we know about them.
11178 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11179 # is used to find them so we can finally say `yes'.
11180 libltdl_cv_sys_dlopen_deplibs=yes
11181 ;;
11182 solaris*)
11183 libltdl_cv_sys_dlopen_deplibs=yes
11184 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011185 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11186 libltdl_cv_sys_dlopen_deplibs=yes
11187 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011188 esac
11189
11190fi
Reid Spencera773bd52006-08-04 18:18:08 +000011191{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11192echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011193if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11194
11195cat >>confdefs.h <<\_ACEOF
11196#define LTDL_DLOPEN_DEPLIBS 1
11197_ACEOF
11198
11199fi
11200
11201
11202for ac_header in argz.h
11203do
11204as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011205if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11206 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11207echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11208if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011209 echo $ECHO_N "(cached) $ECHO_C" >&6
11210fi
Reid Spencera773bd52006-08-04 18:18:08 +000011211ac_res=`eval echo '${'$as_ac_Header'}'`
11212 { echo "$as_me:$LINENO: result: $ac_res" >&5
11213echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011214else
11215 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011216{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11217echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011218cat >conftest.$ac_ext <<_ACEOF
11219/* confdefs.h. */
11220_ACEOF
11221cat confdefs.h >>conftest.$ac_ext
11222cat >>conftest.$ac_ext <<_ACEOF
11223/* end confdefs.h. */
11224$ac_includes_default
11225#include <$ac_header>
11226_ACEOF
11227rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011228if { (ac_try="$ac_compile"
11229case "(($ac_try" in
11230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11231 *) ac_try_echo=$ac_try;;
11232esac
11233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11234 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011235 ac_status=$?
11236 grep -v '^ *+' conftest.er1 >conftest.err
11237 rm -f conftest.er1
11238 cat conftest.err >&5
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011240 (exit $ac_status); } &&
11241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11242 { (case "(($ac_try" in
11243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11244 *) ac_try_echo=$ac_try;;
11245esac
11246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11247 (eval "$ac_try") 2>&5
11248 ac_status=$?
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); }; } &&
11251 { ac_try='test -s conftest.$ac_objext'
11252 { (case "(($ac_try" in
11253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11254 *) ac_try_echo=$ac_try;;
11255esac
11256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11257 (eval "$ac_try") 2>&5
11258 ac_status=$?
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011261 ac_header_compiler=yes
11262else
11263 echo "$as_me: failed program was:" >&5
11264sed 's/^/| /' conftest.$ac_ext >&5
11265
Reid Spencera773bd52006-08-04 18:18:08 +000011266 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011267fi
Reid Spencera773bd52006-08-04 18:18:08 +000011268
11269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11270{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11271echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011272
11273# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011274{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11275echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011276cat >conftest.$ac_ext <<_ACEOF
11277/* confdefs.h. */
11278_ACEOF
11279cat confdefs.h >>conftest.$ac_ext
11280cat >>conftest.$ac_ext <<_ACEOF
11281/* end confdefs.h. */
11282#include <$ac_header>
11283_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011284if { (ac_try="$ac_cpp conftest.$ac_ext"
11285case "(($ac_try" in
11286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11287 *) ac_try_echo=$ac_try;;
11288esac
11289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011291 ac_status=$?
11292 grep -v '^ *+' conftest.er1 >conftest.err
11293 rm -f conftest.er1
11294 cat conftest.err >&5
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011296 (exit $ac_status); } >/dev/null; then
11297 if test -s conftest.err; then
11298 ac_cpp_err=$ac_c_preproc_warn_flag
11299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11300 else
11301 ac_cpp_err=
11302 fi
11303else
11304 ac_cpp_err=yes
11305fi
11306if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011307 ac_header_preproc=yes
11308else
11309 echo "$as_me: failed program was:" >&5
11310sed 's/^/| /' conftest.$ac_ext >&5
11311
11312 ac_header_preproc=no
11313fi
Reid Spencera773bd52006-08-04 18:18:08 +000011314
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011315rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011316{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11317echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011318
11319# So? What about this header?
11320case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11321 yes:no: )
11322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11323echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11325echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11326 ac_header_preproc=yes
11327 ;;
11328 no:yes:* )
11329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11330echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11332echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11333 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11334echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11335 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11336echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11338echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11339 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11340echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011341 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011342## ----------------------------------- ##
11343## Report this to llvmbugs@cs.uiuc.edu ##
11344## ----------------------------------- ##
11345_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011346 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011347 ;;
11348esac
Reid Spencera773bd52006-08-04 18:18:08 +000011349{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11350echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11351if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011352 echo $ECHO_N "(cached) $ECHO_C" >&6
11353else
11354 eval "$as_ac_Header=\$ac_header_preproc"
11355fi
Reid Spencera773bd52006-08-04 18:18:08 +000011356ac_res=`eval echo '${'$as_ac_Header'}'`
11357 { echo "$as_me:$LINENO: result: $ac_res" >&5
11358echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011359
11360fi
11361if test `eval echo '${'$as_ac_Header'}'` = yes; then
11362 cat >>confdefs.h <<_ACEOF
11363#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11364_ACEOF
11365
11366fi
11367
11368done
11369
11370
Reid Spencera773bd52006-08-04 18:18:08 +000011371{ echo "$as_me:$LINENO: checking for error_t" >&5
11372echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011373if test "${ac_cv_type_error_t+set}" = set; then
11374 echo $ECHO_N "(cached) $ECHO_C" >&6
11375else
11376 cat >conftest.$ac_ext <<_ACEOF
11377/* confdefs.h. */
11378_ACEOF
11379cat confdefs.h >>conftest.$ac_ext
11380cat >>conftest.$ac_ext <<_ACEOF
11381/* end confdefs.h. */
11382#if HAVE_ARGZ_H
11383# include <argz.h>
11384#endif
11385
Reid Spencera773bd52006-08-04 18:18:08 +000011386typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011387int
11388main ()
11389{
Reid Spencera773bd52006-08-04 18:18:08 +000011390if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011391 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000011392if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011393 return 0;
11394 ;
11395 return 0;
11396}
11397_ACEOF
11398rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011399if { (ac_try="$ac_compile"
11400case "(($ac_try" in
11401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11402 *) ac_try_echo=$ac_try;;
11403esac
11404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11405 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011406 ac_status=$?
11407 grep -v '^ *+' conftest.er1 >conftest.err
11408 rm -f conftest.er1
11409 cat conftest.err >&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011411 (exit $ac_status); } &&
11412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11413 { (case "(($ac_try" in
11414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415 *) ac_try_echo=$ac_try;;
11416esac
11417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11418 (eval "$ac_try") 2>&5
11419 ac_status=$?
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; } &&
11422 { ac_try='test -s conftest.$ac_objext'
11423 { (case "(($ac_try" in
11424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11425 *) ac_try_echo=$ac_try;;
11426esac
11427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11428 (eval "$ac_try") 2>&5
11429 ac_status=$?
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011432 ac_cv_type_error_t=yes
11433else
11434 echo "$as_me: failed program was:" >&5
11435sed 's/^/| /' conftest.$ac_ext >&5
11436
Reid Spencera773bd52006-08-04 18:18:08 +000011437 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011438fi
Reid Spencera773bd52006-08-04 18:18:08 +000011439
11440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011441fi
Reid Spencera773bd52006-08-04 18:18:08 +000011442{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11443echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011444if test $ac_cv_type_error_t = yes; then
11445
11446cat >>confdefs.h <<_ACEOF
11447#define HAVE_ERROR_T 1
11448_ACEOF
11449
11450
11451else
11452
11453cat >>confdefs.h <<\_ACEOF
11454#define error_t int
11455_ACEOF
11456
11457fi
11458
11459
11460
11461
11462
11463
11464
11465for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11466do
11467as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011468{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11469echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11470if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011471 echo $ECHO_N "(cached) $ECHO_C" >&6
11472else
11473 cat >conftest.$ac_ext <<_ACEOF
11474/* confdefs.h. */
11475_ACEOF
11476cat confdefs.h >>conftest.$ac_ext
11477cat >>conftest.$ac_ext <<_ACEOF
11478/* end confdefs.h. */
11479/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11481#define $ac_func innocuous_$ac_func
11482
11483/* System header to define __stub macros and hopefully few prototypes,
11484 which can conflict with char $ac_func (); below.
11485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11486 <limits.h> exists even on freestanding compilers. */
11487
11488#ifdef __STDC__
11489# include <limits.h>
11490#else
11491# include <assert.h>
11492#endif
11493
11494#undef $ac_func
11495
Reid Spencera773bd52006-08-04 18:18:08 +000011496/* Override any GCC internal prototype to avoid an error.
11497 Use char because int might match the return type of a GCC
11498 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011499#ifdef __cplusplus
11500extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011501#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011502char $ac_func ();
11503/* The GNU C library defines this for functions which it implements
11504 to always fail with ENOSYS. Some functions are actually named
11505 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011506#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011507choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011508#endif
11509
11510int
11511main ()
11512{
Reid Spencera773bd52006-08-04 18:18:08 +000011513return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011514 ;
11515 return 0;
11516}
11517_ACEOF
11518rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011519if { (ac_try="$ac_link"
11520case "(($ac_try" in
11521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522 *) ac_try_echo=$ac_try;;
11523esac
11524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011526 ac_status=$?
11527 grep -v '^ *+' conftest.er1 >conftest.err
11528 rm -f conftest.er1
11529 cat conftest.err >&5
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011531 (exit $ac_status); } &&
11532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11533 { (case "(($ac_try" in
11534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11535 *) ac_try_echo=$ac_try;;
11536esac
11537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11538 (eval "$ac_try") 2>&5
11539 ac_status=$?
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); }; } &&
11542 { ac_try='test -s conftest$ac_exeext'
11543 { (case "(($ac_try" in
11544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11545 *) ac_try_echo=$ac_try;;
11546esac
11547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11548 (eval "$ac_try") 2>&5
11549 ac_status=$?
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011552 eval "$as_ac_var=yes"
11553else
11554 echo "$as_me: failed program was:" >&5
11555sed 's/^/| /' conftest.$ac_ext >&5
11556
Reid Spencera773bd52006-08-04 18:18:08 +000011557 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011558fi
Reid Spencera773bd52006-08-04 18:18:08 +000011559
Bill Wendlingebcceee2009-04-18 11:20:33 +000011560rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011561 conftest$ac_exeext conftest.$ac_ext
11562fi
Reid Spencera773bd52006-08-04 18:18:08 +000011563ac_res=`eval echo '${'$as_ac_var'}'`
11564 { echo "$as_me:$LINENO: result: $ac_res" >&5
11565echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011566if test `eval echo '${'$as_ac_var'}'` = yes; then
11567 cat >>confdefs.h <<_ACEOF
11568#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11569_ACEOF
11570
11571fi
11572done
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11602 stdio.h unistd.h
11603do
11604as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011605if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11607echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11608if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011609 echo $ECHO_N "(cached) $ECHO_C" >&6
11610fi
Reid Spencera773bd52006-08-04 18:18:08 +000011611ac_res=`eval echo '${'$as_ac_Header'}'`
11612 { echo "$as_me:$LINENO: result: $ac_res" >&5
11613echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011614else
11615 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011616{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11617echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011618cat >conftest.$ac_ext <<_ACEOF
11619/* confdefs.h. */
11620_ACEOF
11621cat confdefs.h >>conftest.$ac_ext
11622cat >>conftest.$ac_ext <<_ACEOF
11623/* end confdefs.h. */
11624$ac_includes_default
11625#include <$ac_header>
11626_ACEOF
11627rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011628if { (ac_try="$ac_compile"
11629case "(($ac_try" in
11630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11631 *) ac_try_echo=$ac_try;;
11632esac
11633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11634 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011635 ac_status=$?
11636 grep -v '^ *+' conftest.er1 >conftest.err
11637 rm -f conftest.er1
11638 cat conftest.err >&5
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011640 (exit $ac_status); } &&
11641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11642 { (case "(($ac_try" in
11643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11644 *) ac_try_echo=$ac_try;;
11645esac
11646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11647 (eval "$ac_try") 2>&5
11648 ac_status=$?
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); }; } &&
11651 { ac_try='test -s conftest.$ac_objext'
11652 { (case "(($ac_try" in
11653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654 *) ac_try_echo=$ac_try;;
11655esac
11656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657 (eval "$ac_try") 2>&5
11658 ac_status=$?
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011661 ac_header_compiler=yes
11662else
11663 echo "$as_me: failed program was:" >&5
11664sed 's/^/| /' conftest.$ac_ext >&5
11665
Reid Spencera773bd52006-08-04 18:18:08 +000011666 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011667fi
Reid Spencera773bd52006-08-04 18:18:08 +000011668
11669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11670{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11671echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011672
11673# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011674{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11675echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011676cat >conftest.$ac_ext <<_ACEOF
11677/* confdefs.h. */
11678_ACEOF
11679cat confdefs.h >>conftest.$ac_ext
11680cat >>conftest.$ac_ext <<_ACEOF
11681/* end confdefs.h. */
11682#include <$ac_header>
11683_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011684if { (ac_try="$ac_cpp conftest.$ac_ext"
11685case "(($ac_try" in
11686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11687 *) ac_try_echo=$ac_try;;
11688esac
11689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011691 ac_status=$?
11692 grep -v '^ *+' conftest.er1 >conftest.err
11693 rm -f conftest.er1
11694 cat conftest.err >&5
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011696 (exit $ac_status); } >/dev/null; then
11697 if test -s conftest.err; then
11698 ac_cpp_err=$ac_c_preproc_warn_flag
11699 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11700 else
11701 ac_cpp_err=
11702 fi
11703else
11704 ac_cpp_err=yes
11705fi
11706if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011707 ac_header_preproc=yes
11708else
11709 echo "$as_me: failed program was:" >&5
11710sed 's/^/| /' conftest.$ac_ext >&5
11711
11712 ac_header_preproc=no
11713fi
Reid Spencera773bd52006-08-04 18:18:08 +000011714
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011715rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011716{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11717echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011718
11719# So? What about this header?
11720case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11721 yes:no: )
11722 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11723echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11725echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11726 ac_header_preproc=yes
11727 ;;
11728 no:yes:* )
11729 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11730echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11731 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11732echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11733 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11734echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11735 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11736echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11738echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11739 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11740echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011741 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011742## ----------------------------------- ##
11743## Report this to llvmbugs@cs.uiuc.edu ##
11744## ----------------------------------- ##
11745_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011746 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011747 ;;
11748esac
Reid Spencera773bd52006-08-04 18:18:08 +000011749{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11750echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11751if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011752 echo $ECHO_N "(cached) $ECHO_C" >&6
11753else
11754 eval "$as_ac_Header=\$ac_header_preproc"
11755fi
Reid Spencera773bd52006-08-04 18:18:08 +000011756ac_res=`eval echo '${'$as_ac_Header'}'`
11757 { echo "$as_me:$LINENO: result: $ac_res" >&5
11758echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011759
11760fi
11761if test `eval echo '${'$as_ac_Header'}'` = yes; then
11762 cat >>confdefs.h <<_ACEOF
11763#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11764_ACEOF
11765
11766fi
11767
11768done
11769
11770
11771
11772
11773
11774for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11775do
11776as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011777if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11779echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11780if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011781 echo $ECHO_N "(cached) $ECHO_C" >&6
11782fi
Reid Spencera773bd52006-08-04 18:18:08 +000011783ac_res=`eval echo '${'$as_ac_Header'}'`
11784 { echo "$as_me:$LINENO: result: $ac_res" >&5
11785echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011786else
11787 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011788{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11789echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011790cat >conftest.$ac_ext <<_ACEOF
11791/* confdefs.h. */
11792_ACEOF
11793cat confdefs.h >>conftest.$ac_ext
11794cat >>conftest.$ac_ext <<_ACEOF
11795/* end confdefs.h. */
11796$ac_includes_default
11797#include <$ac_header>
11798_ACEOF
11799rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011800if { (ac_try="$ac_compile"
11801case "(($ac_try" in
11802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11803 *) ac_try_echo=$ac_try;;
11804esac
11805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11806 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011807 ac_status=$?
11808 grep -v '^ *+' conftest.er1 >conftest.err
11809 rm -f conftest.er1
11810 cat conftest.err >&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011812 (exit $ac_status); } &&
11813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11814 { (case "(($ac_try" in
11815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11816 *) ac_try_echo=$ac_try;;
11817esac
11818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11819 (eval "$ac_try") 2>&5
11820 ac_status=$?
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); }; } &&
11823 { ac_try='test -s conftest.$ac_objext'
11824 { (case "(($ac_try" in
11825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11826 *) ac_try_echo=$ac_try;;
11827esac
11828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11829 (eval "$ac_try") 2>&5
11830 ac_status=$?
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011833 ac_header_compiler=yes
11834else
11835 echo "$as_me: failed program was:" >&5
11836sed 's/^/| /' conftest.$ac_ext >&5
11837
Reid Spencera773bd52006-08-04 18:18:08 +000011838 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011839fi
Reid Spencera773bd52006-08-04 18:18:08 +000011840
11841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11842{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11843echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011844
11845# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011846{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11847echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011848cat >conftest.$ac_ext <<_ACEOF
11849/* confdefs.h. */
11850_ACEOF
11851cat confdefs.h >>conftest.$ac_ext
11852cat >>conftest.$ac_ext <<_ACEOF
11853/* end confdefs.h. */
11854#include <$ac_header>
11855_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011856if { (ac_try="$ac_cpp conftest.$ac_ext"
11857case "(($ac_try" in
11858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859 *) ac_try_echo=$ac_try;;
11860esac
11861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011863 ac_status=$?
11864 grep -v '^ *+' conftest.er1 >conftest.err
11865 rm -f conftest.er1
11866 cat conftest.err >&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011868 (exit $ac_status); } >/dev/null; then
11869 if test -s conftest.err; then
11870 ac_cpp_err=$ac_c_preproc_warn_flag
11871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11872 else
11873 ac_cpp_err=
11874 fi
11875else
11876 ac_cpp_err=yes
11877fi
11878if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011879 ac_header_preproc=yes
11880else
11881 echo "$as_me: failed program was:" >&5
11882sed 's/^/| /' conftest.$ac_ext >&5
11883
11884 ac_header_preproc=no
11885fi
Reid Spencera773bd52006-08-04 18:18:08 +000011886
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011887rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011888{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11889echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011890
11891# So? What about this header?
11892case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11893 yes:no: )
11894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11895echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11897echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11898 ac_header_preproc=yes
11899 ;;
11900 no:yes:* )
11901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11902echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11904echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11905 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11906echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11907 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11908echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11910echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11912echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011913 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011914## ----------------------------------- ##
11915## Report this to llvmbugs@cs.uiuc.edu ##
11916## ----------------------------------- ##
11917_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011918 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011919 ;;
11920esac
Reid Spencera773bd52006-08-04 18:18:08 +000011921{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11922echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11923if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011924 echo $ECHO_N "(cached) $ECHO_C" >&6
11925else
11926 eval "$as_ac_Header=\$ac_header_preproc"
11927fi
Reid Spencera773bd52006-08-04 18:18:08 +000011928ac_res=`eval echo '${'$as_ac_Header'}'`
11929 { echo "$as_me:$LINENO: result: $ac_res" >&5
11930echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011931
11932fi
11933if test `eval echo '${'$as_ac_Header'}'` = yes; then
11934 cat >>confdefs.h <<_ACEOF
11935#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11936_ACEOF
11937
11938fi
11939
11940done
11941
11942
11943
11944for ac_header in string.h strings.h
11945do
11946as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011947if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11948 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11949echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11950if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011951 echo $ECHO_N "(cached) $ECHO_C" >&6
11952fi
Reid Spencera773bd52006-08-04 18:18:08 +000011953ac_res=`eval echo '${'$as_ac_Header'}'`
11954 { echo "$as_me:$LINENO: result: $ac_res" >&5
11955echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011956else
11957 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011958{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11959echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011960cat >conftest.$ac_ext <<_ACEOF
11961/* confdefs.h. */
11962_ACEOF
11963cat confdefs.h >>conftest.$ac_ext
11964cat >>conftest.$ac_ext <<_ACEOF
11965/* end confdefs.h. */
11966$ac_includes_default
11967#include <$ac_header>
11968_ACEOF
11969rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011970if { (ac_try="$ac_compile"
11971case "(($ac_try" in
11972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11973 *) ac_try_echo=$ac_try;;
11974esac
11975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11976 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011977 ac_status=$?
11978 grep -v '^ *+' conftest.er1 >conftest.err
11979 rm -f conftest.er1
11980 cat conftest.err >&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011982 (exit $ac_status); } &&
11983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11984 { (case "(($ac_try" in
11985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986 *) ac_try_echo=$ac_try;;
11987esac
11988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989 (eval "$ac_try") 2>&5
11990 ac_status=$?
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); }; } &&
11993 { ac_try='test -s conftest.$ac_objext'
11994 { (case "(($ac_try" in
11995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11996 *) ac_try_echo=$ac_try;;
11997esac
11998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11999 (eval "$ac_try") 2>&5
12000 ac_status=$?
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012003 ac_header_compiler=yes
12004else
12005 echo "$as_me: failed program was:" >&5
12006sed 's/^/| /' conftest.$ac_ext >&5
12007
Reid Spencera773bd52006-08-04 18:18:08 +000012008 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012009fi
Reid Spencera773bd52006-08-04 18:18:08 +000012010
12011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12012{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12013echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012014
12015# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000012016{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12017echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012018cat >conftest.$ac_ext <<_ACEOF
12019/* confdefs.h. */
12020_ACEOF
12021cat confdefs.h >>conftest.$ac_ext
12022cat >>conftest.$ac_ext <<_ACEOF
12023/* end confdefs.h. */
12024#include <$ac_header>
12025_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012026if { (ac_try="$ac_cpp conftest.$ac_ext"
12027case "(($ac_try" in
12028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029 *) ac_try_echo=$ac_try;;
12030esac
12031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012033 ac_status=$?
12034 grep -v '^ *+' conftest.er1 >conftest.err
12035 rm -f conftest.er1
12036 cat conftest.err >&5
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012038 (exit $ac_status); } >/dev/null; then
12039 if test -s conftest.err; then
12040 ac_cpp_err=$ac_c_preproc_warn_flag
12041 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12042 else
12043 ac_cpp_err=
12044 fi
12045else
12046 ac_cpp_err=yes
12047fi
12048if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012049 ac_header_preproc=yes
12050else
12051 echo "$as_me: failed program was:" >&5
12052sed 's/^/| /' conftest.$ac_ext >&5
12053
12054 ac_header_preproc=no
12055fi
Reid Spencera773bd52006-08-04 18:18:08 +000012056
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012057rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000012058{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12059echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012060
12061# So? What about this header?
12062case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12063 yes:no: )
12064 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12065echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12067echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12068 ac_header_preproc=yes
12069 ;;
12070 no:yes:* )
12071 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12072echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12073 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12074echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12075 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12076echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12077 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12078echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12080echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12081 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12082echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000012083 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012084## ----------------------------------- ##
12085## Report this to llvmbugs@cs.uiuc.edu ##
12086## ----------------------------------- ##
12087_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000012088 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012089 ;;
12090esac
Reid Spencera773bd52006-08-04 18:18:08 +000012091{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12092echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12093if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012094 echo $ECHO_N "(cached) $ECHO_C" >&6
12095else
12096 eval "$as_ac_Header=\$ac_header_preproc"
12097fi
Reid Spencera773bd52006-08-04 18:18:08 +000012098ac_res=`eval echo '${'$as_ac_Header'}'`
12099 { echo "$as_me:$LINENO: result: $ac_res" >&5
12100echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012101
12102fi
12103if test `eval echo '${'$as_ac_Header'}'` = yes; then
12104 cat >>confdefs.h <<_ACEOF
12105#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12106_ACEOF
12107 break
12108fi
12109
12110done
12111
12112
12113
12114
12115for ac_func in strchr index
12116do
12117as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012118{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12119echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12120if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012121 echo $ECHO_N "(cached) $ECHO_C" >&6
12122else
12123 cat >conftest.$ac_ext <<_ACEOF
12124/* confdefs.h. */
12125_ACEOF
12126cat confdefs.h >>conftest.$ac_ext
12127cat >>conftest.$ac_ext <<_ACEOF
12128/* end confdefs.h. */
12129/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12131#define $ac_func innocuous_$ac_func
12132
12133/* System header to define __stub macros and hopefully few prototypes,
12134 which can conflict with char $ac_func (); below.
12135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12136 <limits.h> exists even on freestanding compilers. */
12137
12138#ifdef __STDC__
12139# include <limits.h>
12140#else
12141# include <assert.h>
12142#endif
12143
12144#undef $ac_func
12145
Reid Spencera773bd52006-08-04 18:18:08 +000012146/* Override any GCC internal prototype to avoid an error.
12147 Use char because int might match the return type of a GCC
12148 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012149#ifdef __cplusplus
12150extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012151#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012152char $ac_func ();
12153/* The GNU C library defines this for functions which it implements
12154 to always fail with ENOSYS. Some functions are actually named
12155 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012156#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012157choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012158#endif
12159
12160int
12161main ()
12162{
Reid Spencera773bd52006-08-04 18:18:08 +000012163return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012164 ;
12165 return 0;
12166}
12167_ACEOF
12168rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012169if { (ac_try="$ac_link"
12170case "(($ac_try" in
12171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12172 *) ac_try_echo=$ac_try;;
12173esac
12174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12175 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012176 ac_status=$?
12177 grep -v '^ *+' conftest.er1 >conftest.err
12178 rm -f conftest.er1
12179 cat conftest.err >&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012181 (exit $ac_status); } &&
12182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12183 { (case "(($ac_try" in
12184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12185 *) ac_try_echo=$ac_try;;
12186esac
12187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12188 (eval "$ac_try") 2>&5
12189 ac_status=$?
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); }; } &&
12192 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012202 eval "$as_ac_var=yes"
12203else
12204 echo "$as_me: failed program was:" >&5
12205sed 's/^/| /' conftest.$ac_ext >&5
12206
Reid Spencera773bd52006-08-04 18:18:08 +000012207 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012208fi
Reid Spencera773bd52006-08-04 18:18:08 +000012209
Bill Wendlingebcceee2009-04-18 11:20:33 +000012210rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012211 conftest$ac_exeext conftest.$ac_ext
12212fi
Reid Spencera773bd52006-08-04 18:18:08 +000012213ac_res=`eval echo '${'$as_ac_var'}'`
12214 { echo "$as_me:$LINENO: result: $ac_res" >&5
12215echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012216if test `eval echo '${'$as_ac_var'}'` = yes; then
12217 cat >>confdefs.h <<_ACEOF
12218#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12219_ACEOF
12220 break
12221fi
12222done
12223
12224
12225
12226for ac_func in strrchr rindex
12227do
12228as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012229{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12230echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12231if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012232 echo $ECHO_N "(cached) $ECHO_C" >&6
12233else
12234 cat >conftest.$ac_ext <<_ACEOF
12235/* confdefs.h. */
12236_ACEOF
12237cat confdefs.h >>conftest.$ac_ext
12238cat >>conftest.$ac_ext <<_ACEOF
12239/* end confdefs.h. */
12240/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12242#define $ac_func innocuous_$ac_func
12243
12244/* System header to define __stub macros and hopefully few prototypes,
12245 which can conflict with char $ac_func (); below.
12246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12247 <limits.h> exists even on freestanding compilers. */
12248
12249#ifdef __STDC__
12250# include <limits.h>
12251#else
12252# include <assert.h>
12253#endif
12254
12255#undef $ac_func
12256
Reid Spencera773bd52006-08-04 18:18:08 +000012257/* Override any GCC internal prototype to avoid an error.
12258 Use char because int might match the return type of a GCC
12259 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012260#ifdef __cplusplus
12261extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012262#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012263char $ac_func ();
12264/* The GNU C library defines this for functions which it implements
12265 to always fail with ENOSYS. Some functions are actually named
12266 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012267#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012268choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012269#endif
12270
12271int
12272main ()
12273{
Reid Spencera773bd52006-08-04 18:18:08 +000012274return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012275 ;
12276 return 0;
12277}
12278_ACEOF
12279rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012280if { (ac_try="$ac_link"
12281case "(($ac_try" in
12282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12283 *) ac_try_echo=$ac_try;;
12284esac
12285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12286 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012287 ac_status=$?
12288 grep -v '^ *+' conftest.er1 >conftest.err
12289 rm -f conftest.er1
12290 cat conftest.err >&5
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012292 (exit $ac_status); } &&
12293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12294 { (case "(($ac_try" in
12295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12296 *) ac_try_echo=$ac_try;;
12297esac
12298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12299 (eval "$ac_try") 2>&5
12300 ac_status=$?
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; } &&
12303 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012313 eval "$as_ac_var=yes"
12314else
12315 echo "$as_me: failed program was:" >&5
12316sed 's/^/| /' conftest.$ac_ext >&5
12317
Reid Spencera773bd52006-08-04 18:18:08 +000012318 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012319fi
Reid Spencera773bd52006-08-04 18:18:08 +000012320
Bill Wendlingebcceee2009-04-18 11:20:33 +000012321rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012322 conftest$ac_exeext conftest.$ac_ext
12323fi
Reid Spencera773bd52006-08-04 18:18:08 +000012324ac_res=`eval echo '${'$as_ac_var'}'`
12325 { echo "$as_me:$LINENO: result: $ac_res" >&5
12326echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012327if test `eval echo '${'$as_ac_var'}'` = yes; then
12328 cat >>confdefs.h <<_ACEOF
12329#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12330_ACEOF
12331 break
12332fi
12333done
12334
12335
12336
12337for ac_func in memcpy bcopy
12338do
12339as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012340{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12341echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12342if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012343 echo $ECHO_N "(cached) $ECHO_C" >&6
12344else
12345 cat >conftest.$ac_ext <<_ACEOF
12346/* confdefs.h. */
12347_ACEOF
12348cat confdefs.h >>conftest.$ac_ext
12349cat >>conftest.$ac_ext <<_ACEOF
12350/* end confdefs.h. */
12351/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12353#define $ac_func innocuous_$ac_func
12354
12355/* System header to define __stub macros and hopefully few prototypes,
12356 which can conflict with char $ac_func (); below.
12357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12358 <limits.h> exists even on freestanding compilers. */
12359
12360#ifdef __STDC__
12361# include <limits.h>
12362#else
12363# include <assert.h>
12364#endif
12365
12366#undef $ac_func
12367
Reid Spencera773bd52006-08-04 18:18:08 +000012368/* Override any GCC internal prototype to avoid an error.
12369 Use char because int might match the return type of a GCC
12370 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012371#ifdef __cplusplus
12372extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012373#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012374char $ac_func ();
12375/* The GNU C library defines this for functions which it implements
12376 to always fail with ENOSYS. Some functions are actually named
12377 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012378#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012379choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012380#endif
12381
12382int
12383main ()
12384{
Reid Spencera773bd52006-08-04 18:18:08 +000012385return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012386 ;
12387 return 0;
12388}
12389_ACEOF
12390rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012391if { (ac_try="$ac_link"
12392case "(($ac_try" in
12393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12394 *) ac_try_echo=$ac_try;;
12395esac
12396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12397 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012398 ac_status=$?
12399 grep -v '^ *+' conftest.er1 >conftest.err
12400 rm -f conftest.er1
12401 cat conftest.err >&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012403 (exit $ac_status); } &&
12404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12405 { (case "(($ac_try" in
12406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12407 *) ac_try_echo=$ac_try;;
12408esac
12409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12410 (eval "$ac_try") 2>&5
12411 ac_status=$?
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; } &&
12414 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012424 eval "$as_ac_var=yes"
12425else
12426 echo "$as_me: failed program was:" >&5
12427sed 's/^/| /' conftest.$ac_ext >&5
12428
Reid Spencera773bd52006-08-04 18:18:08 +000012429 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012430fi
Reid Spencera773bd52006-08-04 18:18:08 +000012431
Bill Wendlingebcceee2009-04-18 11:20:33 +000012432rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012433 conftest$ac_exeext conftest.$ac_ext
12434fi
Reid Spencera773bd52006-08-04 18:18:08 +000012435ac_res=`eval echo '${'$as_ac_var'}'`
12436 { echo "$as_me:$LINENO: result: $ac_res" >&5
12437echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012438if test `eval echo '${'$as_ac_var'}'` = yes; then
12439 cat >>confdefs.h <<_ACEOF
12440#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12441_ACEOF
12442 break
12443fi
12444done
12445
12446
12447
12448for ac_func in memmove strcmp
12449do
12450as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012451{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12452echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12453if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012454 echo $ECHO_N "(cached) $ECHO_C" >&6
12455else
12456 cat >conftest.$ac_ext <<_ACEOF
12457/* confdefs.h. */
12458_ACEOF
12459cat confdefs.h >>conftest.$ac_ext
12460cat >>conftest.$ac_ext <<_ACEOF
12461/* end confdefs.h. */
12462/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12464#define $ac_func innocuous_$ac_func
12465
12466/* System header to define __stub macros and hopefully few prototypes,
12467 which can conflict with char $ac_func (); below.
12468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12469 <limits.h> exists even on freestanding compilers. */
12470
12471#ifdef __STDC__
12472# include <limits.h>
12473#else
12474# include <assert.h>
12475#endif
12476
12477#undef $ac_func
12478
Reid Spencera773bd52006-08-04 18:18:08 +000012479/* Override any GCC internal prototype to avoid an error.
12480 Use char because int might match the return type of a GCC
12481 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012482#ifdef __cplusplus
12483extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012484#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012485char $ac_func ();
12486/* The GNU C library defines this for functions which it implements
12487 to always fail with ENOSYS. Some functions are actually named
12488 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012489#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012490choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012491#endif
12492
12493int
12494main ()
12495{
Reid Spencera773bd52006-08-04 18:18:08 +000012496return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012497 ;
12498 return 0;
12499}
12500_ACEOF
12501rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012502if { (ac_try="$ac_link"
12503case "(($ac_try" in
12504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12505 *) ac_try_echo=$ac_try;;
12506esac
12507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12508 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012509 ac_status=$?
12510 grep -v '^ *+' conftest.er1 >conftest.err
12511 rm -f conftest.er1
12512 cat conftest.err >&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012514 (exit $ac_status); } &&
12515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12516 { (case "(($ac_try" in
12517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12518 *) ac_try_echo=$ac_try;;
12519esac
12520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12521 (eval "$ac_try") 2>&5
12522 ac_status=$?
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }; } &&
12525 { ac_try='test -s conftest$ac_exeext'
12526 { (case "(($ac_try" in
12527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12528 *) ac_try_echo=$ac_try;;
12529esac
12530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12531 (eval "$ac_try") 2>&5
12532 ac_status=$?
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012535 eval "$as_ac_var=yes"
12536else
12537 echo "$as_me: failed program was:" >&5
12538sed 's/^/| /' conftest.$ac_ext >&5
12539
Reid Spencera773bd52006-08-04 18:18:08 +000012540 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012541fi
Reid Spencera773bd52006-08-04 18:18:08 +000012542
Bill Wendlingebcceee2009-04-18 11:20:33 +000012543rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012544 conftest$ac_exeext conftest.$ac_ext
12545fi
Reid Spencera773bd52006-08-04 18:18:08 +000012546ac_res=`eval echo '${'$as_ac_var'}'`
12547 { echo "$as_me:$LINENO: result: $ac_res" >&5
12548echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012549if test `eval echo '${'$as_ac_var'}'` = yes; then
12550 cat >>confdefs.h <<_ACEOF
12551#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12552_ACEOF
12553
12554fi
12555done
12556
12557
12558
12559
12560for ac_func in closedir opendir readdir
12561do
12562as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012563{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12564echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12565if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012566 echo $ECHO_N "(cached) $ECHO_C" >&6
12567else
12568 cat >conftest.$ac_ext <<_ACEOF
12569/* confdefs.h. */
12570_ACEOF
12571cat confdefs.h >>conftest.$ac_ext
12572cat >>conftest.$ac_ext <<_ACEOF
12573/* end confdefs.h. */
12574/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12576#define $ac_func innocuous_$ac_func
12577
12578/* System header to define __stub macros and hopefully few prototypes,
12579 which can conflict with char $ac_func (); below.
12580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12581 <limits.h> exists even on freestanding compilers. */
12582
12583#ifdef __STDC__
12584# include <limits.h>
12585#else
12586# include <assert.h>
12587#endif
12588
12589#undef $ac_func
12590
Reid Spencera773bd52006-08-04 18:18:08 +000012591/* Override any GCC internal prototype to avoid an error.
12592 Use char because int might match the return type of a GCC
12593 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012594#ifdef __cplusplus
12595extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012596#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012597char $ac_func ();
12598/* The GNU C library defines this for functions which it implements
12599 to always fail with ENOSYS. Some functions are actually named
12600 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012601#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012602choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012603#endif
12604
12605int
12606main ()
12607{
Reid Spencera773bd52006-08-04 18:18:08 +000012608return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012609 ;
12610 return 0;
12611}
12612_ACEOF
12613rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012614if { (ac_try="$ac_link"
12615case "(($ac_try" in
12616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617 *) ac_try_echo=$ac_try;;
12618esac
12619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12620 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012621 ac_status=$?
12622 grep -v '^ *+' conftest.er1 >conftest.err
12623 rm -f conftest.er1
12624 cat conftest.err >&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012626 (exit $ac_status); } &&
12627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12628 { (case "(($ac_try" in
12629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12630 *) ac_try_echo=$ac_try;;
12631esac
12632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12633 (eval "$ac_try") 2>&5
12634 ac_status=$?
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; } &&
12637 { ac_try='test -s conftest$ac_exeext'
12638 { (case "(($ac_try" in
12639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12640 *) ac_try_echo=$ac_try;;
12641esac
12642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12643 (eval "$ac_try") 2>&5
12644 ac_status=$?
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012647 eval "$as_ac_var=yes"
12648else
12649 echo "$as_me: failed program was:" >&5
12650sed 's/^/| /' conftest.$ac_ext >&5
12651
Reid Spencera773bd52006-08-04 18:18:08 +000012652 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012653fi
Reid Spencera773bd52006-08-04 18:18:08 +000012654
Bill Wendlingebcceee2009-04-18 11:20:33 +000012655rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012656 conftest$ac_exeext conftest.$ac_ext
12657fi
Reid Spencera773bd52006-08-04 18:18:08 +000012658ac_res=`eval echo '${'$as_ac_var'}'`
12659 { echo "$as_me:$LINENO: result: $ac_res" >&5
12660echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012661if test `eval echo '${'$as_ac_var'}'` = yes; then
12662 cat >>confdefs.h <<_ACEOF
12663#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12664_ACEOF
12665
12666fi
12667done
12668
12669
Reid Spencera773bd52006-08-04 18:18:08 +000012670# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012671if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012672 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012673 case $enableval in
12674 yes) enable_shared=yes ;;
12675 no) enable_shared=no ;;
12676 *)
12677 enable_shared=no
12678 # Look at the argument we got. We use all the common list separators.
12679 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12680 for pkg in $enableval; do
12681 IFS="$lt_save_ifs"
12682 if test "X$pkg" = "X$p"; then
12683 enable_shared=yes
12684 fi
12685 done
12686 IFS="$lt_save_ifs"
12687 ;;
12688 esac
12689else
12690 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012691fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012692
Reid Spencera773bd52006-08-04 18:18:08 +000012693
12694# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012695if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012696 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012697 case $enableval in
12698 yes) enable_static=yes ;;
12699 no) enable_static=no ;;
12700 *)
12701 enable_static=no
12702 # Look at the argument we got. We use all the common list separators.
12703 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12704 for pkg in $enableval; do
12705 IFS="$lt_save_ifs"
12706 if test "X$pkg" = "X$p"; then
12707 enable_static=yes
12708 fi
12709 done
12710 IFS="$lt_save_ifs"
12711 ;;
12712 esac
12713else
12714 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012715fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012716
Reid Spencera773bd52006-08-04 18:18:08 +000012717
12718# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012719if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012720 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012721 case $enableval in
12722 yes) enable_fast_install=yes ;;
12723 no) enable_fast_install=no ;;
12724 *)
12725 enable_fast_install=no
12726 # Look at the argument we got. We use all the common list separators.
12727 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12728 for pkg in $enableval; do
12729 IFS="$lt_save_ifs"
12730 if test "X$pkg" = "X$p"; then
12731 enable_fast_install=yes
12732 fi
12733 done
12734 IFS="$lt_save_ifs"
12735 ;;
12736 esac
12737else
12738 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012739fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012740
Reid Spencera773bd52006-08-04 18:18:08 +000012741
12742{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12743echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012744if test "${lt_cv_path_SED+set}" = set; then
12745 echo $ECHO_N "(cached) $ECHO_C" >&6
12746else
12747 # Loop through the user's path and test for sed and gsed.
12748# Then use that list of sed's as ones to test for truncation.
12749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12750for as_dir in $PATH
12751do
12752 IFS=$as_save_IFS
12753 test -z "$as_dir" && as_dir=.
12754 for lt_ac_prog in sed gsed; do
12755 for ac_exec_ext in '' $ac_executable_extensions; do
12756 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12757 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12758 fi
12759 done
12760 done
12761done
12762lt_ac_max=0
12763lt_ac_count=0
12764# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12765# along with /bin/sed that truncates output.
12766for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012767 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012768 cat /dev/null > conftest.in
12769 lt_ac_count=0
12770 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12771 # Check for GNU sed and select it if it is found.
12772 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12773 lt_cv_path_SED=$lt_ac_sed
12774 break
12775 fi
12776 while true; do
12777 cat conftest.in conftest.in >conftest.tmp
12778 mv conftest.tmp conftest.in
12779 cp conftest.in conftest.nl
12780 echo >>conftest.nl
12781 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12782 cmp -s conftest.out conftest.nl || break
12783 # 10000 chars as input seems more than enough
12784 test $lt_ac_count -gt 10 && break
12785 lt_ac_count=`expr $lt_ac_count + 1`
12786 if test $lt_ac_count -gt $lt_ac_max; then
12787 lt_ac_max=$lt_ac_count
12788 lt_cv_path_SED=$lt_ac_sed
12789 fi
12790 done
12791done
12792
12793fi
12794
12795SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012796{ echo "$as_me:$LINENO: result: $SED" >&5
12797echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012798
12799
Reid Spencera773bd52006-08-04 18:18:08 +000012800# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012801if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012802 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012803else
12804 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012805fi
12806
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012807ac_prog=ld
12808if test "$GCC" = yes; then
12809 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012810 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12811echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012812 case $host in
12813 *-*-mingw*)
12814 # gcc leaves a trailing carriage return which upsets mingw
12815 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12816 *)
12817 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12818 esac
12819 case $ac_prog in
12820 # Accept absolute paths.
12821 [\\/]* | ?:[\\/]*)
12822 re_direlt='/[^/][^/]*/\.\./'
12823 # Canonicalize the pathname of ld
12824 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12825 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12826 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12827 done
12828 test -z "$LD" && LD="$ac_prog"
12829 ;;
12830 "")
12831 # If it fails, then pretend we aren't using GCC.
12832 ac_prog=ld
12833 ;;
12834 *)
12835 # If it is relative, then search for the first ld in PATH.
12836 with_gnu_ld=unknown
12837 ;;
12838 esac
12839elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012840 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12841echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012842else
Reid Spencera773bd52006-08-04 18:18:08 +000012843 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12844echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012845fi
12846if test "${lt_cv_path_LD+set}" = set; then
12847 echo $ECHO_N "(cached) $ECHO_C" >&6
12848else
12849 if test -z "$LD"; then
12850 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12851 for ac_dir in $PATH; do
12852 IFS="$lt_save_ifs"
12853 test -z "$ac_dir" && ac_dir=.
12854 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12855 lt_cv_path_LD="$ac_dir/$ac_prog"
12856 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012857 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012858 # Break only if it was the GNU/non-GNU ld that we prefer.
12859 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12860 *GNU* | *'with BFD'*)
12861 test "$with_gnu_ld" != no && break
12862 ;;
12863 *)
12864 test "$with_gnu_ld" != yes && break
12865 ;;
12866 esac
12867 fi
12868 done
12869 IFS="$lt_save_ifs"
12870else
12871 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12872fi
12873fi
12874
12875LD="$lt_cv_path_LD"
12876if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012877 { echo "$as_me:$LINENO: result: $LD" >&5
12878echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012879else
Reid Spencera773bd52006-08-04 18:18:08 +000012880 { echo "$as_me:$LINENO: result: no" >&5
12881echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012882fi
12883test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12884echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12885 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012886{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12887echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012888if test "${lt_cv_prog_gnu_ld+set}" = set; then
12889 echo $ECHO_N "(cached) $ECHO_C" >&6
12890else
Reid Spencera773bd52006-08-04 18:18:08 +000012891 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012892case `$LD -v 2>&1 </dev/null` in
12893*GNU* | *'with BFD'*)
12894 lt_cv_prog_gnu_ld=yes
12895 ;;
12896*)
12897 lt_cv_prog_gnu_ld=no
12898 ;;
12899esac
12900fi
Reid Spencera773bd52006-08-04 18:18:08 +000012901{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12902echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012903with_gnu_ld=$lt_cv_prog_gnu_ld
12904
12905
Reid Spencera773bd52006-08-04 18:18:08 +000012906{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12907echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012908if test "${lt_cv_ld_reload_flag+set}" = set; then
12909 echo $ECHO_N "(cached) $ECHO_C" >&6
12910else
12911 lt_cv_ld_reload_flag='-r'
12912fi
Reid Spencera773bd52006-08-04 18:18:08 +000012913{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12914echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012915reload_flag=$lt_cv_ld_reload_flag
12916case $reload_flag in
12917"" | " "*) ;;
12918*) reload_flag=" $reload_flag" ;;
12919esac
12920reload_cmds='$LD$reload_flag -o $output$reload_objs'
12921case $host_os in
12922 darwin*)
12923 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012924 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012925 else
12926 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12927 fi
12928 ;;
12929esac
12930
Reid Spencera773bd52006-08-04 18:18:08 +000012931{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12932echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012933if test "${lt_cv_deplibs_check_method+set}" = set; then
12934 echo $ECHO_N "(cached) $ECHO_C" >&6
12935else
12936 lt_cv_file_magic_cmd='$MAGIC_CMD'
12937lt_cv_file_magic_test_file=
12938lt_cv_deplibs_check_method='unknown'
12939# Need to set the preceding variable on all platforms that support
12940# interlibrary dependencies.
12941# 'none' -- dependencies not supported.
12942# `unknown' -- same as none, but documents that we really don't know.
12943# 'pass_all' -- all dependencies passed with no checks.
12944# 'test_compile' -- check by making test program.
12945# 'file_magic [[regex]]' -- check by looking for files in library path
12946# which responds to the $file_magic_cmd with a given extended regex.
12947# If you have `file' or equivalent on your system and you're not sure
12948# whether `pass_all' will *always* work, you probably want this one.
12949
12950case $host_os in
12951aix4* | aix5*)
12952 lt_cv_deplibs_check_method=pass_all
12953 ;;
12954
12955beos*)
12956 lt_cv_deplibs_check_method=pass_all
12957 ;;
12958
12959bsdi[45]*)
12960 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12961 lt_cv_file_magic_cmd='/usr/bin/file -L'
12962 lt_cv_file_magic_test_file=/shlib/libc.so
12963 ;;
12964
12965cygwin*)
12966 # func_win32_libid is a shell function defined in ltmain.sh
12967 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12968 lt_cv_file_magic_cmd='func_win32_libid'
12969 ;;
12970
12971mingw* | pw32*)
12972 # Base MSYS/MinGW do not provide the 'file' command needed by
12973 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12974 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12975 lt_cv_file_magic_cmd='$OBJDUMP -f'
12976 ;;
12977
12978darwin* | rhapsody*)
12979 lt_cv_deplibs_check_method=pass_all
12980 ;;
12981
Reid Spencera773bd52006-08-04 18:18:08 +000012982freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012983 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12984 case $host_cpu in
12985 i*86 )
12986 # Not sure whether the presence of OpenBSD here was a mistake.
12987 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012988 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 +000012989 lt_cv_file_magic_cmd=/usr/bin/file
12990 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12991 ;;
12992 esac
12993 else
12994 lt_cv_deplibs_check_method=pass_all
12995 fi
12996 ;;
12997
12998gnu*)
12999 lt_cv_deplibs_check_method=pass_all
13000 ;;
13001
13002hpux10.20* | hpux11*)
13003 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000013004 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013005 ia64*)
13006 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13007 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13008 ;;
13009 hppa*64*)
13010 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]'
13011 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13012 ;;
13013 *)
13014 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
13015 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13016 ;;
13017 esac
13018 ;;
13019
Reid Spencera773bd52006-08-04 18:18:08 +000013020interix3*)
13021 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13022 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13023 ;;
13024
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013025irix5* | irix6* | nonstopux*)
13026 case $LD in
13027 *-32|*"-32 ") libmagic=32-bit;;
13028 *-n32|*"-n32 ") libmagic=N32;;
13029 *-64|*"-64 ") libmagic=64-bit;;
13030 *) libmagic=never-match;;
13031 esac
13032 lt_cv_deplibs_check_method=pass_all
13033 ;;
13034
13035# This must be Linux ELF.
13036linux*)
13037 lt_cv_deplibs_check_method=pass_all
13038 ;;
13039
13040netbsd*)
13041 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13042 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13043 else
13044 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13045 fi
13046 ;;
13047
13048newos6*)
13049 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13050 lt_cv_file_magic_cmd=/usr/bin/file
13051 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13052 ;;
13053
13054nto-qnx*)
13055 lt_cv_deplibs_check_method=unknown
13056 ;;
13057
13058openbsd*)
13059 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13060 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13061 else
13062 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13063 fi
13064 ;;
13065
13066osf3* | osf4* | osf5*)
13067 lt_cv_deplibs_check_method=pass_all
13068 ;;
13069
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013070solaris*)
13071 lt_cv_deplibs_check_method=pass_all
13072 ;;
13073
Reid Spencera773bd52006-08-04 18:18:08 +000013074sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013075 case $host_vendor in
13076 motorola)
13077 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]'
13078 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13079 ;;
13080 ncr)
13081 lt_cv_deplibs_check_method=pass_all
13082 ;;
13083 sequent)
13084 lt_cv_file_magic_cmd='/bin/file'
13085 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13086 ;;
13087 sni)
13088 lt_cv_file_magic_cmd='/bin/file'
13089 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13090 lt_cv_file_magic_test_file=/lib/libc.so
13091 ;;
13092 siemens)
13093 lt_cv_deplibs_check_method=pass_all
13094 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013095 pc)
13096 lt_cv_deplibs_check_method=pass_all
13097 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013098 esac
13099 ;;
13100
Reid Spencera773bd52006-08-04 18:18:08 +000013101sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013102 lt_cv_deplibs_check_method=pass_all
13103 ;;
13104esac
13105
13106fi
Reid Spencera773bd52006-08-04 18:18:08 +000013107{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13108echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013109file_magic_cmd=$lt_cv_file_magic_cmd
13110deplibs_check_method=$lt_cv_deplibs_check_method
13111test -z "$deplibs_check_method" && deplibs_check_method=unknown
13112
13113
13114
13115# If no C compiler was specified, use CC.
13116LTCC=${LTCC-"$CC"}
13117
Reid Spencera773bd52006-08-04 18:18:08 +000013118# If no C compiler flags were specified, use CFLAGS.
13119LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13120
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013121# Allow CC to be a program name with arguments.
13122compiler=$CC
13123
Reid Spencera773bd52006-08-04 18:18:08 +000013124# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013125if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013126 enableval=$enable_libtool_lock;
13127fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013128
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013129test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13130
13131# Some flags need to be propagated to the compiler or linker for good
13132# libtool support.
13133case $host in
13134ia64-*-hpux*)
13135 # Find out which ABI we are using.
13136 echo 'int i;' > conftest.$ac_ext
13137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13138 (eval $ac_compile) 2>&5
13139 ac_status=$?
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); }; then
13142 case `/usr/bin/file conftest.$ac_objext` in
13143 *ELF-32*)
13144 HPUX_IA64_MODE="32"
13145 ;;
13146 *ELF-64*)
13147 HPUX_IA64_MODE="64"
13148 ;;
13149 esac
13150 fi
13151 rm -rf conftest*
13152 ;;
13153*-*-irix6*)
13154 # Find out which ABI we are using.
Edward O'Callaghan2b19d692009-10-14 00:44:50 +000013155 echo '#line 13155 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13157 (eval $ac_compile) 2>&5
13158 ac_status=$?
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); }; then
13161 if test "$lt_cv_prog_gnu_ld" = yes; then
13162 case `/usr/bin/file conftest.$ac_objext` in
13163 *32-bit*)
13164 LD="${LD-ld} -melf32bsmip"
13165 ;;
13166 *N32*)
13167 LD="${LD-ld} -melf32bmipn32"
13168 ;;
13169 *64-bit*)
13170 LD="${LD-ld} -melf64bmip"
13171 ;;
13172 esac
13173 else
13174 case `/usr/bin/file conftest.$ac_objext` in
13175 *32-bit*)
13176 LD="${LD-ld} -32"
13177 ;;
13178 *N32*)
13179 LD="${LD-ld} -n32"
13180 ;;
13181 *64-bit*)
13182 LD="${LD-ld} -64"
13183 ;;
13184 esac
13185 fi
13186 fi
13187 rm -rf conftest*
13188 ;;
13189
13190x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13191 # Find out which ABI we are using.
13192 echo 'int i;' > conftest.$ac_ext
13193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13194 (eval $ac_compile) 2>&5
13195 ac_status=$?
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013198 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013199 *32-bit*)
13200 case $host in
13201 x86_64-*linux*)
13202 LD="${LD-ld} -m elf_i386"
13203 ;;
13204 ppc64-*linux*|powerpc64-*linux*)
13205 LD="${LD-ld} -m elf32ppclinux"
13206 ;;
13207 s390x-*linux*)
13208 LD="${LD-ld} -m elf_s390"
13209 ;;
13210 sparc64-*linux*)
13211 LD="${LD-ld} -m elf32_sparc"
13212 ;;
13213 esac
13214 ;;
13215 *64-bit*)
13216 case $host in
13217 x86_64-*linux*)
13218 LD="${LD-ld} -m elf_x86_64"
13219 ;;
13220 ppc*-*linux*|powerpc*-*linux*)
13221 LD="${LD-ld} -m elf64ppc"
13222 ;;
13223 s390*-*linux*)
13224 LD="${LD-ld} -m elf64_s390"
13225 ;;
13226 sparc*-*linux*)
13227 LD="${LD-ld} -m elf64_sparc"
13228 ;;
13229 esac
13230 ;;
13231 esac
13232 fi
13233 rm -rf conftest*
13234 ;;
13235
13236*-*-sco3.2v5*)
13237 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13238 SAVE_CFLAGS="$CFLAGS"
13239 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000013240 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13241echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013242if test "${lt_cv_cc_needs_belf+set}" = set; then
13243 echo $ECHO_N "(cached) $ECHO_C" >&6
13244else
13245 ac_ext=c
13246ac_cpp='$CPP $CPPFLAGS'
13247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13249ac_compiler_gnu=$ac_cv_c_compiler_gnu
13250
13251 cat >conftest.$ac_ext <<_ACEOF
13252/* confdefs.h. */
13253_ACEOF
13254cat confdefs.h >>conftest.$ac_ext
13255cat >>conftest.$ac_ext <<_ACEOF
13256/* end confdefs.h. */
13257
Reid Spencera773bd52006-08-04 18:18:08 +000013258int
13259main ()
13260{
13261
13262 ;
13263 return 0;
13264}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013265_ACEOF
13266rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000013267if { (ac_try="$ac_link"
13268case "(($ac_try" in
13269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13270 *) ac_try_echo=$ac_try;;
13271esac
13272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13273 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013274 ac_status=$?
13275 grep -v '^ *+' conftest.er1 >conftest.err
13276 rm -f conftest.er1
13277 cat conftest.err >&5
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013279 (exit $ac_status); } &&
13280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13281 { (case "(($ac_try" in
13282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13283 *) ac_try_echo=$ac_try;;
13284esac
13285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13286 (eval "$ac_try") 2>&5
13287 ac_status=$?
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); }; } &&
13290 { ac_try='test -s conftest$ac_exeext'
13291 { (case "(($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_try") 2>&5
13297 ac_status=$?
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013300 lt_cv_cc_needs_belf=yes
13301else
13302 echo "$as_me: failed program was:" >&5
13303sed 's/^/| /' conftest.$ac_ext >&5
13304
Reid Spencera773bd52006-08-04 18:18:08 +000013305 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013306fi
Reid Spencera773bd52006-08-04 18:18:08 +000013307
Bill Wendlingebcceee2009-04-18 11:20:33 +000013308rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013309 conftest$ac_exeext conftest.$ac_ext
13310 ac_ext=c
13311ac_cpp='$CPP $CPPFLAGS'
13312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13314ac_compiler_gnu=$ac_cv_c_compiler_gnu
13315
13316fi
Reid Spencera773bd52006-08-04 18:18:08 +000013317{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13318echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013319 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13320 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13321 CFLAGS="$SAVE_CFLAGS"
13322 fi
13323 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013324sparc*-*solaris*)
13325 # Find out which ABI we are using.
13326 echo 'int i;' > conftest.$ac_ext
13327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13328 (eval $ac_compile) 2>&5
13329 ac_status=$?
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); }; then
13332 case `/usr/bin/file conftest.o` in
13333 *64-bit*)
13334 case $lt_cv_prog_gnu_ld in
13335 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13336 *) LD="${LD-ld} -64" ;;
13337 esac
13338 ;;
13339 esac
13340 fi
13341 rm -rf conftest*
13342 ;;
13343
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013344
13345esac
13346
13347need_locks="$enable_libtool_lock"
13348
13349
Reid Spencer2706f8c2004-09-19 23:53:36 +000013350
13351
13352if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13353 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13354 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013355 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013356ac_cpp='$CXXCPP $CPPFLAGS'
13357ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13358ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13359ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000013360{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13361echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013362if test -z "$CXXCPP"; then
13363 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013364 echo $ECHO_N "(cached) $ECHO_C" >&6
13365else
John Criswell47fdd832003-07-14 16:52:07 +000013366 # Double quotes because CXXCPP needs to be expanded
13367 for CXXCPP in "$CXX -E" "/lib/cpp"
13368 do
13369 ac_preproc_ok=false
13370for ac_cxx_preproc_warn_flag in '' yes
13371do
13372 # Use a header file that comes with gcc, so configuring glibc
13373 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13375 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013376 # On the NeXT, cc -E runs the code through the compiler's parser,
13377 # not just through cpp. "Syntax error" is here to catch this case.
13378 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013379/* confdefs.h. */
13380_ACEOF
13381cat confdefs.h >>conftest.$ac_ext
13382cat >>conftest.$ac_ext <<_ACEOF
13383/* end confdefs.h. */
13384#ifdef __STDC__
13385# include <limits.h>
13386#else
13387# include <assert.h>
13388#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013389 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013390_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013391if { (ac_try="$ac_cpp conftest.$ac_ext"
13392case "(($ac_try" in
13393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13394 *) ac_try_echo=$ac_try;;
13395esac
13396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013398 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013399 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013400 rm -f conftest.er1
13401 cat conftest.err >&5
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013403 (exit $ac_status); } >/dev/null; then
13404 if test -s conftest.err; then
13405 ac_cpp_err=$ac_cxx_preproc_warn_flag
13406 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13407 else
13408 ac_cpp_err=
13409 fi
13410else
13411 ac_cpp_err=yes
13412fi
13413if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013414 :
13415else
13416 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013417sed 's/^/| /' conftest.$ac_ext >&5
13418
John Criswell47fdd832003-07-14 16:52:07 +000013419 # Broken: fails on valid input.
13420continue
13421fi
Reid Spencera773bd52006-08-04 18:18:08 +000013422
John Criswell47fdd832003-07-14 16:52:07 +000013423rm -f conftest.err conftest.$ac_ext
13424
Reid Spencera773bd52006-08-04 18:18:08 +000013425 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013426 # can be detected and how.
13427 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013428/* confdefs.h. */
13429_ACEOF
13430cat confdefs.h >>conftest.$ac_ext
13431cat >>conftest.$ac_ext <<_ACEOF
13432/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013433#include <ac_nonexistent.h>
13434_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013435if { (ac_try="$ac_cpp conftest.$ac_ext"
13436case "(($ac_try" in
13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438 *) ac_try_echo=$ac_try;;
13439esac
13440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013442 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013443 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013444 rm -f conftest.er1
13445 cat conftest.err >&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013447 (exit $ac_status); } >/dev/null; then
13448 if test -s conftest.err; then
13449 ac_cpp_err=$ac_cxx_preproc_warn_flag
13450 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13451 else
13452 ac_cpp_err=
13453 fi
13454else
13455 ac_cpp_err=yes
13456fi
13457if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013458 # Broken: success on invalid input.
13459continue
13460else
13461 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013462sed 's/^/| /' conftest.$ac_ext >&5
13463
John Criswell47fdd832003-07-14 16:52:07 +000013464 # Passes both tests.
13465ac_preproc_ok=:
13466break
13467fi
Reid Spencera773bd52006-08-04 18:18:08 +000013468
John Criswell47fdd832003-07-14 16:52:07 +000013469rm -f conftest.err conftest.$ac_ext
13470
13471done
13472# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13473rm -f conftest.err conftest.$ac_ext
13474if $ac_preproc_ok; then
13475 break
John Criswell7a73b802003-06-30 21:59:07 +000013476fi
13477
John Criswell47fdd832003-07-14 16:52:07 +000013478 done
13479 ac_cv_prog_CXXCPP=$CXXCPP
13480
13481fi
13482 CXXCPP=$ac_cv_prog_CXXCPP
13483else
13484 ac_cv_prog_CXXCPP=$CXXCPP
13485fi
Reid Spencera773bd52006-08-04 18:18:08 +000013486{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13487echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013488ac_preproc_ok=false
13489for ac_cxx_preproc_warn_flag in '' yes
13490do
13491 # Use a header file that comes with gcc, so configuring glibc
13492 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013493 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13494 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013495 # On the NeXT, cc -E runs the code through the compiler's parser,
13496 # not just through cpp. "Syntax error" is here to catch this case.
13497 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013498/* confdefs.h. */
13499_ACEOF
13500cat confdefs.h >>conftest.$ac_ext
13501cat >>conftest.$ac_ext <<_ACEOF
13502/* end confdefs.h. */
13503#ifdef __STDC__
13504# include <limits.h>
13505#else
13506# include <assert.h>
13507#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013508 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013509_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013510if { (ac_try="$ac_cpp conftest.$ac_ext"
13511case "(($ac_try" in
13512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13513 *) ac_try_echo=$ac_try;;
13514esac
13515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013517 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013518 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013519 rm -f conftest.er1
13520 cat conftest.err >&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013522 (exit $ac_status); } >/dev/null; then
13523 if test -s conftest.err; then
13524 ac_cpp_err=$ac_cxx_preproc_warn_flag
13525 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13526 else
13527 ac_cpp_err=
13528 fi
13529else
13530 ac_cpp_err=yes
13531fi
13532if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013533 :
13534else
13535 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013536sed 's/^/| /' conftest.$ac_ext >&5
13537
John Criswell47fdd832003-07-14 16:52:07 +000013538 # Broken: fails on valid input.
13539continue
13540fi
Reid Spencera773bd52006-08-04 18:18:08 +000013541
John Criswell47fdd832003-07-14 16:52:07 +000013542rm -f conftest.err conftest.$ac_ext
13543
Reid Spencera773bd52006-08-04 18:18:08 +000013544 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013545 # can be detected and how.
13546 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013547/* confdefs.h. */
13548_ACEOF
13549cat confdefs.h >>conftest.$ac_ext
13550cat >>conftest.$ac_ext <<_ACEOF
13551/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013552#include <ac_nonexistent.h>
13553_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013554if { (ac_try="$ac_cpp conftest.$ac_ext"
13555case "(($ac_try" in
13556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13557 *) ac_try_echo=$ac_try;;
13558esac
13559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013561 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013562 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013563 rm -f conftest.er1
13564 cat conftest.err >&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013566 (exit $ac_status); } >/dev/null; then
13567 if test -s conftest.err; then
13568 ac_cpp_err=$ac_cxx_preproc_warn_flag
13569 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13570 else
13571 ac_cpp_err=
13572 fi
13573else
13574 ac_cpp_err=yes
13575fi
13576if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013577 # Broken: success on invalid input.
13578continue
13579else
13580 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013581sed 's/^/| /' conftest.$ac_ext >&5
13582
John Criswell47fdd832003-07-14 16:52:07 +000013583 # Passes both tests.
13584ac_preproc_ok=:
13585break
13586fi
Reid Spencera773bd52006-08-04 18:18:08 +000013587
John Criswell47fdd832003-07-14 16:52:07 +000013588rm -f conftest.err conftest.$ac_ext
13589
13590done
13591# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13592rm -f conftest.err conftest.$ac_ext
13593if $ac_preproc_ok; then
13594 :
13595else
John Criswell0c38eaf2003-09-10 15:17:25 +000013596 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13597See \`config.log' for more details." >&5
13598echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13599See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013600 { (exit 1); exit 1; }; }
13601fi
13602
Reid Spencera773bd52006-08-04 18:18:08 +000013603ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013604ac_cpp='$CXXCPP $CPPFLAGS'
13605ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13606ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13607ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13608
Reid Spencer2706f8c2004-09-19 23:53:36 +000013609fi
13610
John Criswell47fdd832003-07-14 16:52:07 +000013611
13612ac_ext=f
13613ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13614ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13615ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13616if test -n "$ac_tool_prefix"; then
Bill Wendlingebcceee2009-04-18 11:20:33 +000013617 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 +000013618 do
13619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13620set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013621{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013623if test "${ac_cv_prog_F77+set}" = set; then
13624 echo $ECHO_N "(cached) $ECHO_C" >&6
13625else
13626 if test -n "$F77"; then
13627 ac_cv_prog_F77="$F77" # Let the user override the test.
13628else
13629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13630for as_dir in $PATH
13631do
13632 IFS=$as_save_IFS
13633 test -z "$as_dir" && as_dir=.
13634 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013635 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 +000013636 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13638 break 2
13639 fi
13640done
13641done
Reid Spencera773bd52006-08-04 18:18:08 +000013642IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013643
13644fi
13645fi
13646F77=$ac_cv_prog_F77
13647if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013648 { echo "$as_me:$LINENO: result: $F77" >&5
13649echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013650else
Reid Spencera773bd52006-08-04 18:18:08 +000013651 { echo "$as_me:$LINENO: result: no" >&5
13652echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013653fi
13654
Reid Spencera773bd52006-08-04 18:18:08 +000013655
John Criswell47fdd832003-07-14 16:52:07 +000013656 test -n "$F77" && break
13657 done
13658fi
13659if test -z "$F77"; then
13660 ac_ct_F77=$F77
Bill Wendlingebcceee2009-04-18 11:20:33 +000013661 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 +000013662do
13663 # Extract the first word of "$ac_prog", so it can be a program name with args.
13664set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013665{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013667if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13669else
13670 if test -n "$ac_ct_F77"; then
13671 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13672else
13673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13674for as_dir in $PATH
13675do
13676 IFS=$as_save_IFS
13677 test -z "$as_dir" && as_dir=.
13678 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013679 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 +000013680 ac_cv_prog_ac_ct_F77="$ac_prog"
13681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13682 break 2
13683 fi
13684done
13685done
Reid Spencera773bd52006-08-04 18:18:08 +000013686IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013687
13688fi
13689fi
13690ac_ct_F77=$ac_cv_prog_ac_ct_F77
13691if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013692 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13693echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013694else
Reid Spencera773bd52006-08-04 18:18:08 +000013695 { echo "$as_me:$LINENO: result: no" >&5
13696echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013697fi
13698
Reid Spencera773bd52006-08-04 18:18:08 +000013699
John Criswell47fdd832003-07-14 16:52:07 +000013700 test -n "$ac_ct_F77" && break
13701done
13702
Reid Spencera773bd52006-08-04 18:18:08 +000013703 if test "x$ac_ct_F77" = x; then
13704 F77=""
13705 else
13706 case $cross_compiling:$ac_tool_warned in
13707yes:)
13708{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13709whose name does not start with the host triplet. If you think this
13710configuration is useful to you, please write to autoconf@gnu.org." >&5
13711echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13712whose name does not start with the host triplet. If you think this
13713configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13714ac_tool_warned=yes ;;
13715esac
13716 F77=$ac_ct_F77
13717 fi
John Criswell47fdd832003-07-14 16:52:07 +000013718fi
13719
13720
13721# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013722echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013723ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013724{ (ac_try="$ac_compiler --version >&5"
13725case "(($ac_try" in
13726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13727 *) ac_try_echo=$ac_try;;
13728esac
13729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13730 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013731 ac_status=$?
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013734{ (ac_try="$ac_compiler -v >&5"
13735case "(($ac_try" in
13736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737 *) ac_try_echo=$ac_try;;
13738esac
13739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13740 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013741 ac_status=$?
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013744{ (ac_try="$ac_compiler -V >&5"
13745case "(($ac_try" in
13746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13747 *) ac_try_echo=$ac_try;;
13748esac
13749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13750 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013751 ac_status=$?
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013754rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013755
13756# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013757# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013758ac_save_ext=$ac_ext
13759ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013760{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13761echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013762if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13763 echo $ECHO_N "(cached) $ECHO_C" >&6
13764else
13765 cat >conftest.$ac_ext <<_ACEOF
13766 program main
13767#ifndef __GNUC__
13768 choke me
13769#endif
13770
13771 end
13772_ACEOF
13773rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013774if { (ac_try="$ac_compile"
13775case "(($ac_try" in
13776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13777 *) ac_try_echo=$ac_try;;
13778esac
13779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13780 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013781 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013782 grep -v '^ *+' conftest.er1 >conftest.err
13783 rm -f conftest.er1
13784 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013786 (exit $ac_status); } &&
13787 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13788 { (case "(($ac_try" in
13789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13790 *) ac_try_echo=$ac_try;;
13791esac
13792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13793 (eval "$ac_try") 2>&5
13794 ac_status=$?
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); }; } &&
13797 { ac_try='test -s conftest.$ac_objext'
13798 { (case "(($ac_try" in
13799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13800 *) ac_try_echo=$ac_try;;
13801esac
13802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13803 (eval "$ac_try") 2>&5
13804 ac_status=$?
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013807 ac_compiler_gnu=yes
13808else
13809 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013810sed 's/^/| /' conftest.$ac_ext >&5
13811
Reid Spencera773bd52006-08-04 18:18:08 +000013812 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013813fi
Reid Spencera773bd52006-08-04 18:18:08 +000013814
13815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013816ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13817
13818fi
Reid Spencera773bd52006-08-04 18:18:08 +000013819{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13820echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013821ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013822ac_test_FFLAGS=${FFLAGS+set}
13823ac_save_FFLAGS=$FFLAGS
13824FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013825{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13826echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013827if test "${ac_cv_prog_f77_g+set}" = set; then
13828 echo $ECHO_N "(cached) $ECHO_C" >&6
13829else
13830 FFLAGS=-g
13831cat >conftest.$ac_ext <<_ACEOF
13832 program main
13833
13834 end
13835_ACEOF
13836rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013837if { (ac_try="$ac_compile"
13838case "(($ac_try" in
13839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13840 *) ac_try_echo=$ac_try;;
13841esac
13842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13843 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013844 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013845 grep -v '^ *+' conftest.er1 >conftest.err
13846 rm -f conftest.er1
13847 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013849 (exit $ac_status); } &&
13850 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13851 { (case "(($ac_try" in
13852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13853 *) ac_try_echo=$ac_try;;
13854esac
13855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13856 (eval "$ac_try") 2>&5
13857 ac_status=$?
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; } &&
13860 { ac_try='test -s conftest.$ac_objext'
13861 { (case "(($ac_try" in
13862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13863 *) ac_try_echo=$ac_try;;
13864esac
13865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13866 (eval "$ac_try") 2>&5
13867 ac_status=$?
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013870 ac_cv_prog_f77_g=yes
13871else
13872 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013873sed 's/^/| /' conftest.$ac_ext >&5
13874
Reid Spencera773bd52006-08-04 18:18:08 +000013875 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013876fi
Reid Spencera773bd52006-08-04 18:18:08 +000013877
13878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013879
13880fi
Reid Spencera773bd52006-08-04 18:18:08 +000013881{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13882echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013883if test "$ac_test_FFLAGS" = set; then
13884 FFLAGS=$ac_save_FFLAGS
13885elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013886 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013887 FFLAGS="-g -O2"
13888 else
13889 FFLAGS="-g"
13890 fi
13891else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013892 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013893 FFLAGS="-O2"
13894 else
13895 FFLAGS=
13896 fi
13897fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013898
13899G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013900ac_ext=c
13901ac_cpp='$CPP $CPPFLAGS'
13902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13904ac_compiler_gnu=$ac_cv_c_compiler_gnu
13905
13906
13907
13908# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13909
13910# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013911{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13912echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013913if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13914 echo $ECHO_N "(cached) $ECHO_C" >&6
13915else
13916 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013917 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013918
13919 case $build_os in
13920 msdosdjgpp*)
13921 # On DJGPP, this test can blow up pretty badly due to problems in libc
13922 # (any single argument exceeding 2000 bytes causes a buffer overrun
13923 # during glob expansion). Even if it were fixed, the result of this
13924 # check would be larger than it should be.
13925 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13926 ;;
13927
13928 gnu*)
13929 # Under GNU Hurd, this test is not required because there is
13930 # no limit to the length of command line arguments.
13931 # Libtool will interpret -1 as no limit whatsoever
13932 lt_cv_sys_max_cmd_len=-1;
13933 ;;
13934
13935 cygwin* | mingw*)
13936 # On Win9x/ME, this test blows up -- it succeeds, but takes
13937 # about 5 minutes as the teststring grows exponentially.
13938 # Worse, since 9x/ME are not pre-emptively multitasking,
13939 # you end up with a "frozen" computer, even though with patience
13940 # the test eventually succeeds (with a max line length of 256k).
13941 # Instead, let's just punt: use the minimum linelength reported by
13942 # all of the supported platforms: 8192 (on NT/2K/XP).
13943 lt_cv_sys_max_cmd_len=8192;
13944 ;;
13945
Reid Spencer2706f8c2004-09-19 23:53:36 +000013946 amigaos*)
13947 # On AmigaOS with pdksh, this test takes hours, literally.
13948 # So we just punt and use a minimum line length of 8192.
13949 lt_cv_sys_max_cmd_len=8192;
13950 ;;
13951
Reid Spencera773bd52006-08-04 18:18:08 +000013952 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013953 # This has been around since 386BSD, at least. Likely further.
13954 if test -x /sbin/sysctl; then
13955 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13956 elif test -x /usr/sbin/sysctl; then
13957 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13958 else
Reid Spencera773bd52006-08-04 18:18:08 +000013959 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013960 fi
13961 # And add a safety zone
13962 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013963 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013964 ;;
13965
Reid Spencera773bd52006-08-04 18:18:08 +000013966 interix*)
13967 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13968 lt_cv_sys_max_cmd_len=196608
13969 ;;
13970
13971 osf*)
13972 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13973 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13974 # nice to cause kernel panics so lets avoid the loop below.
13975 # First set a reasonable default.
13976 lt_cv_sys_max_cmd_len=16384
13977 #
13978 if test -x /sbin/sysconfig; then
13979 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13980 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13981 esac
13982 fi
13983 ;;
13984 sco3.2v5*)
13985 lt_cv_sys_max_cmd_len=102400
13986 ;;
13987 sysv5* | sco5v6* | sysv4.2uw2*)
13988 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13989 if test -n "$kargmax"; then
13990 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13991 else
13992 lt_cv_sys_max_cmd_len=32768
13993 fi
13994 ;;
13995 *)
John Criswell47fdd832003-07-14 16:52:07 +000013996 # If test is not a shell built-in, we'll probably end up computing a
13997 # maximum length that is only half of the actual maximum length, but
13998 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013999 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14000 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
14001 = "XX$teststring") >/dev/null 2>&1 &&
14002 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000014003 lt_cv_sys_max_cmd_len=$new_result &&
14004 test $i != 17 # 1/2 MB should be enough
14005 do
14006 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000014007 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000014008 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000014009 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000014010 # Add a significant safety factor because C++ compilers can tack on massive
14011 # amounts of additional arguments before passing them to the linker.
14012 # It appears as though 1/2 is a usable value.
14013 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14014 ;;
14015 esac
14016
14017fi
14018
14019if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000014020 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14021echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014022else
Reid Spencera773bd52006-08-04 18:18:08 +000014023 { echo "$as_me:$LINENO: result: none" >&5
14024echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014025fi
14026
14027
14028
14029
14030# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000014031{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14032echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014033if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
14035else
14036
14037# These are sane defaults that work on at least a few old systems.
14038# [They come from Ultrix. What could be older than Ultrix?!! ;)]
14039
14040# Character class describing NM global symbol codes.
14041symcode='[BCDEGRST]'
14042
14043# Regexp to match symbols that can be accessed directly from C.
14044sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14045
John Criswell47fdd832003-07-14 16:52:07 +000014046# Transform an extracted symbol line into a proper C declaration
14047lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14048
14049# Transform an extracted symbol line into symbol name and symbol address
14050lt_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'"
14051
14052# Define system-specific variables.
14053case $host_os in
14054aix*)
14055 symcode='[BCDT]'
14056 ;;
14057cygwin* | mingw* | pw32*)
14058 symcode='[ABCDGISTW]'
14059 ;;
14060hpux*) # Its linker distinguishes data from code symbols
14061 if test "$host_cpu" = ia64; then
14062 symcode='[ABCDEGRST]'
14063 fi
14064 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14065 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'"
14066 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014067linux*)
14068 if test "$host_cpu" = ia64; then
14069 symcode='[ABCDGIRSTW]'
14070 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14071 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'"
14072 fi
14073 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014074irix* | nonstopux*)
14075 symcode='[BCDEGRST]'
14076 ;;
14077osf*)
14078 symcode='[BCDEGQRST]'
14079 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014080solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014081 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000014082 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014083sco3.2v5*)
14084 symcode='[DT]'
14085 ;;
14086sysv4.2uw2*)
14087 symcode='[DT]'
14088 ;;
14089sysv5* | sco5v6* | unixware* | OpenUNIX*)
14090 symcode='[ABDT]'
14091 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014092sysv4)
14093 symcode='[DFNSTU]'
14094 ;;
14095esac
14096
14097# Handle CRLF in mingw tool chain
14098opt_cr=
14099case $build_os in
14100mingw*)
14101 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14102 ;;
14103esac
14104
14105# If we're using GNU nm, then use its standard symbol codes.
14106case `$NM -V 2>&1` in
14107*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014108 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000014109esac
14110
14111# Try without a prefix undercore, then with it.
14112for ac_symprfx in "" "_"; do
14113
Reid Spencera773bd52006-08-04 18:18:08 +000014114 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14115 symxfrm="\\1 $ac_symprfx\\2 \\2"
14116
John Criswell47fdd832003-07-14 16:52:07 +000014117 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000014118 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 +000014119
14120 # Check to see that the pipe works correctly.
14121 pipe_works=no
14122
14123 rm -f conftest*
14124 cat > conftest.$ac_ext <<EOF
14125#ifdef __cplusplus
14126extern "C" {
14127#endif
14128char nm_test_var;
14129void nm_test_func(){}
14130#ifdef __cplusplus
14131}
14132#endif
14133int main(){nm_test_var='a';nm_test_func();return(0);}
14134EOF
14135
14136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14137 (eval $ac_compile) 2>&5
14138 ac_status=$?
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); }; then
14141 # Now try to grab the symbols.
14142 nlist=conftest.nm
14143 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14144 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14145 ac_status=$?
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); } && test -s "$nlist"; then
14148 # Try sorting and uniquifying the output.
14149 if sort "$nlist" | uniq > "$nlist"T; then
14150 mv -f "$nlist"T "$nlist"
14151 else
14152 rm -f "$nlist"T
14153 fi
14154
14155 # Make sure that we snagged all the symbols we need.
14156 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14157 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14158 cat <<EOF > conftest.$ac_ext
14159#ifdef __cplusplus
14160extern "C" {
14161#endif
14162
14163EOF
14164 # Now generate the symbol file.
14165 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14166
14167 cat <<EOF >> conftest.$ac_ext
14168#if defined (__STDC__) && __STDC__
14169# define lt_ptr_t void *
14170#else
14171# define lt_ptr_t char *
14172# define const
14173#endif
14174
14175/* The mapping between symbol names and symbols. */
14176const struct {
14177 const char *name;
14178 lt_ptr_t address;
14179}
14180lt_preloaded_symbols[] =
14181{
14182EOF
14183 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14184 cat <<\EOF >> conftest.$ac_ext
14185 {0, (lt_ptr_t) 0}
14186};
14187
14188#ifdef __cplusplus
14189}
14190#endif
14191EOF
14192 # Now try linking the two files.
14193 mv conftest.$ac_objext conftstm.$ac_objext
14194 lt_save_LIBS="$LIBS"
14195 lt_save_CFLAGS="$CFLAGS"
14196 LIBS="conftstm.$ac_objext"
14197 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14199 (eval $ac_link) 2>&5
14200 ac_status=$?
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14203 pipe_works=yes
14204 fi
14205 LIBS="$lt_save_LIBS"
14206 CFLAGS="$lt_save_CFLAGS"
14207 else
14208 echo "cannot find nm_test_func in $nlist" >&5
14209 fi
14210 else
14211 echo "cannot find nm_test_var in $nlist" >&5
14212 fi
14213 else
14214 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14215 fi
14216 else
14217 echo "$progname: failed program was:" >&5
14218 cat conftest.$ac_ext >&5
14219 fi
14220 rm -f conftest* conftst*
14221
14222 # Do not use the global_symbol_pipe unless it works.
14223 if test "$pipe_works" = yes; then
14224 break
14225 else
14226 lt_cv_sys_global_symbol_pipe=
14227 fi
14228done
14229
14230fi
14231
14232if test -z "$lt_cv_sys_global_symbol_pipe"; then
14233 lt_cv_sys_global_symbol_to_cdecl=
14234fi
14235if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014236 { echo "$as_me:$LINENO: result: failed" >&5
14237echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014238else
Reid Spencera773bd52006-08-04 18:18:08 +000014239 { echo "$as_me:$LINENO: result: ok" >&5
14240echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014241fi
14242
Reid Spencera773bd52006-08-04 18:18:08 +000014243{ echo "$as_me:$LINENO: checking for objdir" >&5
14244echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014245if test "${lt_cv_objdir+set}" = set; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14247else
14248 rm -f .libs 2>/dev/null
14249mkdir .libs 2>/dev/null
14250if test -d .libs; then
14251 lt_cv_objdir=.libs
14252else
14253 # MS-DOS does not allow filenames that begin with a dot.
14254 lt_cv_objdir=_libs
14255fi
14256rmdir .libs 2>/dev/null
14257fi
Reid Spencera773bd52006-08-04 18:18:08 +000014258{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14259echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014260objdir=$lt_cv_objdir
14261
14262
14263
14264
14265
14266case $host_os in
14267aix3*)
14268 # AIX sometimes has problems with the GCC collect2 program. For some
14269 # reason, if we set the COLLECT_NAMES environment variable, the problems
14270 # vanish in a puff of smoke.
14271 if test "X${COLLECT_NAMES+set}" != Xset; then
14272 COLLECT_NAMES=
14273 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000014274 fi
14275 ;;
14276esac
14277
John Criswell47fdd832003-07-14 16:52:07 +000014278# Sed substitution that helps us do robust quoting. It backslashifies
14279# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000014280Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000014281sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14282
14283# Same as above, but do not quote variable references.
14284double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14285
14286# Sed substitution to delay expansion of an escaped shell variable in a
14287# double_quote_subst'ed string.
14288delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14289
14290# Sed substitution to avoid accidental globbing in evaled expressions
14291no_glob_subst='s/\*/\\\*/g'
14292
14293# Constants:
14294rm="rm -f"
14295
14296# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000014297default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000014298can_build_shared=yes
14299
Reid Spencera773bd52006-08-04 18:18:08 +000014300# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000014301# which needs '.lib').
14302libext=a
14303ltmain="$ac_aux_dir/ltmain.sh"
14304ofile="$default_ofile"
14305with_gnu_ld="$lt_cv_prog_gnu_ld"
14306
14307if test -n "$ac_tool_prefix"; then
14308 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14309set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014310{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014312if test "${ac_cv_prog_AR+set}" = set; then
14313 echo $ECHO_N "(cached) $ECHO_C" >&6
14314else
14315 if test -n "$AR"; then
14316 ac_cv_prog_AR="$AR" # Let the user override the test.
14317else
14318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14319for as_dir in $PATH
14320do
14321 IFS=$as_save_IFS
14322 test -z "$as_dir" && as_dir=.
14323 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014324 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 +000014325 ac_cv_prog_AR="${ac_tool_prefix}ar"
14326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14327 break 2
14328 fi
14329done
14330done
Reid Spencera773bd52006-08-04 18:18:08 +000014331IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014332
14333fi
14334fi
14335AR=$ac_cv_prog_AR
14336if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014337 { echo "$as_me:$LINENO: result: $AR" >&5
14338echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014339else
Reid Spencera773bd52006-08-04 18:18:08 +000014340 { echo "$as_me:$LINENO: result: no" >&5
14341echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014342fi
14343
Reid Spencera773bd52006-08-04 18:18:08 +000014344
John Criswell47fdd832003-07-14 16:52:07 +000014345fi
14346if test -z "$ac_cv_prog_AR"; then
14347 ac_ct_AR=$AR
14348 # Extract the first word of "ar", so it can be a program name with args.
14349set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014350{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014352if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14353 echo $ECHO_N "(cached) $ECHO_C" >&6
14354else
14355 if test -n "$ac_ct_AR"; then
14356 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14357else
14358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14359for as_dir in $PATH
14360do
14361 IFS=$as_save_IFS
14362 test -z "$as_dir" && as_dir=.
14363 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014364 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 +000014365 ac_cv_prog_ac_ct_AR="ar"
14366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14367 break 2
14368 fi
14369done
14370done
Reid Spencera773bd52006-08-04 18:18:08 +000014371IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014372
John Criswell47fdd832003-07-14 16:52:07 +000014373fi
14374fi
14375ac_ct_AR=$ac_cv_prog_ac_ct_AR
14376if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014377 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14378echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014379else
Reid Spencera773bd52006-08-04 18:18:08 +000014380 { echo "$as_me:$LINENO: result: no" >&5
14381echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014382fi
14383
Reid Spencera773bd52006-08-04 18:18:08 +000014384 if test "x$ac_ct_AR" = x; then
14385 AR="false"
14386 else
14387 case $cross_compiling:$ac_tool_warned in
14388yes:)
14389{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14390whose name does not start with the host triplet. If you think this
14391configuration is useful to you, please write to autoconf@gnu.org." >&5
14392echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14393whose name does not start with the host triplet. If you think this
14394configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14395ac_tool_warned=yes ;;
14396esac
14397 AR=$ac_ct_AR
14398 fi
John Criswell47fdd832003-07-14 16:52:07 +000014399else
14400 AR="$ac_cv_prog_AR"
14401fi
14402
John Criswell7a73b802003-06-30 21:59:07 +000014403if test -n "$ac_tool_prefix"; then
14404 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14405set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014406{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014408if test "${ac_cv_prog_RANLIB+set}" = set; then
14409 echo $ECHO_N "(cached) $ECHO_C" >&6
14410else
14411 if test -n "$RANLIB"; then
14412 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14413else
14414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14415for as_dir in $PATH
14416do
14417 IFS=$as_save_IFS
14418 test -z "$as_dir" && as_dir=.
14419 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014420 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 +000014421 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14423 break 2
14424 fi
14425done
14426done
Reid Spencera773bd52006-08-04 18:18:08 +000014427IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014428
14429fi
14430fi
14431RANLIB=$ac_cv_prog_RANLIB
14432if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014433 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14434echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014435else
Reid Spencera773bd52006-08-04 18:18:08 +000014436 { echo "$as_me:$LINENO: result: no" >&5
14437echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014438fi
14439
Reid Spencera773bd52006-08-04 18:18:08 +000014440
John Criswell7a73b802003-06-30 21:59:07 +000014441fi
14442if test -z "$ac_cv_prog_RANLIB"; then
14443 ac_ct_RANLIB=$RANLIB
14444 # Extract the first word of "ranlib", so it can be a program name with args.
14445set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014446{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014448if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14449 echo $ECHO_N "(cached) $ECHO_C" >&6
14450else
14451 if test -n "$ac_ct_RANLIB"; then
14452 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14453else
14454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14455for as_dir in $PATH
14456do
14457 IFS=$as_save_IFS
14458 test -z "$as_dir" && as_dir=.
14459 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014460 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 +000014461 ac_cv_prog_ac_ct_RANLIB="ranlib"
14462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14463 break 2
14464 fi
14465done
14466done
Reid Spencera773bd52006-08-04 18:18:08 +000014467IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014468
John Criswell7a73b802003-06-30 21:59:07 +000014469fi
14470fi
14471ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14472if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014473 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14474echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014475else
Reid Spencera773bd52006-08-04 18:18:08 +000014476 { echo "$as_me:$LINENO: result: no" >&5
14477echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014478fi
14479
Reid Spencera773bd52006-08-04 18:18:08 +000014480 if test "x$ac_ct_RANLIB" = x; then
14481 RANLIB=":"
14482 else
14483 case $cross_compiling:$ac_tool_warned in
14484yes:)
14485{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14486whose name does not start with the host triplet. If you think this
14487configuration is useful to you, please write to autoconf@gnu.org." >&5
14488echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14489whose name does not start with the host triplet. If you think this
14490configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14491ac_tool_warned=yes ;;
14492esac
14493 RANLIB=$ac_ct_RANLIB
14494 fi
John Criswell7a73b802003-06-30 21:59:07 +000014495else
14496 RANLIB="$ac_cv_prog_RANLIB"
14497fi
14498
14499if test -n "$ac_tool_prefix"; then
14500 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14501set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014502{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014504if test "${ac_cv_prog_STRIP+set}" = set; then
14505 echo $ECHO_N "(cached) $ECHO_C" >&6
14506else
14507 if test -n "$STRIP"; then
14508 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14509else
14510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14511for as_dir in $PATH
14512do
14513 IFS=$as_save_IFS
14514 test -z "$as_dir" && as_dir=.
14515 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014516 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 +000014517 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14519 break 2
14520 fi
14521done
14522done
Reid Spencera773bd52006-08-04 18:18:08 +000014523IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014524
14525fi
14526fi
14527STRIP=$ac_cv_prog_STRIP
14528if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014529 { echo "$as_me:$LINENO: result: $STRIP" >&5
14530echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014531else
Reid Spencera773bd52006-08-04 18:18:08 +000014532 { echo "$as_me:$LINENO: result: no" >&5
14533echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014534fi
14535
Reid Spencera773bd52006-08-04 18:18:08 +000014536
John Criswell7a73b802003-06-30 21:59:07 +000014537fi
14538if test -z "$ac_cv_prog_STRIP"; then
14539 ac_ct_STRIP=$STRIP
14540 # Extract the first word of "strip", so it can be a program name with args.
14541set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014542{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014544if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14545 echo $ECHO_N "(cached) $ECHO_C" >&6
14546else
14547 if test -n "$ac_ct_STRIP"; then
14548 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14549else
14550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14551for as_dir in $PATH
14552do
14553 IFS=$as_save_IFS
14554 test -z "$as_dir" && as_dir=.
14555 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014556 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 +000014557 ac_cv_prog_ac_ct_STRIP="strip"
14558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14559 break 2
14560 fi
14561done
14562done
Reid Spencera773bd52006-08-04 18:18:08 +000014563IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014564
John Criswell7a73b802003-06-30 21:59:07 +000014565fi
14566fi
14567ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14568if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014569 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14570echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014571else
Reid Spencera773bd52006-08-04 18:18:08 +000014572 { echo "$as_me:$LINENO: result: no" >&5
14573echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014574fi
14575
Reid Spencera773bd52006-08-04 18:18:08 +000014576 if test "x$ac_ct_STRIP" = x; then
14577 STRIP=":"
14578 else
14579 case $cross_compiling:$ac_tool_warned in
14580yes:)
14581{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14582whose name does not start with the host triplet. If you think this
14583configuration is useful to you, please write to autoconf@gnu.org." >&5
14584echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14585whose name does not start with the host triplet. If you think this
14586configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14587ac_tool_warned=yes ;;
14588esac
14589 STRIP=$ac_ct_STRIP
14590 fi
John Criswell7a73b802003-06-30 21:59:07 +000014591else
14592 STRIP="$ac_cv_prog_STRIP"
14593fi
14594
14595
John Criswell7a73b802003-06-30 21:59:07 +000014596old_CC="$CC"
14597old_CFLAGS="$CFLAGS"
14598
14599# Set sane defaults for various variables
14600test -z "$AR" && AR=ar
14601test -z "$AR_FLAGS" && AR_FLAGS=cru
14602test -z "$AS" && AS=as
14603test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014604test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014605test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014606test -z "$DLLTOOL" && DLLTOOL=dlltool
14607test -z "$LD" && LD=ld
14608test -z "$LN_S" && LN_S="ln -s"
14609test -z "$MAGIC_CMD" && MAGIC_CMD=file
14610test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014611test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014612test -z "$OBJDUMP" && OBJDUMP=objdump
14613test -z "$RANLIB" && RANLIB=:
14614test -z "$STRIP" && STRIP=:
14615test -z "$ac_objext" && ac_objext=o
14616
John Criswell7a73b802003-06-30 21:59:07 +000014617# Determine commands to create old-style static archives.
14618old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14619old_postinstall_cmds='chmod 644 $oldlib'
14620old_postuninstall_cmds=
14621
14622if test -n "$RANLIB"; then
14623 case $host_os in
14624 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014625 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014626 ;;
14627 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014628 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014629 ;;
14630 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014631 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014632fi
14633
Reid Spencera773bd52006-08-04 18:18:08 +000014634for cc_temp in $compiler""; do
14635 case $cc_temp in
14636 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14637 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14638 \-*) ;;
14639 *) break;;
14640 esac
14641done
14642cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14643
Reid Spencer2706f8c2004-09-19 23:53:36 +000014644
John Criswell47fdd832003-07-14 16:52:07 +000014645# Only perform the check for file, if the check method requires it
14646case $deplibs_check_method in
14647file_magic*)
14648 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014649 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14650echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014651if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14652 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014653else
John Criswell47fdd832003-07-14 16:52:07 +000014654 case $MAGIC_CMD in
14655[\\/*] | ?:[\\/]*)
14656 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14657 ;;
14658*)
14659 lt_save_MAGIC_CMD="$MAGIC_CMD"
14660 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14661 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14662 for ac_dir in $ac_dummy; do
14663 IFS="$lt_save_ifs"
14664 test -z "$ac_dir" && ac_dir=.
14665 if test -f $ac_dir/${ac_tool_prefix}file; then
14666 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14667 if test -n "$file_magic_test_file"; then
14668 case $deplibs_check_method in
14669 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014670 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014671 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14672 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14673 $EGREP "$file_magic_regex" > /dev/null; then
14674 :
14675 else
14676 cat <<EOF 1>&2
14677
14678*** Warning: the command libtool uses to detect shared libraries,
14679*** $file_magic_cmd, produces output that libtool cannot recognize.
14680*** The result is that libtool may fail to recognize shared libraries
14681*** as such. This will affect the creation of libtool libraries that
14682*** depend on shared libraries, but programs linked with such libtool
14683*** libraries will work regardless of this problem. Nevertheless, you
14684*** may want to report the problem to your system manager and/or to
14685*** bug-libtool@gnu.org
14686
14687EOF
14688 fi ;;
14689 esac
14690 fi
14691 break
14692 fi
14693 done
14694 IFS="$lt_save_ifs"
14695 MAGIC_CMD="$lt_save_MAGIC_CMD"
14696 ;;
14697esac
John Criswell7a73b802003-06-30 21:59:07 +000014698fi
John Criswell7a73b802003-06-30 21:59:07 +000014699
John Criswell47fdd832003-07-14 16:52:07 +000014700MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14701if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014702 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14703echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014704else
Reid Spencera773bd52006-08-04 18:18:08 +000014705 { echo "$as_me:$LINENO: result: no" >&5
14706echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014707fi
John Criswell7a73b802003-06-30 21:59:07 +000014708
John Criswell47fdd832003-07-14 16:52:07 +000014709if test -z "$lt_cv_path_MAGIC_CMD"; then
14710 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014711 { echo "$as_me:$LINENO: checking for file" >&5
14712echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014713if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14714 echo $ECHO_N "(cached) $ECHO_C" >&6
14715else
14716 case $MAGIC_CMD in
14717[\\/*] | ?:[\\/]*)
14718 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14719 ;;
14720*)
14721 lt_save_MAGIC_CMD="$MAGIC_CMD"
14722 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14723 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14724 for ac_dir in $ac_dummy; do
14725 IFS="$lt_save_ifs"
14726 test -z "$ac_dir" && ac_dir=.
14727 if test -f $ac_dir/file; then
14728 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14729 if test -n "$file_magic_test_file"; then
14730 case $deplibs_check_method in
14731 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014732 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014733 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14734 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14735 $EGREP "$file_magic_regex" > /dev/null; then
14736 :
14737 else
14738 cat <<EOF 1>&2
14739
14740*** Warning: the command libtool uses to detect shared libraries,
14741*** $file_magic_cmd, produces output that libtool cannot recognize.
14742*** The result is that libtool may fail to recognize shared libraries
14743*** as such. This will affect the creation of libtool libraries that
14744*** depend on shared libraries, but programs linked with such libtool
14745*** libraries will work regardless of this problem. Nevertheless, you
14746*** may want to report the problem to your system manager and/or to
14747*** bug-libtool@gnu.org
14748
14749EOF
14750 fi ;;
14751 esac
14752 fi
14753 break
14754 fi
14755 done
14756 IFS="$lt_save_ifs"
14757 MAGIC_CMD="$lt_save_MAGIC_CMD"
14758 ;;
14759esac
14760fi
14761
14762MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14763if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014764 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14765echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014766else
Reid Spencera773bd52006-08-04 18:18:08 +000014767 { echo "$as_me:$LINENO: result: no" >&5
14768echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014769fi
14770
14771 else
14772 MAGIC_CMD=:
14773 fi
14774fi
14775
14776 fi
14777 ;;
14778esac
14779
Reid Spencer17795972004-11-18 09:47:37 +000014780enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014781enable_win32_dll=no
14782
Reid Spencera773bd52006-08-04 18:18:08 +000014783# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014784if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014785 enableval=$enable_libtool_lock;
14786fi
John Criswell47fdd832003-07-14 16:52:07 +000014787
John Criswell47fdd832003-07-14 16:52:07 +000014788test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14789
John Criswell7a73b802003-06-30 21:59:07 +000014790
Reid Spencera773bd52006-08-04 18:18:08 +000014791# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014792if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014793 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014794else
14795 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014796fi
14797
John Criswell7a73b802003-06-30 21:59:07 +000014798test -z "$pic_mode" && pic_mode=default
14799
John Criswell47fdd832003-07-14 16:52:07 +000014800# Use C for the default configuration in the libtool script
14801tagname=
14802lt_save_CC="$CC"
14803ac_ext=c
14804ac_cpp='$CPP $CPPFLAGS'
14805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14807ac_compiler_gnu=$ac_cv_c_compiler_gnu
14808
14809
14810# Source file extension for C test sources.
14811ac_ext=c
14812
14813# Object file extension for compiled C test sources.
14814objext=o
14815objext=$objext
14816
14817# Code to be used in simple compile tests
14818lt_simple_compile_test_code="int some_variable = 0;\n"
14819
14820# Code to be used in simple link tests
14821lt_simple_link_test_code='int main(){return(0);}\n'
14822
14823
14824# If no C compiler was specified, use CC.
14825LTCC=${LTCC-"$CC"}
14826
Reid Spencera773bd52006-08-04 18:18:08 +000014827# If no C compiler flags were specified, use CFLAGS.
14828LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14829
John Criswell47fdd832003-07-14 16:52:07 +000014830# Allow CC to be a program name with arguments.
14831compiler=$CC
14832
14833
Reid Spencera773bd52006-08-04 18:18:08 +000014834# save warnings/boilerplate of simple test code
14835ac_outfile=conftest.$ac_objext
14836printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14837eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14838_lt_compiler_boilerplate=`cat conftest.err`
14839$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014840
Reid Spencera773bd52006-08-04 18:18:08 +000014841ac_outfile=conftest.$ac_objext
14842printf "$lt_simple_link_test_code" >conftest.$ac_ext
14843eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14844_lt_linker_boilerplate=`cat conftest.err`
14845$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014846
14847
John Criswell47fdd832003-07-14 16:52:07 +000014848
14849lt_prog_compiler_no_builtin_flag=
14850
14851if test "$GCC" = yes; then
14852 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14853
Reid Spencer2706f8c2004-09-19 23:53:36 +000014854
Reid Spencera773bd52006-08-04 18:18:08 +000014855{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14856echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014857if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14858 echo $ECHO_N "(cached) $ECHO_C" >&6
14859else
14860 lt_cv_prog_compiler_rtti_exceptions=no
14861 ac_outfile=conftest.$ac_objext
14862 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14863 lt_compiler_flag="-fno-rtti -fno-exceptions"
14864 # Insert the option either (1) after the last *FLAGS variable, or
14865 # (2) before a word containing "conftest.", or (3) at the end.
14866 # Note that $ac_compile itself does not contain backslashes and begins
14867 # with a dollar sign (not a hyphen), so the echo should work correctly.
14868 # The option is referenced via a variable to avoid confusing sed.
14869 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014870 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014871 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14872 -e 's:$: $lt_compiler_flag:'`
Edward O'Callaghan2b19d692009-10-14 00:44:50 +000014873 (eval echo "\"\$as_me:14873: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014874 (eval "$lt_compile" 2>conftest.err)
14875 ac_status=$?
14876 cat conftest.err >&5
Edward O'Callaghan2b19d692009-10-14 00:44:50 +000014877 echo "$as_me:14877: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014878 if (exit $ac_status) && test -s "$ac_outfile"; then
14879 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014880 # So say no if there are warnings other than the usual output.
14881 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14882 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14883 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014884 lt_cv_prog_compiler_rtti_exceptions=yes
14885 fi
14886 fi
14887 $rm conftest*
14888
14889fi
Reid Spencera773bd52006-08-04 18:18:08 +000014890{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14891echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014892
14893if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14894 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14895else
14896 :
14897fi
14898
14899fi
14900
14901lt_prog_compiler_wl=
14902lt_prog_compiler_pic=
14903lt_prog_compiler_static=
14904
Reid Spencera773bd52006-08-04 18:18:08 +000014905{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14906echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014907
14908 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014909 lt_prog_compiler_wl='-Wl,'
14910 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014911
14912 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014913 aix*)
14914 # All AIX code is PIC.
14915 if test "$host_cpu" = ia64; then
14916 # AIX 5 now supports IA64 processor
14917 lt_prog_compiler_static='-Bstatic'
14918 fi
John Criswell7a73b802003-06-30 21:59:07 +000014919 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014920
John Criswell7a73b802003-06-30 21:59:07 +000014921 amigaos*)
14922 # FIXME: we need at least 68020 code to build shared libraries, but
14923 # adding the `-m68020' flag to GCC prevents building anything better,
14924 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014925 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014926 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014927
14928 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014929 # PIC is the default for these OSes.
14930 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014931
14932 mingw* | pw32* | os2*)
14933 # This hack is so that the source file can tell whether it is being
14934 # built for inclusion in a dll (and should export symbols for example).
14935 lt_prog_compiler_pic='-DDLL_EXPORT'
14936 ;;
14937
John Criswell7a73b802003-06-30 21:59:07 +000014938 darwin* | rhapsody*)
14939 # PIC is the default on this platform
14940 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014941 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014942 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014943
Reid Spencera773bd52006-08-04 18:18:08 +000014944 interix3*)
14945 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14946 # Instead, we relocate shared libraries at runtime.
14947 ;;
14948
John Criswell47fdd832003-07-14 16:52:07 +000014949 msdosdjgpp*)
14950 # Just because we use GCC doesn't mean we suddenly get shared libraries
14951 # on systems that don't support them.
14952 lt_prog_compiler_can_build_shared=no
14953 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014954 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014955
John Criswell7a73b802003-06-30 21:59:07 +000014956 sysv4*MP*)
14957 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014958 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014959 fi
14960 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014961
14962 hpux*)
14963 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14964 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014965 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014966 hppa*64*|ia64*)
14967 # +Z the default
14968 ;;
14969 *)
14970 lt_prog_compiler_pic='-fPIC'
14971 ;;
14972 esac
14973 ;;
14974
John Criswell7a73b802003-06-30 21:59:07 +000014975 *)
John Criswell47fdd832003-07-14 16:52:07 +000014976 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014977 ;;
14978 esac
14979 else
John Criswell47fdd832003-07-14 16:52:07 +000014980 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014981 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014982 aix*)
14983 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014984 if test "$host_cpu" = ia64; then
14985 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014986 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014987 else
John Criswell47fdd832003-07-14 16:52:07 +000014988 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014989 fi
14990 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014991 darwin*)
14992 # PIC is the default on this platform
14993 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014994 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014995 xlc*)
14996 lt_prog_compiler_pic='-qnocommon'
14997 lt_prog_compiler_wl='-Wl,'
14998 ;;
14999 esac
15000 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015001
John Criswell47fdd832003-07-14 16:52:07 +000015002 mingw* | pw32* | os2*)
15003 # This hack is so that the source file can tell whether it is being
15004 # built for inclusion in a dll (and should export symbols for example).
15005 lt_prog_compiler_pic='-DDLL_EXPORT'
15006 ;;
15007
John Criswell7a73b802003-06-30 21:59:07 +000015008 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000015009 lt_prog_compiler_wl='-Wl,'
15010 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15011 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000015012 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000015013 hppa*64*|ia64*)
15014 # +Z the default
15015 ;;
15016 *)
15017 lt_prog_compiler_pic='+Z'
15018 ;;
15019 esac
15020 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15021 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000015022 ;;
15023
John Criswell47fdd832003-07-14 16:52:07 +000015024 irix5* | irix6* | nonstopux*)
15025 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000015026 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000015027 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000015028 ;;
15029
15030 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000015031 lt_prog_compiler_pic='-KPIC'
15032 lt_prog_compiler_static='-Bstatic'
15033 ;;
15034
15035 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000015036 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015037 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000015038 lt_prog_compiler_wl='-Wl,'
15039 lt_prog_compiler_pic='-KPIC'
15040 lt_prog_compiler_static='-static'
15041 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015042 pgcc* | pgf77* | pgf90* | pgf95*)
15043 # Portland Group compilers (*not* the Pentium gcc compiler,
15044 # which looks to be a dead project)
15045 lt_prog_compiler_wl='-Wl,'
15046 lt_prog_compiler_pic='-fpic'
15047 lt_prog_compiler_static='-Bstatic'
15048 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015049 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000015050 lt_prog_compiler_wl='-Wl,'
15051 # All Alpha code is PIC.
15052 lt_prog_compiler_static='-non_shared'
15053 ;;
15054 esac
John Criswell7a73b802003-06-30 21:59:07 +000015055 ;;
15056
15057 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000015058 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000015059 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000015060 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000015061 ;;
15062
John Criswell7a73b802003-06-30 21:59:07 +000015063 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015064 lt_prog_compiler_pic='-KPIC'
15065 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000015066 case $cc_basename in
15067 f77* | f90* | f95*)
15068 lt_prog_compiler_wl='-Qoption ld ';;
15069 *)
15070 lt_prog_compiler_wl='-Wl,';;
15071 esac
John Criswell7a73b802003-06-30 21:59:07 +000015072 ;;
15073
15074 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000015075 lt_prog_compiler_wl='-Qoption ld '
15076 lt_prog_compiler_pic='-PIC'
15077 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015078 ;;
15079
Reid Spencera773bd52006-08-04 18:18:08 +000015080 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000015081 lt_prog_compiler_wl='-Wl,'
15082 lt_prog_compiler_pic='-KPIC'
15083 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015084 ;;
15085
15086 sysv4*MP*)
15087 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000015088 lt_prog_compiler_pic='-Kconform_pic'
15089 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015090 fi
15091 ;;
15092
Reid Spencera773bd52006-08-04 18:18:08 +000015093 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15094 lt_prog_compiler_wl='-Wl,'
15095 lt_prog_compiler_pic='-KPIC'
15096 lt_prog_compiler_static='-Bstatic'
15097 ;;
15098
15099 unicos*)
15100 lt_prog_compiler_wl='-Wl,'
15101 lt_prog_compiler_can_build_shared=no
15102 ;;
15103
John Criswell47fdd832003-07-14 16:52:07 +000015104 uts4*)
15105 lt_prog_compiler_pic='-pic'
15106 lt_prog_compiler_static='-Bstatic'
15107 ;;
15108
John Criswell7a73b802003-06-30 21:59:07 +000015109 *)
John Criswell47fdd832003-07-14 16:52:07 +000015110 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015111 ;;
15112 esac
15113 fi
15114
Reid Spencera773bd52006-08-04 18:18:08 +000015115{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15116echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015117
John Criswell47fdd832003-07-14 16:52:07 +000015118#
15119# Check to make sure the PIC flag actually works.
15120#
15121if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015122
Reid Spencera773bd52006-08-04 18:18:08 +000015123{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15124echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015125if test "${lt_prog_compiler_pic_works+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_prog_compiler_pic_works=no
15129 ac_outfile=conftest.$ac_objext
15130 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15131 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15132 # Insert the option either (1) after the last *FLAGS variable, or
15133 # (2) before a word containing "conftest.", or (3) at the end.
15134 # Note that $ac_compile itself does not contain backslashes and begins
15135 # with a dollar sign (not a hyphen), so the echo should work correctly.
15136 # The option is referenced via a variable to avoid confusing sed.
15137 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015138 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015139 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15140 -e 's:$: $lt_compiler_flag:'`
Edward O'Callaghan2b19d692009-10-14 00:44:50 +000015141 (eval echo "\"\$as_me:15141: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015142 (eval "$lt_compile" 2>conftest.err)
15143 ac_status=$?
15144 cat conftest.err >&5
Edward O'Callaghan2b19d692009-10-14 00:44:50 +000015145 echo "$as_me:15145: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015146 if (exit $ac_status) && test -s "$ac_outfile"; then
15147 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000015148 # So say no if there are warnings other than the usual output.
15149 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15150 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15151 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015152 lt_prog_compiler_pic_works=yes
15153 fi
15154 fi
15155 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015156
John Criswell47fdd832003-07-14 16:52:07 +000015157fi
Reid Spencera773bd52006-08-04 18:18:08 +000015158{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15159echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015160
John Criswell47fdd832003-07-14 16:52:07 +000015161if test x"$lt_prog_compiler_pic_works" = xyes; then
15162 case $lt_prog_compiler_pic in
15163 "" | " "*) ;;
15164 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15165 esac
John Criswell7a73b802003-06-30 21:59:07 +000015166else
John Criswell47fdd832003-07-14 16:52:07 +000015167 lt_prog_compiler_pic=
15168 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015169fi
15170
John Criswell7a73b802003-06-30 21:59:07 +000015171fi
Reid Spencera773bd52006-08-04 18:18:08 +000015172case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015173 # For platforms which do not support PIC, -DPIC is meaningless:
15174 *djgpp*)
15175 lt_prog_compiler_pic=
15176 ;;
15177 *)
15178 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15179 ;;
15180esac
John Criswell7a73b802003-06-30 21:59:07 +000015181
Reid Spencera773bd52006-08-04 18:18:08 +000015182#
15183# Check to make sure the static flag actually works.
15184#
15185wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15186{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15187echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15188if test "${lt_prog_compiler_static_works+set}" = set; then
15189 echo $ECHO_N "(cached) $ECHO_C" >&6
15190else
15191 lt_prog_compiler_static_works=no
15192 save_LDFLAGS="$LDFLAGS"
15193 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15194 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15195 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15196 # The linker can only warn and ignore the option if not recognized
15197 # So say no if there are warnings
15198 if test -s conftest.err; then
15199 # Append any errors to the config.log.
15200 cat conftest.err 1>&5
15201 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15202 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15203 if diff conftest.exp conftest.er2 >/dev/null; then
15204 lt_prog_compiler_static_works=yes
15205 fi
15206 else
15207 lt_prog_compiler_static_works=yes
15208 fi
15209 fi
15210 $rm conftest*
15211 LDFLAGS="$save_LDFLAGS"
15212
15213fi
15214{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15215echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15216
15217if test x"$lt_prog_compiler_static_works" = xyes; then
15218 :
15219else
15220 lt_prog_compiler_static=
15221fi
15222
15223
15224{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15225echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015226if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015227 echo $ECHO_N "(cached) $ECHO_C" >&6
15228else
John Criswell47fdd832003-07-14 16:52:07 +000015229 lt_cv_prog_compiler_c_o=no
15230 $rm -r conftest 2>/dev/null
15231 mkdir conftest
15232 cd conftest
15233 mkdir out
15234 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015235
John Criswell47fdd832003-07-14 16:52:07 +000015236 lt_compiler_flag="-o out/conftest2.$ac_objext"
15237 # Insert the option either (1) after the last *FLAGS variable, or
15238 # (2) before a word containing "conftest.", or (3) at the end.
15239 # Note that $ac_compile itself does not contain backslashes and begins
15240 # with a dollar sign (not a hyphen), so the echo should work correctly.
15241 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015242 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015243 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15244 -e 's:$: $lt_compiler_flag:'`
Edward O'Callaghan2b19d692009-10-14 00:44:50 +000015245 (eval echo "\"\$as_me:15245: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015246 (eval "$lt_compile" 2>out/conftest.err)
15247 ac_status=$?
15248 cat out/conftest.err >&5
Edward O'Callaghan2b19d692009-10-14 00:44:50 +000015249 echo "$as_me:15249: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015250 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15251 then
15252 # The compiler can only warn and ignore the option if not recognized
15253 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000015254 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15255 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15256 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015257 lt_cv_prog_compiler_c_o=yes
15258 fi
15259 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015260 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015261 $rm conftest*
15262 # SGI C++ compiler will create directory out/ii_files/ for
15263 # template instantiation
15264 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15265 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000015266 cd ..
15267 rmdir conftest
15268 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015269
15270fi
Reid Spencera773bd52006-08-04 18:18:08 +000015271{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15272echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015273
John Criswell7a73b802003-06-30 21:59:07 +000015274
John Criswell7a73b802003-06-30 21:59:07 +000015275hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000015276if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000015277 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000015278 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15279echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015280 hard_links=yes
15281 $rm conftest*
15282 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15283 touch conftest.a
15284 ln conftest.a conftest.b 2>&5 || hard_links=no
15285 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000015286 { echo "$as_me:$LINENO: result: $hard_links" >&5
15287echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015288 if test "$hard_links" = no; then
15289 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15290echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15291 need_locks=warn
15292 fi
15293else
15294 need_locks=no
15295fi
John Criswell7a73b802003-06-30 21:59:07 +000015296
Reid Spencera773bd52006-08-04 18:18:08 +000015297{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15298echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015299
15300 runpath_var=
15301 allow_undefined_flag=
15302 enable_shared_with_static_runtimes=no
15303 archive_cmds=
15304 archive_expsym_cmds=
15305 old_archive_From_new_cmds=
15306 old_archive_from_expsyms_cmds=
15307 export_dynamic_flag_spec=
15308 whole_archive_flag_spec=
15309 thread_safe_flag_spec=
15310 hardcode_libdir_flag_spec=
15311 hardcode_libdir_flag_spec_ld=
15312 hardcode_libdir_separator=
15313 hardcode_direct=no
15314 hardcode_minus_L=no
15315 hardcode_shlibpath_var=unsupported
15316 link_all_deplibs=unknown
15317 hardcode_automatic=no
15318 module_cmds=
15319 module_expsym_cmds=
15320 always_export_symbols=no
15321 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15322 # include_expsyms should be a list of space-separated symbols to be *always*
15323 # included in the symbol list
15324 include_expsyms=
15325 # exclude_expsyms can be an extended regexp of symbols to exclude
15326 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15327 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15328 # as well as any symbol that contains `d'.
15329 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15330 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15331 # platforms (ab)use it in PIC code, but their linkers get confused if
15332 # the symbol is explicitly referenced. Since portable code cannot
15333 # rely on this symbol name, it's probably fine to never include it in
15334 # preloaded symbol tables.
15335 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000015336 # Just being paranoid about ensuring that cc_basename is set.
15337 for cc_temp in $compiler""; do
15338 case $cc_temp in
15339 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15340 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15341 \-*) ;;
15342 *) break;;
15343 esac
15344done
15345cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000015346
15347 case $host_os in
15348 cygwin* | mingw* | pw32*)
15349 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15350 # When not using gcc, we currently assume that we are using
15351 # Microsoft Visual C++.
15352 if test "$GCC" != yes; then
15353 with_gnu_ld=no
15354 fi
15355 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015356 interix*)
15357 # we just hope/assume this is gcc and not c89 (= MSVC++)
15358 with_gnu_ld=yes
15359 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015360 openbsd*)
15361 with_gnu_ld=no
15362 ;;
15363 esac
15364
15365 ld_shlibs=yes
15366 if test "$with_gnu_ld" = yes; then
15367 # If archive_cmds runs LD, not CC, wlarc should be empty
15368 wlarc='${wl}'
15369
Reid Spencera773bd52006-08-04 18:18:08 +000015370 # Set some defaults for GNU ld with shared library support. These
15371 # are reset later if shared libraries are not supported. Putting them
15372 # here allows them to be overridden if necessary.
15373 runpath_var=LD_RUN_PATH
15374 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15375 export_dynamic_flag_spec='${wl}--export-dynamic'
15376 # ancient GNU ld didn't support --whole-archive et. al.
15377 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15378 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15379 else
15380 whole_archive_flag_spec=
15381 fi
15382 supports_anon_versioning=no
15383 case `$LD -v 2>/dev/null` in
15384 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15385 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15386 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15387 *\ 2.11.*) ;; # other 2.11 versions
15388 *) supports_anon_versioning=yes ;;
15389 esac
15390
John Criswell47fdd832003-07-14 16:52:07 +000015391 # See if GNU ld supports shared libraries.
15392 case $host_os in
15393 aix3* | aix4* | aix5*)
15394 # On AIX/PPC, the GNU linker is very broken
15395 if test "$host_cpu" != ia64; then
15396 ld_shlibs=no
15397 cat <<EOF 1>&2
15398
15399*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15400*** to be unable to reliably create shared libraries on AIX.
15401*** Therefore, libtool is disabling shared libraries support. If you
15402*** really care for shared libraries, you may want to modify your PATH
15403*** so that a non-GNU linker is found, and then restart.
15404
15405EOF
15406 fi
15407 ;;
15408
15409 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015410 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 +000015411 hardcode_libdir_flag_spec='-L$libdir'
15412 hardcode_minus_L=yes
15413
15414 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15415 # that the semantics of dynamic libraries on AmigaOS, at least up
15416 # to version 4, is to share data among multiple programs linked
15417 # with the same dynamic library. Since this doesn't match the
15418 # behavior of shared libraries on other platforms, we can't use
15419 # them.
15420 ld_shlibs=no
15421 ;;
15422
15423 beos*)
15424 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15425 allow_undefined_flag=unsupported
15426 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15427 # support --undefined. This deserves some investigation. FIXME
15428 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15429 else
15430 ld_shlibs=no
15431 fi
15432 ;;
15433
15434 cygwin* | mingw* | pw32*)
15435 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15436 # as there is no search path for DLLs.
15437 hardcode_libdir_flag_spec='-L$libdir'
15438 allow_undefined_flag=unsupported
15439 always_export_symbols=no
15440 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015441 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 +000015442
15443 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015444 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 +000015445 # If the export-symbols file already is a .def file (1st line
15446 # is EXPORTS), use it as is; otherwise, prepend...
15447 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15448 cp $export_symbols $output_objdir/$soname.def;
15449 else
15450 echo EXPORTS > $output_objdir/$soname.def;
15451 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015452 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015453 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15454 else
15455 ld_shlibs=no
15456 fi
15457 ;;
15458
15459 interix3*)
15460 hardcode_direct=no
15461 hardcode_shlibpath_var=no
15462 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15463 export_dynamic_flag_spec='${wl}-E'
15464 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15465 # Instead, shared libraries are loaded at an image base (0x10000000 by
15466 # default) and relocated if they conflict, which is a slow very memory
15467 # consuming and fragmenting process. To avoid this, we pick a random,
15468 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15469 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15470 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15471 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'
15472 ;;
15473
15474 linux*)
15475 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15476 tmp_addflag=
15477 case $cc_basename,$host_cpu in
15478 pgcc*) # Portland Group C compiler
15479 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'
15480 tmp_addflag=' $pic_flag'
15481 ;;
15482 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15483 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'
15484 tmp_addflag=' $pic_flag -Mnomain' ;;
15485 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15486 tmp_addflag=' -i_dynamic' ;;
15487 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15488 tmp_addflag=' -i_dynamic -nofor_main' ;;
15489 ifc* | ifort*) # Intel Fortran compiler
15490 tmp_addflag=' -nofor_main' ;;
15491 esac
15492 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15493
15494 if test $supports_anon_versioning = yes; then
15495 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15496 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15497 $echo "local: *; };" >> $output_objdir/$libname.ver~
15498 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15499 fi
John Criswell47fdd832003-07-14 16:52:07 +000015500 else
15501 ld_shlibs=no
15502 fi
15503 ;;
15504
15505 netbsd*)
15506 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15507 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15508 wlarc=
15509 else
15510 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15511 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15512 fi
15513 ;;
15514
Reid Spencera773bd52006-08-04 18:18:08 +000015515 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015516 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15517 ld_shlibs=no
15518 cat <<EOF 1>&2
15519
15520*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15521*** create shared libraries on Solaris systems. Therefore, libtool
15522*** is disabling shared libraries support. We urge you to upgrade GNU
15523*** binutils to release 2.9.1 or newer. Another option is to modify
15524*** your PATH or compiler configuration so that the native linker is
15525*** used, and then restart.
15526
15527EOF
15528 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15529 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15530 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15531 else
15532 ld_shlibs=no
15533 fi
15534 ;;
15535
Reid Spencera773bd52006-08-04 18:18:08 +000015536 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15537 case `$LD -v 2>&1` in
15538 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15539 ld_shlibs=no
15540 cat <<_LT_EOF 1>&2
15541
15542*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15543*** reliably create shared libraries on SCO systems. Therefore, libtool
15544*** is disabling shared libraries support. We urge you to upgrade GNU
15545*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15546*** your PATH or compiler configuration so that the native linker is
15547*** used, and then restart.
15548
15549_LT_EOF
15550 ;;
15551 *)
15552 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15553 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15554 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15555 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15556 else
15557 ld_shlibs=no
15558 fi
15559 ;;
15560 esac
15561 ;;
15562
John Criswell47fdd832003-07-14 16:52:07 +000015563 sunos4*)
15564 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15565 wlarc=
15566 hardcode_direct=yes
15567 hardcode_shlibpath_var=no
15568 ;;
15569
15570 *)
15571 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15572 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15573 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15574 else
15575 ld_shlibs=no
15576 fi
15577 ;;
15578 esac
15579
Reid Spencera773bd52006-08-04 18:18:08 +000015580 if test "$ld_shlibs" = no; then
15581 runpath_var=
15582 hardcode_libdir_flag_spec=
15583 export_dynamic_flag_spec=
15584 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015585 fi
15586 else
15587 # PORTME fill in a description of your system's linker (not GNU ld)
15588 case $host_os in
15589 aix3*)
15590 allow_undefined_flag=unsupported
15591 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015592 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 +000015593 # Note: this linker hardcodes the directories in LIBPATH if there
15594 # are no directories specified by -L.
15595 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015596 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015597 # Neither direct hardcoding nor static linking is supported with a
15598 # broken collect2.
15599 hardcode_direct=unsupported
15600 fi
15601 ;;
15602
15603 aix4* | aix5*)
15604 if test "$host_cpu" = ia64; then
15605 # On IA64, the linker does run time linking by default, so we don't
15606 # have to do anything special.
15607 aix_use_runtimelinking=no
15608 exp_sym_flag='-Bexport'
15609 no_entry_flag=""
15610 else
15611 # If we're using GNU nm, then we don't want the "-C" option.
15612 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15613 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15614 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'
15615 else
15616 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'
15617 fi
15618 aix_use_runtimelinking=no
15619
15620 # Test if we are trying to use run time linking or normal
15621 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15622 # need to do runtime linking.
15623 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15624 for ld_flag in $LDFLAGS; do
15625 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15626 aix_use_runtimelinking=yes
15627 break
15628 fi
15629 done
Reid Spencera773bd52006-08-04 18:18:08 +000015630 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015631 esac
15632
15633 exp_sym_flag='-bexport'
15634 no_entry_flag='-bnoentry'
15635 fi
15636
15637 # When large executables or shared objects are built, AIX ld can
15638 # have problems creating the table of contents. If linking a library
15639 # or program results in "error TOC overflow" add -mminimal-toc to
15640 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15641 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15642
15643 archive_cmds=''
15644 hardcode_direct=yes
15645 hardcode_libdir_separator=':'
15646 link_all_deplibs=yes
15647
15648 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015649 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015650 # We only want to do this on AIX 4.2 and lower, the check
15651 # below for broken collect2 doesn't work under 4.3+
15652 collect2name=`${CC} -print-prog-name=collect2`
15653 if test -f "$collect2name" && \
15654 strings "$collect2name" | grep resolve_lib_name >/dev/null
15655 then
15656 # We have reworked collect2
15657 hardcode_direct=yes
15658 else
15659 # We have old collect2
15660 hardcode_direct=unsupported
15661 # It fails to find uninstalled libraries when the uninstalled
15662 # path is not listed in the libpath. Setting hardcode_minus_L
15663 # to unsupported forces relinking
15664 hardcode_minus_L=yes
15665 hardcode_libdir_flag_spec='-L$libdir'
15666 hardcode_libdir_separator=
15667 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015668 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015669 esac
15670 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015671 if test "$aix_use_runtimelinking" = yes; then
15672 shared_flag="$shared_flag "'${wl}-G'
15673 fi
John Criswell47fdd832003-07-14 16:52:07 +000015674 else
15675 # not using gcc
15676 if test "$host_cpu" = ia64; then
15677 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15678 # chokes on -Wl,-G. The following line is correct:
15679 shared_flag='-G'
15680 else
Reid Spencera773bd52006-08-04 18:18:08 +000015681 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015682 shared_flag='${wl}-G'
15683 else
15684 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015685 fi
John Criswell47fdd832003-07-14 16:52:07 +000015686 fi
15687 fi
15688
15689 # It seems that -bexpall does not export symbols beginning with
15690 # underscore (_), so it is better to generate a list of symbols to export.
15691 always_export_symbols=yes
15692 if test "$aix_use_runtimelinking" = yes; then
15693 # Warning - without using the other runtime loading flags (-brtl),
15694 # -berok will link without error, but may produce a broken library.
15695 allow_undefined_flag='-berok'
15696 # Determine the default libpath from the value encoded in an empty executable.
15697 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015698/* confdefs.h. */
15699_ACEOF
15700cat confdefs.h >>conftest.$ac_ext
15701cat >>conftest.$ac_ext <<_ACEOF
15702/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015703
John Criswell7a73b802003-06-30 21:59:07 +000015704int
15705main ()
15706{
John Criswell47fdd832003-07-14 16:52:07 +000015707
John Criswell7a73b802003-06-30 21:59:07 +000015708 ;
15709 return 0;
15710}
15711_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015712rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015713if { (ac_try="$ac_link"
15714case "(($ac_try" in
15715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15716 *) ac_try_echo=$ac_try;;
15717esac
15718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15719 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015720 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015721 grep -v '^ *+' conftest.er1 >conftest.err
15722 rm -f conftest.er1
15723 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015725 (exit $ac_status); } &&
15726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15727 { (case "(($ac_try" in
15728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15729 *) ac_try_echo=$ac_try;;
15730esac
15731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15732 (eval "$ac_try") 2>&5
15733 ac_status=$?
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); }; } &&
15736 { ac_try='test -s conftest$ac_exeext'
15737 { (case "(($ac_try" in
15738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15739 *) ac_try_echo=$ac_try;;
15740esac
15741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15742 (eval "$ac_try") 2>&5
15743 ac_status=$?
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015746
John Criswell47fdd832003-07-14 16:52:07 +000015747aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15748}'`
15749# Check for a 64-bit object if we didn't find anything.
15750if 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; }
15751}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015752else
15753 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015754sed 's/^/| /' conftest.$ac_ext >&5
15755
Reid Spencera773bd52006-08-04 18:18:08 +000015756
John Criswell7a73b802003-06-30 21:59:07 +000015757fi
Reid Spencera773bd52006-08-04 18:18:08 +000015758
Bill Wendlingebcceee2009-04-18 11:20:33 +000015759rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015760 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015761if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015762
John Criswell47fdd832003-07-14 16:52:07 +000015763 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015764 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 +000015765 else
15766 if test "$host_cpu" = ia64; then
15767 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15768 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015769 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 +000015770 else
15771 # Determine the default libpath from the value encoded in an empty executable.
15772 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015773/* confdefs.h. */
15774_ACEOF
15775cat confdefs.h >>conftest.$ac_ext
15776cat >>conftest.$ac_ext <<_ACEOF
15777/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015778
John Criswell47fdd832003-07-14 16:52:07 +000015779int
15780main ()
15781{
John Criswell7a73b802003-06-30 21:59:07 +000015782
John Criswell47fdd832003-07-14 16:52:07 +000015783 ;
15784 return 0;
15785}
15786_ACEOF
15787rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015788if { (ac_try="$ac_link"
15789case "(($ac_try" in
15790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791 *) ac_try_echo=$ac_try;;
15792esac
15793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15794 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015795 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015796 grep -v '^ *+' conftest.er1 >conftest.err
15797 rm -f conftest.er1
15798 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015800 (exit $ac_status); } &&
15801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15802 { (case "(($ac_try" in
15803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15804 *) ac_try_echo=$ac_try;;
15805esac
15806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15807 (eval "$ac_try") 2>&5
15808 ac_status=$?
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); }; } &&
15811 { ac_try='test -s conftest$ac_exeext'
15812 { (case "(($ac_try" in
15813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15814 *) ac_try_echo=$ac_try;;
15815esac
15816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15817 (eval "$ac_try") 2>&5
15818 ac_status=$?
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015821
John Criswell47fdd832003-07-14 16:52:07 +000015822aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15823}'`
15824# Check for a 64-bit object if we didn't find anything.
15825if 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; }
15826}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015827else
John Criswell47fdd832003-07-14 16:52:07 +000015828 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015829sed 's/^/| /' conftest.$ac_ext >&5
15830
Reid Spencera773bd52006-08-04 18:18:08 +000015831
John Criswell47fdd832003-07-14 16:52:07 +000015832fi
Reid Spencera773bd52006-08-04 18:18:08 +000015833
Bill Wendlingebcceee2009-04-18 11:20:33 +000015834rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015835 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015836if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015837
John Criswell47fdd832003-07-14 16:52:07 +000015838 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15839 # Warning - without using the other run time loading flags,
15840 # -berok will link without error, but may produce a broken library.
15841 no_undefined_flag=' ${wl}-bernotok'
15842 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015843 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015844 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015845 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015846 # This is similar to how AIX traditionally builds its shared libraries.
15847 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 +000015848 fi
15849 fi
John Criswell7a73b802003-06-30 21:59:07 +000015850 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015851
15852 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015853 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 +000015854 hardcode_libdir_flag_spec='-L$libdir'
15855 hardcode_minus_L=yes
15856 # see comment about different semantics on the GNU ld section
15857 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015858 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015859
Reid Spencer2706f8c2004-09-19 23:53:36 +000015860 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015861 export_dynamic_flag_spec=-rdynamic
15862 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015863
John Criswell47fdd832003-07-14 16:52:07 +000015864 cygwin* | mingw* | pw32*)
15865 # When not using gcc, we currently assume that we are using
15866 # Microsoft Visual C++.
15867 # hardcode_libdir_flag_spec is actually meaningless, as there is
15868 # no search path for DLLs.
15869 hardcode_libdir_flag_spec=' '
15870 allow_undefined_flag=unsupported
15871 # Tell ltmain to make .lib files, not .a files.
15872 libext=lib
15873 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015874 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015875 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015876 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015877 # The linker will automatically build a .lib file if we build a DLL.
15878 old_archive_From_new_cmds='true'
15879 # FIXME: Should let the user specify the lib program.
15880 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15881 fix_srcfile_path='`cygpath -w "$srcfile"`'
15882 enable_shared_with_static_runtimes=yes
15883 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015884
John Criswell47fdd832003-07-14 16:52:07 +000015885 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015886 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015887 rhapsody* | darwin1.[012])
15888 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15889 ;;
15890 *) # Darwin 1.3 on
15891 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15892 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15893 else
15894 case ${MACOSX_DEPLOYMENT_TARGET} in
15895 10.[012])
15896 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15897 ;;
15898 10.*)
15899 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15900 ;;
15901 esac
15902 fi
15903 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015904 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015905 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015906 hardcode_direct=no
15907 hardcode_automatic=yes
15908 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015909 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015910 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015911 if test "$GCC" = yes ; then
15912 output_verbose_link_cmd='echo'
15913 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15914 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015915 # 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 +000015916 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}'
15917 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 +000015918 else
Reid Spencera773bd52006-08-04 18:18:08 +000015919 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015920 xlc*)
15921 output_verbose_link_cmd='echo'
15922 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15923 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015924 # 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 +000015925 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}'
15926 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 +000015927 ;;
15928 *)
15929 ld_shlibs=no
15930 ;;
15931 esac
John Criswell7a73b802003-06-30 21:59:07 +000015932 fi
John Criswell47fdd832003-07-14 16:52:07 +000015933 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015934
John Criswell47fdd832003-07-14 16:52:07 +000015935 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015937 hardcode_libdir_flag_spec='-L$libdir'
15938 hardcode_shlibpath_var=no
15939 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015940
John Criswell47fdd832003-07-14 16:52:07 +000015941 freebsd1*)
15942 ld_shlibs=no
15943 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015944
John Criswell47fdd832003-07-14 16:52:07 +000015945 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15946 # support. Future versions do this automatically, but an explicit c++rt0.o
15947 # does not break anything, and helps significantly (at the cost of a little
15948 # extra space).
15949 freebsd2.2*)
15950 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15951 hardcode_libdir_flag_spec='-R$libdir'
15952 hardcode_direct=yes
15953 hardcode_shlibpath_var=no
15954 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015955
John Criswell47fdd832003-07-14 16:52:07 +000015956 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15957 freebsd2*)
15958 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15959 hardcode_direct=yes
15960 hardcode_minus_L=yes
15961 hardcode_shlibpath_var=no
15962 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015963
John Criswell47fdd832003-07-14 16:52:07 +000015964 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015965 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015966 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15967 hardcode_libdir_flag_spec='-R$libdir'
15968 hardcode_direct=yes
15969 hardcode_shlibpath_var=no
15970 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015971
John Criswell47fdd832003-07-14 16:52:07 +000015972 hpux9*)
15973 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015974 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 +000015975 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015976 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 +000015977 fi
15978 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15979 hardcode_libdir_separator=:
15980 hardcode_direct=yes
15981
15982 # hardcode_minus_L: Not really in the search PATH,
15983 # but as the default location of the library.
15984 hardcode_minus_L=yes
15985 export_dynamic_flag_spec='${wl}-E'
15986 ;;
15987
Reid Spencera773bd52006-08-04 18:18:08 +000015988 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015989 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015990 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15991 else
15992 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15993 fi
15994 if test "$with_gnu_ld" = no; then
15995 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15996 hardcode_libdir_separator=:
15997
15998 hardcode_direct=yes
15999 export_dynamic_flag_spec='${wl}-E'
16000
16001 # hardcode_minus_L: Not really in the search PATH,
16002 # but as the default location of the library.
16003 hardcode_minus_L=yes
16004 fi
16005 ;;
16006
16007 hpux11*)
16008 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16009 case $host_cpu in
16010 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000016011 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16012 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016013 ia64*)
16014 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16015 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016016 *)
16017 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16018 ;;
16019 esac
16020 else
Reid Spencera773bd52006-08-04 18:18:08 +000016021 case $host_cpu in
16022 hppa*64*)
16023 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16024 ;;
16025 ia64*)
16026 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000016027 ;;
16028 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016029 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 +000016030 ;;
16031 esac
16032 fi
16033 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000016034 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16035 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000016036
Reid Spencera773bd52006-08-04 18:18:08 +000016037 case $host_cpu in
16038 hppa*64*|ia64*)
16039 hardcode_libdir_flag_spec_ld='+b $libdir'
16040 hardcode_direct=no
16041 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000016042 ;;
16043 *)
John Criswell47fdd832003-07-14 16:52:07 +000016044 hardcode_direct=yes
16045 export_dynamic_flag_spec='${wl}-E'
16046
16047 # hardcode_minus_L: Not really in the search PATH,
16048 # but as the default location of the library.
16049 hardcode_minus_L=yes
16050 ;;
16051 esac
16052 fi
16053 ;;
16054
16055 irix5* | irix6* | nonstopux*)
16056 if test "$GCC" = yes; then
16057 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'
16058 else
16059 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'
16060 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16061 fi
16062 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16063 hardcode_libdir_separator=:
16064 link_all_deplibs=yes
16065 ;;
16066
16067 netbsd*)
16068 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16069 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16070 else
16071 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16072 fi
16073 hardcode_libdir_flag_spec='-R$libdir'
16074 hardcode_direct=yes
16075 hardcode_shlibpath_var=no
16076 ;;
16077
16078 newsos6)
16079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16080 hardcode_direct=yes
16081 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16082 hardcode_libdir_separator=:
16083 hardcode_shlibpath_var=no
16084 ;;
16085
16086 openbsd*)
16087 hardcode_direct=yes
16088 hardcode_shlibpath_var=no
16089 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16090 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016091 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 +000016092 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16093 export_dynamic_flag_spec='${wl}-E'
16094 else
16095 case $host_os in
16096 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16097 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16098 hardcode_libdir_flag_spec='-R$libdir'
16099 ;;
16100 *)
16101 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16102 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16103 ;;
16104 esac
16105 fi
16106 ;;
16107
16108 os2*)
16109 hardcode_libdir_flag_spec='-L$libdir'
16110 hardcode_minus_L=yes
16111 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000016112 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 +000016113 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16114 ;;
16115
16116 osf3*)
16117 if test "$GCC" = yes; then
16118 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16119 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'
16120 else
16121 allow_undefined_flag=' -expect_unresolved \*'
16122 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'
16123 fi
16124 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16125 hardcode_libdir_separator=:
16126 ;;
16127
16128 osf4* | osf5*) # as osf3* with the addition of -msym flag
16129 if test "$GCC" = yes; then
16130 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16131 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'
16132 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16133 else
16134 allow_undefined_flag=' -expect_unresolved \*'
16135 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 +000016136 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 +000016137 $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 +000016138
John Criswell47fdd832003-07-14 16:52:07 +000016139 # Both c and cxx compiler support -rpath directly
16140 hardcode_libdir_flag_spec='-rpath $libdir'
16141 fi
16142 hardcode_libdir_separator=:
16143 ;;
16144
John Criswell47fdd832003-07-14 16:52:07 +000016145 solaris*)
16146 no_undefined_flag=' -z text'
16147 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016148 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000016149 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016150 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16151 $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 +000016152 else
Reid Spencera773bd52006-08-04 18:18:08 +000016153 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000016154 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016155 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16156 $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 +000016157 fi
16158 hardcode_libdir_flag_spec='-R$libdir'
16159 hardcode_shlibpath_var=no
16160 case $host_os in
16161 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016162 *)
16163 # The compiler driver will combine linker options so we
16164 # cannot just pass the convience library names through
16165 # without $wl, iff we do not link with $LD.
16166 # Luckily, gcc supports the same syntax we need for Sun Studio.
16167 # Supported since Solaris 2.6 (maybe 2.5.1?)
16168 case $wlarc in
16169 '')
16170 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16171 *)
16172 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' ;;
16173 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000016174 esac
16175 link_all_deplibs=yes
16176 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016177
John Criswell47fdd832003-07-14 16:52:07 +000016178 sunos4*)
16179 if test "x$host_vendor" = xsequent; then
16180 # Use $CC to link under sequent, because it throws in some extra .o
16181 # files that make .init and .fini sections work.
16182 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16183 else
16184 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16185 fi
16186 hardcode_libdir_flag_spec='-L$libdir'
16187 hardcode_direct=yes
16188 hardcode_minus_L=yes
16189 hardcode_shlibpath_var=no
16190 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016191
John Criswell47fdd832003-07-14 16:52:07 +000016192 sysv4)
16193 case $host_vendor in
16194 sni)
16195 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16196 hardcode_direct=yes # is this really true???
16197 ;;
16198 siemens)
16199 ## LD is ld it makes a PLAMLIB
16200 ## CC just makes a GrossModule.
16201 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16202 reload_cmds='$CC -r -o $output$reload_objs'
16203 hardcode_direct=no
16204 ;;
16205 motorola)
16206 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16207 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16208 ;;
16209 esac
16210 runpath_var='LD_RUN_PATH'
16211 hardcode_shlibpath_var=no
16212 ;;
16213
16214 sysv4.3*)
16215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16216 hardcode_shlibpath_var=no
16217 export_dynamic_flag_spec='-Bexport'
16218 ;;
16219
16220 sysv4*MP*)
16221 if test -d /usr/nec; then
16222 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16223 hardcode_shlibpath_var=no
16224 runpath_var=LD_RUN_PATH
16225 hardcode_runpath_var=yes
16226 ld_shlibs=yes
16227 fi
16228 ;;
16229
Reid Spencera773bd52006-08-04 18:18:08 +000016230 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16231 no_undefined_flag='${wl}-z,text'
16232 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016233 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016234 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000016235
John Criswell47fdd832003-07-14 16:52:07 +000016236 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016237 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16238 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 +000016239 else
Reid Spencera773bd52006-08-04 18:18:08 +000016240 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16241 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 +000016242 fi
John Criswell47fdd832003-07-14 16:52:07 +000016243 ;;
16244
Reid Spencera773bd52006-08-04 18:18:08 +000016245 sysv5* | sco3.2v5* | sco5v6*)
16246 # Note: We can NOT use -z defs as we might desire, because we do not
16247 # link with -lc, and that would cause any symbols used from libc to
16248 # always be unresolved, which means just about no library would
16249 # ever link correctly. If we're not using GNU ld we use -z text
16250 # though, which does catch some bad symbols but isn't as heavy-handed
16251 # as -z defs.
16252 no_undefined_flag='${wl}-z,text'
16253 allow_undefined_flag='${wl}-z,nodefs'
16254 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016255 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016256 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16257 hardcode_libdir_separator=':'
16258 link_all_deplibs=yes
16259 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000016260 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000016261
16262 if test "$GCC" = yes; then
16263 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16264 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16265 else
16266 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16267 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16268 fi
John Criswell47fdd832003-07-14 16:52:07 +000016269 ;;
16270
16271 uts4*)
16272 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16273 hardcode_libdir_flag_spec='-L$libdir'
16274 hardcode_shlibpath_var=no
16275 ;;
16276
16277 *)
16278 ld_shlibs=no
16279 ;;
16280 esac
16281 fi
16282
Reid Spencera773bd52006-08-04 18:18:08 +000016283{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16284echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016285test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016286
John Criswell47fdd832003-07-14 16:52:07 +000016287#
16288# Do we need to explicitly link libc?
16289#
16290case "x$archive_cmds_need_lc" in
16291x|xyes)
16292 # Assume -lc should be added
16293 archive_cmds_need_lc=yes
16294
16295 if test "$enable_shared" = yes && test "$GCC" = yes; then
16296 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016297 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016298 # FIXME: we may have to deal with multi-command sequences.
16299 ;;
16300 '$CC '*)
16301 # Test whether the compiler implicitly links with -lc since on some
16302 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16303 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000016304 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16305echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016306 $rm conftest*
16307 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16308
16309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16310 (eval $ac_compile) 2>&5
16311 ac_status=$?
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); } 2>conftest.err; then
16314 soname=conftest
16315 lib=conftest
16316 libobjs=conftest.$ac_objext
16317 deplibs=
16318 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000016319 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000016320 compiler_flags=-v
16321 linker_flags=-v
16322 verstring=
16323 output_objdir=.
16324 libname=conftest
16325 lt_save_allow_undefined_flag=$allow_undefined_flag
16326 allow_undefined_flag=
16327 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16328 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16329 ac_status=$?
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); }
16332 then
16333 archive_cmds_need_lc=no
16334 else
16335 archive_cmds_need_lc=yes
16336 fi
16337 allow_undefined_flag=$lt_save_allow_undefined_flag
16338 else
16339 cat conftest.err 1>&5
16340 fi
16341 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000016342 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16343echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016344 ;;
16345 esac
16346 fi
16347 ;;
16348esac
16349
Reid Spencera773bd52006-08-04 18:18:08 +000016350{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16351echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016352library_names_spec=
16353libname_spec='lib$name'
16354soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016355shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000016356postinstall_cmds=
16357postuninstall_cmds=
16358finish_cmds=
16359finish_eval=
16360shlibpath_var=
16361shlibpath_overrides_runpath=unknown
16362version_type=none
16363dynamic_linker="$host_os ld.so"
16364sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016365if test "$GCC" = yes; then
16366 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16367 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16368 # if the path contains ";" then we assume it to be the separator
16369 # otherwise default to the standard path separator (i.e. ":") - it is
16370 # assumed that no part of a normal pathname contains ";" but that should
16371 # okay in the real world where ";" in dirpaths is itself problematic.
16372 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16373 else
16374 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16375 fi
16376else
16377 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16378fi
16379need_lib_prefix=unknown
16380hardcode_into_libs=no
16381
16382# when you set need_version to no, make sure it does not cause -set_version
16383# flags to be left without arguments
16384need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000016385
16386case $host_os in
16387aix3*)
16388 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016389 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016390 shlibpath_var=LIBPATH
16391
John Criswell47fdd832003-07-14 16:52:07 +000016392 # AIX 3 has no versioning support, so we append a major version to the name.
16393 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016394 ;;
16395
16396aix4* | aix5*)
16397 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016398 need_lib_prefix=no
16399 need_version=no
16400 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016401 if test "$host_cpu" = ia64; then
16402 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000016403 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016404 shlibpath_var=LD_LIBRARY_PATH
16405 else
16406 # With GCC up to 2.95.x, collect2 would create an import file
16407 # for dependence libraries. The import file would start with
16408 # the line `#! .'. This would cause the generated library to
16409 # depend on `.', always an invalid library. This was fixed in
16410 # development snapshots of GCC prior to 3.0.
16411 case $host_os in
16412 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000016413 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16414 echo ' yes '
16415 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16416 :
16417 else
16418 can_build_shared=no
16419 fi
16420 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016421 esac
John Criswell47fdd832003-07-14 16:52:07 +000016422 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16423 # soname into executable. Probably we can add versioning support to
16424 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000016425 if test "$aix_use_runtimelinking" = yes; then
16426 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16427 # instead of lib<name>.a to let people know that these are not
16428 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016430 else
16431 # We preserve .a as extension for shared libraries through AIX4.2
16432 # and later when we are not doing run time linking.
16433 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016434 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016435 fi
16436 shlibpath_var=LIBPATH
16437 fi
16438 ;;
16439
16440amigaos*)
16441 library_names_spec='$libname.ixlibrary $libname.a'
16442 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016443 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 +000016444 ;;
16445
16446beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016447 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016448 dynamic_linker="$host_os ld.so"
16449 shlibpath_var=LIBRARY_PATH
16450 ;;
16451
Reid Spencer2706f8c2004-09-19 23:53:36 +000016452bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016453 version_type=linux
16454 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16456 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016457 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16458 shlibpath_var=LD_LIBRARY_PATH
16459 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16460 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016461 # the default ld.so.conf also contains /usr/contrib/lib and
16462 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16463 # libtool to hard-code these into programs
16464 ;;
16465
16466cygwin* | mingw* | pw32*)
16467 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016468 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016469 need_version=no
16470 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016471
John Criswell7a73b802003-06-30 21:59:07 +000016472 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016473 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016474 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016475 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016476 postinstall_cmds='base_file=`basename \${file}`~
16477 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16478 dldir=$destdir/`dirname \$dlpath`~
16479 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016480 $install_prog $dir/$dlname \$dldir/$dlname~
16481 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016482 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16483 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016484 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016485 shlibpath_overrides_runpath=yes
16486
16487 case $host_os in
16488 cygwin*)
16489 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16490 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 +000016491 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016492 ;;
16493 mingw*)
16494 # MinGW DLLs use traditional 'lib' prefix
16495 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16496 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16497 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16498 # It is most probably a Windows format PATH printed by
16499 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16500 # path with ; separators, and with drive letters. We can handle the
16501 # drive letters (cygwin fileutils understands them), so leave them,
16502 # especially as we might pass files found there to a mingw objdump,
16503 # which wouldn't understand a cygwinified path. Ahh.
16504 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16505 else
16506 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16507 fi
16508 ;;
16509 pw32*)
16510 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016511 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 +000016512 ;;
16513 esac
John Criswell7a73b802003-06-30 21:59:07 +000016514 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016515
John Criswell7a73b802003-06-30 21:59:07 +000016516 *)
John Criswell47fdd832003-07-14 16:52:07 +000016517 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016518 ;;
16519 esac
16520 dynamic_linker='Win32 ld.exe'
16521 # FIXME: first we should search . and the directory the executable is in
16522 shlibpath_var=PATH
16523 ;;
16524
16525darwin* | rhapsody*)
16526 dynamic_linker="$host_os dyld"
16527 version_type=darwin
16528 need_lib_prefix=no
16529 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016530 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016531 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016532 shlibpath_overrides_runpath=yes
16533 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016534 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016535 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016536 if test "$GCC" = yes; then
16537 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"`
16538 else
16539 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016540 fi
16541 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16542 ;;
16543
16544dgux*)
16545 version_type=linux
16546 need_lib_prefix=no
16547 need_version=no
16548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16549 soname_spec='${libname}${release}${shared_ext}$major'
16550 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016551 ;;
16552
16553freebsd1*)
16554 dynamic_linker=no
16555 ;;
16556
Reid Spencer2706f8c2004-09-19 23:53:36 +000016557kfreebsd*-gnu)
16558 version_type=linux
16559 need_lib_prefix=no
16560 need_version=no
16561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16562 soname_spec='${libname}${release}${shared_ext}$major'
16563 shlibpath_var=LD_LIBRARY_PATH
16564 shlibpath_overrides_runpath=no
16565 hardcode_into_libs=yes
16566 dynamic_linker='GNU ld.so'
16567 ;;
16568
Reid Spencera773bd52006-08-04 18:18:08 +000016569freebsd* | dragonfly*)
16570 # DragonFly does not have aout. When/if they implement a new
16571 # versioning mechanism, adjust this.
16572 if test -x /usr/bin/objformat; then
16573 objformat=`/usr/bin/objformat`
16574 else
16575 case $host_os in
16576 freebsd[123]*) objformat=aout ;;
16577 *) objformat=elf ;;
16578 esac
16579 fi
John Criswell7a73b802003-06-30 21:59:07 +000016580 version_type=freebsd-$objformat
16581 case $version_type in
16582 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016584 need_version=no
16585 need_lib_prefix=no
16586 ;;
16587 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016588 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016589 need_version=yes
16590 ;;
16591 esac
16592 shlibpath_var=LD_LIBRARY_PATH
16593 case $host_os in
16594 freebsd2*)
16595 shlibpath_overrides_runpath=yes
16596 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016597 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016598 shlibpath_overrides_runpath=yes
16599 hardcode_into_libs=yes
16600 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016601 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16602 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016603 shlibpath_overrides_runpath=no
16604 hardcode_into_libs=yes
16605 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016606 freebsd*) # from 4.6 on
16607 shlibpath_overrides_runpath=yes
16608 hardcode_into_libs=yes
16609 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016610 esac
16611 ;;
16612
16613gnu*)
16614 version_type=linux
16615 need_lib_prefix=no
16616 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16618 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016619 shlibpath_var=LD_LIBRARY_PATH
16620 hardcode_into_libs=yes
16621 ;;
16622
16623hpux9* | hpux10* | hpux11*)
16624 # Give a soname corresponding to the major version so that dld.sl refuses to
16625 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016626 version_type=sunos
16627 need_lib_prefix=no
16628 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016629 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016630 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016631 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016632 hardcode_into_libs=yes
16633 dynamic_linker="$host_os dld.so"
16634 shlibpath_var=LD_LIBRARY_PATH
16635 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16637 soname_spec='${libname}${release}${shared_ext}$major'
16638 if test "X$HPUX_IA64_MODE" = X32; then
16639 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16640 else
16641 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16642 fi
16643 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16644 ;;
16645 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016646 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016647 hardcode_into_libs=yes
16648 dynamic_linker="$host_os dld.sl"
16649 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16650 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16652 soname_spec='${libname}${release}${shared_ext}$major'
16653 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16654 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16655 ;;
16656 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016657 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016658 dynamic_linker="$host_os dld.sl"
16659 shlibpath_var=SHLIB_PATH
16660 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16662 soname_spec='${libname}${release}${shared_ext}$major'
16663 ;;
16664 esac
John Criswell7a73b802003-06-30 21:59:07 +000016665 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16666 postinstall_cmds='chmod 555 $lib'
16667 ;;
16668
Reid Spencera773bd52006-08-04 18:18:08 +000016669interix3*)
16670 version_type=linux
16671 need_lib_prefix=no
16672 need_version=no
16673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16674 soname_spec='${libname}${release}${shared_ext}$major'
16675 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16676 shlibpath_var=LD_LIBRARY_PATH
16677 shlibpath_overrides_runpath=no
16678 hardcode_into_libs=yes
16679 ;;
16680
John Criswell47fdd832003-07-14 16:52:07 +000016681irix5* | irix6* | nonstopux*)
16682 case $host_os in
16683 nonstopux*) version_type=nonstopux ;;
16684 *)
16685 if test "$lt_cv_prog_gnu_ld" = yes; then
16686 version_type=linux
16687 else
16688 version_type=irix
16689 fi ;;
16690 esac
John Criswell7a73b802003-06-30 21:59:07 +000016691 need_lib_prefix=no
16692 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016693 soname_spec='${libname}${release}${shared_ext}$major'
16694 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 +000016695 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016696 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016697 libsuff= shlibsuff=
16698 ;;
16699 *)
16700 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016701 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16702 libsuff= shlibsuff= libmagic=32-bit;;
16703 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16704 libsuff=32 shlibsuff=N32 libmagic=N32;;
16705 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16706 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016707 *) libsuff= shlibsuff= libmagic=never-match;;
16708 esac
16709 ;;
16710 esac
16711 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16712 shlibpath_overrides_runpath=no
16713 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16714 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016715 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016716 ;;
16717
16718# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016719linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016720 dynamic_linker=no
16721 ;;
16722
16723# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016724linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016725 version_type=linux
16726 need_lib_prefix=no
16727 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16729 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016730 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16731 shlibpath_var=LD_LIBRARY_PATH
16732 shlibpath_overrides_runpath=no
16733 # This implies no fast_install, which is unacceptable.
16734 # Some rework will be needed to allow for fast_install
16735 # before this can be enabled.
16736 hardcode_into_libs=yes
16737
Reid Spencer2706f8c2004-09-19 23:53:36 +000016738 # Append ld.so.conf contents to the search path
16739 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016740 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 +000016741 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16742 fi
16743
John Criswell7a73b802003-06-30 21:59:07 +000016744 # We used to test for /lib/ld.so.1 and disable shared libraries on
16745 # powerpc, because MkLinux only supported shared libraries with the
16746 # GNU dynamic linker. Since this was broken with cross compilers,
16747 # most powerpc-linux boxes support dynamic linking these days and
16748 # people can always --disable-shared, the test was removed, and we
16749 # assume the GNU/Linux dynamic linker is in use.
16750 dynamic_linker='GNU/Linux ld.so'
16751 ;;
16752
Reid Spencer2706f8c2004-09-19 23:53:36 +000016753knetbsd*-gnu)
16754 version_type=linux
16755 need_lib_prefix=no
16756 need_version=no
16757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16758 soname_spec='${libname}${release}${shared_ext}$major'
16759 shlibpath_var=LD_LIBRARY_PATH
16760 shlibpath_overrides_runpath=no
16761 hardcode_into_libs=yes
16762 dynamic_linker='GNU ld.so'
16763 ;;
16764
John Criswell7a73b802003-06-30 21:59:07 +000016765netbsd*)
16766 version_type=sunos
16767 need_lib_prefix=no
16768 need_version=no
16769 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016771 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16772 dynamic_linker='NetBSD (a.out) ld.so'
16773 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016775 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016776 dynamic_linker='NetBSD ld.elf_so'
16777 fi
16778 shlibpath_var=LD_LIBRARY_PATH
16779 shlibpath_overrides_runpath=yes
16780 hardcode_into_libs=yes
16781 ;;
16782
16783newsos6)
16784 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16786 shlibpath_var=LD_LIBRARY_PATH
16787 shlibpath_overrides_runpath=yes
16788 ;;
16789
Reid Spencer2706f8c2004-09-19 23:53:36 +000016790nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016791 version_type=linux
16792 need_lib_prefix=no
16793 need_version=no
16794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16795 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016796 shlibpath_var=LD_LIBRARY_PATH
16797 shlibpath_overrides_runpath=yes
16798 ;;
16799
16800openbsd*)
16801 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016802 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016803 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016804 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16805 case $host_os in
16806 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16807 *) need_version=no ;;
16808 esac
John Criswell47fdd832003-07-14 16:52:07 +000016809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16810 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16811 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016812 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 +000016813 case $host_os in
16814 openbsd2.[89] | openbsd2.[89].*)
16815 shlibpath_overrides_runpath=no
16816 ;;
16817 *)
16818 shlibpath_overrides_runpath=yes
16819 ;;
16820 esac
John Criswell7a73b802003-06-30 21:59:07 +000016821 else
16822 shlibpath_overrides_runpath=yes
16823 fi
John Criswell7a73b802003-06-30 21:59:07 +000016824 ;;
16825
16826os2*)
16827 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016828 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016829 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016830 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016831 dynamic_linker='OS/2 ld.exe'
16832 shlibpath_var=LIBPATH
16833 ;;
16834
16835osf3* | osf4* | osf5*)
16836 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016837 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016838 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016839 soname_spec='${libname}${release}${shared_ext}$major'
16840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016841 shlibpath_var=LD_LIBRARY_PATH
16842 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16843 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16844 ;;
16845
John Criswell7a73b802003-06-30 21:59:07 +000016846solaris*)
16847 version_type=linux
16848 need_lib_prefix=no
16849 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16851 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016852 shlibpath_var=LD_LIBRARY_PATH
16853 shlibpath_overrides_runpath=yes
16854 hardcode_into_libs=yes
16855 # ldd complains unless libraries are executable
16856 postinstall_cmds='chmod +x $lib'
16857 ;;
16858
16859sunos4*)
16860 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016862 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16863 shlibpath_var=LD_LIBRARY_PATH
16864 shlibpath_overrides_runpath=yes
16865 if test "$with_gnu_ld" = yes; then
16866 need_lib_prefix=no
16867 fi
16868 need_version=yes
16869 ;;
16870
Reid Spencera773bd52006-08-04 18:18:08 +000016871sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016872 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16874 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016875 shlibpath_var=LD_LIBRARY_PATH
16876 case $host_vendor in
16877 sni)
16878 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016879 need_lib_prefix=no
16880 export_dynamic_flag_spec='${wl}-Blargedynsym'
16881 runpath_var=LD_RUN_PATH
16882 ;;
16883 siemens)
16884 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016885 ;;
16886 motorola)
16887 need_lib_prefix=no
16888 need_version=no
16889 shlibpath_overrides_runpath=no
16890 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16891 ;;
16892 esac
16893 ;;
16894
John Criswell7a73b802003-06-30 21:59:07 +000016895sysv4*MP*)
16896 if test -d /usr/nec ;then
16897 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016898 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16899 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016900 shlibpath_var=LD_LIBRARY_PATH
16901 fi
16902 ;;
16903
Reid Spencera773bd52006-08-04 18:18:08 +000016904sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16905 version_type=freebsd-elf
16906 need_lib_prefix=no
16907 need_version=no
16908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16909 soname_spec='${libname}${release}${shared_ext}$major'
16910 shlibpath_var=LD_LIBRARY_PATH
16911 hardcode_into_libs=yes
16912 if test "$with_gnu_ld" = yes; then
16913 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16914 shlibpath_overrides_runpath=no
16915 else
16916 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16917 shlibpath_overrides_runpath=yes
16918 case $host_os in
16919 sco3.2v5*)
16920 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16921 ;;
16922 esac
16923 fi
16924 sys_lib_dlsearch_path_spec='/usr/lib'
16925 ;;
16926
John Criswell47fdd832003-07-14 16:52:07 +000016927uts4*)
16928 version_type=linux
16929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16930 soname_spec='${libname}${release}${shared_ext}$major'
16931 shlibpath_var=LD_LIBRARY_PATH
16932 ;;
16933
John Criswell7a73b802003-06-30 21:59:07 +000016934*)
16935 dynamic_linker=no
16936 ;;
16937esac
Reid Spencera773bd52006-08-04 18:18:08 +000016938{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16939echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016940test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016941
Reid Spencera773bd52006-08-04 18:18:08 +000016942variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16943if test "$GCC" = yes; then
16944 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16945fi
16946
16947{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16948echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016949hardcode_action=
16950if test -n "$hardcode_libdir_flag_spec" || \
16951 test -n "$runpath_var" || \
16952 test "X$hardcode_automatic" = "Xyes" ; then
16953
16954 # We can hardcode non-existant directories.
16955 if test "$hardcode_direct" != no &&
16956 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16957 # have to relink, otherwise we might link with an installed library
16958 # when we should be linking with a yet-to-be-installed one
16959 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16960 test "$hardcode_minus_L" != no; then
16961 # Linking always hardcodes the temporary library directory.
16962 hardcode_action=relink
16963 else
16964 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16965 hardcode_action=immediate
16966 fi
16967else
16968 # We cannot hardcode anything, or else we can only hardcode existing
16969 # directories.
16970 hardcode_action=unsupported
16971fi
Reid Spencera773bd52006-08-04 18:18:08 +000016972{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16973echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016974
16975if test "$hardcode_action" = relink; then
16976 # Fast installation is not supported
16977 enable_fast_install=no
16978elif test "$shlibpath_overrides_runpath" = yes ||
16979 test "$enable_shared" = no; then
16980 # Fast installation is not necessary
16981 enable_fast_install=needless
16982fi
16983
16984striplib=
16985old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016986{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16987echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016988if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16989 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16990 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016991 { echo "$as_me:$LINENO: result: yes" >&5
16992echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016993else
16994# FIXME - insert some real tests, host_os isn't really good enough
16995 case $host_os in
16996 darwin*)
16997 if test -n "$STRIP" ; then
16998 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016999 { echo "$as_me:$LINENO: result: yes" >&5
17000echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000017001 else
Reid Spencera773bd52006-08-04 18:18:08 +000017002 { echo "$as_me:$LINENO: result: no" >&5
17003echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000017004fi
17005 ;;
17006 *)
Reid Spencera773bd52006-08-04 18:18:08 +000017007 { echo "$as_me:$LINENO: result: no" >&5
17008echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000017009 ;;
17010 esac
17011fi
17012
John Criswell7a73b802003-06-30 21:59:07 +000017013if test "x$enable_dlopen" != xyes; then
17014 enable_dlopen=unknown
17015 enable_dlopen_self=unknown
17016 enable_dlopen_self_static=unknown
17017else
17018 lt_cv_dlopen=no
17019 lt_cv_dlopen_libs=
17020
17021 case $host_os in
17022 beos*)
17023 lt_cv_dlopen="load_add_on"
17024 lt_cv_dlopen_libs=
17025 lt_cv_dlopen_self=yes
17026 ;;
17027
John Criswell47fdd832003-07-14 16:52:07 +000017028 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000017029 lt_cv_dlopen="LoadLibrary"
17030 lt_cv_dlopen_libs=
17031 ;;
17032
John Criswell47fdd832003-07-14 16:52:07 +000017033 cygwin*)
17034 lt_cv_dlopen="dlopen"
17035 lt_cv_dlopen_libs=
17036 ;;
17037
17038 darwin*)
17039 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000017040 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17041echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017042if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17043 echo $ECHO_N "(cached) $ECHO_C" >&6
17044else
17045 ac_check_lib_save_LIBS=$LIBS
17046LIBS="-ldl $LIBS"
17047cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017048/* confdefs.h. */
17049_ACEOF
17050cat confdefs.h >>conftest.$ac_ext
17051cat >>conftest.$ac_ext <<_ACEOF
17052/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017053
Reid Spencera773bd52006-08-04 18:18:08 +000017054/* Override any GCC internal prototype to avoid an error.
17055 Use char because int might match the return type of a GCC
17056 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000017057#ifdef __cplusplus
17058extern "C"
17059#endif
John Criswell47fdd832003-07-14 16:52:07 +000017060char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017061int
17062main ()
17063{
Reid Spencera773bd52006-08-04 18:18:08 +000017064return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017065 ;
17066 return 0;
17067}
17068_ACEOF
17069rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017070if { (ac_try="$ac_link"
17071case "(($ac_try" in
17072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17073 *) ac_try_echo=$ac_try;;
17074esac
17075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17076 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017077 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017078 grep -v '^ *+' conftest.er1 >conftest.err
17079 rm -f conftest.er1
17080 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017082 (exit $ac_status); } &&
17083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17084 { (case "(($ac_try" in
17085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17086 *) ac_try_echo=$ac_try;;
17087esac
17088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17089 (eval "$ac_try") 2>&5
17090 ac_status=$?
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); }; } &&
17093 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000017103 ac_cv_lib_dl_dlopen=yes
17104else
17105 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017106sed 's/^/| /' conftest.$ac_ext >&5
17107
Reid Spencera773bd52006-08-04 18:18:08 +000017108 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000017109fi
Reid Spencera773bd52006-08-04 18:18:08 +000017110
Bill Wendlingebcceee2009-04-18 11:20:33 +000017111rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017112 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017113LIBS=$ac_check_lib_save_LIBS
17114fi
Reid Spencera773bd52006-08-04 18:18:08 +000017115{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17116echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017117if test $ac_cv_lib_dl_dlopen = yes; then
17118 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17119else
17120
17121 lt_cv_dlopen="dyld"
17122 lt_cv_dlopen_libs=
17123 lt_cv_dlopen_self=yes
17124
17125fi
17126
17127 ;;
17128
John Criswell7a73b802003-06-30 21:59:07 +000017129 *)
Reid Spencera773bd52006-08-04 18:18:08 +000017130 { echo "$as_me:$LINENO: checking for shl_load" >&5
17131echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017132if test "${ac_cv_func_shl_load+set}" = set; then
17133 echo $ECHO_N "(cached) $ECHO_C" >&6
17134else
17135 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017136/* confdefs.h. */
17137_ACEOF
17138cat confdefs.h >>conftest.$ac_ext
17139cat >>conftest.$ac_ext <<_ACEOF
17140/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017141/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17143#define shl_load innocuous_shl_load
17144
John Criswell7a73b802003-06-30 21:59:07 +000017145/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017146 which can conflict with char shl_load (); below.
17147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17148 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017149
John Criswell0c38eaf2003-09-10 15:17:25 +000017150#ifdef __STDC__
17151# include <limits.h>
17152#else
17153# include <assert.h>
17154#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017155
17156#undef shl_load
17157
Reid Spencera773bd52006-08-04 18:18:08 +000017158/* Override any GCC internal prototype to avoid an error.
17159 Use char because int might match the return type of a GCC
17160 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017161#ifdef __cplusplus
17162extern "C"
17163#endif
John Criswell7a73b802003-06-30 21:59:07 +000017164char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017165/* The GNU C library defines this for functions which it implements
17166 to always fail with ENOSYS. Some functions are actually named
17167 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017168#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000017169choke me
John Criswell7a73b802003-06-30 21:59:07 +000017170#endif
17171
John Criswell0c38eaf2003-09-10 15:17:25 +000017172int
17173main ()
17174{
Reid Spencera773bd52006-08-04 18:18:08 +000017175return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017176 ;
17177 return 0;
17178}
17179_ACEOF
17180rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017181if { (ac_try="$ac_link"
17182case "(($ac_try" in
17183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17184 *) ac_try_echo=$ac_try;;
17185esac
17186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17187 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017188 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017189 grep -v '^ *+' conftest.er1 >conftest.err
17190 rm -f conftest.er1
17191 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017193 (exit $ac_status); } &&
17194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17195 { (case "(($ac_try" in
17196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17197 *) ac_try_echo=$ac_try;;
17198esac
17199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17200 (eval "$ac_try") 2>&5
17201 ac_status=$?
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); }; } &&
17204 { ac_try='test -s conftest$ac_exeext'
17205 { (case "(($ac_try" in
17206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17207 *) ac_try_echo=$ac_try;;
17208esac
17209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17210 (eval "$ac_try") 2>&5
17211 ac_status=$?
17212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017214 ac_cv_func_shl_load=yes
17215else
17216 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017217sed 's/^/| /' conftest.$ac_ext >&5
17218
Reid Spencera773bd52006-08-04 18:18:08 +000017219 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017220fi
Reid Spencera773bd52006-08-04 18:18:08 +000017221
Bill Wendlingebcceee2009-04-18 11:20:33 +000017222rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017223 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017224fi
Reid Spencera773bd52006-08-04 18:18:08 +000017225{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17226echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017227if test $ac_cv_func_shl_load = yes; then
17228 lt_cv_dlopen="shl_load"
17229else
Reid Spencera773bd52006-08-04 18:18:08 +000017230 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17231echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017232if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17233 echo $ECHO_N "(cached) $ECHO_C" >&6
17234else
17235 ac_check_lib_save_LIBS=$LIBS
17236LIBS="-ldld $LIBS"
17237cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017238/* confdefs.h. */
17239_ACEOF
17240cat confdefs.h >>conftest.$ac_ext
17241cat >>conftest.$ac_ext <<_ACEOF
17242/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017243
Reid Spencera773bd52006-08-04 18:18:08 +000017244/* Override any GCC internal prototype to avoid an error.
17245 Use char because int might match the return type of a GCC
17246 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017247#ifdef __cplusplus
17248extern "C"
17249#endif
John Criswell7a73b802003-06-30 21:59:07 +000017250char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017251int
17252main ()
17253{
Reid Spencera773bd52006-08-04 18:18:08 +000017254return shl_load ();
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_lib_dld_shl_load=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_lib_dld_shl_load=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 +000017303LIBS=$ac_check_lib_save_LIBS
17304fi
Reid Spencera773bd52006-08-04 18:18:08 +000017305{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17306echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017307if test $ac_cv_lib_dld_shl_load = yes; then
17308 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17309else
Reid Spencera773bd52006-08-04 18:18:08 +000017310 { echo "$as_me:$LINENO: checking for dlopen" >&5
17311echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017312if test "${ac_cv_func_dlopen+set}" = set; then
17313 echo $ECHO_N "(cached) $ECHO_C" >&6
17314else
17315 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017316/* confdefs.h. */
17317_ACEOF
17318cat confdefs.h >>conftest.$ac_ext
17319cat >>conftest.$ac_ext <<_ACEOF
17320/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017321/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17323#define dlopen innocuous_dlopen
17324
John Criswell7a73b802003-06-30 21:59:07 +000017325/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017326 which can conflict with char dlopen (); below.
17327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17328 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017329
John Criswell0c38eaf2003-09-10 15:17:25 +000017330#ifdef __STDC__
17331# include <limits.h>
17332#else
17333# include <assert.h>
17334#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017335
17336#undef dlopen
17337
Reid Spencera773bd52006-08-04 18:18:08 +000017338/* Override any GCC internal prototype to avoid an error.
17339 Use char because int might match the return type of a GCC
17340 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017341#ifdef __cplusplus
17342extern "C"
17343#endif
John Criswell7a73b802003-06-30 21:59:07 +000017344char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017345/* The GNU C library defines this for functions which it implements
17346 to always fail with ENOSYS. Some functions are actually named
17347 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017348#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000017349choke me
John Criswell7a73b802003-06-30 21:59:07 +000017350#endif
17351
John Criswell0c38eaf2003-09-10 15:17:25 +000017352int
17353main ()
17354{
Reid Spencera773bd52006-08-04 18:18:08 +000017355return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017356 ;
17357 return 0;
17358}
17359_ACEOF
17360rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017361if { (ac_try="$ac_link"
17362case "(($ac_try" in
17363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17364 *) ac_try_echo=$ac_try;;
17365esac
17366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17367 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017368 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017369 grep -v '^ *+' conftest.er1 >conftest.err
17370 rm -f conftest.er1
17371 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017373 (exit $ac_status); } &&
17374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17375 { (case "(($ac_try" in
17376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17377 *) ac_try_echo=$ac_try;;
17378esac
17379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17380 (eval "$ac_try") 2>&5
17381 ac_status=$?
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); }; } &&
17384 { ac_try='test -s conftest$ac_exeext'
17385 { (case "(($ac_try" in
17386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17387 *) ac_try_echo=$ac_try;;
17388esac
17389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17390 (eval "$ac_try") 2>&5
17391 ac_status=$?
17392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017394 ac_cv_func_dlopen=yes
17395else
17396 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017397sed 's/^/| /' conftest.$ac_ext >&5
17398
Reid Spencera773bd52006-08-04 18:18:08 +000017399 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017400fi
Reid Spencera773bd52006-08-04 18:18:08 +000017401
Bill Wendlingebcceee2009-04-18 11:20:33 +000017402rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017403 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017404fi
Reid Spencera773bd52006-08-04 18:18:08 +000017405{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17406echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017407if test $ac_cv_func_dlopen = yes; then
17408 lt_cv_dlopen="dlopen"
17409else
Reid Spencera773bd52006-08-04 18:18:08 +000017410 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17411echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017412if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17413 echo $ECHO_N "(cached) $ECHO_C" >&6
17414else
17415 ac_check_lib_save_LIBS=$LIBS
17416LIBS="-ldl $LIBS"
17417cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017418/* confdefs.h. */
17419_ACEOF
17420cat confdefs.h >>conftest.$ac_ext
17421cat >>conftest.$ac_ext <<_ACEOF
17422/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017423
Reid Spencera773bd52006-08-04 18:18:08 +000017424/* Override any GCC internal prototype to avoid an error.
17425 Use char because int might match the return type of a GCC
17426 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017427#ifdef __cplusplus
17428extern "C"
17429#endif
John Criswell7a73b802003-06-30 21:59:07 +000017430char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017431int
17432main ()
17433{
Reid Spencera773bd52006-08-04 18:18:08 +000017434return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017435 ;
17436 return 0;
17437}
17438_ACEOF
17439rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017440if { (ac_try="$ac_link"
17441case "(($ac_try" in
17442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17443 *) ac_try_echo=$ac_try;;
17444esac
17445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17446 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017447 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017448 grep -v '^ *+' conftest.er1 >conftest.err
17449 rm -f conftest.er1
17450 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017452 (exit $ac_status); } &&
17453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17454 { (case "(($ac_try" in
17455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17456 *) ac_try_echo=$ac_try;;
17457esac
17458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17459 (eval "$ac_try") 2>&5
17460 ac_status=$?
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); }; } &&
17463 { ac_try='test -s conftest$ac_exeext'
17464 { (case "(($ac_try" in
17465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17466 *) ac_try_echo=$ac_try;;
17467esac
17468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17469 (eval "$ac_try") 2>&5
17470 ac_status=$?
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017473 ac_cv_lib_dl_dlopen=yes
17474else
17475 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017476sed 's/^/| /' conftest.$ac_ext >&5
17477
Reid Spencera773bd52006-08-04 18:18:08 +000017478 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017479fi
Reid Spencera773bd52006-08-04 18:18:08 +000017480
Bill Wendlingebcceee2009-04-18 11:20:33 +000017481rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017482 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017483LIBS=$ac_check_lib_save_LIBS
17484fi
Reid Spencera773bd52006-08-04 18:18:08 +000017485{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17486echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017487if test $ac_cv_lib_dl_dlopen = yes; then
17488 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17489else
Reid Spencera773bd52006-08-04 18:18:08 +000017490 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17491echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017492if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17493 echo $ECHO_N "(cached) $ECHO_C" >&6
17494else
17495 ac_check_lib_save_LIBS=$LIBS
17496LIBS="-lsvld $LIBS"
17497cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017498/* confdefs.h. */
17499_ACEOF
17500cat confdefs.h >>conftest.$ac_ext
17501cat >>conftest.$ac_ext <<_ACEOF
17502/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017503
Reid Spencera773bd52006-08-04 18:18:08 +000017504/* Override any GCC internal prototype to avoid an error.
17505 Use char because int might match the return type of a GCC
17506 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017507#ifdef __cplusplus
17508extern "C"
17509#endif
John Criswell7a73b802003-06-30 21:59:07 +000017510char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017511int
17512main ()
17513{
Reid Spencera773bd52006-08-04 18:18:08 +000017514return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017515 ;
17516 return 0;
17517}
17518_ACEOF
17519rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017520if { (ac_try="$ac_link"
17521case "(($ac_try" in
17522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17523 *) ac_try_echo=$ac_try;;
17524esac
17525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17526 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017527 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017528 grep -v '^ *+' conftest.er1 >conftest.err
17529 rm -f conftest.er1
17530 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017532 (exit $ac_status); } &&
17533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17534 { (case "(($ac_try" in
17535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536 *) ac_try_echo=$ac_try;;
17537esac
17538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539 (eval "$ac_try") 2>&5
17540 ac_status=$?
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); }; } &&
17543 { ac_try='test -s conftest$ac_exeext'
17544 { (case "(($ac_try" in
17545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17546 *) ac_try_echo=$ac_try;;
17547esac
17548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17549 (eval "$ac_try") 2>&5
17550 ac_status=$?
17551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017553 ac_cv_lib_svld_dlopen=yes
17554else
17555 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017556sed 's/^/| /' conftest.$ac_ext >&5
17557
Reid Spencera773bd52006-08-04 18:18:08 +000017558 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017559fi
Reid Spencera773bd52006-08-04 18:18:08 +000017560
Bill Wendlingebcceee2009-04-18 11:20:33 +000017561rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017562 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017563LIBS=$ac_check_lib_save_LIBS
17564fi
Reid Spencera773bd52006-08-04 18:18:08 +000017565{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17566echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017567if test $ac_cv_lib_svld_dlopen = yes; then
17568 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17569else
Reid Spencera773bd52006-08-04 18:18:08 +000017570 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17571echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017572if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17573 echo $ECHO_N "(cached) $ECHO_C" >&6
17574else
17575 ac_check_lib_save_LIBS=$LIBS
17576LIBS="-ldld $LIBS"
17577cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017578/* confdefs.h. */
17579_ACEOF
17580cat confdefs.h >>conftest.$ac_ext
17581cat >>conftest.$ac_ext <<_ACEOF
17582/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017583
Reid Spencera773bd52006-08-04 18:18:08 +000017584/* Override any GCC internal prototype to avoid an error.
17585 Use char because int might match the return type of a GCC
17586 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017587#ifdef __cplusplus
17588extern "C"
17589#endif
John Criswell7a73b802003-06-30 21:59:07 +000017590char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017591int
17592main ()
17593{
Reid Spencera773bd52006-08-04 18:18:08 +000017594return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017595 ;
17596 return 0;
17597}
17598_ACEOF
17599rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017600if { (ac_try="$ac_link"
17601case "(($ac_try" in
17602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17603 *) ac_try_echo=$ac_try;;
17604esac
17605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17606 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017607 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017608 grep -v '^ *+' conftest.er1 >conftest.err
17609 rm -f conftest.er1
17610 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017612 (exit $ac_status); } &&
17613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17614 { (case "(($ac_try" in
17615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17616 *) ac_try_echo=$ac_try;;
17617esac
17618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17619 (eval "$ac_try") 2>&5
17620 ac_status=$?
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); }; } &&
17623 { ac_try='test -s conftest$ac_exeext'
17624 { (case "(($ac_try" in
17625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17626 *) ac_try_echo=$ac_try;;
17627esac
17628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17629 (eval "$ac_try") 2>&5
17630 ac_status=$?
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017633 ac_cv_lib_dld_dld_link=yes
17634else
17635 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017636sed 's/^/| /' conftest.$ac_ext >&5
17637
Reid Spencera773bd52006-08-04 18:18:08 +000017638 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017639fi
Reid Spencera773bd52006-08-04 18:18:08 +000017640
Bill Wendlingebcceee2009-04-18 11:20:33 +000017641rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017642 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017643LIBS=$ac_check_lib_save_LIBS
17644fi
Reid Spencera773bd52006-08-04 18:18:08 +000017645{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17646echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017647if test $ac_cv_lib_dld_dld_link = yes; then
17648 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17649fi
17650
17651
17652fi
17653
17654
17655fi
17656
17657
17658fi
17659
17660
17661fi
17662
17663
17664fi
17665
17666 ;;
17667 esac
17668
17669 if test "x$lt_cv_dlopen" != xno; then
17670 enable_dlopen=yes
17671 else
17672 enable_dlopen=no
17673 fi
17674
17675 case $lt_cv_dlopen in
17676 dlopen)
17677 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017678 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017679
17680 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017681 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017682
17683 save_LIBS="$LIBS"
17684 LIBS="$lt_cv_dlopen_libs $LIBS"
17685
Reid Spencera773bd52006-08-04 18:18:08 +000017686 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17687echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017688if test "${lt_cv_dlopen_self+set}" = set; then
17689 echo $ECHO_N "(cached) $ECHO_C" >&6
17690else
17691 if test "$cross_compiling" = yes; then :
17692 lt_cv_dlopen_self=cross
17693else
John Criswell47fdd832003-07-14 16:52:07 +000017694 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017695 lt_status=$lt_dlunknown
17696 cat > conftest.$ac_ext <<EOF
Edward O'Callaghan2b19d692009-10-14 00:44:50 +000017697#line 17697 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017698#include "confdefs.h"
17699
17700#if HAVE_DLFCN_H
17701#include <dlfcn.h>
17702#endif
17703
17704#include <stdio.h>
17705
17706#ifdef RTLD_GLOBAL
17707# define LT_DLGLOBAL RTLD_GLOBAL
17708#else
17709# ifdef DL_GLOBAL
17710# define LT_DLGLOBAL DL_GLOBAL
17711# else
17712# define LT_DLGLOBAL 0
17713# endif
17714#endif
17715
17716/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17717 find out it does not work in some platform. */
17718#ifndef LT_DLLAZY_OR_NOW
17719# ifdef RTLD_LAZY
17720# define LT_DLLAZY_OR_NOW RTLD_LAZY
17721# else
17722# ifdef DL_LAZY
17723# define LT_DLLAZY_OR_NOW DL_LAZY
17724# else
17725# ifdef RTLD_NOW
17726# define LT_DLLAZY_OR_NOW RTLD_NOW
17727# else
17728# ifdef DL_NOW
17729# define LT_DLLAZY_OR_NOW DL_NOW
17730# else
17731# define LT_DLLAZY_OR_NOW 0
17732# endif
17733# endif
17734# endif
17735# endif
17736#endif
17737
17738#ifdef __cplusplus
17739extern "C" void exit (int);
17740#endif
17741
17742void fnord() { int i=42;}
17743int main ()
17744{
17745 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17746 int status = $lt_dlunknown;
17747
17748 if (self)
17749 {
17750 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17751 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17752 /* dlclose (self); */
17753 }
Reid Spencera773bd52006-08-04 18:18:08 +000017754 else
17755 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017756
17757 exit (status);
17758}
17759EOF
17760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17761 (eval $ac_link) 2>&5
17762 ac_status=$?
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017765 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017766 lt_status=$?
17767 case x$lt_status in
17768 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17769 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017770 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017771 esac
17772 else :
17773 # compilation failed
17774 lt_cv_dlopen_self=no
17775 fi
17776fi
17777rm -fr conftest*
17778
17779
17780fi
Reid Spencera773bd52006-08-04 18:18:08 +000017781{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17782echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017783
17784 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017785 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17786 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17787echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017788if test "${lt_cv_dlopen_self_static+set}" = set; then
17789 echo $ECHO_N "(cached) $ECHO_C" >&6
17790else
17791 if test "$cross_compiling" = yes; then :
17792 lt_cv_dlopen_self_static=cross
17793else
John Criswell47fdd832003-07-14 16:52:07 +000017794 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017795 lt_status=$lt_dlunknown
17796 cat > conftest.$ac_ext <<EOF
Edward O'Callaghan2b19d692009-10-14 00:44:50 +000017797#line 17797 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017798#include "confdefs.h"
17799
17800#if HAVE_DLFCN_H
17801#include <dlfcn.h>
17802#endif
17803
17804#include <stdio.h>
17805
17806#ifdef RTLD_GLOBAL
17807# define LT_DLGLOBAL RTLD_GLOBAL
17808#else
17809# ifdef DL_GLOBAL
17810# define LT_DLGLOBAL DL_GLOBAL
17811# else
17812# define LT_DLGLOBAL 0
17813# endif
17814#endif
17815
17816/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17817 find out it does not work in some platform. */
17818#ifndef LT_DLLAZY_OR_NOW
17819# ifdef RTLD_LAZY
17820# define LT_DLLAZY_OR_NOW RTLD_LAZY
17821# else
17822# ifdef DL_LAZY
17823# define LT_DLLAZY_OR_NOW DL_LAZY
17824# else
17825# ifdef RTLD_NOW
17826# define LT_DLLAZY_OR_NOW RTLD_NOW
17827# else
17828# ifdef DL_NOW
17829# define LT_DLLAZY_OR_NOW DL_NOW
17830# else
17831# define LT_DLLAZY_OR_NOW 0
17832# endif
17833# endif
17834# endif
17835# endif
17836#endif
17837
17838#ifdef __cplusplus
17839extern "C" void exit (int);
17840#endif
17841
17842void fnord() { int i=42;}
17843int main ()
17844{
17845 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17846 int status = $lt_dlunknown;
17847
17848 if (self)
17849 {
17850 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17851 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17852 /* dlclose (self); */
17853 }
Reid Spencera773bd52006-08-04 18:18:08 +000017854 else
17855 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017856
17857 exit (status);
17858}
17859EOF
17860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17861 (eval $ac_link) 2>&5
17862 ac_status=$?
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017865 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017866 lt_status=$?
17867 case x$lt_status in
17868 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17869 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017870 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017871 esac
17872 else :
17873 # compilation failed
17874 lt_cv_dlopen_self_static=no
17875 fi
17876fi
17877rm -fr conftest*
17878
17879
17880fi
Reid Spencera773bd52006-08-04 18:18:08 +000017881{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17882echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017883 fi
17884
17885 CPPFLAGS="$save_CPPFLAGS"
17886 LDFLAGS="$save_LDFLAGS"
17887 LIBS="$save_LIBS"
17888 ;;
17889 esac
17890
17891 case $lt_cv_dlopen_self in
17892 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17893 *) enable_dlopen_self=unknown ;;
17894 esac
17895
17896 case $lt_cv_dlopen_self_static in
17897 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17898 *) enable_dlopen_self_static=unknown ;;
17899 esac
17900fi
17901
17902
Reid Spencera773bd52006-08-04 18:18:08 +000017903# Report which library types will actually be built
17904{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17905echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17906{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17907echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017908
Reid Spencera773bd52006-08-04 18:18:08 +000017909{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17910echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017911test "$can_build_shared" = "no" && enable_shared=no
17912
17913# On AIX, shared libraries and static libraries use the same namespace, and
17914# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017915case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017916aix3*)
17917 test "$enable_shared" = yes && enable_static=no
17918 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017919 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017920 postinstall_cmds='$RANLIB $lib'
17921 fi
17922 ;;
17923
Reid Spencer2706f8c2004-09-19 23:53:36 +000017924aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017925 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17926 test "$enable_shared" = yes && enable_static=no
17927 fi
John Criswell7a73b802003-06-30 21:59:07 +000017928 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017929esac
Reid Spencera773bd52006-08-04 18:18:08 +000017930{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17931echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017932
Reid Spencera773bd52006-08-04 18:18:08 +000017933{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17934echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017935# Make sure either enable_shared or enable_static is yes.
17936test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017937{ echo "$as_me:$LINENO: result: $enable_static" >&5
17938echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017939
17940# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017941# libtool distribution, otherwise you forgot to ship ltmain.sh
17942# with your package, and you will get complaints that there are
17943# no rules to generate ltmain.sh.
17944if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017945 # See if we are running on zsh, and set the options which allow our commands through
17946 # without removal of \ escapes.
17947 if test -n "${ZSH_VERSION+set}" ; then
17948 setopt NO_GLOB_SUBST
17949 fi
John Criswell7a73b802003-06-30 21:59:07 +000017950 # Now quote all the things that may contain metacharacters while being
17951 # careful not to overquote the AC_SUBSTed values. We take copies of the
17952 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017953 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 +000017954 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017955 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17956 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17957 deplibs_check_method reload_flag reload_cmds need_locks \
17958 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17959 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017960 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017961 old_postinstall_cmds old_postuninstall_cmds \
17962 compiler \
17963 CC \
17964 LD \
17965 lt_prog_compiler_wl \
17966 lt_prog_compiler_pic \
17967 lt_prog_compiler_static \
17968 lt_prog_compiler_no_builtin_flag \
17969 export_dynamic_flag_spec \
17970 thread_safe_flag_spec \
17971 whole_archive_flag_spec \
17972 enable_shared_with_static_runtimes \
17973 old_archive_cmds \
17974 old_archive_from_new_cmds \
17975 predep_objects \
17976 postdep_objects \
17977 predeps \
17978 postdeps \
17979 compiler_lib_search_path \
17980 archive_cmds \
17981 archive_expsym_cmds \
17982 postinstall_cmds \
17983 postuninstall_cmds \
17984 old_archive_from_expsyms_cmds \
17985 allow_undefined_flag \
17986 no_undefined_flag \
17987 export_symbols_cmds \
17988 hardcode_libdir_flag_spec \
17989 hardcode_libdir_flag_spec_ld \
17990 hardcode_libdir_separator \
17991 hardcode_automatic \
17992 module_cmds \
17993 module_expsym_cmds \
17994 lt_cv_prog_compiler_c_o \
17995 exclude_expsyms \
17996 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017997
17998 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017999 old_archive_cmds | \
18000 old_archive_from_new_cmds | \
18001 archive_cmds | \
18002 archive_expsym_cmds | \
18003 module_cmds | \
18004 module_expsym_cmds | \
18005 old_archive_from_expsyms_cmds | \
18006 export_symbols_cmds | \
18007 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000018008 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000018009 old_postinstall_cmds | old_postuninstall_cmds | \
18010 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000018011 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018012 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 +000018013 ;;
18014 *)
18015 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18016 ;;
18017 esac
18018 done
18019
John Criswell47fdd832003-07-14 16:52:07 +000018020 case $lt_echo in
18021 *'\$0 --fallback-echo"')
18022 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18023 ;;
18024 esac
18025
18026cfgfile="${ofile}T"
18027 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18028 $rm -f "$cfgfile"
18029 { echo "$as_me:$LINENO: creating $ofile" >&5
18030echo "$as_me: creating $ofile" >&6;}
18031
18032 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018033#! $SHELL
18034
John Criswell47fdd832003-07-14 16:52:07 +000018035# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000018036# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18037# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18038#
John Criswell47fdd832003-07-14 16:52:07 +000018039# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18040# Free Software Foundation, Inc.
18041#
18042# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000018043# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18044#
18045# This program is free software; you can redistribute it and/or modify
18046# it under the terms of the GNU General Public License as published by
18047# the Free Software Foundation; either version 2 of the License, or
18048# (at your option) any later version.
18049#
18050# This program is distributed in the hope that it will be useful, but
18051# WITHOUT ANY WARRANTY; without even the implied warranty of
18052# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18053# General Public License for more details.
18054#
18055# You should have received a copy of the GNU General Public License
18056# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000018057# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000018058#
18059# As a special exception to the GNU General Public License, if you
18060# distribute this file as part of a program that contains a
18061# configuration script generated by Autoconf, you may include it under
18062# the same distribution terms that you use for the rest of that program.
18063
John Criswell47fdd832003-07-14 16:52:07 +000018064# A sed program that does not truncate output.
18065SED=$lt_SED
18066
John Criswell7a73b802003-06-30 21:59:07 +000018067# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000018068Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000018069
18070# The HP-UX ksh and POSIX shell print the target directory to stdout
18071# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018072(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000018073
John Criswell47fdd832003-07-14 16:52:07 +000018074# The names of the tagged configurations supported by this script.
18075available_tags=
18076
John Criswell7a73b802003-06-30 21:59:07 +000018077# ### BEGIN LIBTOOL CONFIG
18078
18079# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18080
18081# Shell to use when invoking shell scripts.
18082SHELL=$lt_SHELL
18083
18084# Whether or not to build shared libraries.
18085build_libtool_libs=$enable_shared
18086
18087# Whether or not to build static libraries.
18088build_old_libs=$enable_static
18089
18090# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000018091build_libtool_need_lc=$archive_cmds_need_lc
18092
18093# Whether or not to disallow shared libs when runtime libs are static
18094allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000018095
18096# Whether or not to optimize for fast installation.
18097fast_install=$enable_fast_install
18098
18099# The host system.
18100host_alias=$host_alias
18101host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000018102host_os=$host_os
18103
18104# The build system.
18105build_alias=$build_alias
18106build=$build
18107build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000018108
18109# An echo program that does not interpret backslashes.
18110echo=$lt_echo
18111
18112# The archiver.
18113AR=$lt_AR
18114AR_FLAGS=$lt_AR_FLAGS
18115
John Criswell47fdd832003-07-14 16:52:07 +000018116# A C compiler.
18117LTCC=$lt_LTCC
18118
Reid Spencera773bd52006-08-04 18:18:08 +000018119# LTCC compiler flags.
18120LTCFLAGS=$lt_LTCFLAGS
18121
John Criswell47fdd832003-07-14 16:52:07 +000018122# A language-specific compiler.
18123CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000018124
18125# Is the compiler the GNU C compiler?
18126with_gcc=$GCC
18127
John Criswell47fdd832003-07-14 16:52:07 +000018128# An ERE matcher.
18129EGREP=$lt_EGREP
18130
John Criswell7a73b802003-06-30 21:59:07 +000018131# The linker used to build libraries.
18132LD=$lt_LD
18133
18134# Whether we need hard or soft links.
18135LN_S=$lt_LN_S
18136
18137# A BSD-compatible nm program.
18138NM=$lt_NM
18139
18140# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018141STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000018142
18143# Used to examine libraries when file_magic_cmd begins "file"
18144MAGIC_CMD=$MAGIC_CMD
18145
18146# Used on cygwin: DLL creation program.
18147DLLTOOL="$DLLTOOL"
18148
18149# Used on cygwin: object dumper.
18150OBJDUMP="$OBJDUMP"
18151
18152# Used on cygwin: assembler.
18153AS="$AS"
18154
18155# The name of the directory that contains temporary libtool files.
18156objdir=$objdir
18157
18158# How to create reloadable object files.
18159reload_flag=$lt_reload_flag
18160reload_cmds=$lt_reload_cmds
18161
18162# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000018163wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000018164
18165# Object file suffix (normally "o").
18166objext="$ac_objext"
18167
18168# Old archive suffix (normally "a").
18169libext="$libext"
18170
John Criswell47fdd832003-07-14 16:52:07 +000018171# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018172shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018173
John Criswell7a73b802003-06-30 21:59:07 +000018174# Executable file suffix (normally "").
18175exeext="$exeext"
18176
18177# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000018178pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000018179pic_mode=$pic_mode
18180
John Criswell47fdd832003-07-14 16:52:07 +000018181# What is the maximum length of a command?
18182max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000018183
John Criswell47fdd832003-07-14 16:52:07 +000018184# Does compiler simultaneously support -c and -o options?
18185compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000018186
Reid Spencera773bd52006-08-04 18:18:08 +000018187# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000018188need_locks=$lt_need_locks
18189
18190# Do we need the lib prefix for modules?
18191need_lib_prefix=$need_lib_prefix
18192
18193# Do we need a version for libraries?
18194need_version=$need_version
18195
18196# Whether dlopen is supported.
18197dlopen_support=$enable_dlopen
18198
18199# Whether dlopen of programs is supported.
18200dlopen_self=$enable_dlopen_self
18201
18202# Whether dlopen of statically linked programs is supported.
18203dlopen_self_static=$enable_dlopen_self_static
18204
18205# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000018206link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000018207
18208# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000018209no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000018210
18211# Compiler flag to allow reflexive dlopens.
18212export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18213
18214# Compiler flag to generate shared objects directly from archives.
18215whole_archive_flag_spec=$lt_whole_archive_flag_spec
18216
18217# Compiler flag to generate thread-safe objects.
18218thread_safe_flag_spec=$lt_thread_safe_flag_spec
18219
18220# Library versioning type.
18221version_type=$version_type
18222
18223# Format of library name prefix.
18224libname_spec=$lt_libname_spec
18225
18226# List of archive names. First name is the real one, the rest are links.
18227# The last name is the one that the linker finds with -lNAME.
18228library_names_spec=$lt_library_names_spec
18229
18230# The coded name of the library, if different from the real name.
18231soname_spec=$lt_soname_spec
18232
18233# Commands used to build and install an old-style archive.
18234RANLIB=$lt_RANLIB
18235old_archive_cmds=$lt_old_archive_cmds
18236old_postinstall_cmds=$lt_old_postinstall_cmds
18237old_postuninstall_cmds=$lt_old_postuninstall_cmds
18238
18239# Create an old-style archive from a shared archive.
18240old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18241
18242# Create a temporary old-style archive to link instead of a shared archive.
18243old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18244
18245# Commands used to build and install a shared archive.
18246archive_cmds=$lt_archive_cmds
18247archive_expsym_cmds=$lt_archive_expsym_cmds
18248postinstall_cmds=$lt_postinstall_cmds
18249postuninstall_cmds=$lt_postuninstall_cmds
18250
John Criswell47fdd832003-07-14 16:52:07 +000018251# Commands used to build a loadable module (assumed same as above if empty)
18252module_cmds=$lt_module_cmds
18253module_expsym_cmds=$lt_module_expsym_cmds
18254
John Criswell7a73b802003-06-30 21:59:07 +000018255# Commands to strip libraries.
18256old_striplib=$lt_old_striplib
18257striplib=$lt_striplib
18258
John Criswell47fdd832003-07-14 16:52:07 +000018259# Dependencies to place before the objects being linked to create a
18260# shared library.
18261predep_objects=$lt_predep_objects
18262
18263# Dependencies to place after the objects being linked to create a
18264# shared library.
18265postdep_objects=$lt_postdep_objects
18266
18267# Dependencies to place before the objects being linked to create a
18268# shared library.
18269predeps=$lt_predeps
18270
18271# Dependencies to place after the objects being linked to create a
18272# shared library.
18273postdeps=$lt_postdeps
18274
18275# The library search path used internally by the compiler when linking
18276# a shared library.
18277compiler_lib_search_path=$lt_compiler_lib_search_path
18278
John Criswell7a73b802003-06-30 21:59:07 +000018279# Method to check whether dependent libraries are shared objects.
18280deplibs_check_method=$lt_deplibs_check_method
18281
18282# Command to use when deplibs_check_method == file_magic.
18283file_magic_cmd=$lt_file_magic_cmd
18284
18285# Flag that allows shared libraries with undefined symbols to be built.
18286allow_undefined_flag=$lt_allow_undefined_flag
18287
18288# Flag that forces no undefined symbols.
18289no_undefined_flag=$lt_no_undefined_flag
18290
18291# Commands used to finish a libtool library installation in a directory.
18292finish_cmds=$lt_finish_cmds
18293
18294# Same as above, but a single script fragment to be evaled but not shown.
18295finish_eval=$lt_finish_eval
18296
18297# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000018298global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000018299
18300# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000018301global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000018302
18303# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000018304global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000018305
18306# This is the shared library runtime path variable.
18307runpath_var=$runpath_var
18308
18309# This is the shared library path variable.
18310shlibpath_var=$shlibpath_var
18311
18312# Is shlibpath searched before the hard-coded library search path?
18313shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18314
18315# How to hardcode a shared library path into an executable.
18316hardcode_action=$hardcode_action
18317
18318# Whether we should hardcode library paths into libraries.
18319hardcode_into_libs=$hardcode_into_libs
18320
18321# Flag to hardcode \$libdir into a binary during linking.
18322# This must work even if \$libdir does not exist.
18323hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18324
John Criswell47fdd832003-07-14 16:52:07 +000018325# If ld is used when linking, flag to hardcode \$libdir into
18326# a binary during linking. This must work even if \$libdir does
18327# not exist.
18328hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18329
John Criswell7a73b802003-06-30 21:59:07 +000018330# Whether we need a single -rpath flag with a separated argument.
18331hardcode_libdir_separator=$lt_hardcode_libdir_separator
18332
John Criswell47fdd832003-07-14 16:52:07 +000018333# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000018334# resulting binary.
18335hardcode_direct=$hardcode_direct
18336
18337# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18338# resulting binary.
18339hardcode_minus_L=$hardcode_minus_L
18340
18341# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18342# the resulting binary.
18343hardcode_shlibpath_var=$hardcode_shlibpath_var
18344
John Criswell47fdd832003-07-14 16:52:07 +000018345# Set to yes if building a shared library automatically hardcodes DIR into the library
18346# and all subsequent libraries and executables linked against it.
18347hardcode_automatic=$hardcode_automatic
18348
John Criswell7a73b802003-06-30 21:59:07 +000018349# Variables whose values should be saved in libtool wrapper scripts and
18350# restored at relink time.
18351variables_saved_for_relink="$variables_saved_for_relink"
18352
18353# Whether libtool must link a program against all its dependency libraries.
18354link_all_deplibs=$link_all_deplibs
18355
18356# Compile-time system search path for libraries
18357sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18358
18359# Run-time system search path for libraries
18360sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18361
18362# Fix the shell variable \$srcfile for the compiler.
18363fix_srcfile_path="$fix_srcfile_path"
18364
18365# Set to yes if exported symbols are required.
18366always_export_symbols=$always_export_symbols
18367
18368# The commands to list exported symbols.
18369export_symbols_cmds=$lt_export_symbols_cmds
18370
18371# The commands to extract the exported symbol list from a shared archive.
18372extract_expsyms_cmds=$lt_extract_expsyms_cmds
18373
18374# Symbols that should not be listed in the preloaded symbols.
18375exclude_expsyms=$lt_exclude_expsyms
18376
18377# Symbols that must always be exported.
18378include_expsyms=$lt_include_expsyms
18379
18380# ### END LIBTOOL CONFIG
18381
18382__EOF__
18383
John Criswell47fdd832003-07-14 16:52:07 +000018384
John Criswell7a73b802003-06-30 21:59:07 +000018385 case $host_os in
18386 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000018387 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018388
18389# AIX sometimes has problems with the GCC collect2 program. For some
18390# reason, if we set the COLLECT_NAMES environment variable, the problems
18391# vanish in a puff of smoke.
18392if test "X${COLLECT_NAMES+set}" != Xset; then
18393 COLLECT_NAMES=
18394 export COLLECT_NAMES
18395fi
18396EOF
18397 ;;
18398 esac
18399
John Criswell7a73b802003-06-30 21:59:07 +000018400 # We use sed instead of cat because bash on DJGPP gets confused if
18401 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18402 # text mode, it properly converts lines to CR/LF. This bash problem
18403 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000018404 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000018405
John Criswell47fdd832003-07-14 16:52:07 +000018406 mv -f "$cfgfile" "$ofile" || \
18407 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000018408 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000018409
18410else
18411 # If there is no Makefile yet, we rely on a make rule to execute
18412 # `config.status --recheck' to rerun these tests and create the
18413 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018414 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18415 if test -f "$ltmain_in"; then
18416 test -f Makefile && make "$ltmain"
18417 fi
John Criswell7a73b802003-06-30 21:59:07 +000018418fi
John Criswell7a73b802003-06-30 21:59:07 +000018419
18420
John Criswell47fdd832003-07-14 16:52:07 +000018421ac_ext=c
18422ac_cpp='$CPP $CPPFLAGS'
18423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18425ac_compiler_gnu=$ac_cv_c_compiler_gnu
18426
18427CC="$lt_save_CC"
18428
18429
Reid Spencera773bd52006-08-04 18:18:08 +000018430# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018431if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018432 withval=$with_tags; tagnames="$withval"
18433fi
18434
John Criswell47fdd832003-07-14 16:52:07 +000018435
18436if test -f "$ltmain" && test -n "$tagnames"; then
18437 if test ! -f "${ofile}"; then
18438 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18439echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18440 fi
18441
18442 if test -z "$LTCC"; then
18443 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18444 if test -z "$LTCC"; then
18445 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18446echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18447 else
18448 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18449echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18450 fi
18451 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018452 if test -z "$LTCFLAGS"; then
18453 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18454 fi
John Criswell47fdd832003-07-14 16:52:07 +000018455
18456 # Extract list of available tagged configurations in $ofile.
18457 # Note that this assumes the entire list is on one line.
18458 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18459
18460 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18461 for tagname in $tagnames; do
18462 IFS="$lt_save_ifs"
18463 # Check whether tagname contains only valid characters
18464 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18465 "") ;;
18466 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18467echo "$as_me: error: invalid tag name: $tagname" >&2;}
18468 { (exit 1); exit 1; }; }
18469 ;;
18470 esac
18471
18472 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18473 then
18474 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18475echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18476 { (exit 1); exit 1; }; }
18477 fi
18478
18479 # Update the list of available tags.
18480 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018481 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018482
18483 case $tagname in
18484 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018485 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18486 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18487 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018488 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018489ac_cpp='$CXXCPP $CPPFLAGS'
18490ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18491ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18492ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18493
18494
18495
18496
18497archive_cmds_need_lc_CXX=no
18498allow_undefined_flag_CXX=
18499always_export_symbols_CXX=no
18500archive_expsym_cmds_CXX=
18501export_dynamic_flag_spec_CXX=
18502hardcode_direct_CXX=no
18503hardcode_libdir_flag_spec_CXX=
18504hardcode_libdir_flag_spec_ld_CXX=
18505hardcode_libdir_separator_CXX=
18506hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018507hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018508hardcode_automatic_CXX=no
18509module_cmds_CXX=
18510module_expsym_cmds_CXX=
18511link_all_deplibs_CXX=unknown
18512old_archive_cmds_CXX=$old_archive_cmds
18513no_undefined_flag_CXX=
18514whole_archive_flag_spec_CXX=
18515enable_shared_with_static_runtimes_CXX=no
18516
18517# Dependencies to place before and after the object being linked:
18518predep_objects_CXX=
18519postdep_objects_CXX=
18520predeps_CXX=
18521postdeps_CXX=
18522compiler_lib_search_path_CXX=
18523
18524# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018525ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018526
18527# Object file extension for compiled C++ test sources.
18528objext=o
18529objext_CXX=$objext
18530
18531# Code to be used in simple compile tests
18532lt_simple_compile_test_code="int some_variable = 0;\n"
18533
18534# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018535lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018536
18537# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18538
18539# If no C compiler was specified, use CC.
18540LTCC=${LTCC-"$CC"}
18541
Reid Spencera773bd52006-08-04 18:18:08 +000018542# If no C compiler flags were specified, use CFLAGS.
18543LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18544
John Criswell47fdd832003-07-14 16:52:07 +000018545# Allow CC to be a program name with arguments.
18546compiler=$CC
18547
18548
Reid Spencera773bd52006-08-04 18:18:08 +000018549# save warnings/boilerplate of simple test code
18550ac_outfile=conftest.$ac_objext
18551printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18552eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18553_lt_compiler_boilerplate=`cat conftest.err`
18554$rm conftest*
18555
18556ac_outfile=conftest.$ac_objext
18557printf "$lt_simple_link_test_code" >conftest.$ac_ext
18558eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18559_lt_linker_boilerplate=`cat conftest.err`
18560$rm conftest*
18561
18562
John Criswell47fdd832003-07-14 16:52:07 +000018563# Allow CC to be a program name with arguments.
18564lt_save_CC=$CC
18565lt_save_LD=$LD
18566lt_save_GCC=$GCC
18567GCC=$GXX
18568lt_save_with_gnu_ld=$with_gnu_ld
18569lt_save_path_LD=$lt_cv_path_LD
18570if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18571 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18572else
Reid Spencera773bd52006-08-04 18:18:08 +000018573 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018574fi
18575if test -n "${lt_cv_path_LDCXX+set}"; then
18576 lt_cv_path_LD=$lt_cv_path_LDCXX
18577else
Reid Spencera773bd52006-08-04 18:18:08 +000018578 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018579fi
18580test -z "${LDCXX+set}" || LD=$LDCXX
18581CC=${CXX-"c++"}
18582compiler=$CC
18583compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018584for cc_temp in $compiler""; do
18585 case $cc_temp in
18586 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18587 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18588 \-*) ;;
18589 *) break;;
18590 esac
18591done
18592cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18593
John Criswell47fdd832003-07-14 16:52:07 +000018594
18595# We don't want -fno-exception wen compiling C++ code, so set the
18596# no_builtin_flag separately
18597if test "$GXX" = yes; then
18598 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18599else
18600 lt_prog_compiler_no_builtin_flag_CXX=
18601fi
18602
18603if test "$GXX" = yes; then
18604 # Set up default GNU C++ configuration
18605
18606
Reid Spencera773bd52006-08-04 18:18:08 +000018607# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018608if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018609 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018610else
18611 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018612fi
18613
John Criswell47fdd832003-07-14 16:52:07 +000018614ac_prog=ld
18615if test "$GCC" = yes; then
18616 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018617 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18618echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018619 case $host in
18620 *-*-mingw*)
18621 # gcc leaves a trailing carriage return which upsets mingw
18622 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18623 *)
18624 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18625 esac
18626 case $ac_prog in
18627 # Accept absolute paths.
18628 [\\/]* | ?:[\\/]*)
18629 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018630 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018631 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18632 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18633 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18634 done
18635 test -z "$LD" && LD="$ac_prog"
18636 ;;
18637 "")
18638 # If it fails, then pretend we aren't using GCC.
18639 ac_prog=ld
18640 ;;
18641 *)
18642 # If it is relative, then search for the first ld in PATH.
18643 with_gnu_ld=unknown
18644 ;;
18645 esac
18646elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018647 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18648echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018649else
Reid Spencera773bd52006-08-04 18:18:08 +000018650 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18651echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018652fi
18653if test "${lt_cv_path_LD+set}" = set; then
18654 echo $ECHO_N "(cached) $ECHO_C" >&6
18655else
18656 if test -z "$LD"; then
18657 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18658 for ac_dir in $PATH; do
18659 IFS="$lt_save_ifs"
18660 test -z "$ac_dir" && ac_dir=.
18661 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18662 lt_cv_path_LD="$ac_dir/$ac_prog"
18663 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018664 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018665 # Break only if it was the GNU/non-GNU ld that we prefer.
18666 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18667 *GNU* | *'with BFD'*)
18668 test "$with_gnu_ld" != no && break
18669 ;;
18670 *)
18671 test "$with_gnu_ld" != yes && break
18672 ;;
18673 esac
18674 fi
18675 done
18676 IFS="$lt_save_ifs"
18677else
18678 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18679fi
18680fi
18681
18682LD="$lt_cv_path_LD"
18683if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018684 { echo "$as_me:$LINENO: result: $LD" >&5
18685echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018686else
Reid Spencera773bd52006-08-04 18:18:08 +000018687 { echo "$as_me:$LINENO: result: no" >&5
18688echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018689fi
18690test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18691echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18692 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018693{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18694echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018695if test "${lt_cv_prog_gnu_ld+set}" = set; then
18696 echo $ECHO_N "(cached) $ECHO_C" >&6
18697else
Reid Spencera773bd52006-08-04 18:18:08 +000018698 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018699case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018700*GNU* | *'with BFD'*)
18701 lt_cv_prog_gnu_ld=yes
18702 ;;
18703*)
18704 lt_cv_prog_gnu_ld=no
18705 ;;
18706esac
18707fi
Reid Spencera773bd52006-08-04 18:18:08 +000018708{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18709echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018710with_gnu_ld=$lt_cv_prog_gnu_ld
18711
18712
18713
18714 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18715 # archiving commands below assume that GNU ld is being used.
18716 if test "$with_gnu_ld" = yes; then
18717 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18718 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'
18719
18720 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18721 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18722
18723 # If archive_cmds runs LD, not CC, wlarc should be empty
18724 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18725 # investigate it a little bit more. (MM)
18726 wlarc='${wl}'
18727
18728 # ancient GNU ld didn't support --whole-archive et. al.
18729 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18730 grep 'no-whole-archive' > /dev/null; then
18731 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18732 else
18733 whole_archive_flag_spec_CXX=
18734 fi
18735 else
18736 with_gnu_ld=no
18737 wlarc=
18738
18739 # A generic and very simple default shared library creation
18740 # command for GNU C++ for the case where it uses the native
18741 # linker, instead of GNU ld. If possible, this setting should
18742 # overridden to take advantage of the native linker features on
18743 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018744 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018745 fi
18746
18747 # Commands to make compiler produce verbose output that lists
18748 # what "hidden" libraries, object files and flags are used when
18749 # linking a shared library.
18750 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18751
18752else
18753 GXX=no
18754 with_gnu_ld=no
18755 wlarc=
18756fi
18757
18758# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018759{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18760echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018761ld_shlibs_CXX=yes
18762case $host_os in
18763 aix3*)
18764 # FIXME: insert proper C++ library support
18765 ld_shlibs_CXX=no
18766 ;;
18767 aix4* | aix5*)
18768 if test "$host_cpu" = ia64; then
18769 # On IA64, the linker does run time linking by default, so we don't
18770 # have to do anything special.
18771 aix_use_runtimelinking=no
18772 exp_sym_flag='-Bexport'
18773 no_entry_flag=""
18774 else
18775 aix_use_runtimelinking=no
18776
18777 # Test if we are trying to use run time linking or normal
18778 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18779 # need to do runtime linking.
18780 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18781 for ld_flag in $LDFLAGS; do
18782 case $ld_flag in
18783 *-brtl*)
18784 aix_use_runtimelinking=yes
18785 break
18786 ;;
18787 esac
18788 done
Reid Spencera773bd52006-08-04 18:18:08 +000018789 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018790 esac
18791
18792 exp_sym_flag='-bexport'
18793 no_entry_flag='-bnoentry'
18794 fi
18795
18796 # When large executables or shared objects are built, AIX ld can
18797 # have problems creating the table of contents. If linking a library
18798 # or program results in "error TOC overflow" add -mminimal-toc to
18799 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18800 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18801
18802 archive_cmds_CXX=''
18803 hardcode_direct_CXX=yes
18804 hardcode_libdir_separator_CXX=':'
18805 link_all_deplibs_CXX=yes
18806
18807 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018808 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018809 # We only want to do this on AIX 4.2 and lower, the check
18810 # below for broken collect2 doesn't work under 4.3+
18811 collect2name=`${CC} -print-prog-name=collect2`
18812 if test -f "$collect2name" && \
18813 strings "$collect2name" | grep resolve_lib_name >/dev/null
18814 then
18815 # We have reworked collect2
18816 hardcode_direct_CXX=yes
18817 else
18818 # We have old collect2
18819 hardcode_direct_CXX=unsupported
18820 # It fails to find uninstalled libraries when the uninstalled
18821 # path is not listed in the libpath. Setting hardcode_minus_L
18822 # to unsupported forces relinking
18823 hardcode_minus_L_CXX=yes
18824 hardcode_libdir_flag_spec_CXX='-L$libdir'
18825 hardcode_libdir_separator_CXX=
18826 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018827 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018828 esac
18829 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018830 if test "$aix_use_runtimelinking" = yes; then
18831 shared_flag="$shared_flag "'${wl}-G'
18832 fi
John Criswell47fdd832003-07-14 16:52:07 +000018833 else
18834 # not using gcc
18835 if test "$host_cpu" = ia64; then
18836 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18837 # chokes on -Wl,-G. The following line is correct:
18838 shared_flag='-G'
18839 else
18840 if test "$aix_use_runtimelinking" = yes; then
18841 shared_flag='${wl}-G'
18842 else
18843 shared_flag='${wl}-bM:SRE'
18844 fi
18845 fi
18846 fi
18847
18848 # It seems that -bexpall does not export symbols beginning with
18849 # underscore (_), so it is better to generate a list of symbols to export.
18850 always_export_symbols_CXX=yes
18851 if test "$aix_use_runtimelinking" = yes; then
18852 # Warning - without using the other runtime loading flags (-brtl),
18853 # -berok will link without error, but may produce a broken library.
18854 allow_undefined_flag_CXX='-berok'
18855 # Determine the default libpath from the value encoded in an empty executable.
18856 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018857/* confdefs.h. */
18858_ACEOF
18859cat confdefs.h >>conftest.$ac_ext
18860cat >>conftest.$ac_ext <<_ACEOF
18861/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018862
John Criswell47fdd832003-07-14 16:52:07 +000018863int
18864main ()
18865{
18866
18867 ;
18868 return 0;
18869}
18870_ACEOF
18871rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018872if { (ac_try="$ac_link"
18873case "(($ac_try" in
18874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18875 *) ac_try_echo=$ac_try;;
18876esac
18877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18878 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018879 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018880 grep -v '^ *+' conftest.er1 >conftest.err
18881 rm -f conftest.er1
18882 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018884 (exit $ac_status); } &&
18885 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18886 { (case "(($ac_try" in
18887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18888 *) ac_try_echo=$ac_try;;
18889esac
18890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18891 (eval "$ac_try") 2>&5
18892 ac_status=$?
18893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); }; } &&
18895 { ac_try='test -s conftest$ac_exeext'
18896 { (case "(($ac_try" in
18897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18898 *) ac_try_echo=$ac_try;;
18899esac
18900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18901 (eval "$ac_try") 2>&5
18902 ac_status=$?
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018905
18906aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18907}'`
18908# Check for a 64-bit object if we didn't find anything.
18909if 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; }
18910}'`; fi
18911else
18912 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018913sed 's/^/| /' conftest.$ac_ext >&5
18914
Reid Spencera773bd52006-08-04 18:18:08 +000018915
John Criswell47fdd832003-07-14 16:52:07 +000018916fi
Reid Spencera773bd52006-08-04 18:18:08 +000018917
Bill Wendlingebcceee2009-04-18 11:20:33 +000018918rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018919 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018920if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18921
18922 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18923
Reid Spencera773bd52006-08-04 18:18:08 +000018924 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 +000018925 else
18926 if test "$host_cpu" = ia64; then
18927 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18928 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018929 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 +000018930 else
18931 # Determine the default libpath from the value encoded in an empty executable.
18932 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018933/* confdefs.h. */
18934_ACEOF
18935cat confdefs.h >>conftest.$ac_ext
18936cat >>conftest.$ac_ext <<_ACEOF
18937/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018938
John Criswell47fdd832003-07-14 16:52:07 +000018939int
18940main ()
18941{
18942
18943 ;
18944 return 0;
18945}
18946_ACEOF
18947rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018948if { (ac_try="$ac_link"
18949case "(($ac_try" in
18950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18951 *) ac_try_echo=$ac_try;;
18952esac
18953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18954 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018955 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018956 grep -v '^ *+' conftest.er1 >conftest.err
18957 rm -f conftest.er1
18958 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018960 (exit $ac_status); } &&
18961 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18962 { (case "(($ac_try" in
18963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964 *) ac_try_echo=$ac_try;;
18965esac
18966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967 (eval "$ac_try") 2>&5
18968 ac_status=$?
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); }; } &&
18971 { ac_try='test -s conftest$ac_exeext'
18972 { (case "(($ac_try" in
18973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18974 *) ac_try_echo=$ac_try;;
18975esac
18976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18977 (eval "$ac_try") 2>&5
18978 ac_status=$?
18979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018981
18982aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18983}'`
18984# Check for a 64-bit object if we didn't find anything.
18985if 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; }
18986}'`; fi
18987else
18988 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018989sed 's/^/| /' conftest.$ac_ext >&5
18990
Reid Spencera773bd52006-08-04 18:18:08 +000018991
John Criswell47fdd832003-07-14 16:52:07 +000018992fi
Reid Spencera773bd52006-08-04 18:18:08 +000018993
Bill Wendlingebcceee2009-04-18 11:20:33 +000018994rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018995 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018996if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18997
18998 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18999 # Warning - without using the other run time loading flags,
19000 # -berok will link without error, but may produce a broken library.
19001 no_undefined_flag_CXX=' ${wl}-bernotok'
19002 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000019003 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000019004 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000019005 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000019006 # This is similar to how AIX traditionally builds its shared libraries.
19007 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 +000019008 fi
19009 fi
19010 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019011
19012 beos*)
19013 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19014 allow_undefined_flag_CXX=unsupported
19015 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19016 # support --undefined. This deserves some investigation. FIXME
19017 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19018 else
19019 ld_shlibs_CXX=no
19020 fi
19021 ;;
19022
John Criswell47fdd832003-07-14 16:52:07 +000019023 chorus*)
19024 case $cc_basename in
19025 *)
19026 # FIXME: insert proper C++ library support
19027 ld_shlibs_CXX=no
19028 ;;
19029 esac
19030 ;;
19031
19032 cygwin* | mingw* | pw32*)
19033 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19034 # as there is no search path for DLLs.
19035 hardcode_libdir_flag_spec_CXX='-L$libdir'
19036 allow_undefined_flag_CXX=unsupported
19037 always_export_symbols_CXX=no
19038 enable_shared_with_static_runtimes_CXX=yes
19039
19040 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000019041 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 +000019042 # If the export-symbols file already is a .def file (1st line
19043 # is EXPORTS), use it as is; otherwise, prepend...
19044 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19045 cp $export_symbols $output_objdir/$soname.def;
19046 else
19047 echo EXPORTS > $output_objdir/$soname.def;
19048 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019049 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000019050 $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 +000019051 else
19052 ld_shlibs_CXX=no
19053 fi
19054 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019055 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000019056 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019057 rhapsody* | darwin1.[012])
19058 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19059 ;;
19060 *) # Darwin 1.3 on
19061 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19062 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19063 else
19064 case ${MACOSX_DEPLOYMENT_TARGET} in
19065 10.[012])
19066 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19067 ;;
19068 10.*)
19069 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19070 ;;
19071 esac
19072 fi
19073 ;;
19074 esac
19075 archive_cmds_need_lc_CXX=no
19076 hardcode_direct_CXX=no
19077 hardcode_automatic_CXX=yes
19078 hardcode_shlibpath_var_CXX=unsupported
19079 whole_archive_flag_spec_CXX=''
19080 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019081
Reid Spencer2706f8c2004-09-19 23:53:36 +000019082 if test "$GXX" = yes ; then
19083 lt_int_apple_cc_single_mod=no
19084 output_verbose_link_cmd='echo'
19085 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19086 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000019087 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000019088 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019089 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 +000019090 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019091 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 +000019092 fi
19093 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000019094 # 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 +000019095 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019096 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 +000019097 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019098 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 +000019099 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000019100 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 +000019101 else
Reid Spencera773bd52006-08-04 18:18:08 +000019102 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019103 xlc*)
19104 output_verbose_link_cmd='echo'
19105 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'
19106 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000019107 # 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 +000019108 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}'
19109 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 +000019110 ;;
19111 *)
19112 ld_shlibs_CXX=no
19113 ;;
19114 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000019115 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019116 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019117
19118 dgux*)
19119 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019120 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019121 # FIXME: insert proper C++ library support
19122 ld_shlibs_CXX=no
19123 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019124 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019125 # Green Hills C++ Compiler
19126 # FIXME: insert proper C++ library support
19127 ld_shlibs_CXX=no
19128 ;;
19129 *)
19130 # FIXME: insert proper C++ library support
19131 ld_shlibs_CXX=no
19132 ;;
19133 esac
19134 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019135 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000019136 # C++ shared libraries reported to be fairly broken before switch to ELF
19137 ld_shlibs_CXX=no
19138 ;;
19139 freebsd-elf*)
19140 archive_cmds_need_lc_CXX=no
19141 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019142 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019143 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19144 # conventions
19145 ld_shlibs_CXX=yes
19146 ;;
19147 gnu*)
19148 ;;
19149 hpux9*)
19150 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19151 hardcode_libdir_separator_CXX=:
19152 export_dynamic_flag_spec_CXX='${wl}-E'
19153 hardcode_direct_CXX=yes
19154 hardcode_minus_L_CXX=yes # Not in the search PATH,
19155 # but as the default
19156 # location of the library.
19157
19158 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019159 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019160 # FIXME: insert proper C++ library support
19161 ld_shlibs_CXX=no
19162 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019163 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019164 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 +000019165 # Commands to make compiler produce verbose output that lists
19166 # what "hidden" libraries, object files and flags are used when
19167 # linking a shared library.
19168 #
19169 # There doesn't appear to be a way to prevent this compiler from
19170 # explicitly linking system object files so we need to strip them
19171 # from the output so that they don't get included in the library
19172 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000019173 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 +000019174 ;;
19175 *)
19176 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019177 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 +000019178 else
19179 # FIXME: insert proper C++ library support
19180 ld_shlibs_CXX=no
19181 fi
19182 ;;
19183 esac
19184 ;;
19185 hpux10*|hpux11*)
19186 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019187 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19188 hardcode_libdir_separator_CXX=:
19189
19190 case $host_cpu in
19191 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019192 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000019193 ;;
19194 *)
John Criswell47fdd832003-07-14 16:52:07 +000019195 export_dynamic_flag_spec_CXX='${wl}-E'
19196 ;;
19197 esac
19198 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019199 case $host_cpu in
19200 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019201 hardcode_direct_CXX=no
19202 hardcode_shlibpath_var_CXX=no
19203 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019204 *)
19205 hardcode_direct_CXX=yes
19206 hardcode_minus_L_CXX=yes # Not in the search PATH,
19207 # but as the default
19208 # location of the library.
19209 ;;
19210 esac
19211
19212 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019213 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019214 # FIXME: insert proper C++ library support
19215 ld_shlibs_CXX=no
19216 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019217 aCC*)
19218 case $host_cpu in
19219 hppa*64*)
19220 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19221 ;;
19222 ia64*)
19223 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 +000019224 ;;
19225 *)
19226 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19227 ;;
19228 esac
19229 # Commands to make compiler produce verbose output that lists
19230 # what "hidden" libraries, object files and flags are used when
19231 # linking a shared library.
19232 #
19233 # There doesn't appear to be a way to prevent this compiler from
19234 # explicitly linking system object files so we need to strip them
19235 # from the output so that they don't get included in the library
19236 # dependencies.
19237 output_verbose_link_cmd='templist=`($CC -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'
19238 ;;
19239 *)
19240 if test "$GXX" = yes; then
19241 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019242 case $host_cpu in
19243 hppa*64*)
19244 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19245 ;;
19246 ia64*)
19247 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 +000019248 ;;
19249 *)
19250 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'
19251 ;;
19252 esac
19253 fi
19254 else
19255 # FIXME: insert proper C++ library support
19256 ld_shlibs_CXX=no
19257 fi
19258 ;;
19259 esac
19260 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019261 interix3*)
19262 hardcode_direct_CXX=no
19263 hardcode_shlibpath_var_CXX=no
19264 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19265 export_dynamic_flag_spec_CXX='${wl}-E'
19266 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19267 # Instead, shared libraries are loaded at an image base (0x10000000 by
19268 # default) and relocated if they conflict, which is a slow very memory
19269 # consuming and fragmenting process. To avoid this, we pick a random,
19270 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19271 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19272 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'
19273 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'
19274 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019275 irix5* | irix6*)
19276 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019277 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019278 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000019279 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 +000019280
19281 # Archives containing C++ object files must be created using
19282 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19283 # necessary to make sure instantiated templates are included
19284 # in the archive.
19285 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19286 ;;
19287 *)
19288 if test "$GXX" = yes; then
19289 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019290 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 +000019291 else
19292 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'
19293 fi
19294 fi
19295 link_all_deplibs_CXX=yes
19296 ;;
19297 esac
19298 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19299 hardcode_libdir_separator_CXX=:
19300 ;;
19301 linux*)
19302 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019303 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019304 # Kuck and Associates, Inc. (KAI) C++ Compiler
19305
19306 # KCC will only create a shared library if the output file
19307 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19308 # to its proper name (with version) after linking.
19309 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'
19310 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'
19311 # Commands to make compiler produce verbose output that lists
19312 # what "hidden" libraries, object files and flags are used when
19313 # linking a shared library.
19314 #
19315 # There doesn't appear to be a way to prevent this compiler from
19316 # explicitly linking system object files so we need to strip them
19317 # from the output so that they don't get included in the library
19318 # dependencies.
19319 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'
19320
19321 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19322 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19323
19324 # Archives containing C++ object files must be created using
19325 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19326 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19327 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019328 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019329 # Intel C++
19330 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019331 # version 8.0 and above of icpc choke on multiply defined symbols
19332 # if we add $predep_objects and $postdep_objects, however 7.1 and
19333 # earlier do not add the objects themselves.
19334 case `$CC -V 2>&1` in
19335 *"Version 7."*)
19336 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19337 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'
19338 ;;
19339 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000019340 tmp_idyn=
19341 case $host_cpu in
19342 ia64*) tmp_idyn=' -i_dynamic';;
19343 esac
19344 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19345 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 +000019346 ;;
19347 esac
John Criswell47fdd832003-07-14 16:52:07 +000019348 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000019349 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19350 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19351 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19352 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019353 pgCC*)
19354 # Portland Group C++ compiler
19355 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19356 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'
19357
19358 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19359 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19360 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'
19361 ;;
19362 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019363 # Compaq C++
19364 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19365 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'
19366
19367 runpath_var=LD_RUN_PATH
19368 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19369 hardcode_libdir_separator_CXX=:
19370
19371 # Commands to make compiler produce verbose output that lists
19372 # what "hidden" libraries, object files and flags are used when
19373 # linking a shared library.
19374 #
19375 # There doesn't appear to be a way to prevent this compiler from
19376 # explicitly linking system object files so we need to strip them
19377 # from the output so that they don't get included in the library
19378 # dependencies.
19379 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'
19380 ;;
19381 esac
19382 ;;
19383 lynxos*)
19384 # FIXME: insert proper C++ library support
19385 ld_shlibs_CXX=no
19386 ;;
19387 m88k*)
19388 # FIXME: insert proper C++ library support
19389 ld_shlibs_CXX=no
19390 ;;
19391 mvs*)
19392 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019393 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019394 # FIXME: insert proper C++ library support
19395 ld_shlibs_CXX=no
19396 ;;
19397 *)
19398 # FIXME: insert proper C++ library support
19399 ld_shlibs_CXX=no
19400 ;;
19401 esac
19402 ;;
19403 netbsd*)
19404 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19405 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19406 wlarc=
19407 hardcode_libdir_flag_spec_CXX='-R$libdir'
19408 hardcode_direct_CXX=yes
19409 hardcode_shlibpath_var_CXX=no
19410 fi
19411 # Workaround some broken pre-1.5 toolchains
19412 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19413 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019414 openbsd2*)
19415 # C++ shared libraries are fairly broken
19416 ld_shlibs_CXX=no
19417 ;;
19418 openbsd*)
19419 hardcode_direct_CXX=yes
19420 hardcode_shlibpath_var_CXX=no
19421 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19422 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19423 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19424 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19425 export_dynamic_flag_spec_CXX='${wl}-E'
19426 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19427 fi
19428 output_verbose_link_cmd='echo'
19429 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019430 osf3*)
19431 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019432 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019433 # Kuck and Associates, Inc. (KAI) C++ Compiler
19434
19435 # KCC will only create a shared library if the output file
19436 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19437 # to its proper name (with version) after linking.
19438 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'
19439
19440 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19441 hardcode_libdir_separator_CXX=:
19442
19443 # Archives containing C++ object files must be created using
19444 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19445 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19446
19447 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019448 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019449 # Rational C++ 2.4.1
19450 # FIXME: insert proper C++ library support
19451 ld_shlibs_CXX=no
19452 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019453 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019454 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019455 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 +000019456
19457 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19458 hardcode_libdir_separator_CXX=:
19459
19460 # Commands to make compiler produce verbose output that lists
19461 # what "hidden" libraries, object files and flags are used when
19462 # linking a shared library.
19463 #
19464 # There doesn't appear to be a way to prevent this compiler from
19465 # explicitly linking system object files so we need to strip them
19466 # from the output so that they don't get included in the library
19467 # dependencies.
19468 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'
19469 ;;
19470 *)
19471 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19472 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019473 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 +000019474
19475 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19476 hardcode_libdir_separator_CXX=:
19477
19478 # Commands to make compiler produce verbose output that lists
19479 # what "hidden" libraries, object files and flags are used when
19480 # linking a shared library.
19481 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19482
19483 else
19484 # FIXME: insert proper C++ library support
19485 ld_shlibs_CXX=no
19486 fi
19487 ;;
19488 esac
19489 ;;
19490 osf4* | osf5*)
19491 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019492 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019493 # Kuck and Associates, Inc. (KAI) C++ Compiler
19494
19495 # KCC will only create a shared library if the output file
19496 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19497 # to its proper name (with version) after linking.
19498 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'
19499
19500 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19501 hardcode_libdir_separator_CXX=:
19502
19503 # Archives containing C++ object files must be created using
19504 # the KAI C++ compiler.
19505 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19506 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019507 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019508 # Rational C++ 2.4.1
19509 # FIXME: insert proper C++ library support
19510 ld_shlibs_CXX=no
19511 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019512 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019513 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019514 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 +000019515 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19516 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019517 $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 +000019518 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019519
19520 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19521 hardcode_libdir_separator_CXX=:
19522
19523 # Commands to make compiler produce verbose output that lists
19524 # what "hidden" libraries, object files and flags are used when
19525 # linking a shared library.
19526 #
19527 # There doesn't appear to be a way to prevent this compiler from
19528 # explicitly linking system object files so we need to strip them
19529 # from the output so that they don't get included in the library
19530 # dependencies.
19531 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'
19532 ;;
19533 *)
19534 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19535 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019536 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 +000019537
19538 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19539 hardcode_libdir_separator_CXX=:
19540
19541 # Commands to make compiler produce verbose output that lists
19542 # what "hidden" libraries, object files and flags are used when
19543 # linking a shared library.
19544 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19545
19546 else
19547 # FIXME: insert proper C++ library support
19548 ld_shlibs_CXX=no
19549 fi
19550 ;;
19551 esac
19552 ;;
19553 psos*)
19554 # FIXME: insert proper C++ library support
19555 ld_shlibs_CXX=no
19556 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019557 sunos4*)
19558 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019559 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019560 # Sun C++ 4.x
19561 # FIXME: insert proper C++ library support
19562 ld_shlibs_CXX=no
19563 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019564 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019565 # Lucid
19566 # FIXME: insert proper C++ library support
19567 ld_shlibs_CXX=no
19568 ;;
19569 *)
19570 # FIXME: insert proper C++ library support
19571 ld_shlibs_CXX=no
19572 ;;
19573 esac
19574 ;;
19575 solaris*)
19576 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019577 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019578 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019579 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019580 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019581 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 +000019582 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 +000019583 $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 +000019584
19585 hardcode_libdir_flag_spec_CXX='-R$libdir'
19586 hardcode_shlibpath_var_CXX=no
19587 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019588 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019589 *)
19590 # The C++ compiler is used as linker so we must use $wl
19591 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019592 # linker. We must also pass each convience library through
19593 # to the system linker between allextract/defaultextract.
19594 # The C++ compiler will combine linker options so we
19595 # cannot just pass the convience library names through
19596 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019597 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019598 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 +000019599 ;;
19600 esac
19601 link_all_deplibs_CXX=yes
19602
Reid Spencera773bd52006-08-04 18:18:08 +000019603 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019604
19605 # Archives containing C++ object files must be created using
19606 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19607 # necessary to make sure instantiated templates are included
19608 # in the archive.
19609 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19610 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019611 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019612 # Green Hills C++ Compiler
19613 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19614
19615 # The C++ compiler must be used to create the archive.
19616 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19617 ;;
19618 *)
19619 # GNU C++ compiler with Solaris linker
19620 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19621 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19622 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019623 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 +000019624 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19625 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19626
John Criswell47fdd832003-07-14 16:52:07 +000019627 # Commands to make compiler produce verbose output that lists
19628 # what "hidden" libraries, object files and flags are used when
19629 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019630 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019631 else
19632 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19633 # platform.
19634 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 +000019635 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19636 $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 +000019637
19638 # Commands to make compiler produce verbose output that lists
19639 # what "hidden" libraries, object files and flags are used when
19640 # linking a shared library.
19641 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19642 fi
19643
19644 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19645 fi
19646 ;;
19647 esac
19648 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019649 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19650 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019651 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019652 hardcode_shlibpath_var_CXX=no
19653 runpath_var='LD_RUN_PATH'
19654
19655 case $cc_basename in
19656 CC*)
19657 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19658 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19659 ;;
19660 *)
19661 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19662 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19663 ;;
19664 esac
19665 ;;
19666 sysv5* | sco3.2v5* | sco5v6*)
19667 # Note: We can NOT use -z defs as we might desire, because we do not
19668 # link with -lc, and that would cause any symbols used from libc to
19669 # always be unresolved, which means just about no library would
19670 # ever link correctly. If we're not using GNU ld we use -z text
19671 # though, which does catch some bad symbols but isn't as heavy-handed
19672 # as -z defs.
19673 # For security reasons, it is highly recommended that you always
19674 # use absolute paths for naming shared libraries, and exclude the
19675 # DT_RUNPATH tag from executables and libraries. But doing so
19676 # requires that you compile everything twice, which is a pain.
19677 # So that behaviour is only enabled if SCOABSPATH is set to a
19678 # non-empty value in the environment. Most likely only useful for
19679 # creating official distributions of packages.
19680 # This is a hack until libtool officially supports absolute path
19681 # names for shared libraries.
19682 no_undefined_flag_CXX='${wl}-z,text'
19683 allow_undefined_flag_CXX='${wl}-z,nodefs'
19684 archive_cmds_need_lc_CXX=no
19685 hardcode_shlibpath_var_CXX=no
19686 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19687 hardcode_libdir_separator_CXX=':'
19688 link_all_deplibs_CXX=yes
19689 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19690 runpath_var='LD_RUN_PATH'
19691
19692 case $cc_basename in
19693 CC*)
19694 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19695 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19696 ;;
19697 *)
19698 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19699 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19700 ;;
19701 esac
John Criswell47fdd832003-07-14 16:52:07 +000019702 ;;
19703 tandem*)
19704 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019705 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019706 # NonStop-UX NCC 3.20
19707 # FIXME: insert proper C++ library support
19708 ld_shlibs_CXX=no
19709 ;;
19710 *)
19711 # FIXME: insert proper C++ library support
19712 ld_shlibs_CXX=no
19713 ;;
19714 esac
19715 ;;
19716 vxworks*)
19717 # FIXME: insert proper C++ library support
19718 ld_shlibs_CXX=no
19719 ;;
19720 *)
19721 # FIXME: insert proper C++ library support
19722 ld_shlibs_CXX=no
19723 ;;
19724esac
Reid Spencera773bd52006-08-04 18:18:08 +000019725{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19726echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019727test "$ld_shlibs_CXX" = no && can_build_shared=no
19728
19729GCC_CXX="$GXX"
19730LD_CXX="$LD"
19731
John Criswell47fdd832003-07-14 16:52:07 +000019732
19733cat > conftest.$ac_ext <<EOF
19734class Foo
19735{
19736public:
19737 Foo (void) { a = 0; }
19738private:
19739 int a;
19740};
19741EOF
19742
19743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19744 (eval $ac_compile) 2>&5
19745 ac_status=$?
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); }; then
19748 # Parse the compiler output and extract the necessary
19749 # objects, libraries and library flags.
19750
19751 # Sentinel used to keep track of whether or not we are before
19752 # the conftest object file.
19753 pre_test_object_deps_done=no
19754
19755 # The `*' in the case matches for architectures that use `case' in
19756 # $output_verbose_cmd can trigger glob expansion during the loop
19757 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019758 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019759
19760 for p in `eval $output_verbose_link_cmd`; do
19761 case $p in
19762
19763 -L* | -R* | -l*)
19764 # Some compilers place space between "-{L,R}" and the path.
19765 # Remove the space.
19766 if test $p = "-L" \
19767 || test $p = "-R"; then
19768 prev=$p
19769 continue
19770 else
19771 prev=
19772 fi
19773
19774 if test "$pre_test_object_deps_done" = no; then
19775 case $p in
19776 -L* | -R*)
19777 # Internal compiler library paths should come after those
19778 # provided the user. The postdeps already come after the
19779 # user supplied libs so there is no need to process them.
19780 if test -z "$compiler_lib_search_path_CXX"; then
19781 compiler_lib_search_path_CXX="${prev}${p}"
19782 else
19783 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19784 fi
19785 ;;
19786 # The "-l" case would never come before the object being
19787 # linked, so don't bother handling this case.
19788 esac
19789 else
19790 if test -z "$postdeps_CXX"; then
19791 postdeps_CXX="${prev}${p}"
19792 else
19793 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19794 fi
19795 fi
19796 ;;
19797
19798 *.$objext)
19799 # This assumes that the test object file only shows up
19800 # once in the compiler output.
19801 if test "$p" = "conftest.$objext"; then
19802 pre_test_object_deps_done=yes
19803 continue
19804 fi
19805
19806 if test "$pre_test_object_deps_done" = no; then
19807 if test -z "$predep_objects_CXX"; then
19808 predep_objects_CXX="$p"
19809 else
19810 predep_objects_CXX="$predep_objects_CXX $p"
19811 fi
19812 else
19813 if test -z "$postdep_objects_CXX"; then
19814 postdep_objects_CXX="$p"
19815 else
19816 postdep_objects_CXX="$postdep_objects_CXX $p"
19817 fi
19818 fi
19819 ;;
19820
19821 *) ;; # Ignore the rest.
19822
19823 esac
19824 done
19825
19826 # Clean up.
19827 rm -f a.out a.exe
19828else
19829 echo "libtool.m4: error: problem compiling CXX test program"
19830fi
19831
19832$rm -f confest.$objext
19833
Reid Spencera773bd52006-08-04 18:18:08 +000019834# PORTME: override above test on systems where it is broken
19835case $host_os in
19836interix3*)
19837 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19838 # hack all around it, let's just trust "g++" to DTRT.
19839 predep_objects_CXX=
19840 postdep_objects_CXX=
19841 postdeps_CXX=
19842 ;;
19843
19844solaris*)
19845 case $cc_basename in
19846 CC*)
19847 # Adding this requires a known-good setup of shared libraries for
19848 # Sun compiler versions before 5.6, else PIC objects from an old
19849 # archive will be linked into the output, leading to subtle bugs.
19850 postdeps_CXX='-lCstd -lCrun'
19851 ;;
19852 esac
19853 ;;
19854esac
19855
19856
John Criswell47fdd832003-07-14 16:52:07 +000019857case " $postdeps_CXX " in
19858*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19859esac
19860
19861lt_prog_compiler_wl_CXX=
19862lt_prog_compiler_pic_CXX=
19863lt_prog_compiler_static_CXX=
19864
Reid Spencera773bd52006-08-04 18:18:08 +000019865{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19866echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019867
19868 # C++ specific cases for pic, static, wl, etc.
19869 if test "$GXX" = yes; then
19870 lt_prog_compiler_wl_CXX='-Wl,'
19871 lt_prog_compiler_static_CXX='-static'
19872
19873 case $host_os in
19874 aix*)
19875 # All AIX code is PIC.
19876 if test "$host_cpu" = ia64; then
19877 # AIX 5 now supports IA64 processor
19878 lt_prog_compiler_static_CXX='-Bstatic'
19879 fi
19880 ;;
19881 amigaos*)
19882 # FIXME: we need at least 68020 code to build shared libraries, but
19883 # adding the `-m68020' flag to GCC prevents building anything better,
19884 # like `-m68040'.
19885 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19886 ;;
19887 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19888 # PIC is the default for these OSes.
19889 ;;
19890 mingw* | os2* | pw32*)
19891 # This hack is so that the source file can tell whether it is being
19892 # built for inclusion in a dll (and should export symbols for example).
19893 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19894 ;;
19895 darwin* | rhapsody*)
19896 # PIC is the default on this platform
19897 # Common symbols not allowed in MH_DYLIB files
19898 lt_prog_compiler_pic_CXX='-fno-common'
19899 ;;
19900 *djgpp*)
19901 # DJGPP does not support shared libraries at all
19902 lt_prog_compiler_pic_CXX=
19903 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019904 interix3*)
19905 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19906 # Instead, we relocate shared libraries at runtime.
19907 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019908 sysv4*MP*)
19909 if test -d /usr/nec; then
19910 lt_prog_compiler_pic_CXX=-Kconform_pic
19911 fi
19912 ;;
19913 hpux*)
19914 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19915 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019916 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019917 hppa*64*|ia64*)
19918 ;;
19919 *)
19920 lt_prog_compiler_pic_CXX='-fPIC'
19921 ;;
19922 esac
19923 ;;
19924 *)
19925 lt_prog_compiler_pic_CXX='-fPIC'
19926 ;;
19927 esac
19928 else
19929 case $host_os in
19930 aix4* | aix5*)
19931 # All AIX code is PIC.
19932 if test "$host_cpu" = ia64; then
19933 # AIX 5 now supports IA64 processor
19934 lt_prog_compiler_static_CXX='-Bstatic'
19935 else
19936 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19937 fi
19938 ;;
19939 chorus*)
19940 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019941 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019942 # Green Hills C++ Compiler
19943 # _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"
19944 ;;
19945 esac
19946 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019947 darwin*)
19948 # PIC is the default on this platform
19949 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019950 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019951 xlc*)
19952 lt_prog_compiler_pic_CXX='-qnocommon'
19953 lt_prog_compiler_wl_CXX='-Wl,'
19954 ;;
19955 esac
19956 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019957 dgux*)
19958 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019959 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019960 lt_prog_compiler_pic_CXX='-KPIC'
19961 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019962 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019963 # Green Hills C++ Compiler
19964 lt_prog_compiler_pic_CXX='-pic'
19965 ;;
19966 *)
19967 ;;
19968 esac
19969 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019970 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019971 # FreeBSD uses GNU C++
19972 ;;
19973 hpux9* | hpux10* | hpux11*)
19974 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019975 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019976 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019977 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019978 if test "$host_cpu" != ia64; then
19979 lt_prog_compiler_pic_CXX='+Z'
19980 fi
19981 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019982 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019983 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019984 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19985 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019986 hppa*64*|ia64*)
19987 # +Z the default
19988 ;;
19989 *)
19990 lt_prog_compiler_pic_CXX='+Z'
19991 ;;
19992 esac
19993 ;;
19994 *)
19995 ;;
19996 esac
19997 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019998 interix*)
19999 # This is c89, which is MS Visual C++ (no shared libs)
20000 # Anyone wants to do a port?
20001 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020002 irix5* | irix6* | nonstopux*)
20003 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020004 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000020005 lt_prog_compiler_wl_CXX='-Wl,'
20006 lt_prog_compiler_static_CXX='-non_shared'
20007 # CC pic flag -KPIC is the default.
20008 ;;
20009 *)
20010 ;;
20011 esac
20012 ;;
20013 linux*)
20014 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020015 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020016 # KAI C++ Compiler
20017 lt_prog_compiler_wl_CXX='--backend -Wl,'
20018 lt_prog_compiler_pic_CXX='-fPIC'
20019 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020020 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000020021 # Intel C++
20022 lt_prog_compiler_wl_CXX='-Wl,'
20023 lt_prog_compiler_pic_CXX='-KPIC'
20024 lt_prog_compiler_static_CXX='-static'
20025 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020026 pgCC*)
20027 # Portland Group C++ compiler.
20028 lt_prog_compiler_wl_CXX='-Wl,'
20029 lt_prog_compiler_pic_CXX='-fpic'
20030 lt_prog_compiler_static_CXX='-Bstatic'
20031 ;;
20032 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000020033 # Compaq C++
20034 # Make sure the PIC flag is empty. It appears that all Alpha
20035 # Linux and Compaq Tru64 Unix objects are PIC.
20036 lt_prog_compiler_pic_CXX=
20037 lt_prog_compiler_static_CXX='-non_shared'
20038 ;;
20039 *)
20040 ;;
20041 esac
20042 ;;
20043 lynxos*)
20044 ;;
20045 m88k*)
20046 ;;
20047 mvs*)
20048 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020049 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000020050 lt_prog_compiler_pic_CXX='-W c,exportall'
20051 ;;
20052 *)
20053 ;;
20054 esac
20055 ;;
20056 netbsd*)
20057 ;;
20058 osf3* | osf4* | osf5*)
20059 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020060 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020061 lt_prog_compiler_wl_CXX='--backend -Wl,'
20062 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020063 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020064 # Rational C++ 2.4.1
20065 lt_prog_compiler_pic_CXX='-pic'
20066 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020067 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000020068 # Digital/Compaq C++
20069 lt_prog_compiler_wl_CXX='-Wl,'
20070 # Make sure the PIC flag is empty. It appears that all Alpha
20071 # Linux and Compaq Tru64 Unix objects are PIC.
20072 lt_prog_compiler_pic_CXX=
20073 lt_prog_compiler_static_CXX='-non_shared'
20074 ;;
20075 *)
20076 ;;
20077 esac
20078 ;;
20079 psos*)
20080 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020081 solaris*)
20082 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020083 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000020084 # Sun C++ 4.2, 5.x and Centerline C++
20085 lt_prog_compiler_pic_CXX='-KPIC'
20086 lt_prog_compiler_static_CXX='-Bstatic'
20087 lt_prog_compiler_wl_CXX='-Qoption ld '
20088 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020089 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000020090 # Green Hills C++ Compiler
20091 lt_prog_compiler_pic_CXX='-PIC'
20092 ;;
20093 *)
20094 ;;
20095 esac
20096 ;;
20097 sunos4*)
20098 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020099 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000020100 # Sun C++ 4.x
20101 lt_prog_compiler_pic_CXX='-pic'
20102 lt_prog_compiler_static_CXX='-Bstatic'
20103 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020104 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000020105 # Lucid
20106 lt_prog_compiler_pic_CXX='-pic'
20107 ;;
20108 *)
20109 ;;
20110 esac
20111 ;;
20112 tandem*)
20113 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020114 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020115 # NonStop-UX NCC 3.20
20116 lt_prog_compiler_pic_CXX='-KPIC'
20117 ;;
20118 *)
20119 ;;
20120 esac
20121 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020122 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20123 case $cc_basename in
20124 CC*)
20125 lt_prog_compiler_wl_CXX='-Wl,'
20126 lt_prog_compiler_pic_CXX='-KPIC'
20127 lt_prog_compiler_static_CXX='-Bstatic'
20128 ;;
20129 esac
John Criswell47fdd832003-07-14 16:52:07 +000020130 ;;
20131 vxworks*)
20132 ;;
20133 *)
20134 lt_prog_compiler_can_build_shared_CXX=no
20135 ;;
20136 esac
20137 fi
20138
Reid Spencera773bd52006-08-04 18:18:08 +000020139{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20140echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020141
20142#
20143# Check to make sure the PIC flag actually works.
20144#
20145if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020146
Reid Spencera773bd52006-08-04 18:18:08 +000020147{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20148echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020149if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20150 echo $ECHO_N "(cached) $ECHO_C" >&6
20151else
20152 lt_prog_compiler_pic_works_CXX=no
20153 ac_outfile=conftest.$ac_objext
20154 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20155 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20156 # Insert the option either (1) after the last *FLAGS variable, or
20157 # (2) before a word containing "conftest.", or (3) at the end.
20158 # Note that $ac_compile itself does not contain backslashes and begins
20159 # with a dollar sign (not a hyphen), so the echo should work correctly.
20160 # The option is referenced via a variable to avoid confusing sed.
20161 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020162 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020163 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20164 -e 's:$: $lt_compiler_flag:'`
Edward O'Callaghan2b19d692009-10-14 00:44:50 +000020165 (eval echo "\"\$as_me:20165: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020166 (eval "$lt_compile" 2>conftest.err)
20167 ac_status=$?
20168 cat conftest.err >&5
Edward O'Callaghan2b19d692009-10-14 00:44:50 +000020169 echo "$as_me:20169: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020170 if (exit $ac_status) && test -s "$ac_outfile"; then
20171 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000020172 # So say no if there are warnings other than the usual output.
20173 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20174 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20175 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020176 lt_prog_compiler_pic_works_CXX=yes
20177 fi
20178 fi
20179 $rm conftest*
20180
20181fi
Reid Spencera773bd52006-08-04 18:18:08 +000020182{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20183echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020184
20185if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20186 case $lt_prog_compiler_pic_CXX in
20187 "" | " "*) ;;
20188 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20189 esac
20190else
20191 lt_prog_compiler_pic_CXX=
20192 lt_prog_compiler_can_build_shared_CXX=no
20193fi
20194
20195fi
Reid Spencera773bd52006-08-04 18:18:08 +000020196case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020197 # For platforms which do not support PIC, -DPIC is meaningless:
20198 *djgpp*)
20199 lt_prog_compiler_pic_CXX=
20200 ;;
20201 *)
20202 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20203 ;;
20204esac
20205
Reid Spencera773bd52006-08-04 18:18:08 +000020206#
20207# Check to make sure the static flag actually works.
20208#
20209wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20210{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20211echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20212if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20213 echo $ECHO_N "(cached) $ECHO_C" >&6
20214else
20215 lt_prog_compiler_static_works_CXX=no
20216 save_LDFLAGS="$LDFLAGS"
20217 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20218 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20219 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20220 # The linker can only warn and ignore the option if not recognized
20221 # So say no if there are warnings
20222 if test -s conftest.err; then
20223 # Append any errors to the config.log.
20224 cat conftest.err 1>&5
20225 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20226 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20227 if diff conftest.exp conftest.er2 >/dev/null; then
20228 lt_prog_compiler_static_works_CXX=yes
20229 fi
20230 else
20231 lt_prog_compiler_static_works_CXX=yes
20232 fi
20233 fi
20234 $rm conftest*
20235 LDFLAGS="$save_LDFLAGS"
20236
20237fi
20238{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20239echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20240
20241if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20242 :
20243else
20244 lt_prog_compiler_static_CXX=
20245fi
20246
20247
20248{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20249echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020250if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20251 echo $ECHO_N "(cached) $ECHO_C" >&6
20252else
20253 lt_cv_prog_compiler_c_o_CXX=no
20254 $rm -r conftest 2>/dev/null
20255 mkdir conftest
20256 cd conftest
20257 mkdir out
20258 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20259
John Criswell47fdd832003-07-14 16:52:07 +000020260 lt_compiler_flag="-o out/conftest2.$ac_objext"
20261 # Insert the option either (1) after the last *FLAGS variable, or
20262 # (2) before a word containing "conftest.", or (3) at the end.
20263 # Note that $ac_compile itself does not contain backslashes and begins
20264 # with a dollar sign (not a hyphen), so the echo should work correctly.
20265 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020266 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020267 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20268 -e 's:$: $lt_compiler_flag:'`
Edward O'Callaghan2b19d692009-10-14 00:44:50 +000020269 (eval echo "\"\$as_me:20269: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020270 (eval "$lt_compile" 2>out/conftest.err)
20271 ac_status=$?
20272 cat out/conftest.err >&5
Edward O'Callaghan2b19d692009-10-14 00:44:50 +000020273 echo "$as_me:20273: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020274 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20275 then
20276 # The compiler can only warn and ignore the option if not recognized
20277 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000020278 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20279 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20280 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020281 lt_cv_prog_compiler_c_o_CXX=yes
20282 fi
20283 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020284 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020285 $rm conftest*
20286 # SGI C++ compiler will create directory out/ii_files/ for
20287 # template instantiation
20288 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20289 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000020290 cd ..
20291 rmdir conftest
20292 $rm conftest*
20293
20294fi
Reid Spencera773bd52006-08-04 18:18:08 +000020295{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20296echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020297
20298
20299hard_links="nottested"
20300if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20301 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000020302 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20303echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020304 hard_links=yes
20305 $rm conftest*
20306 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20307 touch conftest.a
20308 ln conftest.a conftest.b 2>&5 || hard_links=no
20309 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000020310 { echo "$as_me:$LINENO: result: $hard_links" >&5
20311echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020312 if test "$hard_links" = no; then
20313 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20314echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20315 need_locks=warn
20316 fi
20317else
20318 need_locks=no
20319fi
20320
Reid Spencera773bd52006-08-04 18:18:08 +000020321{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20322echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020323
20324 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20325 case $host_os in
20326 aix4* | aix5*)
20327 # If we're using GNU nm, then we don't want the "-C" option.
20328 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20329 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20330 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'
20331 else
20332 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'
20333 fi
20334 ;;
20335 pw32*)
20336 export_symbols_cmds_CXX="$ltdll_cmds"
20337 ;;
20338 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000020339 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 +000020340 ;;
20341 *)
20342 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20343 ;;
20344 esac
20345
Reid Spencera773bd52006-08-04 18:18:08 +000020346{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20347echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020348test "$ld_shlibs_CXX" = no && can_build_shared=no
20349
John Criswell47fdd832003-07-14 16:52:07 +000020350#
20351# Do we need to explicitly link libc?
20352#
20353case "x$archive_cmds_need_lc_CXX" in
20354x|xyes)
20355 # Assume -lc should be added
20356 archive_cmds_need_lc_CXX=yes
20357
20358 if test "$enable_shared" = yes && test "$GCC" = yes; then
20359 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020360 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020361 # FIXME: we may have to deal with multi-command sequences.
20362 ;;
20363 '$CC '*)
20364 # Test whether the compiler implicitly links with -lc since on some
20365 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20366 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000020367 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20368echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020369 $rm conftest*
20370 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20371
20372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20373 (eval $ac_compile) 2>&5
20374 ac_status=$?
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); } 2>conftest.err; then
20377 soname=conftest
20378 lib=conftest
20379 libobjs=conftest.$ac_objext
20380 deplibs=
20381 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000020382 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000020383 compiler_flags=-v
20384 linker_flags=-v
20385 verstring=
20386 output_objdir=.
20387 libname=conftest
20388 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20389 allow_undefined_flag_CXX=
20390 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20391 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20392 ac_status=$?
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); }
20395 then
20396 archive_cmds_need_lc_CXX=no
20397 else
20398 archive_cmds_need_lc_CXX=yes
20399 fi
20400 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20401 else
20402 cat conftest.err 1>&5
20403 fi
20404 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000020405 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20406echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020407 ;;
20408 esac
20409 fi
20410 ;;
20411esac
20412
Reid Spencera773bd52006-08-04 18:18:08 +000020413{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20414echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020415library_names_spec=
20416libname_spec='lib$name'
20417soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020418shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020419postinstall_cmds=
20420postuninstall_cmds=
20421finish_cmds=
20422finish_eval=
20423shlibpath_var=
20424shlibpath_overrides_runpath=unknown
20425version_type=none
20426dynamic_linker="$host_os ld.so"
20427sys_lib_dlsearch_path_spec="/lib /usr/lib"
20428if test "$GCC" = yes; then
20429 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20430 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20431 # if the path contains ";" then we assume it to be the separator
20432 # otherwise default to the standard path separator (i.e. ":") - it is
20433 # assumed that no part of a normal pathname contains ";" but that should
20434 # okay in the real world where ";" in dirpaths is itself problematic.
20435 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20436 else
20437 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20438 fi
20439else
20440 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20441fi
20442need_lib_prefix=unknown
20443hardcode_into_libs=no
20444
20445# when you set need_version to no, make sure it does not cause -set_version
20446# flags to be left without arguments
20447need_version=unknown
20448
20449case $host_os in
20450aix3*)
20451 version_type=linux
20452 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20453 shlibpath_var=LIBPATH
20454
20455 # AIX 3 has no versioning support, so we append a major version to the name.
20456 soname_spec='${libname}${release}${shared_ext}$major'
20457 ;;
20458
20459aix4* | aix5*)
20460 version_type=linux
20461 need_lib_prefix=no
20462 need_version=no
20463 hardcode_into_libs=yes
20464 if test "$host_cpu" = ia64; then
20465 # AIX 5 supports IA64
20466 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20467 shlibpath_var=LD_LIBRARY_PATH
20468 else
20469 # With GCC up to 2.95.x, collect2 would create an import file
20470 # for dependence libraries. The import file would start with
20471 # the line `#! .'. This would cause the generated library to
20472 # depend on `.', always an invalid library. This was fixed in
20473 # development snapshots of GCC prior to 3.0.
20474 case $host_os in
20475 aix4 | aix4.[01] | aix4.[01].*)
20476 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20477 echo ' yes '
20478 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20479 :
20480 else
20481 can_build_shared=no
20482 fi
20483 ;;
20484 esac
20485 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20486 # soname into executable. Probably we can add versioning support to
20487 # collect2, so additional links can be useful in future.
20488 if test "$aix_use_runtimelinking" = yes; then
20489 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20490 # instead of lib<name>.a to let people know that these are not
20491 # typical AIX shared libraries.
20492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20493 else
20494 # We preserve .a as extension for shared libraries through AIX4.2
20495 # and later when we are not doing run time linking.
20496 library_names_spec='${libname}${release}.a $libname.a'
20497 soname_spec='${libname}${release}${shared_ext}$major'
20498 fi
20499 shlibpath_var=LIBPATH
20500 fi
20501 ;;
20502
20503amigaos*)
20504 library_names_spec='$libname.ixlibrary $libname.a'
20505 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020506 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 +000020507 ;;
20508
20509beos*)
20510 library_names_spec='${libname}${shared_ext}'
20511 dynamic_linker="$host_os ld.so"
20512 shlibpath_var=LIBRARY_PATH
20513 ;;
20514
Reid Spencer2706f8c2004-09-19 23:53:36 +000020515bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020516 version_type=linux
20517 need_version=no
20518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20519 soname_spec='${libname}${release}${shared_ext}$major'
20520 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20521 shlibpath_var=LD_LIBRARY_PATH
20522 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20523 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20524 # the default ld.so.conf also contains /usr/contrib/lib and
20525 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20526 # libtool to hard-code these into programs
20527 ;;
20528
20529cygwin* | mingw* | pw32*)
20530 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020531 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020532 need_version=no
20533 need_lib_prefix=no
20534
20535 case $GCC,$host_os in
20536 yes,cygwin* | yes,mingw* | yes,pw32*)
20537 library_names_spec='$libname.dll.a'
20538 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020539 postinstall_cmds='base_file=`basename \${file}`~
20540 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20541 dldir=$destdir/`dirname \$dlpath`~
20542 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020543 $install_prog $dir/$dlname \$dldir/$dlname~
20544 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020545 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20546 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020547 $rm \$dlpath'
20548 shlibpath_overrides_runpath=yes
20549
20550 case $host_os in
20551 cygwin*)
20552 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20553 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 +000020554 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020555 ;;
20556 mingw*)
20557 # MinGW DLLs use traditional 'lib' prefix
20558 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20559 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20560 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20561 # It is most probably a Windows format PATH printed by
20562 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20563 # path with ; separators, and with drive letters. We can handle the
20564 # drive letters (cygwin fileutils understands them), so leave them,
20565 # especially as we might pass files found there to a mingw objdump,
20566 # which wouldn't understand a cygwinified path. Ahh.
20567 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20568 else
20569 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20570 fi
20571 ;;
20572 pw32*)
20573 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020574 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 +000020575 ;;
20576 esac
20577 ;;
20578
20579 *)
20580 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20581 ;;
20582 esac
20583 dynamic_linker='Win32 ld.exe'
20584 # FIXME: first we should search . and the directory the executable is in
20585 shlibpath_var=PATH
20586 ;;
20587
20588darwin* | rhapsody*)
20589 dynamic_linker="$host_os dyld"
20590 version_type=darwin
20591 need_lib_prefix=no
20592 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020593 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020594 soname_spec='${libname}${release}${major}$shared_ext'
20595 shlibpath_overrides_runpath=yes
20596 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020597 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020598 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020599 if test "$GCC" = yes; then
20600 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"`
20601 else
20602 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020603 fi
20604 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20605 ;;
20606
20607dgux*)
20608 version_type=linux
20609 need_lib_prefix=no
20610 need_version=no
20611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20612 soname_spec='${libname}${release}${shared_ext}$major'
20613 shlibpath_var=LD_LIBRARY_PATH
20614 ;;
20615
20616freebsd1*)
20617 dynamic_linker=no
20618 ;;
20619
Reid Spencer2706f8c2004-09-19 23:53:36 +000020620kfreebsd*-gnu)
20621 version_type=linux
20622 need_lib_prefix=no
20623 need_version=no
20624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20625 soname_spec='${libname}${release}${shared_ext}$major'
20626 shlibpath_var=LD_LIBRARY_PATH
20627 shlibpath_overrides_runpath=no
20628 hardcode_into_libs=yes
20629 dynamic_linker='GNU ld.so'
20630 ;;
20631
Reid Spencera773bd52006-08-04 18:18:08 +000020632freebsd* | dragonfly*)
20633 # DragonFly does not have aout. When/if they implement a new
20634 # versioning mechanism, adjust this.
20635 if test -x /usr/bin/objformat; then
20636 objformat=`/usr/bin/objformat`
20637 else
20638 case $host_os in
20639 freebsd[123]*) objformat=aout ;;
20640 *) objformat=elf ;;
20641 esac
20642 fi
John Criswell47fdd832003-07-14 16:52:07 +000020643 version_type=freebsd-$objformat
20644 case $version_type in
20645 freebsd-elf*)
20646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20647 need_version=no
20648 need_lib_prefix=no
20649 ;;
20650 freebsd-*)
20651 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20652 need_version=yes
20653 ;;
20654 esac
20655 shlibpath_var=LD_LIBRARY_PATH
20656 case $host_os in
20657 freebsd2*)
20658 shlibpath_overrides_runpath=yes
20659 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020660 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020661 shlibpath_overrides_runpath=yes
20662 hardcode_into_libs=yes
20663 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020664 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20665 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020666 shlibpath_overrides_runpath=no
20667 hardcode_into_libs=yes
20668 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020669 freebsd*) # from 4.6 on
20670 shlibpath_overrides_runpath=yes
20671 hardcode_into_libs=yes
20672 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020673 esac
20674 ;;
20675
20676gnu*)
20677 version_type=linux
20678 need_lib_prefix=no
20679 need_version=no
20680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20681 soname_spec='${libname}${release}${shared_ext}$major'
20682 shlibpath_var=LD_LIBRARY_PATH
20683 hardcode_into_libs=yes
20684 ;;
20685
20686hpux9* | hpux10* | hpux11*)
20687 # Give a soname corresponding to the major version so that dld.sl refuses to
20688 # link against other versions.
20689 version_type=sunos
20690 need_lib_prefix=no
20691 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020692 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020693 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020694 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020695 hardcode_into_libs=yes
20696 dynamic_linker="$host_os dld.so"
20697 shlibpath_var=LD_LIBRARY_PATH
20698 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20700 soname_spec='${libname}${release}${shared_ext}$major'
20701 if test "X$HPUX_IA64_MODE" = X32; then
20702 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20703 else
20704 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20705 fi
20706 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20707 ;;
20708 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020709 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020710 hardcode_into_libs=yes
20711 dynamic_linker="$host_os dld.sl"
20712 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20713 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20715 soname_spec='${libname}${release}${shared_ext}$major'
20716 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20717 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20718 ;;
20719 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020720 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020721 dynamic_linker="$host_os dld.sl"
20722 shlibpath_var=SHLIB_PATH
20723 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20725 soname_spec='${libname}${release}${shared_ext}$major'
20726 ;;
20727 esac
20728 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20729 postinstall_cmds='chmod 555 $lib'
20730 ;;
20731
Reid Spencera773bd52006-08-04 18:18:08 +000020732interix3*)
20733 version_type=linux
20734 need_lib_prefix=no
20735 need_version=no
20736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20737 soname_spec='${libname}${release}${shared_ext}$major'
20738 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20739 shlibpath_var=LD_LIBRARY_PATH
20740 shlibpath_overrides_runpath=no
20741 hardcode_into_libs=yes
20742 ;;
20743
John Criswell47fdd832003-07-14 16:52:07 +000020744irix5* | irix6* | nonstopux*)
20745 case $host_os in
20746 nonstopux*) version_type=nonstopux ;;
20747 *)
20748 if test "$lt_cv_prog_gnu_ld" = yes; then
20749 version_type=linux
20750 else
20751 version_type=irix
20752 fi ;;
20753 esac
20754 need_lib_prefix=no
20755 need_version=no
20756 soname_spec='${libname}${release}${shared_ext}$major'
20757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20758 case $host_os in
20759 irix5* | nonstopux*)
20760 libsuff= shlibsuff=
20761 ;;
20762 *)
20763 case $LD in # libtool.m4 will add one of these switches to LD
20764 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20765 libsuff= shlibsuff= libmagic=32-bit;;
20766 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20767 libsuff=32 shlibsuff=N32 libmagic=N32;;
20768 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20769 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20770 *) libsuff= shlibsuff= libmagic=never-match;;
20771 esac
20772 ;;
20773 esac
20774 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20775 shlibpath_overrides_runpath=no
20776 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20777 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20778 hardcode_into_libs=yes
20779 ;;
20780
20781# No shared lib support for Linux oldld, aout, or coff.
20782linux*oldld* | linux*aout* | linux*coff*)
20783 dynamic_linker=no
20784 ;;
20785
20786# This must be Linux ELF.
20787linux*)
20788 version_type=linux
20789 need_lib_prefix=no
20790 need_version=no
20791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20792 soname_spec='${libname}${release}${shared_ext}$major'
20793 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20794 shlibpath_var=LD_LIBRARY_PATH
20795 shlibpath_overrides_runpath=no
20796 # This implies no fast_install, which is unacceptable.
20797 # Some rework will be needed to allow for fast_install
20798 # before this can be enabled.
20799 hardcode_into_libs=yes
20800
Reid Spencer2706f8c2004-09-19 23:53:36 +000020801 # Append ld.so.conf contents to the search path
20802 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020803 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 +000020804 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20805 fi
20806
John Criswell47fdd832003-07-14 16:52:07 +000020807 # We used to test for /lib/ld.so.1 and disable shared libraries on
20808 # powerpc, because MkLinux only supported shared libraries with the
20809 # GNU dynamic linker. Since this was broken with cross compilers,
20810 # most powerpc-linux boxes support dynamic linking these days and
20811 # people can always --disable-shared, the test was removed, and we
20812 # assume the GNU/Linux dynamic linker is in use.
20813 dynamic_linker='GNU/Linux ld.so'
20814 ;;
20815
Reid Spencer2706f8c2004-09-19 23:53:36 +000020816knetbsd*-gnu)
20817 version_type=linux
20818 need_lib_prefix=no
20819 need_version=no
20820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20821 soname_spec='${libname}${release}${shared_ext}$major'
20822 shlibpath_var=LD_LIBRARY_PATH
20823 shlibpath_overrides_runpath=no
20824 hardcode_into_libs=yes
20825 dynamic_linker='GNU ld.so'
20826 ;;
20827
John Criswell47fdd832003-07-14 16:52:07 +000020828netbsd*)
20829 version_type=sunos
20830 need_lib_prefix=no
20831 need_version=no
20832 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20834 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20835 dynamic_linker='NetBSD (a.out) ld.so'
20836 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020838 soname_spec='${libname}${release}${shared_ext}$major'
20839 dynamic_linker='NetBSD ld.elf_so'
20840 fi
20841 shlibpath_var=LD_LIBRARY_PATH
20842 shlibpath_overrides_runpath=yes
20843 hardcode_into_libs=yes
20844 ;;
20845
20846newsos6)
20847 version_type=linux
20848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20849 shlibpath_var=LD_LIBRARY_PATH
20850 shlibpath_overrides_runpath=yes
20851 ;;
20852
Reid Spencer2706f8c2004-09-19 23:53:36 +000020853nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020854 version_type=linux
20855 need_lib_prefix=no
20856 need_version=no
20857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20858 soname_spec='${libname}${release}${shared_ext}$major'
20859 shlibpath_var=LD_LIBRARY_PATH
20860 shlibpath_overrides_runpath=yes
20861 ;;
20862
20863openbsd*)
20864 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020865 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020866 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020867 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20868 case $host_os in
20869 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20870 *) need_version=no ;;
20871 esac
John Criswell47fdd832003-07-14 16:52:07 +000020872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20873 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20874 shlibpath_var=LD_LIBRARY_PATH
20875 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20876 case $host_os in
20877 openbsd2.[89] | openbsd2.[89].*)
20878 shlibpath_overrides_runpath=no
20879 ;;
20880 *)
20881 shlibpath_overrides_runpath=yes
20882 ;;
20883 esac
20884 else
20885 shlibpath_overrides_runpath=yes
20886 fi
20887 ;;
20888
20889os2*)
20890 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020891 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020892 need_lib_prefix=no
20893 library_names_spec='$libname${shared_ext} $libname.a'
20894 dynamic_linker='OS/2 ld.exe'
20895 shlibpath_var=LIBPATH
20896 ;;
20897
20898osf3* | osf4* | osf5*)
20899 version_type=osf
20900 need_lib_prefix=no
20901 need_version=no
20902 soname_spec='${libname}${release}${shared_ext}$major'
20903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20904 shlibpath_var=LD_LIBRARY_PATH
20905 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20906 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20907 ;;
20908
John Criswell47fdd832003-07-14 16:52:07 +000020909solaris*)
20910 version_type=linux
20911 need_lib_prefix=no
20912 need_version=no
20913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20914 soname_spec='${libname}${release}${shared_ext}$major'
20915 shlibpath_var=LD_LIBRARY_PATH
20916 shlibpath_overrides_runpath=yes
20917 hardcode_into_libs=yes
20918 # ldd complains unless libraries are executable
20919 postinstall_cmds='chmod +x $lib'
20920 ;;
20921
20922sunos4*)
20923 version_type=sunos
20924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20925 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20926 shlibpath_var=LD_LIBRARY_PATH
20927 shlibpath_overrides_runpath=yes
20928 if test "$with_gnu_ld" = yes; then
20929 need_lib_prefix=no
20930 fi
20931 need_version=yes
20932 ;;
20933
Reid Spencera773bd52006-08-04 18:18:08 +000020934sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020935 version_type=linux
20936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20937 soname_spec='${libname}${release}${shared_ext}$major'
20938 shlibpath_var=LD_LIBRARY_PATH
20939 case $host_vendor in
20940 sni)
20941 shlibpath_overrides_runpath=no
20942 need_lib_prefix=no
20943 export_dynamic_flag_spec='${wl}-Blargedynsym'
20944 runpath_var=LD_RUN_PATH
20945 ;;
20946 siemens)
20947 need_lib_prefix=no
20948 ;;
20949 motorola)
20950 need_lib_prefix=no
20951 need_version=no
20952 shlibpath_overrides_runpath=no
20953 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20954 ;;
20955 esac
20956 ;;
20957
20958sysv4*MP*)
20959 if test -d /usr/nec ;then
20960 version_type=linux
20961 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20962 soname_spec='$libname${shared_ext}.$major'
20963 shlibpath_var=LD_LIBRARY_PATH
20964 fi
20965 ;;
20966
Reid Spencera773bd52006-08-04 18:18:08 +000020967sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20968 version_type=freebsd-elf
20969 need_lib_prefix=no
20970 need_version=no
20971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20972 soname_spec='${libname}${release}${shared_ext}$major'
20973 shlibpath_var=LD_LIBRARY_PATH
20974 hardcode_into_libs=yes
20975 if test "$with_gnu_ld" = yes; then
20976 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20977 shlibpath_overrides_runpath=no
20978 else
20979 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20980 shlibpath_overrides_runpath=yes
20981 case $host_os in
20982 sco3.2v5*)
20983 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20984 ;;
20985 esac
20986 fi
20987 sys_lib_dlsearch_path_spec='/usr/lib'
20988 ;;
20989
John Criswell47fdd832003-07-14 16:52:07 +000020990uts4*)
20991 version_type=linux
20992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20993 soname_spec='${libname}${release}${shared_ext}$major'
20994 shlibpath_var=LD_LIBRARY_PATH
20995 ;;
20996
20997*)
20998 dynamic_linker=no
20999 ;;
21000esac
Reid Spencera773bd52006-08-04 18:18:08 +000021001{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21002echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021003test "$dynamic_linker" = no && can_build_shared=no
21004
Reid Spencera773bd52006-08-04 18:18:08 +000021005variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21006if test "$GCC" = yes; then
21007 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21008fi
21009
21010{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21011echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000021012hardcode_action_CXX=
21013if test -n "$hardcode_libdir_flag_spec_CXX" || \
21014 test -n "$runpath_var_CXX" || \
21015 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21016
21017 # We can hardcode non-existant directories.
21018 if test "$hardcode_direct_CXX" != no &&
21019 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21020 # have to relink, otherwise we might link with an installed library
21021 # when we should be linking with a yet-to-be-installed one
21022 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21023 test "$hardcode_minus_L_CXX" != no; then
21024 # Linking always hardcodes the temporary library directory.
21025 hardcode_action_CXX=relink
21026 else
21027 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21028 hardcode_action_CXX=immediate
21029 fi
21030else
21031 # We cannot hardcode anything, or else we can only hardcode existing
21032 # directories.
21033 hardcode_action_CXX=unsupported
21034fi
Reid Spencera773bd52006-08-04 18:18:08 +000021035{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21036echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000021037
21038if test "$hardcode_action_CXX" = relink; then
21039 # Fast installation is not supported
21040 enable_fast_install=no
21041elif test "$shlibpath_overrides_runpath" = yes ||
21042 test "$enable_shared" = no; then
21043 # Fast installation is not necessary
21044 enable_fast_install=needless
21045fi
21046
John Criswell47fdd832003-07-14 16:52:07 +000021047
21048# The else clause should only fire when bootstrapping the
21049# libtool distribution, otherwise you forgot to ship ltmain.sh
21050# with your package, and you will get complaints that there are
21051# no rules to generate ltmain.sh.
21052if test -f "$ltmain"; then
21053 # See if we are running on zsh, and set the options which allow our commands through
21054 # without removal of \ escapes.
21055 if test -n "${ZSH_VERSION+set}" ; then
21056 setopt NO_GLOB_SUBST
21057 fi
21058 # Now quote all the things that may contain metacharacters while being
21059 # careful not to overquote the AC_SUBSTed values. We take copies of the
21060 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000021061 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 +000021062 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000021063 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21064 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21065 deplibs_check_method reload_flag reload_cmds need_locks \
21066 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21067 lt_cv_sys_global_symbol_to_c_name_address \
21068 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21069 old_postinstall_cmds old_postuninstall_cmds \
21070 compiler_CXX \
21071 CC_CXX \
21072 LD_CXX \
21073 lt_prog_compiler_wl_CXX \
21074 lt_prog_compiler_pic_CXX \
21075 lt_prog_compiler_static_CXX \
21076 lt_prog_compiler_no_builtin_flag_CXX \
21077 export_dynamic_flag_spec_CXX \
21078 thread_safe_flag_spec_CXX \
21079 whole_archive_flag_spec_CXX \
21080 enable_shared_with_static_runtimes_CXX \
21081 old_archive_cmds_CXX \
21082 old_archive_from_new_cmds_CXX \
21083 predep_objects_CXX \
21084 postdep_objects_CXX \
21085 predeps_CXX \
21086 postdeps_CXX \
21087 compiler_lib_search_path_CXX \
21088 archive_cmds_CXX \
21089 archive_expsym_cmds_CXX \
21090 postinstall_cmds_CXX \
21091 postuninstall_cmds_CXX \
21092 old_archive_from_expsyms_cmds_CXX \
21093 allow_undefined_flag_CXX \
21094 no_undefined_flag_CXX \
21095 export_symbols_cmds_CXX \
21096 hardcode_libdir_flag_spec_CXX \
21097 hardcode_libdir_flag_spec_ld_CXX \
21098 hardcode_libdir_separator_CXX \
21099 hardcode_automatic_CXX \
21100 module_cmds_CXX \
21101 module_expsym_cmds_CXX \
21102 lt_cv_prog_compiler_c_o_CXX \
21103 exclude_expsyms_CXX \
21104 include_expsyms_CXX; do
21105
21106 case $var in
21107 old_archive_cmds_CXX | \
21108 old_archive_from_new_cmds_CXX | \
21109 archive_cmds_CXX | \
21110 archive_expsym_cmds_CXX | \
21111 module_cmds_CXX | \
21112 module_expsym_cmds_CXX | \
21113 old_archive_from_expsyms_cmds_CXX | \
21114 export_symbols_cmds_CXX | \
21115 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21116 postinstall_cmds | postuninstall_cmds | \
21117 old_postinstall_cmds | old_postuninstall_cmds | \
21118 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21119 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021120 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 +000021121 ;;
21122 *)
21123 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21124 ;;
21125 esac
21126 done
21127
21128 case $lt_echo in
21129 *'\$0 --fallback-echo"')
21130 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21131 ;;
21132 esac
21133
21134cfgfile="$ofile"
21135
21136 cat <<__EOF__ >> "$cfgfile"
21137# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21138
21139# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21140
21141# Shell to use when invoking shell scripts.
21142SHELL=$lt_SHELL
21143
21144# Whether or not to build shared libraries.
21145build_libtool_libs=$enable_shared
21146
21147# Whether or not to build static libraries.
21148build_old_libs=$enable_static
21149
21150# Whether or not to add -lc for building shared libraries.
21151build_libtool_need_lc=$archive_cmds_need_lc_CXX
21152
21153# Whether or not to disallow shared libs when runtime libs are static
21154allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21155
21156# Whether or not to optimize for fast installation.
21157fast_install=$enable_fast_install
21158
21159# The host system.
21160host_alias=$host_alias
21161host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000021162host_os=$host_os
21163
21164# The build system.
21165build_alias=$build_alias
21166build=$build
21167build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000021168
21169# An echo program that does not interpret backslashes.
21170echo=$lt_echo
21171
21172# The archiver.
21173AR=$lt_AR
21174AR_FLAGS=$lt_AR_FLAGS
21175
21176# A C compiler.
21177LTCC=$lt_LTCC
21178
Reid Spencera773bd52006-08-04 18:18:08 +000021179# LTCC compiler flags.
21180LTCFLAGS=$lt_LTCFLAGS
21181
John Criswell47fdd832003-07-14 16:52:07 +000021182# A language-specific compiler.
21183CC=$lt_compiler_CXX
21184
21185# Is the compiler the GNU C compiler?
21186with_gcc=$GCC_CXX
21187
21188# An ERE matcher.
21189EGREP=$lt_EGREP
21190
21191# The linker used to build libraries.
21192LD=$lt_LD_CXX
21193
21194# Whether we need hard or soft links.
21195LN_S=$lt_LN_S
21196
21197# A BSD-compatible nm program.
21198NM=$lt_NM
21199
21200# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000021201STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000021202
21203# Used to examine libraries when file_magic_cmd begins "file"
21204MAGIC_CMD=$MAGIC_CMD
21205
21206# Used on cygwin: DLL creation program.
21207DLLTOOL="$DLLTOOL"
21208
21209# Used on cygwin: object dumper.
21210OBJDUMP="$OBJDUMP"
21211
21212# Used on cygwin: assembler.
21213AS="$AS"
21214
21215# The name of the directory that contains temporary libtool files.
21216objdir=$objdir
21217
21218# How to create reloadable object files.
21219reload_flag=$lt_reload_flag
21220reload_cmds=$lt_reload_cmds
21221
21222# How to pass a linker flag through the compiler.
21223wl=$lt_lt_prog_compiler_wl_CXX
21224
21225# Object file suffix (normally "o").
21226objext="$ac_objext"
21227
21228# Old archive suffix (normally "a").
21229libext="$libext"
21230
21231# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000021232shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000021233
21234# Executable file suffix (normally "").
21235exeext="$exeext"
21236
21237# Additional compiler flags for building library objects.
21238pic_flag=$lt_lt_prog_compiler_pic_CXX
21239pic_mode=$pic_mode
21240
21241# What is the maximum length of a command?
21242max_cmd_len=$lt_cv_sys_max_cmd_len
21243
21244# Does compiler simultaneously support -c and -o options?
21245compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21246
Reid Spencera773bd52006-08-04 18:18:08 +000021247# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000021248need_locks=$lt_need_locks
21249
21250# Do we need the lib prefix for modules?
21251need_lib_prefix=$need_lib_prefix
21252
21253# Do we need a version for libraries?
21254need_version=$need_version
21255
21256# Whether dlopen is supported.
21257dlopen_support=$enable_dlopen
21258
21259# Whether dlopen of programs is supported.
21260dlopen_self=$enable_dlopen_self
21261
21262# Whether dlopen of statically linked programs is supported.
21263dlopen_self_static=$enable_dlopen_self_static
21264
21265# Compiler flag to prevent dynamic linking.
21266link_static_flag=$lt_lt_prog_compiler_static_CXX
21267
21268# Compiler flag to turn off builtin functions.
21269no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21270
21271# Compiler flag to allow reflexive dlopens.
21272export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21273
21274# Compiler flag to generate shared objects directly from archives.
21275whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21276
21277# Compiler flag to generate thread-safe objects.
21278thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21279
21280# Library versioning type.
21281version_type=$version_type
21282
21283# Format of library name prefix.
21284libname_spec=$lt_libname_spec
21285
21286# List of archive names. First name is the real one, the rest are links.
21287# The last name is the one that the linker finds with -lNAME.
21288library_names_spec=$lt_library_names_spec
21289
21290# The coded name of the library, if different from the real name.
21291soname_spec=$lt_soname_spec
21292
21293# Commands used to build and install an old-style archive.
21294RANLIB=$lt_RANLIB
21295old_archive_cmds=$lt_old_archive_cmds_CXX
21296old_postinstall_cmds=$lt_old_postinstall_cmds
21297old_postuninstall_cmds=$lt_old_postuninstall_cmds
21298
21299# Create an old-style archive from a shared archive.
21300old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21301
21302# Create a temporary old-style archive to link instead of a shared archive.
21303old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21304
21305# Commands used to build and install a shared archive.
21306archive_cmds=$lt_archive_cmds_CXX
21307archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21308postinstall_cmds=$lt_postinstall_cmds
21309postuninstall_cmds=$lt_postuninstall_cmds
21310
21311# Commands used to build a loadable module (assumed same as above if empty)
21312module_cmds=$lt_module_cmds_CXX
21313module_expsym_cmds=$lt_module_expsym_cmds_CXX
21314
21315# Commands to strip libraries.
21316old_striplib=$lt_old_striplib
21317striplib=$lt_striplib
21318
21319# Dependencies to place before the objects being linked to create a
21320# shared library.
21321predep_objects=$lt_predep_objects_CXX
21322
21323# Dependencies to place after the objects being linked to create a
21324# shared library.
21325postdep_objects=$lt_postdep_objects_CXX
21326
21327# Dependencies to place before the objects being linked to create a
21328# shared library.
21329predeps=$lt_predeps_CXX
21330
21331# Dependencies to place after the objects being linked to create a
21332# shared library.
21333postdeps=$lt_postdeps_CXX
21334
21335# The library search path used internally by the compiler when linking
21336# a shared library.
21337compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21338
21339# Method to check whether dependent libraries are shared objects.
21340deplibs_check_method=$lt_deplibs_check_method
21341
21342# Command to use when deplibs_check_method == file_magic.
21343file_magic_cmd=$lt_file_magic_cmd
21344
21345# Flag that allows shared libraries with undefined symbols to be built.
21346allow_undefined_flag=$lt_allow_undefined_flag_CXX
21347
21348# Flag that forces no undefined symbols.
21349no_undefined_flag=$lt_no_undefined_flag_CXX
21350
21351# Commands used to finish a libtool library installation in a directory.
21352finish_cmds=$lt_finish_cmds
21353
21354# Same as above, but a single script fragment to be evaled but not shown.
21355finish_eval=$lt_finish_eval
21356
21357# Take the output of nm and produce a listing of raw symbols and C names.
21358global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21359
21360# Transform the output of nm in a proper C declaration
21361global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21362
21363# Transform the output of nm in a C name address pair
21364global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21365
21366# This is the shared library runtime path variable.
21367runpath_var=$runpath_var
21368
21369# This is the shared library path variable.
21370shlibpath_var=$shlibpath_var
21371
21372# Is shlibpath searched before the hard-coded library search path?
21373shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21374
21375# How to hardcode a shared library path into an executable.
21376hardcode_action=$hardcode_action_CXX
21377
21378# Whether we should hardcode library paths into libraries.
21379hardcode_into_libs=$hardcode_into_libs
21380
21381# Flag to hardcode \$libdir into a binary during linking.
21382# This must work even if \$libdir does not exist.
21383hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21384
21385# If ld is used when linking, flag to hardcode \$libdir into
21386# a binary during linking. This must work even if \$libdir does
21387# not exist.
21388hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21389
21390# Whether we need a single -rpath flag with a separated argument.
21391hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21392
21393# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21394# resulting binary.
21395hardcode_direct=$hardcode_direct_CXX
21396
21397# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21398# resulting binary.
21399hardcode_minus_L=$hardcode_minus_L_CXX
21400
21401# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21402# the resulting binary.
21403hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21404
21405# Set to yes if building a shared library automatically hardcodes DIR into the library
21406# and all subsequent libraries and executables linked against it.
21407hardcode_automatic=$hardcode_automatic_CXX
21408
21409# Variables whose values should be saved in libtool wrapper scripts and
21410# restored at relink time.
21411variables_saved_for_relink="$variables_saved_for_relink"
21412
21413# Whether libtool must link a program against all its dependency libraries.
21414link_all_deplibs=$link_all_deplibs_CXX
21415
21416# Compile-time system search path for libraries
21417sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21418
21419# Run-time system search path for libraries
21420sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21421
21422# Fix the shell variable \$srcfile for the compiler.
21423fix_srcfile_path="$fix_srcfile_path_CXX"
21424
21425# Set to yes if exported symbols are required.
21426always_export_symbols=$always_export_symbols_CXX
21427
21428# The commands to list exported symbols.
21429export_symbols_cmds=$lt_export_symbols_cmds_CXX
21430
21431# The commands to extract the exported symbol list from a shared archive.
21432extract_expsyms_cmds=$lt_extract_expsyms_cmds
21433
21434# Symbols that should not be listed in the preloaded symbols.
21435exclude_expsyms=$lt_exclude_expsyms_CXX
21436
21437# Symbols that must always be exported.
21438include_expsyms=$lt_include_expsyms_CXX
21439
21440# ### END LIBTOOL TAG CONFIG: $tagname
21441
21442__EOF__
21443
21444
21445else
21446 # If there is no Makefile yet, we rely on a make rule to execute
21447 # `config.status --recheck' to rerun these tests and create the
21448 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021449 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21450 if test -f "$ltmain_in"; then
21451 test -f Makefile && make "$ltmain"
21452 fi
John Criswell47fdd832003-07-14 16:52:07 +000021453fi
21454
21455
21456ac_ext=c
21457ac_cpp='$CPP $CPPFLAGS'
21458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21460ac_compiler_gnu=$ac_cv_c_compiler_gnu
21461
21462CC=$lt_save_CC
21463LDCXX=$LD
21464LD=$lt_save_LD
21465GCC=$lt_save_GCC
21466with_gnu_ldcxx=$with_gnu_ld
21467with_gnu_ld=$lt_save_with_gnu_ld
21468lt_cv_path_LDCXX=$lt_cv_path_LD
21469lt_cv_path_LD=$lt_save_path_LD
21470lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21471lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21472
21473 else
21474 tagname=""
21475 fi
21476 ;;
21477
21478 F77)
21479 if test -n "$F77" && test "X$F77" != "Xno"; then
21480
21481ac_ext=f
21482ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21483ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21484ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21485
21486
21487archive_cmds_need_lc_F77=no
21488allow_undefined_flag_F77=
21489always_export_symbols_F77=no
21490archive_expsym_cmds_F77=
21491export_dynamic_flag_spec_F77=
21492hardcode_direct_F77=no
21493hardcode_libdir_flag_spec_F77=
21494hardcode_libdir_flag_spec_ld_F77=
21495hardcode_libdir_separator_F77=
21496hardcode_minus_L_F77=no
21497hardcode_automatic_F77=no
21498module_cmds_F77=
21499module_expsym_cmds_F77=
21500link_all_deplibs_F77=unknown
21501old_archive_cmds_F77=$old_archive_cmds
21502no_undefined_flag_F77=
21503whole_archive_flag_spec_F77=
21504enable_shared_with_static_runtimes_F77=no
21505
21506# Source file extension for f77 test sources.
21507ac_ext=f
21508
21509# Object file extension for compiled f77 test sources.
21510objext=o
21511objext_F77=$objext
21512
21513# Code to be used in simple compile tests
21514lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21515
21516# Code to be used in simple link tests
21517lt_simple_link_test_code=" program t\n end\n"
21518
21519# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21520
21521# If no C compiler was specified, use CC.
21522LTCC=${LTCC-"$CC"}
21523
Reid Spencera773bd52006-08-04 18:18:08 +000021524# If no C compiler flags were specified, use CFLAGS.
21525LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21526
John Criswell47fdd832003-07-14 16:52:07 +000021527# Allow CC to be a program name with arguments.
21528compiler=$CC
21529
21530
Reid Spencera773bd52006-08-04 18:18:08 +000021531# save warnings/boilerplate of simple test code
21532ac_outfile=conftest.$ac_objext
21533printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21534eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21535_lt_compiler_boilerplate=`cat conftest.err`
21536$rm conftest*
21537
21538ac_outfile=conftest.$ac_objext
21539printf "$lt_simple_link_test_code" >conftest.$ac_ext
21540eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21541_lt_linker_boilerplate=`cat conftest.err`
21542$rm conftest*
21543
21544
John Criswell47fdd832003-07-14 16:52:07 +000021545# Allow CC to be a program name with arguments.
21546lt_save_CC="$CC"
21547CC=${F77-"f77"}
21548compiler=$CC
21549compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021550for cc_temp in $compiler""; do
21551 case $cc_temp in
21552 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21553 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21554 \-*) ;;
21555 *) break;;
21556 esac
21557done
21558cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021559
John Criswell47fdd832003-07-14 16:52:07 +000021560
Reid Spencera773bd52006-08-04 18:18:08 +000021561{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21562echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21563{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21564echo "${ECHO_T}$can_build_shared" >&6; }
21565
21566{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21567echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021568test "$can_build_shared" = "no" && enable_shared=no
21569
21570# On AIX, shared libraries and static libraries use the same namespace, and
21571# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021572case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021573aix3*)
21574 test "$enable_shared" = yes && enable_static=no
21575 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021576 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021577 postinstall_cmds='$RANLIB $lib'
21578 fi
21579 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021580aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021581 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21582 test "$enable_shared" = yes && enable_static=no
21583 fi
John Criswell47fdd832003-07-14 16:52:07 +000021584 ;;
21585esac
Reid Spencera773bd52006-08-04 18:18:08 +000021586{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21587echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021588
Reid Spencera773bd52006-08-04 18:18:08 +000021589{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21590echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021591# Make sure either enable_shared or enable_static is yes.
21592test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021593{ echo "$as_me:$LINENO: result: $enable_static" >&5
21594echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021595
21596GCC_F77="$G77"
21597LD_F77="$LD"
21598
21599lt_prog_compiler_wl_F77=
21600lt_prog_compiler_pic_F77=
21601lt_prog_compiler_static_F77=
21602
Reid Spencera773bd52006-08-04 18:18:08 +000021603{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21604echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021605
21606 if test "$GCC" = yes; then
21607 lt_prog_compiler_wl_F77='-Wl,'
21608 lt_prog_compiler_static_F77='-static'
21609
21610 case $host_os in
21611 aix*)
21612 # All AIX code is PIC.
21613 if test "$host_cpu" = ia64; then
21614 # AIX 5 now supports IA64 processor
21615 lt_prog_compiler_static_F77='-Bstatic'
21616 fi
21617 ;;
21618
21619 amigaos*)
21620 # FIXME: we need at least 68020 code to build shared libraries, but
21621 # adding the `-m68020' flag to GCC prevents building anything better,
21622 # like `-m68040'.
21623 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21624 ;;
21625
21626 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21627 # PIC is the default for these OSes.
21628 ;;
21629
21630 mingw* | pw32* | os2*)
21631 # This hack is so that the source file can tell whether it is being
21632 # built for inclusion in a dll (and should export symbols for example).
21633 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21634 ;;
21635
21636 darwin* | rhapsody*)
21637 # PIC is the default on this platform
21638 # Common symbols not allowed in MH_DYLIB files
21639 lt_prog_compiler_pic_F77='-fno-common'
21640 ;;
21641
Reid Spencera773bd52006-08-04 18:18:08 +000021642 interix3*)
21643 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21644 # Instead, we relocate shared libraries at runtime.
21645 ;;
21646
John Criswell47fdd832003-07-14 16:52:07 +000021647 msdosdjgpp*)
21648 # Just because we use GCC doesn't mean we suddenly get shared libraries
21649 # on systems that don't support them.
21650 lt_prog_compiler_can_build_shared_F77=no
21651 enable_shared=no
21652 ;;
21653
21654 sysv4*MP*)
21655 if test -d /usr/nec; then
21656 lt_prog_compiler_pic_F77=-Kconform_pic
21657 fi
21658 ;;
21659
21660 hpux*)
21661 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21662 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021663 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021664 hppa*64*|ia64*)
21665 # +Z the default
21666 ;;
21667 *)
21668 lt_prog_compiler_pic_F77='-fPIC'
21669 ;;
21670 esac
21671 ;;
21672
21673 *)
21674 lt_prog_compiler_pic_F77='-fPIC'
21675 ;;
21676 esac
21677 else
21678 # PORTME Check for flag to pass linker flags through the system compiler.
21679 case $host_os in
21680 aix*)
21681 lt_prog_compiler_wl_F77='-Wl,'
21682 if test "$host_cpu" = ia64; then
21683 # AIX 5 now supports IA64 processor
21684 lt_prog_compiler_static_F77='-Bstatic'
21685 else
21686 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21687 fi
21688 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021689 darwin*)
21690 # PIC is the default on this platform
21691 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021692 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021693 xlc*)
21694 lt_prog_compiler_pic_F77='-qnocommon'
21695 lt_prog_compiler_wl_F77='-Wl,'
21696 ;;
21697 esac
21698 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021699
21700 mingw* | pw32* | os2*)
21701 # This hack is so that the source file can tell whether it is being
21702 # built for inclusion in a dll (and should export symbols for example).
21703 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21704 ;;
21705
21706 hpux9* | hpux10* | hpux11*)
21707 lt_prog_compiler_wl_F77='-Wl,'
21708 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21709 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021710 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021711 hppa*64*|ia64*)
21712 # +Z the default
21713 ;;
21714 *)
21715 lt_prog_compiler_pic_F77='+Z'
21716 ;;
21717 esac
21718 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21719 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21720 ;;
21721
21722 irix5* | irix6* | nonstopux*)
21723 lt_prog_compiler_wl_F77='-Wl,'
21724 # PIC (with -KPIC) is the default.
21725 lt_prog_compiler_static_F77='-non_shared'
21726 ;;
21727
21728 newsos6)
21729 lt_prog_compiler_pic_F77='-KPIC'
21730 lt_prog_compiler_static_F77='-Bstatic'
21731 ;;
21732
21733 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021734 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021735 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021736 lt_prog_compiler_wl_F77='-Wl,'
21737 lt_prog_compiler_pic_F77='-KPIC'
21738 lt_prog_compiler_static_F77='-static'
21739 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021740 pgcc* | pgf77* | pgf90* | pgf95*)
21741 # Portland Group compilers (*not* the Pentium gcc compiler,
21742 # which looks to be a dead project)
21743 lt_prog_compiler_wl_F77='-Wl,'
21744 lt_prog_compiler_pic_F77='-fpic'
21745 lt_prog_compiler_static_F77='-Bstatic'
21746 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021747 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021748 lt_prog_compiler_wl_F77='-Wl,'
21749 # All Alpha code is PIC.
21750 lt_prog_compiler_static_F77='-non_shared'
21751 ;;
21752 esac
21753 ;;
21754
21755 osf3* | osf4* | osf5*)
21756 lt_prog_compiler_wl_F77='-Wl,'
21757 # All OSF/1 code is PIC.
21758 lt_prog_compiler_static_F77='-non_shared'
21759 ;;
21760
John Criswell47fdd832003-07-14 16:52:07 +000021761 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021762 lt_prog_compiler_pic_F77='-KPIC'
21763 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021764 case $cc_basename in
21765 f77* | f90* | f95*)
21766 lt_prog_compiler_wl_F77='-Qoption ld ';;
21767 *)
21768 lt_prog_compiler_wl_F77='-Wl,';;
21769 esac
John Criswell47fdd832003-07-14 16:52:07 +000021770 ;;
21771
21772 sunos4*)
21773 lt_prog_compiler_wl_F77='-Qoption ld '
21774 lt_prog_compiler_pic_F77='-PIC'
21775 lt_prog_compiler_static_F77='-Bstatic'
21776 ;;
21777
Reid Spencera773bd52006-08-04 18:18:08 +000021778 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021779 lt_prog_compiler_wl_F77='-Wl,'
21780 lt_prog_compiler_pic_F77='-KPIC'
21781 lt_prog_compiler_static_F77='-Bstatic'
21782 ;;
21783
21784 sysv4*MP*)
21785 if test -d /usr/nec ;then
21786 lt_prog_compiler_pic_F77='-Kconform_pic'
21787 lt_prog_compiler_static_F77='-Bstatic'
21788 fi
21789 ;;
21790
Reid Spencera773bd52006-08-04 18:18:08 +000021791 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21792 lt_prog_compiler_wl_F77='-Wl,'
21793 lt_prog_compiler_pic_F77='-KPIC'
21794 lt_prog_compiler_static_F77='-Bstatic'
21795 ;;
21796
21797 unicos*)
21798 lt_prog_compiler_wl_F77='-Wl,'
21799 lt_prog_compiler_can_build_shared_F77=no
21800 ;;
21801
John Criswell47fdd832003-07-14 16:52:07 +000021802 uts4*)
21803 lt_prog_compiler_pic_F77='-pic'
21804 lt_prog_compiler_static_F77='-Bstatic'
21805 ;;
21806
21807 *)
21808 lt_prog_compiler_can_build_shared_F77=no
21809 ;;
21810 esac
21811 fi
21812
Reid Spencera773bd52006-08-04 18:18:08 +000021813{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21814echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021815
21816#
21817# Check to make sure the PIC flag actually works.
21818#
21819if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021820
Reid Spencera773bd52006-08-04 18:18:08 +000021821{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21822echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021823if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21824 echo $ECHO_N "(cached) $ECHO_C" >&6
21825else
21826 lt_prog_compiler_pic_works_F77=no
21827 ac_outfile=conftest.$ac_objext
21828 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21829 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21830 # Insert the option either (1) after the last *FLAGS variable, or
21831 # (2) before a word containing "conftest.", or (3) at the end.
21832 # Note that $ac_compile itself does not contain backslashes and begins
21833 # with a dollar sign (not a hyphen), so the echo should work correctly.
21834 # The option is referenced via a variable to avoid confusing sed.
21835 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021836 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21838 -e 's:$: $lt_compiler_flag:'`
Edward O'Callaghan2b19d692009-10-14 00:44:50 +000021839 (eval echo "\"\$as_me:21839: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021840 (eval "$lt_compile" 2>conftest.err)
21841 ac_status=$?
21842 cat conftest.err >&5
Edward O'Callaghan2b19d692009-10-14 00:44:50 +000021843 echo "$as_me:21843: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021844 if (exit $ac_status) && test -s "$ac_outfile"; then
21845 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021846 # So say no if there are warnings other than the usual output.
21847 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21848 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21849 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021850 lt_prog_compiler_pic_works_F77=yes
21851 fi
21852 fi
21853 $rm conftest*
21854
21855fi
Reid Spencera773bd52006-08-04 18:18:08 +000021856{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21857echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021858
21859if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21860 case $lt_prog_compiler_pic_F77 in
21861 "" | " "*) ;;
21862 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21863 esac
21864else
21865 lt_prog_compiler_pic_F77=
21866 lt_prog_compiler_can_build_shared_F77=no
21867fi
21868
21869fi
Reid Spencera773bd52006-08-04 18:18:08 +000021870case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021871 # For platforms which do not support PIC, -DPIC is meaningless:
21872 *djgpp*)
21873 lt_prog_compiler_pic_F77=
21874 ;;
21875 *)
21876 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21877 ;;
21878esac
21879
Reid Spencera773bd52006-08-04 18:18:08 +000021880#
21881# Check to make sure the static flag actually works.
21882#
21883wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21884{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21885echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21886if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21887 echo $ECHO_N "(cached) $ECHO_C" >&6
21888else
21889 lt_prog_compiler_static_works_F77=no
21890 save_LDFLAGS="$LDFLAGS"
21891 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21892 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21893 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21894 # The linker can only warn and ignore the option if not recognized
21895 # So say no if there are warnings
21896 if test -s conftest.err; then
21897 # Append any errors to the config.log.
21898 cat conftest.err 1>&5
21899 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21900 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21901 if diff conftest.exp conftest.er2 >/dev/null; then
21902 lt_prog_compiler_static_works_F77=yes
21903 fi
21904 else
21905 lt_prog_compiler_static_works_F77=yes
21906 fi
21907 fi
21908 $rm conftest*
21909 LDFLAGS="$save_LDFLAGS"
21910
21911fi
21912{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21913echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21914
21915if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21916 :
21917else
21918 lt_prog_compiler_static_F77=
21919fi
21920
21921
21922{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21923echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021924if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21925 echo $ECHO_N "(cached) $ECHO_C" >&6
21926else
21927 lt_cv_prog_compiler_c_o_F77=no
21928 $rm -r conftest 2>/dev/null
21929 mkdir conftest
21930 cd conftest
21931 mkdir out
21932 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21933
John Criswell47fdd832003-07-14 16:52:07 +000021934 lt_compiler_flag="-o out/conftest2.$ac_objext"
21935 # Insert the option either (1) after the last *FLAGS variable, or
21936 # (2) before a word containing "conftest.", or (3) at the end.
21937 # Note that $ac_compile itself does not contain backslashes and begins
21938 # with a dollar sign (not a hyphen), so the echo should work correctly.
21939 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021940 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021941 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21942 -e 's:$: $lt_compiler_flag:'`
Edward O'Callaghan2b19d692009-10-14 00:44:50 +000021943 (eval echo "\"\$as_me:21943: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021944 (eval "$lt_compile" 2>out/conftest.err)
21945 ac_status=$?
21946 cat out/conftest.err >&5
Edward O'Callaghan2b19d692009-10-14 00:44:50 +000021947 echo "$as_me:21947: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021948 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21949 then
21950 # The compiler can only warn and ignore the option if not recognized
21951 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021952 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21953 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21954 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021955 lt_cv_prog_compiler_c_o_F77=yes
21956 fi
21957 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021958 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021959 $rm conftest*
21960 # SGI C++ compiler will create directory out/ii_files/ for
21961 # template instantiation
21962 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21963 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021964 cd ..
21965 rmdir conftest
21966 $rm conftest*
21967
21968fi
Reid Spencera773bd52006-08-04 18:18:08 +000021969{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21970echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021971
21972
21973hard_links="nottested"
21974if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21975 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021976 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21977echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021978 hard_links=yes
21979 $rm conftest*
21980 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21981 touch conftest.a
21982 ln conftest.a conftest.b 2>&5 || hard_links=no
21983 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021984 { echo "$as_me:$LINENO: result: $hard_links" >&5
21985echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021986 if test "$hard_links" = no; then
21987 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21988echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21989 need_locks=warn
21990 fi
21991else
21992 need_locks=no
21993fi
21994
Reid Spencera773bd52006-08-04 18:18:08 +000021995{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21996echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021997
21998 runpath_var=
21999 allow_undefined_flag_F77=
22000 enable_shared_with_static_runtimes_F77=no
22001 archive_cmds_F77=
22002 archive_expsym_cmds_F77=
22003 old_archive_From_new_cmds_F77=
22004 old_archive_from_expsyms_cmds_F77=
22005 export_dynamic_flag_spec_F77=
22006 whole_archive_flag_spec_F77=
22007 thread_safe_flag_spec_F77=
22008 hardcode_libdir_flag_spec_F77=
22009 hardcode_libdir_flag_spec_ld_F77=
22010 hardcode_libdir_separator_F77=
22011 hardcode_direct_F77=no
22012 hardcode_minus_L_F77=no
22013 hardcode_shlibpath_var_F77=unsupported
22014 link_all_deplibs_F77=unknown
22015 hardcode_automatic_F77=no
22016 module_cmds_F77=
22017 module_expsym_cmds_F77=
22018 always_export_symbols_F77=no
22019 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22020 # include_expsyms should be a list of space-separated symbols to be *always*
22021 # included in the symbol list
22022 include_expsyms_F77=
22023 # exclude_expsyms can be an extended regexp of symbols to exclude
22024 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22025 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22026 # as well as any symbol that contains `d'.
22027 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
22028 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22029 # platforms (ab)use it in PIC code, but their linkers get confused if
22030 # the symbol is explicitly referenced. Since portable code cannot
22031 # rely on this symbol name, it's probably fine to never include it in
22032 # preloaded symbol tables.
22033 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000022034 # Just being paranoid about ensuring that cc_basename is set.
22035 for cc_temp in $compiler""; do
22036 case $cc_temp in
22037 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22038 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22039 \-*) ;;
22040 *) break;;
22041 esac
22042done
22043cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000022044
22045 case $host_os in
22046 cygwin* | mingw* | pw32*)
22047 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22048 # When not using gcc, we currently assume that we are using
22049 # Microsoft Visual C++.
22050 if test "$GCC" != yes; then
22051 with_gnu_ld=no
22052 fi
22053 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022054 interix*)
22055 # we just hope/assume this is gcc and not c89 (= MSVC++)
22056 with_gnu_ld=yes
22057 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022058 openbsd*)
22059 with_gnu_ld=no
22060 ;;
22061 esac
22062
22063 ld_shlibs_F77=yes
22064 if test "$with_gnu_ld" = yes; then
22065 # If archive_cmds runs LD, not CC, wlarc should be empty
22066 wlarc='${wl}'
22067
Reid Spencera773bd52006-08-04 18:18:08 +000022068 # Set some defaults for GNU ld with shared library support. These
22069 # are reset later if shared libraries are not supported. Putting them
22070 # here allows them to be overridden if necessary.
22071 runpath_var=LD_RUN_PATH
22072 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22073 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22074 # ancient GNU ld didn't support --whole-archive et. al.
22075 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22076 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22077 else
22078 whole_archive_flag_spec_F77=
22079 fi
22080 supports_anon_versioning=no
22081 case `$LD -v 2>/dev/null` in
22082 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22083 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22084 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22085 *\ 2.11.*) ;; # other 2.11 versions
22086 *) supports_anon_versioning=yes ;;
22087 esac
22088
John Criswell47fdd832003-07-14 16:52:07 +000022089 # See if GNU ld supports shared libraries.
22090 case $host_os in
22091 aix3* | aix4* | aix5*)
22092 # On AIX/PPC, the GNU linker is very broken
22093 if test "$host_cpu" != ia64; then
22094 ld_shlibs_F77=no
22095 cat <<EOF 1>&2
22096
22097*** Warning: the GNU linker, at least up to release 2.9.1, is reported
22098*** to be unable to reliably create shared libraries on AIX.
22099*** Therefore, libtool is disabling shared libraries support. If you
22100*** really care for shared libraries, you may want to modify your PATH
22101*** so that a non-GNU linker is found, and then restart.
22102
22103EOF
22104 fi
22105 ;;
22106
22107 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022108 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 +000022109 hardcode_libdir_flag_spec_F77='-L$libdir'
22110 hardcode_minus_L_F77=yes
22111
22112 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22113 # that the semantics of dynamic libraries on AmigaOS, at least up
22114 # to version 4, is to share data among multiple programs linked
22115 # with the same dynamic library. Since this doesn't match the
22116 # behavior of shared libraries on other platforms, we can't use
22117 # them.
22118 ld_shlibs_F77=no
22119 ;;
22120
22121 beos*)
22122 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22123 allow_undefined_flag_F77=unsupported
22124 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22125 # support --undefined. This deserves some investigation. FIXME
22126 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22127 else
22128 ld_shlibs_F77=no
22129 fi
22130 ;;
22131
22132 cygwin* | mingw* | pw32*)
22133 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22134 # as there is no search path for DLLs.
22135 hardcode_libdir_flag_spec_F77='-L$libdir'
22136 allow_undefined_flag_F77=unsupported
22137 always_export_symbols_F77=no
22138 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022139 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 +000022140
22141 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000022142 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 +000022143 # If the export-symbols file already is a .def file (1st line
22144 # is EXPORTS), use it as is; otherwise, prepend...
22145 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22146 cp $export_symbols $output_objdir/$soname.def;
22147 else
22148 echo EXPORTS > $output_objdir/$soname.def;
22149 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000022150 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000022151 $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 +000022152 else
Reid Spencera773bd52006-08-04 18:18:08 +000022153 ld_shlibs_F77=no
22154 fi
22155 ;;
22156
22157 interix3*)
22158 hardcode_direct_F77=no
22159 hardcode_shlibpath_var_F77=no
22160 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22161 export_dynamic_flag_spec_F77='${wl}-E'
22162 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22163 # Instead, shared libraries are loaded at an image base (0x10000000 by
22164 # default) and relocated if they conflict, which is a slow very memory
22165 # consuming and fragmenting process. To avoid this, we pick a random,
22166 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22167 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22168 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'
22169 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'
22170 ;;
22171
22172 linux*)
22173 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22174 tmp_addflag=
22175 case $cc_basename,$host_cpu in
22176 pgcc*) # Portland Group C compiler
22177 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'
22178 tmp_addflag=' $pic_flag'
22179 ;;
22180 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22181 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'
22182 tmp_addflag=' $pic_flag -Mnomain' ;;
22183 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22184 tmp_addflag=' -i_dynamic' ;;
22185 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22186 tmp_addflag=' -i_dynamic -nofor_main' ;;
22187 ifc* | ifort*) # Intel Fortran compiler
22188 tmp_addflag=' -nofor_main' ;;
22189 esac
22190 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22191
22192 if test $supports_anon_versioning = yes; then
22193 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22194 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22195 $echo "local: *; };" >> $output_objdir/$libname.ver~
22196 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22197 fi
22198 else
22199 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022200 fi
22201 ;;
22202
22203 netbsd*)
22204 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22205 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22206 wlarc=
22207 else
22208 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22209 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22210 fi
22211 ;;
22212
Reid Spencera773bd52006-08-04 18:18:08 +000022213 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000022214 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22215 ld_shlibs_F77=no
22216 cat <<EOF 1>&2
22217
22218*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22219*** create shared libraries on Solaris systems. Therefore, libtool
22220*** is disabling shared libraries support. We urge you to upgrade GNU
22221*** binutils to release 2.9.1 or newer. Another option is to modify
22222*** your PATH or compiler configuration so that the native linker is
22223*** used, and then restart.
22224
22225EOF
22226 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22227 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22228 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22229 else
22230 ld_shlibs_F77=no
22231 fi
22232 ;;
22233
Reid Spencera773bd52006-08-04 18:18:08 +000022234 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22235 case `$LD -v 2>&1` in
22236 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22237 ld_shlibs_F77=no
22238 cat <<_LT_EOF 1>&2
22239
22240*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22241*** reliably create shared libraries on SCO systems. Therefore, libtool
22242*** is disabling shared libraries support. We urge you to upgrade GNU
22243*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22244*** your PATH or compiler configuration so that the native linker is
22245*** used, and then restart.
22246
22247_LT_EOF
22248 ;;
22249 *)
22250 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22251 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22252 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22253 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22254 else
22255 ld_shlibs_F77=no
22256 fi
22257 ;;
22258 esac
22259 ;;
22260
John Criswell47fdd832003-07-14 16:52:07 +000022261 sunos4*)
22262 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22263 wlarc=
22264 hardcode_direct_F77=yes
22265 hardcode_shlibpath_var_F77=no
22266 ;;
22267
22268 *)
22269 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22270 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22271 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22272 else
22273 ld_shlibs_F77=no
22274 fi
22275 ;;
22276 esac
22277
Reid Spencera773bd52006-08-04 18:18:08 +000022278 if test "$ld_shlibs_F77" = no; then
22279 runpath_var=
22280 hardcode_libdir_flag_spec_F77=
22281 export_dynamic_flag_spec_F77=
22282 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000022283 fi
22284 else
22285 # PORTME fill in a description of your system's linker (not GNU ld)
22286 case $host_os in
22287 aix3*)
22288 allow_undefined_flag_F77=unsupported
22289 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000022290 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 +000022291 # Note: this linker hardcodes the directories in LIBPATH if there
22292 # are no directories specified by -L.
22293 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022294 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000022295 # Neither direct hardcoding nor static linking is supported with a
22296 # broken collect2.
22297 hardcode_direct_F77=unsupported
22298 fi
22299 ;;
22300
22301 aix4* | aix5*)
22302 if test "$host_cpu" = ia64; then
22303 # On IA64, the linker does run time linking by default, so we don't
22304 # have to do anything special.
22305 aix_use_runtimelinking=no
22306 exp_sym_flag='-Bexport'
22307 no_entry_flag=""
22308 else
22309 # If we're using GNU nm, then we don't want the "-C" option.
22310 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22311 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22312 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'
22313 else
22314 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'
22315 fi
22316 aix_use_runtimelinking=no
22317
22318 # Test if we are trying to use run time linking or normal
22319 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22320 # need to do runtime linking.
22321 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22322 for ld_flag in $LDFLAGS; do
22323 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22324 aix_use_runtimelinking=yes
22325 break
22326 fi
22327 done
Reid Spencera773bd52006-08-04 18:18:08 +000022328 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022329 esac
22330
22331 exp_sym_flag='-bexport'
22332 no_entry_flag='-bnoentry'
22333 fi
22334
22335 # When large executables or shared objects are built, AIX ld can
22336 # have problems creating the table of contents. If linking a library
22337 # or program results in "error TOC overflow" add -mminimal-toc to
22338 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22339 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22340
22341 archive_cmds_F77=''
22342 hardcode_direct_F77=yes
22343 hardcode_libdir_separator_F77=':'
22344 link_all_deplibs_F77=yes
22345
22346 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022347 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000022348 # We only want to do this on AIX 4.2 and lower, the check
22349 # below for broken collect2 doesn't work under 4.3+
22350 collect2name=`${CC} -print-prog-name=collect2`
22351 if test -f "$collect2name" && \
22352 strings "$collect2name" | grep resolve_lib_name >/dev/null
22353 then
22354 # We have reworked collect2
22355 hardcode_direct_F77=yes
22356 else
22357 # We have old collect2
22358 hardcode_direct_F77=unsupported
22359 # It fails to find uninstalled libraries when the uninstalled
22360 # path is not listed in the libpath. Setting hardcode_minus_L
22361 # to unsupported forces relinking
22362 hardcode_minus_L_F77=yes
22363 hardcode_libdir_flag_spec_F77='-L$libdir'
22364 hardcode_libdir_separator_F77=
22365 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022366 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022367 esac
22368 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000022369 if test "$aix_use_runtimelinking" = yes; then
22370 shared_flag="$shared_flag "'${wl}-G'
22371 fi
John Criswell47fdd832003-07-14 16:52:07 +000022372 else
22373 # not using gcc
22374 if test "$host_cpu" = ia64; then
22375 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22376 # chokes on -Wl,-G. The following line is correct:
22377 shared_flag='-G'
22378 else
Reid Spencera773bd52006-08-04 18:18:08 +000022379 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000022380 shared_flag='${wl}-G'
22381 else
22382 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000022383 fi
John Criswell47fdd832003-07-14 16:52:07 +000022384 fi
22385 fi
22386
22387 # It seems that -bexpall does not export symbols beginning with
22388 # underscore (_), so it is better to generate a list of symbols to export.
22389 always_export_symbols_F77=yes
22390 if test "$aix_use_runtimelinking" = yes; then
22391 # Warning - without using the other runtime loading flags (-brtl),
22392 # -berok will link without error, but may produce a broken library.
22393 allow_undefined_flag_F77='-berok'
22394 # Determine the default libpath from the value encoded in an empty executable.
22395 cat >conftest.$ac_ext <<_ACEOF
22396 program main
22397
22398 end
22399_ACEOF
22400rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022401if { (ac_try="$ac_link"
22402case "(($ac_try" in
22403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22404 *) ac_try_echo=$ac_try;;
22405esac
22406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22407 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022408 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022409 grep -v '^ *+' conftest.er1 >conftest.err
22410 rm -f conftest.er1
22411 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022413 (exit $ac_status); } &&
22414 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22415 { (case "(($ac_try" in
22416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22417 *) ac_try_echo=$ac_try;;
22418esac
22419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22420 (eval "$ac_try") 2>&5
22421 ac_status=$?
22422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423 (exit $ac_status); }; } &&
22424 { ac_try='test -s conftest$ac_exeext'
22425 { (case "(($ac_try" in
22426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22427 *) ac_try_echo=$ac_try;;
22428esac
22429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22430 (eval "$ac_try") 2>&5
22431 ac_status=$?
22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022434
22435aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22436}'`
22437# Check for a 64-bit object if we didn't find anything.
22438if 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; }
22439}'`; fi
22440else
22441 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022442sed 's/^/| /' conftest.$ac_ext >&5
22443
Reid Spencera773bd52006-08-04 18:18:08 +000022444
John Criswell47fdd832003-07-14 16:52:07 +000022445fi
Reid Spencera773bd52006-08-04 18:18:08 +000022446
Bill Wendlingebcceee2009-04-18 11:20:33 +000022447rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022448 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022449if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22450
22451 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022452 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 +000022453 else
22454 if test "$host_cpu" = ia64; then
22455 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22456 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022457 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 +000022458 else
22459 # Determine the default libpath from the value encoded in an empty executable.
22460 cat >conftest.$ac_ext <<_ACEOF
22461 program main
22462
22463 end
22464_ACEOF
22465rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022466if { (ac_try="$ac_link"
22467case "(($ac_try" in
22468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22469 *) ac_try_echo=$ac_try;;
22470esac
22471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22472 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022473 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022474 grep -v '^ *+' conftest.er1 >conftest.err
22475 rm -f conftest.er1
22476 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022478 (exit $ac_status); } &&
22479 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22480 { (case "(($ac_try" in
22481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22482 *) ac_try_echo=$ac_try;;
22483esac
22484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22485 (eval "$ac_try") 2>&5
22486 ac_status=$?
22487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488 (exit $ac_status); }; } &&
22489 { ac_try='test -s conftest$ac_exeext'
22490 { (case "(($ac_try" in
22491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22492 *) ac_try_echo=$ac_try;;
22493esac
22494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22495 (eval "$ac_try") 2>&5
22496 ac_status=$?
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022499
22500aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22501}'`
22502# Check for a 64-bit object if we didn't find anything.
22503if 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; }
22504}'`; fi
22505else
22506 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022507sed 's/^/| /' conftest.$ac_ext >&5
22508
Reid Spencera773bd52006-08-04 18:18:08 +000022509
John Criswell47fdd832003-07-14 16:52:07 +000022510fi
Reid Spencera773bd52006-08-04 18:18:08 +000022511
Bill Wendlingebcceee2009-04-18 11:20:33 +000022512rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022513 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022514if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22515
22516 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22517 # Warning - without using the other run time loading flags,
22518 # -berok will link without error, but may produce a broken library.
22519 no_undefined_flag_F77=' ${wl}-bernotok'
22520 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022521 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022522 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022523 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022524 # This is similar to how AIX traditionally builds its shared libraries.
22525 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 +000022526 fi
22527 fi
22528 ;;
22529
22530 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022531 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 +000022532 hardcode_libdir_flag_spec_F77='-L$libdir'
22533 hardcode_minus_L_F77=yes
22534 # see comment about different semantics on the GNU ld section
22535 ld_shlibs_F77=no
22536 ;;
22537
Reid Spencer2706f8c2004-09-19 23:53:36 +000022538 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022539 export_dynamic_flag_spec_F77=-rdynamic
22540 ;;
22541
22542 cygwin* | mingw* | pw32*)
22543 # When not using gcc, we currently assume that we are using
22544 # Microsoft Visual C++.
22545 # hardcode_libdir_flag_spec is actually meaningless, as there is
22546 # no search path for DLLs.
22547 hardcode_libdir_flag_spec_F77=' '
22548 allow_undefined_flag_F77=unsupported
22549 # Tell ltmain to make .lib files, not .a files.
22550 libext=lib
22551 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022552 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022553 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022554 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 +000022555 # The linker will automatically build a .lib file if we build a DLL.
22556 old_archive_From_new_cmds_F77='true'
22557 # FIXME: Should let the user specify the lib program.
22558 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022559 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022560 enable_shared_with_static_runtimes_F77=yes
22561 ;;
22562
22563 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022564 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022565 rhapsody* | darwin1.[012])
22566 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22567 ;;
22568 *) # Darwin 1.3 on
22569 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22570 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22571 else
22572 case ${MACOSX_DEPLOYMENT_TARGET} in
22573 10.[012])
22574 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22575 ;;
22576 10.*)
22577 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22578 ;;
22579 esac
22580 fi
22581 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022582 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022583 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022584 hardcode_direct_F77=no
22585 hardcode_automatic_F77=yes
22586 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022587 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022588 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022589 if test "$GCC" = yes ; then
22590 output_verbose_link_cmd='echo'
22591 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22592 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022593 # 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 +000022594 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}'
22595 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 +000022596 else
Reid Spencera773bd52006-08-04 18:18:08 +000022597 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022598 xlc*)
22599 output_verbose_link_cmd='echo'
22600 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22601 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022602 # 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 +000022603 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}'
22604 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 +000022605 ;;
22606 *)
22607 ld_shlibs_F77=no
22608 ;;
22609 esac
John Criswell47fdd832003-07-14 16:52:07 +000022610 fi
22611 ;;
22612
22613 dgux*)
22614 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22615 hardcode_libdir_flag_spec_F77='-L$libdir'
22616 hardcode_shlibpath_var_F77=no
22617 ;;
22618
22619 freebsd1*)
22620 ld_shlibs_F77=no
22621 ;;
22622
22623 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22624 # support. Future versions do this automatically, but an explicit c++rt0.o
22625 # does not break anything, and helps significantly (at the cost of a little
22626 # extra space).
22627 freebsd2.2*)
22628 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22629 hardcode_libdir_flag_spec_F77='-R$libdir'
22630 hardcode_direct_F77=yes
22631 hardcode_shlibpath_var_F77=no
22632 ;;
22633
22634 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22635 freebsd2*)
22636 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22637 hardcode_direct_F77=yes
22638 hardcode_minus_L_F77=yes
22639 hardcode_shlibpath_var_F77=no
22640 ;;
22641
22642 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022643 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022644 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22645 hardcode_libdir_flag_spec_F77='-R$libdir'
22646 hardcode_direct_F77=yes
22647 hardcode_shlibpath_var_F77=no
22648 ;;
22649
22650 hpux9*)
22651 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022652 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 +000022653 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022654 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 +000022655 fi
22656 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22657 hardcode_libdir_separator_F77=:
22658 hardcode_direct_F77=yes
22659
22660 # hardcode_minus_L: Not really in the search PATH,
22661 # but as the default location of the library.
22662 hardcode_minus_L_F77=yes
22663 export_dynamic_flag_spec_F77='${wl}-E'
22664 ;;
22665
Reid Spencera773bd52006-08-04 18:18:08 +000022666 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022667 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022668 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22669 else
22670 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22671 fi
22672 if test "$with_gnu_ld" = no; then
22673 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22674 hardcode_libdir_separator_F77=:
22675
22676 hardcode_direct_F77=yes
22677 export_dynamic_flag_spec_F77='${wl}-E'
22678
22679 # hardcode_minus_L: Not really in the search PATH,
22680 # but as the default location of the library.
22681 hardcode_minus_L_F77=yes
22682 fi
22683 ;;
22684
22685 hpux11*)
22686 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22687 case $host_cpu in
22688 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022689 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22690 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022691 ia64*)
22692 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22693 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022694 *)
22695 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22696 ;;
22697 esac
22698 else
Reid Spencera773bd52006-08-04 18:18:08 +000022699 case $host_cpu in
22700 hppa*64*)
22701 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22702 ;;
22703 ia64*)
22704 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022705 ;;
22706 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022707 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 +000022708 ;;
22709 esac
22710 fi
22711 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022712 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22713 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022714
Reid Spencera773bd52006-08-04 18:18:08 +000022715 case $host_cpu in
22716 hppa*64*|ia64*)
22717 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22718 hardcode_direct_F77=no
22719 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022720 ;;
22721 *)
John Criswell47fdd832003-07-14 16:52:07 +000022722 hardcode_direct_F77=yes
22723 export_dynamic_flag_spec_F77='${wl}-E'
22724
22725 # hardcode_minus_L: Not really in the search PATH,
22726 # but as the default location of the library.
22727 hardcode_minus_L_F77=yes
22728 ;;
22729 esac
22730 fi
22731 ;;
22732
22733 irix5* | irix6* | nonstopux*)
22734 if test "$GCC" = yes; then
22735 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'
22736 else
22737 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'
22738 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22739 fi
22740 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22741 hardcode_libdir_separator_F77=:
22742 link_all_deplibs_F77=yes
22743 ;;
22744
22745 netbsd*)
22746 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22747 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22748 else
22749 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22750 fi
22751 hardcode_libdir_flag_spec_F77='-R$libdir'
22752 hardcode_direct_F77=yes
22753 hardcode_shlibpath_var_F77=no
22754 ;;
22755
22756 newsos6)
22757 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22758 hardcode_direct_F77=yes
22759 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22760 hardcode_libdir_separator_F77=:
22761 hardcode_shlibpath_var_F77=no
22762 ;;
22763
22764 openbsd*)
22765 hardcode_direct_F77=yes
22766 hardcode_shlibpath_var_F77=no
22767 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22768 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022769 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 +000022770 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22771 export_dynamic_flag_spec_F77='${wl}-E'
22772 else
22773 case $host_os in
22774 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22775 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22776 hardcode_libdir_flag_spec_F77='-R$libdir'
22777 ;;
22778 *)
22779 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22780 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22781 ;;
22782 esac
22783 fi
22784 ;;
22785
22786 os2*)
22787 hardcode_libdir_flag_spec_F77='-L$libdir'
22788 hardcode_minus_L_F77=yes
22789 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022790 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 +000022791 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22792 ;;
22793
22794 osf3*)
22795 if test "$GCC" = yes; then
22796 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22797 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'
22798 else
22799 allow_undefined_flag_F77=' -expect_unresolved \*'
22800 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'
22801 fi
22802 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22803 hardcode_libdir_separator_F77=:
22804 ;;
22805
22806 osf4* | osf5*) # as osf3* with the addition of -msym flag
22807 if test "$GCC" = yes; then
22808 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22809 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'
22810 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22811 else
22812 allow_undefined_flag_F77=' -expect_unresolved \*'
22813 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 +000022814 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 +000022815 $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 +000022816
John Criswell47fdd832003-07-14 16:52:07 +000022817 # Both c and cxx compiler support -rpath directly
22818 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22819 fi
22820 hardcode_libdir_separator_F77=:
22821 ;;
22822
John Criswell47fdd832003-07-14 16:52:07 +000022823 solaris*)
22824 no_undefined_flag_F77=' -z text'
22825 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022826 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022827 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022828 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22829 $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 +000022830 else
Reid Spencera773bd52006-08-04 18:18:08 +000022831 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022832 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022833 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22834 $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 +000022835 fi
22836 hardcode_libdir_flag_spec_F77='-R$libdir'
22837 hardcode_shlibpath_var_F77=no
22838 case $host_os in
22839 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022840 *)
22841 # The compiler driver will combine linker options so we
22842 # cannot just pass the convience library names through
22843 # without $wl, iff we do not link with $LD.
22844 # Luckily, gcc supports the same syntax we need for Sun Studio.
22845 # Supported since Solaris 2.6 (maybe 2.5.1?)
22846 case $wlarc in
22847 '')
22848 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22849 *)
22850 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' ;;
22851 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022852 esac
22853 link_all_deplibs_F77=yes
22854 ;;
22855
22856 sunos4*)
22857 if test "x$host_vendor" = xsequent; then
22858 # Use $CC to link under sequent, because it throws in some extra .o
22859 # files that make .init and .fini sections work.
22860 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22861 else
22862 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22863 fi
22864 hardcode_libdir_flag_spec_F77='-L$libdir'
22865 hardcode_direct_F77=yes
22866 hardcode_minus_L_F77=yes
22867 hardcode_shlibpath_var_F77=no
22868 ;;
22869
22870 sysv4)
22871 case $host_vendor in
22872 sni)
22873 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22874 hardcode_direct_F77=yes # is this really true???
22875 ;;
22876 siemens)
22877 ## LD is ld it makes a PLAMLIB
22878 ## CC just makes a GrossModule.
22879 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22880 reload_cmds_F77='$CC -r -o $output$reload_objs'
22881 hardcode_direct_F77=no
22882 ;;
22883 motorola)
22884 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22885 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22886 ;;
22887 esac
22888 runpath_var='LD_RUN_PATH'
22889 hardcode_shlibpath_var_F77=no
22890 ;;
22891
22892 sysv4.3*)
22893 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22894 hardcode_shlibpath_var_F77=no
22895 export_dynamic_flag_spec_F77='-Bexport'
22896 ;;
22897
22898 sysv4*MP*)
22899 if test -d /usr/nec; then
22900 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22901 hardcode_shlibpath_var_F77=no
22902 runpath_var=LD_RUN_PATH
22903 hardcode_runpath_var=yes
22904 ld_shlibs_F77=yes
22905 fi
22906 ;;
22907
Reid Spencera773bd52006-08-04 18:18:08 +000022908 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22909 no_undefined_flag_F77='${wl}-z,text'
22910 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022911 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022912 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022913
John Criswell47fdd832003-07-14 16:52:07 +000022914 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022915 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22916 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 +000022917 else
Reid Spencera773bd52006-08-04 18:18:08 +000022918 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22919 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 +000022920 fi
John Criswell47fdd832003-07-14 16:52:07 +000022921 ;;
22922
Reid Spencera773bd52006-08-04 18:18:08 +000022923 sysv5* | sco3.2v5* | sco5v6*)
22924 # Note: We can NOT use -z defs as we might desire, because we do not
22925 # link with -lc, and that would cause any symbols used from libc to
22926 # always be unresolved, which means just about no library would
22927 # ever link correctly. If we're not using GNU ld we use -z text
22928 # though, which does catch some bad symbols but isn't as heavy-handed
22929 # as -z defs.
22930 no_undefined_flag_F77='${wl}-z,text'
22931 allow_undefined_flag_F77='${wl}-z,nodefs'
22932 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022933 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022934 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22935 hardcode_libdir_separator_F77=':'
22936 link_all_deplibs_F77=yes
22937 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022938 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022939
22940 if test "$GCC" = yes; then
22941 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22942 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22943 else
22944 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22945 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22946 fi
John Criswell47fdd832003-07-14 16:52:07 +000022947 ;;
22948
22949 uts4*)
22950 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22951 hardcode_libdir_flag_spec_F77='-L$libdir'
22952 hardcode_shlibpath_var_F77=no
22953 ;;
22954
22955 *)
22956 ld_shlibs_F77=no
22957 ;;
22958 esac
22959 fi
22960
Reid Spencera773bd52006-08-04 18:18:08 +000022961{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22962echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022963test "$ld_shlibs_F77" = no && can_build_shared=no
22964
John Criswell47fdd832003-07-14 16:52:07 +000022965#
22966# Do we need to explicitly link libc?
22967#
22968case "x$archive_cmds_need_lc_F77" in
22969x|xyes)
22970 # Assume -lc should be added
22971 archive_cmds_need_lc_F77=yes
22972
22973 if test "$enable_shared" = yes && test "$GCC" = yes; then
22974 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022975 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022976 # FIXME: we may have to deal with multi-command sequences.
22977 ;;
22978 '$CC '*)
22979 # Test whether the compiler implicitly links with -lc since on some
22980 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22981 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022982 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22983echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022984 $rm conftest*
22985 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22986
22987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22988 (eval $ac_compile) 2>&5
22989 ac_status=$?
22990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991 (exit $ac_status); } 2>conftest.err; then
22992 soname=conftest
22993 lib=conftest
22994 libobjs=conftest.$ac_objext
22995 deplibs=
22996 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022997 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022998 compiler_flags=-v
22999 linker_flags=-v
23000 verstring=
23001 output_objdir=.
23002 libname=conftest
23003 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
23004 allow_undefined_flag_F77=
23005 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23006 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23007 ac_status=$?
23008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009 (exit $ac_status); }
23010 then
23011 archive_cmds_need_lc_F77=no
23012 else
23013 archive_cmds_need_lc_F77=yes
23014 fi
23015 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23016 else
23017 cat conftest.err 1>&5
23018 fi
23019 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000023020 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23021echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023022 ;;
23023 esac
23024 fi
23025 ;;
23026esac
23027
Reid Spencera773bd52006-08-04 18:18:08 +000023028{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23029echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023030library_names_spec=
23031libname_spec='lib$name'
23032soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000023033shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000023034postinstall_cmds=
23035postuninstall_cmds=
23036finish_cmds=
23037finish_eval=
23038shlibpath_var=
23039shlibpath_overrides_runpath=unknown
23040version_type=none
23041dynamic_linker="$host_os ld.so"
23042sys_lib_dlsearch_path_spec="/lib /usr/lib"
23043if test "$GCC" = yes; then
23044 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23045 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23046 # if the path contains ";" then we assume it to be the separator
23047 # otherwise default to the standard path separator (i.e. ":") - it is
23048 # assumed that no part of a normal pathname contains ";" but that should
23049 # okay in the real world where ";" in dirpaths is itself problematic.
23050 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23051 else
23052 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23053 fi
23054else
23055 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23056fi
23057need_lib_prefix=unknown
23058hardcode_into_libs=no
23059
23060# when you set need_version to no, make sure it does not cause -set_version
23061# flags to be left without arguments
23062need_version=unknown
23063
23064case $host_os in
23065aix3*)
23066 version_type=linux
23067 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23068 shlibpath_var=LIBPATH
23069
23070 # AIX 3 has no versioning support, so we append a major version to the name.
23071 soname_spec='${libname}${release}${shared_ext}$major'
23072 ;;
23073
23074aix4* | aix5*)
23075 version_type=linux
23076 need_lib_prefix=no
23077 need_version=no
23078 hardcode_into_libs=yes
23079 if test "$host_cpu" = ia64; then
23080 # AIX 5 supports IA64
23081 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23082 shlibpath_var=LD_LIBRARY_PATH
23083 else
23084 # With GCC up to 2.95.x, collect2 would create an import file
23085 # for dependence libraries. The import file would start with
23086 # the line `#! .'. This would cause the generated library to
23087 # depend on `.', always an invalid library. This was fixed in
23088 # development snapshots of GCC prior to 3.0.
23089 case $host_os in
23090 aix4 | aix4.[01] | aix4.[01].*)
23091 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23092 echo ' yes '
23093 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23094 :
23095 else
23096 can_build_shared=no
23097 fi
23098 ;;
23099 esac
23100 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23101 # soname into executable. Probably we can add versioning support to
23102 # collect2, so additional links can be useful in future.
23103 if test "$aix_use_runtimelinking" = yes; then
23104 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23105 # instead of lib<name>.a to let people know that these are not
23106 # typical AIX shared libraries.
23107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23108 else
23109 # We preserve .a as extension for shared libraries through AIX4.2
23110 # and later when we are not doing run time linking.
23111 library_names_spec='${libname}${release}.a $libname.a'
23112 soname_spec='${libname}${release}${shared_ext}$major'
23113 fi
23114 shlibpath_var=LIBPATH
23115 fi
23116 ;;
23117
23118amigaos*)
23119 library_names_spec='$libname.ixlibrary $libname.a'
23120 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023121 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 +000023122 ;;
23123
23124beos*)
23125 library_names_spec='${libname}${shared_ext}'
23126 dynamic_linker="$host_os ld.so"
23127 shlibpath_var=LIBRARY_PATH
23128 ;;
23129
Reid Spencer2706f8c2004-09-19 23:53:36 +000023130bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000023131 version_type=linux
23132 need_version=no
23133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23134 soname_spec='${libname}${release}${shared_ext}$major'
23135 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23136 shlibpath_var=LD_LIBRARY_PATH
23137 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23138 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23139 # the default ld.so.conf also contains /usr/contrib/lib and
23140 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23141 # libtool to hard-code these into programs
23142 ;;
23143
23144cygwin* | mingw* | pw32*)
23145 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000023146 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023147 need_version=no
23148 need_lib_prefix=no
23149
23150 case $GCC,$host_os in
23151 yes,cygwin* | yes,mingw* | yes,pw32*)
23152 library_names_spec='$libname.dll.a'
23153 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000023154 postinstall_cmds='base_file=`basename \${file}`~
23155 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23156 dldir=$destdir/`dirname \$dlpath`~
23157 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000023158 $install_prog $dir/$dlname \$dldir/$dlname~
23159 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000023160 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23161 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000023162 $rm \$dlpath'
23163 shlibpath_overrides_runpath=yes
23164
23165 case $host_os in
23166 cygwin*)
23167 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23168 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 +000023169 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023170 ;;
23171 mingw*)
23172 # MinGW DLLs use traditional 'lib' prefix
23173 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23174 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23175 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23176 # It is most probably a Windows format PATH printed by
23177 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23178 # path with ; separators, and with drive letters. We can handle the
23179 # drive letters (cygwin fileutils understands them), so leave them,
23180 # especially as we might pass files found there to a mingw objdump,
23181 # which wouldn't understand a cygwinified path. Ahh.
23182 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23183 else
23184 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23185 fi
23186 ;;
23187 pw32*)
23188 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000023189 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 +000023190 ;;
23191 esac
23192 ;;
23193
23194 *)
23195 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23196 ;;
23197 esac
23198 dynamic_linker='Win32 ld.exe'
23199 # FIXME: first we should search . and the directory the executable is in
23200 shlibpath_var=PATH
23201 ;;
23202
23203darwin* | rhapsody*)
23204 dynamic_linker="$host_os dyld"
23205 version_type=darwin
23206 need_lib_prefix=no
23207 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000023208 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000023209 soname_spec='${libname}${release}${major}$shared_ext'
23210 shlibpath_overrides_runpath=yes
23211 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000023212 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000023213 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023214 if test "$GCC" = yes; then
23215 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"`
23216 else
23217 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000023218 fi
23219 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23220 ;;
23221
23222dgux*)
23223 version_type=linux
23224 need_lib_prefix=no
23225 need_version=no
23226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23227 soname_spec='${libname}${release}${shared_ext}$major'
23228 shlibpath_var=LD_LIBRARY_PATH
23229 ;;
23230
23231freebsd1*)
23232 dynamic_linker=no
23233 ;;
23234
Reid Spencer2706f8c2004-09-19 23:53:36 +000023235kfreebsd*-gnu)
23236 version_type=linux
23237 need_lib_prefix=no
23238 need_version=no
23239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23240 soname_spec='${libname}${release}${shared_ext}$major'
23241 shlibpath_var=LD_LIBRARY_PATH
23242 shlibpath_overrides_runpath=no
23243 hardcode_into_libs=yes
23244 dynamic_linker='GNU ld.so'
23245 ;;
23246
Reid Spencera773bd52006-08-04 18:18:08 +000023247freebsd* | dragonfly*)
23248 # DragonFly does not have aout. When/if they implement a new
23249 # versioning mechanism, adjust this.
23250 if test -x /usr/bin/objformat; then
23251 objformat=`/usr/bin/objformat`
23252 else
23253 case $host_os in
23254 freebsd[123]*) objformat=aout ;;
23255 *) objformat=elf ;;
23256 esac
23257 fi
John Criswell47fdd832003-07-14 16:52:07 +000023258 version_type=freebsd-$objformat
23259 case $version_type in
23260 freebsd-elf*)
23261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23262 need_version=no
23263 need_lib_prefix=no
23264 ;;
23265 freebsd-*)
23266 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23267 need_version=yes
23268 ;;
23269 esac
23270 shlibpath_var=LD_LIBRARY_PATH
23271 case $host_os in
23272 freebsd2*)
23273 shlibpath_overrides_runpath=yes
23274 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023275 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000023276 shlibpath_overrides_runpath=yes
23277 hardcode_into_libs=yes
23278 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023279 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23280 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000023281 shlibpath_overrides_runpath=no
23282 hardcode_into_libs=yes
23283 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023284 freebsd*) # from 4.6 on
23285 shlibpath_overrides_runpath=yes
23286 hardcode_into_libs=yes
23287 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023288 esac
23289 ;;
23290
23291gnu*)
23292 version_type=linux
23293 need_lib_prefix=no
23294 need_version=no
23295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23296 soname_spec='${libname}${release}${shared_ext}$major'
23297 shlibpath_var=LD_LIBRARY_PATH
23298 hardcode_into_libs=yes
23299 ;;
23300
23301hpux9* | hpux10* | hpux11*)
23302 # Give a soname corresponding to the major version so that dld.sl refuses to
23303 # link against other versions.
23304 version_type=sunos
23305 need_lib_prefix=no
23306 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000023307 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023308 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023309 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000023310 hardcode_into_libs=yes
23311 dynamic_linker="$host_os dld.so"
23312 shlibpath_var=LD_LIBRARY_PATH
23313 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23315 soname_spec='${libname}${release}${shared_ext}$major'
23316 if test "X$HPUX_IA64_MODE" = X32; then
23317 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23318 else
23319 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23320 fi
23321 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23322 ;;
23323 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023324 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023325 hardcode_into_libs=yes
23326 dynamic_linker="$host_os dld.sl"
23327 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23328 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23330 soname_spec='${libname}${release}${shared_ext}$major'
23331 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23332 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23333 ;;
23334 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023335 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023336 dynamic_linker="$host_os dld.sl"
23337 shlibpath_var=SHLIB_PATH
23338 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23340 soname_spec='${libname}${release}${shared_ext}$major'
23341 ;;
23342 esac
23343 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23344 postinstall_cmds='chmod 555 $lib'
23345 ;;
23346
Reid Spencera773bd52006-08-04 18:18:08 +000023347interix3*)
23348 version_type=linux
23349 need_lib_prefix=no
23350 need_version=no
23351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23352 soname_spec='${libname}${release}${shared_ext}$major'
23353 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23354 shlibpath_var=LD_LIBRARY_PATH
23355 shlibpath_overrides_runpath=no
23356 hardcode_into_libs=yes
23357 ;;
23358
John Criswell47fdd832003-07-14 16:52:07 +000023359irix5* | irix6* | nonstopux*)
23360 case $host_os in
23361 nonstopux*) version_type=nonstopux ;;
23362 *)
23363 if test "$lt_cv_prog_gnu_ld" = yes; then
23364 version_type=linux
23365 else
23366 version_type=irix
23367 fi ;;
23368 esac
23369 need_lib_prefix=no
23370 need_version=no
23371 soname_spec='${libname}${release}${shared_ext}$major'
23372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23373 case $host_os in
23374 irix5* | nonstopux*)
23375 libsuff= shlibsuff=
23376 ;;
23377 *)
23378 case $LD in # libtool.m4 will add one of these switches to LD
23379 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23380 libsuff= shlibsuff= libmagic=32-bit;;
23381 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23382 libsuff=32 shlibsuff=N32 libmagic=N32;;
23383 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23384 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23385 *) libsuff= shlibsuff= libmagic=never-match;;
23386 esac
23387 ;;
23388 esac
23389 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23390 shlibpath_overrides_runpath=no
23391 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23392 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23393 hardcode_into_libs=yes
23394 ;;
23395
23396# No shared lib support for Linux oldld, aout, or coff.
23397linux*oldld* | linux*aout* | linux*coff*)
23398 dynamic_linker=no
23399 ;;
23400
23401# This must be Linux ELF.
23402linux*)
23403 version_type=linux
23404 need_lib_prefix=no
23405 need_version=no
23406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23407 soname_spec='${libname}${release}${shared_ext}$major'
23408 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23409 shlibpath_var=LD_LIBRARY_PATH
23410 shlibpath_overrides_runpath=no
23411 # This implies no fast_install, which is unacceptable.
23412 # Some rework will be needed to allow for fast_install
23413 # before this can be enabled.
23414 hardcode_into_libs=yes
23415
Reid Spencer2706f8c2004-09-19 23:53:36 +000023416 # Append ld.so.conf contents to the search path
23417 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000023418 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 +000023419 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23420 fi
23421
John Criswell47fdd832003-07-14 16:52:07 +000023422 # We used to test for /lib/ld.so.1 and disable shared libraries on
23423 # powerpc, because MkLinux only supported shared libraries with the
23424 # GNU dynamic linker. Since this was broken with cross compilers,
23425 # most powerpc-linux boxes support dynamic linking these days and
23426 # people can always --disable-shared, the test was removed, and we
23427 # assume the GNU/Linux dynamic linker is in use.
23428 dynamic_linker='GNU/Linux ld.so'
23429 ;;
23430
Reid Spencer2706f8c2004-09-19 23:53:36 +000023431knetbsd*-gnu)
23432 version_type=linux
23433 need_lib_prefix=no
23434 need_version=no
23435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23436 soname_spec='${libname}${release}${shared_ext}$major'
23437 shlibpath_var=LD_LIBRARY_PATH
23438 shlibpath_overrides_runpath=no
23439 hardcode_into_libs=yes
23440 dynamic_linker='GNU ld.so'
23441 ;;
23442
John Criswell47fdd832003-07-14 16:52:07 +000023443netbsd*)
23444 version_type=sunos
23445 need_lib_prefix=no
23446 need_version=no
23447 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23449 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23450 dynamic_linker='NetBSD (a.out) ld.so'
23451 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023453 soname_spec='${libname}${release}${shared_ext}$major'
23454 dynamic_linker='NetBSD ld.elf_so'
23455 fi
23456 shlibpath_var=LD_LIBRARY_PATH
23457 shlibpath_overrides_runpath=yes
23458 hardcode_into_libs=yes
23459 ;;
23460
23461newsos6)
23462 version_type=linux
23463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23464 shlibpath_var=LD_LIBRARY_PATH
23465 shlibpath_overrides_runpath=yes
23466 ;;
23467
Reid Spencer2706f8c2004-09-19 23:53:36 +000023468nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023469 version_type=linux
23470 need_lib_prefix=no
23471 need_version=no
23472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23473 soname_spec='${libname}${release}${shared_ext}$major'
23474 shlibpath_var=LD_LIBRARY_PATH
23475 shlibpath_overrides_runpath=yes
23476 ;;
23477
23478openbsd*)
23479 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023480 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023481 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023482 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23483 case $host_os in
23484 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23485 *) need_version=no ;;
23486 esac
John Criswell47fdd832003-07-14 16:52:07 +000023487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23488 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23489 shlibpath_var=LD_LIBRARY_PATH
23490 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23491 case $host_os in
23492 openbsd2.[89] | openbsd2.[89].*)
23493 shlibpath_overrides_runpath=no
23494 ;;
23495 *)
23496 shlibpath_overrides_runpath=yes
23497 ;;
23498 esac
23499 else
23500 shlibpath_overrides_runpath=yes
23501 fi
23502 ;;
23503
23504os2*)
23505 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023506 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023507 need_lib_prefix=no
23508 library_names_spec='$libname${shared_ext} $libname.a'
23509 dynamic_linker='OS/2 ld.exe'
23510 shlibpath_var=LIBPATH
23511 ;;
23512
23513osf3* | osf4* | osf5*)
23514 version_type=osf
23515 need_lib_prefix=no
23516 need_version=no
23517 soname_spec='${libname}${release}${shared_ext}$major'
23518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23519 shlibpath_var=LD_LIBRARY_PATH
23520 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23521 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23522 ;;
23523
John Criswell47fdd832003-07-14 16:52:07 +000023524solaris*)
23525 version_type=linux
23526 need_lib_prefix=no
23527 need_version=no
23528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23529 soname_spec='${libname}${release}${shared_ext}$major'
23530 shlibpath_var=LD_LIBRARY_PATH
23531 shlibpath_overrides_runpath=yes
23532 hardcode_into_libs=yes
23533 # ldd complains unless libraries are executable
23534 postinstall_cmds='chmod +x $lib'
23535 ;;
23536
23537sunos4*)
23538 version_type=sunos
23539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23540 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23541 shlibpath_var=LD_LIBRARY_PATH
23542 shlibpath_overrides_runpath=yes
23543 if test "$with_gnu_ld" = yes; then
23544 need_lib_prefix=no
23545 fi
23546 need_version=yes
23547 ;;
23548
Reid Spencera773bd52006-08-04 18:18:08 +000023549sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023550 version_type=linux
23551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23552 soname_spec='${libname}${release}${shared_ext}$major'
23553 shlibpath_var=LD_LIBRARY_PATH
23554 case $host_vendor in
23555 sni)
23556 shlibpath_overrides_runpath=no
23557 need_lib_prefix=no
23558 export_dynamic_flag_spec='${wl}-Blargedynsym'
23559 runpath_var=LD_RUN_PATH
23560 ;;
23561 siemens)
23562 need_lib_prefix=no
23563 ;;
23564 motorola)
23565 need_lib_prefix=no
23566 need_version=no
23567 shlibpath_overrides_runpath=no
23568 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23569 ;;
23570 esac
23571 ;;
23572
23573sysv4*MP*)
23574 if test -d /usr/nec ;then
23575 version_type=linux
23576 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23577 soname_spec='$libname${shared_ext}.$major'
23578 shlibpath_var=LD_LIBRARY_PATH
23579 fi
23580 ;;
23581
Reid Spencera773bd52006-08-04 18:18:08 +000023582sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23583 version_type=freebsd-elf
23584 need_lib_prefix=no
23585 need_version=no
23586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23587 soname_spec='${libname}${release}${shared_ext}$major'
23588 shlibpath_var=LD_LIBRARY_PATH
23589 hardcode_into_libs=yes
23590 if test "$with_gnu_ld" = yes; then
23591 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23592 shlibpath_overrides_runpath=no
23593 else
23594 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23595 shlibpath_overrides_runpath=yes
23596 case $host_os in
23597 sco3.2v5*)
23598 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23599 ;;
23600 esac
23601 fi
23602 sys_lib_dlsearch_path_spec='/usr/lib'
23603 ;;
23604
John Criswell47fdd832003-07-14 16:52:07 +000023605uts4*)
23606 version_type=linux
23607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23608 soname_spec='${libname}${release}${shared_ext}$major'
23609 shlibpath_var=LD_LIBRARY_PATH
23610 ;;
23611
23612*)
23613 dynamic_linker=no
23614 ;;
23615esac
Reid Spencera773bd52006-08-04 18:18:08 +000023616{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23617echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023618test "$dynamic_linker" = no && can_build_shared=no
23619
Reid Spencera773bd52006-08-04 18:18:08 +000023620variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23621if test "$GCC" = yes; then
23622 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23623fi
23624
23625{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23626echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023627hardcode_action_F77=
23628if test -n "$hardcode_libdir_flag_spec_F77" || \
23629 test -n "$runpath_var_F77" || \
23630 test "X$hardcode_automatic_F77" = "Xyes" ; then
23631
23632 # We can hardcode non-existant directories.
23633 if test "$hardcode_direct_F77" != no &&
23634 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23635 # have to relink, otherwise we might link with an installed library
23636 # when we should be linking with a yet-to-be-installed one
23637 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23638 test "$hardcode_minus_L_F77" != no; then
23639 # Linking always hardcodes the temporary library directory.
23640 hardcode_action_F77=relink
23641 else
23642 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23643 hardcode_action_F77=immediate
23644 fi
23645else
23646 # We cannot hardcode anything, or else we can only hardcode existing
23647 # directories.
23648 hardcode_action_F77=unsupported
23649fi
Reid Spencera773bd52006-08-04 18:18:08 +000023650{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23651echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023652
23653if test "$hardcode_action_F77" = relink; then
23654 # Fast installation is not supported
23655 enable_fast_install=no
23656elif test "$shlibpath_overrides_runpath" = yes ||
23657 test "$enable_shared" = no; then
23658 # Fast installation is not necessary
23659 enable_fast_install=needless
23660fi
23661
John Criswell47fdd832003-07-14 16:52:07 +000023662
23663# The else clause should only fire when bootstrapping the
23664# libtool distribution, otherwise you forgot to ship ltmain.sh
23665# with your package, and you will get complaints that there are
23666# no rules to generate ltmain.sh.
23667if test -f "$ltmain"; then
23668 # See if we are running on zsh, and set the options which allow our commands through
23669 # without removal of \ escapes.
23670 if test -n "${ZSH_VERSION+set}" ; then
23671 setopt NO_GLOB_SUBST
23672 fi
23673 # Now quote all the things that may contain metacharacters while being
23674 # careful not to overquote the AC_SUBSTed values. We take copies of the
23675 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023676 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 +000023677 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023678 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23679 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23680 deplibs_check_method reload_flag reload_cmds need_locks \
23681 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23682 lt_cv_sys_global_symbol_to_c_name_address \
23683 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23684 old_postinstall_cmds old_postuninstall_cmds \
23685 compiler_F77 \
23686 CC_F77 \
23687 LD_F77 \
23688 lt_prog_compiler_wl_F77 \
23689 lt_prog_compiler_pic_F77 \
23690 lt_prog_compiler_static_F77 \
23691 lt_prog_compiler_no_builtin_flag_F77 \
23692 export_dynamic_flag_spec_F77 \
23693 thread_safe_flag_spec_F77 \
23694 whole_archive_flag_spec_F77 \
23695 enable_shared_with_static_runtimes_F77 \
23696 old_archive_cmds_F77 \
23697 old_archive_from_new_cmds_F77 \
23698 predep_objects_F77 \
23699 postdep_objects_F77 \
23700 predeps_F77 \
23701 postdeps_F77 \
23702 compiler_lib_search_path_F77 \
23703 archive_cmds_F77 \
23704 archive_expsym_cmds_F77 \
23705 postinstall_cmds_F77 \
23706 postuninstall_cmds_F77 \
23707 old_archive_from_expsyms_cmds_F77 \
23708 allow_undefined_flag_F77 \
23709 no_undefined_flag_F77 \
23710 export_symbols_cmds_F77 \
23711 hardcode_libdir_flag_spec_F77 \
23712 hardcode_libdir_flag_spec_ld_F77 \
23713 hardcode_libdir_separator_F77 \
23714 hardcode_automatic_F77 \
23715 module_cmds_F77 \
23716 module_expsym_cmds_F77 \
23717 lt_cv_prog_compiler_c_o_F77 \
23718 exclude_expsyms_F77 \
23719 include_expsyms_F77; do
23720
23721 case $var in
23722 old_archive_cmds_F77 | \
23723 old_archive_from_new_cmds_F77 | \
23724 archive_cmds_F77 | \
23725 archive_expsym_cmds_F77 | \
23726 module_cmds_F77 | \
23727 module_expsym_cmds_F77 | \
23728 old_archive_from_expsyms_cmds_F77 | \
23729 export_symbols_cmds_F77 | \
23730 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23731 postinstall_cmds | postuninstall_cmds | \
23732 old_postinstall_cmds | old_postuninstall_cmds | \
23733 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23734 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023735 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 +000023736 ;;
23737 *)
23738 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23739 ;;
23740 esac
23741 done
23742
23743 case $lt_echo in
23744 *'\$0 --fallback-echo"')
23745 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23746 ;;
23747 esac
23748
23749cfgfile="$ofile"
23750
23751 cat <<__EOF__ >> "$cfgfile"
23752# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23753
23754# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23755
23756# Shell to use when invoking shell scripts.
23757SHELL=$lt_SHELL
23758
23759# Whether or not to build shared libraries.
23760build_libtool_libs=$enable_shared
23761
23762# Whether or not to build static libraries.
23763build_old_libs=$enable_static
23764
23765# Whether or not to add -lc for building shared libraries.
23766build_libtool_need_lc=$archive_cmds_need_lc_F77
23767
23768# Whether or not to disallow shared libs when runtime libs are static
23769allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23770
23771# Whether or not to optimize for fast installation.
23772fast_install=$enable_fast_install
23773
23774# The host system.
23775host_alias=$host_alias
23776host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023777host_os=$host_os
23778
23779# The build system.
23780build_alias=$build_alias
23781build=$build
23782build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023783
23784# An echo program that does not interpret backslashes.
23785echo=$lt_echo
23786
23787# The archiver.
23788AR=$lt_AR
23789AR_FLAGS=$lt_AR_FLAGS
23790
23791# A C compiler.
23792LTCC=$lt_LTCC
23793
Reid Spencera773bd52006-08-04 18:18:08 +000023794# LTCC compiler flags.
23795LTCFLAGS=$lt_LTCFLAGS
23796
John Criswell47fdd832003-07-14 16:52:07 +000023797# A language-specific compiler.
23798CC=$lt_compiler_F77
23799
23800# Is the compiler the GNU C compiler?
23801with_gcc=$GCC_F77
23802
23803# An ERE matcher.
23804EGREP=$lt_EGREP
23805
23806# The linker used to build libraries.
23807LD=$lt_LD_F77
23808
23809# Whether we need hard or soft links.
23810LN_S=$lt_LN_S
23811
23812# A BSD-compatible nm program.
23813NM=$lt_NM
23814
23815# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023816STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023817
23818# Used to examine libraries when file_magic_cmd begins "file"
23819MAGIC_CMD=$MAGIC_CMD
23820
23821# Used on cygwin: DLL creation program.
23822DLLTOOL="$DLLTOOL"
23823
23824# Used on cygwin: object dumper.
23825OBJDUMP="$OBJDUMP"
23826
23827# Used on cygwin: assembler.
23828AS="$AS"
23829
23830# The name of the directory that contains temporary libtool files.
23831objdir=$objdir
23832
23833# How to create reloadable object files.
23834reload_flag=$lt_reload_flag
23835reload_cmds=$lt_reload_cmds
23836
23837# How to pass a linker flag through the compiler.
23838wl=$lt_lt_prog_compiler_wl_F77
23839
23840# Object file suffix (normally "o").
23841objext="$ac_objext"
23842
23843# Old archive suffix (normally "a").
23844libext="$libext"
23845
23846# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023847shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023848
23849# Executable file suffix (normally "").
23850exeext="$exeext"
23851
23852# Additional compiler flags for building library objects.
23853pic_flag=$lt_lt_prog_compiler_pic_F77
23854pic_mode=$pic_mode
23855
23856# What is the maximum length of a command?
23857max_cmd_len=$lt_cv_sys_max_cmd_len
23858
23859# Does compiler simultaneously support -c and -o options?
23860compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23861
Reid Spencera773bd52006-08-04 18:18:08 +000023862# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023863need_locks=$lt_need_locks
23864
23865# Do we need the lib prefix for modules?
23866need_lib_prefix=$need_lib_prefix
23867
23868# Do we need a version for libraries?
23869need_version=$need_version
23870
23871# Whether dlopen is supported.
23872dlopen_support=$enable_dlopen
23873
23874# Whether dlopen of programs is supported.
23875dlopen_self=$enable_dlopen_self
23876
23877# Whether dlopen of statically linked programs is supported.
23878dlopen_self_static=$enable_dlopen_self_static
23879
23880# Compiler flag to prevent dynamic linking.
23881link_static_flag=$lt_lt_prog_compiler_static_F77
23882
23883# Compiler flag to turn off builtin functions.
23884no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23885
23886# Compiler flag to allow reflexive dlopens.
23887export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23888
23889# Compiler flag to generate shared objects directly from archives.
23890whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23891
23892# Compiler flag to generate thread-safe objects.
23893thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23894
23895# Library versioning type.
23896version_type=$version_type
23897
23898# Format of library name prefix.
23899libname_spec=$lt_libname_spec
23900
23901# List of archive names. First name is the real one, the rest are links.
23902# The last name is the one that the linker finds with -lNAME.
23903library_names_spec=$lt_library_names_spec
23904
23905# The coded name of the library, if different from the real name.
23906soname_spec=$lt_soname_spec
23907
23908# Commands used to build and install an old-style archive.
23909RANLIB=$lt_RANLIB
23910old_archive_cmds=$lt_old_archive_cmds_F77
23911old_postinstall_cmds=$lt_old_postinstall_cmds
23912old_postuninstall_cmds=$lt_old_postuninstall_cmds
23913
23914# Create an old-style archive from a shared archive.
23915old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23916
23917# Create a temporary old-style archive to link instead of a shared archive.
23918old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23919
23920# Commands used to build and install a shared archive.
23921archive_cmds=$lt_archive_cmds_F77
23922archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23923postinstall_cmds=$lt_postinstall_cmds
23924postuninstall_cmds=$lt_postuninstall_cmds
23925
23926# Commands used to build a loadable module (assumed same as above if empty)
23927module_cmds=$lt_module_cmds_F77
23928module_expsym_cmds=$lt_module_expsym_cmds_F77
23929
23930# Commands to strip libraries.
23931old_striplib=$lt_old_striplib
23932striplib=$lt_striplib
23933
23934# Dependencies to place before the objects being linked to create a
23935# shared library.
23936predep_objects=$lt_predep_objects_F77
23937
23938# Dependencies to place after the objects being linked to create a
23939# shared library.
23940postdep_objects=$lt_postdep_objects_F77
23941
23942# Dependencies to place before the objects being linked to create a
23943# shared library.
23944predeps=$lt_predeps_F77
23945
23946# Dependencies to place after the objects being linked to create a
23947# shared library.
23948postdeps=$lt_postdeps_F77
23949
23950# The library search path used internally by the compiler when linking
23951# a shared library.
23952compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23953
23954# Method to check whether dependent libraries are shared objects.
23955deplibs_check_method=$lt_deplibs_check_method
23956
23957# Command to use when deplibs_check_method == file_magic.
23958file_magic_cmd=$lt_file_magic_cmd
23959
23960# Flag that allows shared libraries with undefined symbols to be built.
23961allow_undefined_flag=$lt_allow_undefined_flag_F77
23962
23963# Flag that forces no undefined symbols.
23964no_undefined_flag=$lt_no_undefined_flag_F77
23965
23966# Commands used to finish a libtool library installation in a directory.
23967finish_cmds=$lt_finish_cmds
23968
23969# Same as above, but a single script fragment to be evaled but not shown.
23970finish_eval=$lt_finish_eval
23971
23972# Take the output of nm and produce a listing of raw symbols and C names.
23973global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23974
23975# Transform the output of nm in a proper C declaration
23976global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23977
23978# Transform the output of nm in a C name address pair
23979global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23980
23981# This is the shared library runtime path variable.
23982runpath_var=$runpath_var
23983
23984# This is the shared library path variable.
23985shlibpath_var=$shlibpath_var
23986
23987# Is shlibpath searched before the hard-coded library search path?
23988shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23989
23990# How to hardcode a shared library path into an executable.
23991hardcode_action=$hardcode_action_F77
23992
23993# Whether we should hardcode library paths into libraries.
23994hardcode_into_libs=$hardcode_into_libs
23995
23996# Flag to hardcode \$libdir into a binary during linking.
23997# This must work even if \$libdir does not exist.
23998hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23999
24000# If ld is used when linking, flag to hardcode \$libdir into
24001# a binary during linking. This must work even if \$libdir does
24002# not exist.
24003hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
24004
24005# Whether we need a single -rpath flag with a separated argument.
24006hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
24007
24008# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24009# resulting binary.
24010hardcode_direct=$hardcode_direct_F77
24011
24012# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24013# resulting binary.
24014hardcode_minus_L=$hardcode_minus_L_F77
24015
24016# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24017# the resulting binary.
24018hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24019
24020# Set to yes if building a shared library automatically hardcodes DIR into the library
24021# and all subsequent libraries and executables linked against it.
24022hardcode_automatic=$hardcode_automatic_F77
24023
24024# Variables whose values should be saved in libtool wrapper scripts and
24025# restored at relink time.
24026variables_saved_for_relink="$variables_saved_for_relink"
24027
24028# Whether libtool must link a program against all its dependency libraries.
24029link_all_deplibs=$link_all_deplibs_F77
24030
24031# Compile-time system search path for libraries
24032sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24033
24034# Run-time system search path for libraries
24035sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24036
24037# Fix the shell variable \$srcfile for the compiler.
24038fix_srcfile_path="$fix_srcfile_path_F77"
24039
24040# Set to yes if exported symbols are required.
24041always_export_symbols=$always_export_symbols_F77
24042
24043# The commands to list exported symbols.
24044export_symbols_cmds=$lt_export_symbols_cmds_F77
24045
24046# The commands to extract the exported symbol list from a shared archive.
24047extract_expsyms_cmds=$lt_extract_expsyms_cmds
24048
24049# Symbols that should not be listed in the preloaded symbols.
24050exclude_expsyms=$lt_exclude_expsyms_F77
24051
24052# Symbols that must always be exported.
24053include_expsyms=$lt_include_expsyms_F77
24054
24055# ### END LIBTOOL TAG CONFIG: $tagname
24056
24057__EOF__
24058
24059
24060else
24061 # If there is no Makefile yet, we rely on a make rule to execute
24062 # `config.status --recheck' to rerun these tests and create the
24063 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024064 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24065 if test -f "$ltmain_in"; then
24066 test -f Makefile && make "$ltmain"
24067 fi
John Criswell47fdd832003-07-14 16:52:07 +000024068fi
24069
24070
24071ac_ext=c
24072ac_cpp='$CPP $CPPFLAGS'
24073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24075ac_compiler_gnu=$ac_cv_c_compiler_gnu
24076
24077CC="$lt_save_CC"
24078
24079 else
24080 tagname=""
24081 fi
24082 ;;
24083
24084 GCJ)
24085 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024086 ac_ext=c
24087ac_cpp='$CPP $CPPFLAGS'
24088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24090ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024091
24092
24093# Source file extension for Java test sources.
24094ac_ext=java
24095
24096# Object file extension for compiled Java test sources.
24097objext=o
24098objext_GCJ=$objext
24099
24100# Code to be used in simple compile tests
24101lt_simple_compile_test_code="class foo {}\n"
24102
24103# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000024104lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000024105
24106# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24107
24108# If no C compiler was specified, use CC.
24109LTCC=${LTCC-"$CC"}
24110
Reid Spencera773bd52006-08-04 18:18:08 +000024111# If no C compiler flags were specified, use CFLAGS.
24112LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24113
John Criswell47fdd832003-07-14 16:52:07 +000024114# Allow CC to be a program name with arguments.
24115compiler=$CC
24116
24117
Reid Spencera773bd52006-08-04 18:18:08 +000024118# save warnings/boilerplate of simple test code
24119ac_outfile=conftest.$ac_objext
24120printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24121eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24122_lt_compiler_boilerplate=`cat conftest.err`
24123$rm conftest*
24124
24125ac_outfile=conftest.$ac_objext
24126printf "$lt_simple_link_test_code" >conftest.$ac_ext
24127eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24128_lt_linker_boilerplate=`cat conftest.err`
24129$rm conftest*
24130
24131
John Criswell47fdd832003-07-14 16:52:07 +000024132# Allow CC to be a program name with arguments.
24133lt_save_CC="$CC"
24134CC=${GCJ-"gcj"}
24135compiler=$CC
24136compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000024137for cc_temp in $compiler""; do
24138 case $cc_temp in
24139 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24140 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24141 \-*) ;;
24142 *) break;;
24143 esac
24144done
24145cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24146
John Criswell47fdd832003-07-14 16:52:07 +000024147
24148# GCJ did not exist at the time GCC didn't implicitly link libc in.
24149archive_cmds_need_lc_GCJ=no
24150
Reid Spencera773bd52006-08-04 18:18:08 +000024151old_archive_cmds_GCJ=$old_archive_cmds
24152
John Criswell47fdd832003-07-14 16:52:07 +000024153
24154lt_prog_compiler_no_builtin_flag_GCJ=
24155
24156if test "$GCC" = yes; then
24157 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24158
Reid Spencer2706f8c2004-09-19 23:53:36 +000024159
Reid Spencera773bd52006-08-04 18:18:08 +000024160{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24161echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024162if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24163 echo $ECHO_N "(cached) $ECHO_C" >&6
24164else
24165 lt_cv_prog_compiler_rtti_exceptions=no
24166 ac_outfile=conftest.$ac_objext
24167 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24168 lt_compiler_flag="-fno-rtti -fno-exceptions"
24169 # Insert the option either (1) after the last *FLAGS variable, or
24170 # (2) before a word containing "conftest.", or (3) at the end.
24171 # Note that $ac_compile itself does not contain backslashes and begins
24172 # with a dollar sign (not a hyphen), so the echo should work correctly.
24173 # The option is referenced via a variable to avoid confusing sed.
24174 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024175 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024176 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24177 -e 's:$: $lt_compiler_flag:'`
Edward O'Callaghan2b19d692009-10-14 00:44:50 +000024178 (eval echo "\"\$as_me:24178: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024179 (eval "$lt_compile" 2>conftest.err)
24180 ac_status=$?
24181 cat conftest.err >&5
Edward O'Callaghan2b19d692009-10-14 00:44:50 +000024182 echo "$as_me:24182: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024183 if (exit $ac_status) && test -s "$ac_outfile"; then
24184 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024185 # So say no if there are warnings other than the usual output.
24186 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24187 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24188 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024189 lt_cv_prog_compiler_rtti_exceptions=yes
24190 fi
24191 fi
24192 $rm conftest*
24193
24194fi
Reid Spencera773bd52006-08-04 18:18:08 +000024195{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24196echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024197
24198if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24199 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24200else
24201 :
24202fi
24203
24204fi
24205
24206lt_prog_compiler_wl_GCJ=
24207lt_prog_compiler_pic_GCJ=
24208lt_prog_compiler_static_GCJ=
24209
Reid Spencera773bd52006-08-04 18:18:08 +000024210{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24211echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024212
24213 if test "$GCC" = yes; then
24214 lt_prog_compiler_wl_GCJ='-Wl,'
24215 lt_prog_compiler_static_GCJ='-static'
24216
24217 case $host_os in
24218 aix*)
24219 # All AIX code is PIC.
24220 if test "$host_cpu" = ia64; then
24221 # AIX 5 now supports IA64 processor
24222 lt_prog_compiler_static_GCJ='-Bstatic'
24223 fi
24224 ;;
24225
24226 amigaos*)
24227 # FIXME: we need at least 68020 code to build shared libraries, but
24228 # adding the `-m68020' flag to GCC prevents building anything better,
24229 # like `-m68040'.
24230 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24231 ;;
24232
24233 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24234 # PIC is the default for these OSes.
24235 ;;
24236
24237 mingw* | pw32* | os2*)
24238 # This hack is so that the source file can tell whether it is being
24239 # built for inclusion in a dll (and should export symbols for example).
24240 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24241 ;;
24242
24243 darwin* | rhapsody*)
24244 # PIC is the default on this platform
24245 # Common symbols not allowed in MH_DYLIB files
24246 lt_prog_compiler_pic_GCJ='-fno-common'
24247 ;;
24248
Reid Spencera773bd52006-08-04 18:18:08 +000024249 interix3*)
24250 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24251 # Instead, we relocate shared libraries at runtime.
24252 ;;
24253
John Criswell47fdd832003-07-14 16:52:07 +000024254 msdosdjgpp*)
24255 # Just because we use GCC doesn't mean we suddenly get shared libraries
24256 # on systems that don't support them.
24257 lt_prog_compiler_can_build_shared_GCJ=no
24258 enable_shared=no
24259 ;;
24260
24261 sysv4*MP*)
24262 if test -d /usr/nec; then
24263 lt_prog_compiler_pic_GCJ=-Kconform_pic
24264 fi
24265 ;;
24266
24267 hpux*)
24268 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24269 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024270 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024271 hppa*64*|ia64*)
24272 # +Z the default
24273 ;;
24274 *)
24275 lt_prog_compiler_pic_GCJ='-fPIC'
24276 ;;
24277 esac
24278 ;;
24279
24280 *)
24281 lt_prog_compiler_pic_GCJ='-fPIC'
24282 ;;
24283 esac
24284 else
24285 # PORTME Check for flag to pass linker flags through the system compiler.
24286 case $host_os in
24287 aix*)
24288 lt_prog_compiler_wl_GCJ='-Wl,'
24289 if test "$host_cpu" = ia64; then
24290 # AIX 5 now supports IA64 processor
24291 lt_prog_compiler_static_GCJ='-Bstatic'
24292 else
24293 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24294 fi
24295 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024296 darwin*)
24297 # PIC is the default on this platform
24298 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000024299 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024300 xlc*)
24301 lt_prog_compiler_pic_GCJ='-qnocommon'
24302 lt_prog_compiler_wl_GCJ='-Wl,'
24303 ;;
24304 esac
24305 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024306
24307 mingw* | pw32* | os2*)
24308 # This hack is so that the source file can tell whether it is being
24309 # built for inclusion in a dll (and should export symbols for example).
24310 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24311 ;;
24312
24313 hpux9* | hpux10* | hpux11*)
24314 lt_prog_compiler_wl_GCJ='-Wl,'
24315 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24316 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024317 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024318 hppa*64*|ia64*)
24319 # +Z the default
24320 ;;
24321 *)
24322 lt_prog_compiler_pic_GCJ='+Z'
24323 ;;
24324 esac
24325 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24326 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24327 ;;
24328
24329 irix5* | irix6* | nonstopux*)
24330 lt_prog_compiler_wl_GCJ='-Wl,'
24331 # PIC (with -KPIC) is the default.
24332 lt_prog_compiler_static_GCJ='-non_shared'
24333 ;;
24334
24335 newsos6)
24336 lt_prog_compiler_pic_GCJ='-KPIC'
24337 lt_prog_compiler_static_GCJ='-Bstatic'
24338 ;;
24339
24340 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000024341 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024342 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000024343 lt_prog_compiler_wl_GCJ='-Wl,'
24344 lt_prog_compiler_pic_GCJ='-KPIC'
24345 lt_prog_compiler_static_GCJ='-static'
24346 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024347 pgcc* | pgf77* | pgf90* | pgf95*)
24348 # Portland Group compilers (*not* the Pentium gcc compiler,
24349 # which looks to be a dead project)
24350 lt_prog_compiler_wl_GCJ='-Wl,'
24351 lt_prog_compiler_pic_GCJ='-fpic'
24352 lt_prog_compiler_static_GCJ='-Bstatic'
24353 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024354 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000024355 lt_prog_compiler_wl_GCJ='-Wl,'
24356 # All Alpha code is PIC.
24357 lt_prog_compiler_static_GCJ='-non_shared'
24358 ;;
24359 esac
24360 ;;
24361
24362 osf3* | osf4* | osf5*)
24363 lt_prog_compiler_wl_GCJ='-Wl,'
24364 # All OSF/1 code is PIC.
24365 lt_prog_compiler_static_GCJ='-non_shared'
24366 ;;
24367
John Criswell47fdd832003-07-14 16:52:07 +000024368 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024369 lt_prog_compiler_pic_GCJ='-KPIC'
24370 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000024371 case $cc_basename in
24372 f77* | f90* | f95*)
24373 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24374 *)
24375 lt_prog_compiler_wl_GCJ='-Wl,';;
24376 esac
John Criswell47fdd832003-07-14 16:52:07 +000024377 ;;
24378
24379 sunos4*)
24380 lt_prog_compiler_wl_GCJ='-Qoption ld '
24381 lt_prog_compiler_pic_GCJ='-PIC'
24382 lt_prog_compiler_static_GCJ='-Bstatic'
24383 ;;
24384
Reid Spencera773bd52006-08-04 18:18:08 +000024385 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024386 lt_prog_compiler_wl_GCJ='-Wl,'
24387 lt_prog_compiler_pic_GCJ='-KPIC'
24388 lt_prog_compiler_static_GCJ='-Bstatic'
24389 ;;
24390
24391 sysv4*MP*)
24392 if test -d /usr/nec ;then
24393 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24394 lt_prog_compiler_static_GCJ='-Bstatic'
24395 fi
24396 ;;
24397
Reid Spencera773bd52006-08-04 18:18:08 +000024398 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24399 lt_prog_compiler_wl_GCJ='-Wl,'
24400 lt_prog_compiler_pic_GCJ='-KPIC'
24401 lt_prog_compiler_static_GCJ='-Bstatic'
24402 ;;
24403
24404 unicos*)
24405 lt_prog_compiler_wl_GCJ='-Wl,'
24406 lt_prog_compiler_can_build_shared_GCJ=no
24407 ;;
24408
John Criswell47fdd832003-07-14 16:52:07 +000024409 uts4*)
24410 lt_prog_compiler_pic_GCJ='-pic'
24411 lt_prog_compiler_static_GCJ='-Bstatic'
24412 ;;
24413
24414 *)
24415 lt_prog_compiler_can_build_shared_GCJ=no
24416 ;;
24417 esac
24418 fi
24419
Reid Spencera773bd52006-08-04 18:18:08 +000024420{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24421echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024422
24423#
24424# Check to make sure the PIC flag actually works.
24425#
24426if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024427
Reid Spencera773bd52006-08-04 18:18:08 +000024428{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24429echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024430if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24431 echo $ECHO_N "(cached) $ECHO_C" >&6
24432else
24433 lt_prog_compiler_pic_works_GCJ=no
24434 ac_outfile=conftest.$ac_objext
24435 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24436 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24437 # Insert the option either (1) after the last *FLAGS variable, or
24438 # (2) before a word containing "conftest.", or (3) at the end.
24439 # Note that $ac_compile itself does not contain backslashes and begins
24440 # with a dollar sign (not a hyphen), so the echo should work correctly.
24441 # The option is referenced via a variable to avoid confusing sed.
24442 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024443 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24445 -e 's:$: $lt_compiler_flag:'`
Edward O'Callaghan2b19d692009-10-14 00:44:50 +000024446 (eval echo "\"\$as_me:24446: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024447 (eval "$lt_compile" 2>conftest.err)
24448 ac_status=$?
24449 cat conftest.err >&5
Edward O'Callaghan2b19d692009-10-14 00:44:50 +000024450 echo "$as_me:24450: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024451 if (exit $ac_status) && test -s "$ac_outfile"; then
24452 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024453 # So say no if there are warnings other than the usual output.
24454 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24455 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24456 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024457 lt_prog_compiler_pic_works_GCJ=yes
24458 fi
24459 fi
24460 $rm conftest*
24461
24462fi
Reid Spencera773bd52006-08-04 18:18:08 +000024463{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24464echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024465
24466if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24467 case $lt_prog_compiler_pic_GCJ in
24468 "" | " "*) ;;
24469 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24470 esac
24471else
24472 lt_prog_compiler_pic_GCJ=
24473 lt_prog_compiler_can_build_shared_GCJ=no
24474fi
24475
24476fi
Reid Spencera773bd52006-08-04 18:18:08 +000024477case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024478 # For platforms which do not support PIC, -DPIC is meaningless:
24479 *djgpp*)
24480 lt_prog_compiler_pic_GCJ=
24481 ;;
24482 *)
24483 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24484 ;;
24485esac
24486
Reid Spencera773bd52006-08-04 18:18:08 +000024487#
24488# Check to make sure the static flag actually works.
24489#
24490wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24491{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24492echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24493if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24494 echo $ECHO_N "(cached) $ECHO_C" >&6
24495else
24496 lt_prog_compiler_static_works_GCJ=no
24497 save_LDFLAGS="$LDFLAGS"
24498 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24499 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24500 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24501 # The linker can only warn and ignore the option if not recognized
24502 # So say no if there are warnings
24503 if test -s conftest.err; then
24504 # Append any errors to the config.log.
24505 cat conftest.err 1>&5
24506 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24507 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24508 if diff conftest.exp conftest.er2 >/dev/null; then
24509 lt_prog_compiler_static_works_GCJ=yes
24510 fi
24511 else
24512 lt_prog_compiler_static_works_GCJ=yes
24513 fi
24514 fi
24515 $rm conftest*
24516 LDFLAGS="$save_LDFLAGS"
24517
24518fi
24519{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24520echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24521
24522if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24523 :
24524else
24525 lt_prog_compiler_static_GCJ=
24526fi
24527
24528
24529{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24530echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024531if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24532 echo $ECHO_N "(cached) $ECHO_C" >&6
24533else
24534 lt_cv_prog_compiler_c_o_GCJ=no
24535 $rm -r conftest 2>/dev/null
24536 mkdir conftest
24537 cd conftest
24538 mkdir out
24539 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24540
John Criswell47fdd832003-07-14 16:52:07 +000024541 lt_compiler_flag="-o out/conftest2.$ac_objext"
24542 # Insert the option either (1) after the last *FLAGS variable, or
24543 # (2) before a word containing "conftest.", or (3) at the end.
24544 # Note that $ac_compile itself does not contain backslashes and begins
24545 # with a dollar sign (not a hyphen), so the echo should work correctly.
24546 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24549 -e 's:$: $lt_compiler_flag:'`
Edward O'Callaghan2b19d692009-10-14 00:44:50 +000024550 (eval echo "\"\$as_me:24550: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024551 (eval "$lt_compile" 2>out/conftest.err)
24552 ac_status=$?
24553 cat out/conftest.err >&5
Edward O'Callaghan2b19d692009-10-14 00:44:50 +000024554 echo "$as_me:24554: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024555 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24556 then
24557 # The compiler can only warn and ignore the option if not recognized
24558 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024559 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24560 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24561 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024562 lt_cv_prog_compiler_c_o_GCJ=yes
24563 fi
24564 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024565 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024566 $rm conftest*
24567 # SGI C++ compiler will create directory out/ii_files/ for
24568 # template instantiation
24569 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24570 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024571 cd ..
24572 rmdir conftest
24573 $rm conftest*
24574
24575fi
Reid Spencera773bd52006-08-04 18:18:08 +000024576{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24577echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024578
24579
24580hard_links="nottested"
24581if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24582 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024583 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24584echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024585 hard_links=yes
24586 $rm conftest*
24587 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24588 touch conftest.a
24589 ln conftest.a conftest.b 2>&5 || hard_links=no
24590 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024591 { echo "$as_me:$LINENO: result: $hard_links" >&5
24592echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024593 if test "$hard_links" = no; then
24594 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24595echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24596 need_locks=warn
24597 fi
24598else
24599 need_locks=no
24600fi
24601
Reid Spencera773bd52006-08-04 18:18:08 +000024602{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24603echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024604
24605 runpath_var=
24606 allow_undefined_flag_GCJ=
24607 enable_shared_with_static_runtimes_GCJ=no
24608 archive_cmds_GCJ=
24609 archive_expsym_cmds_GCJ=
24610 old_archive_From_new_cmds_GCJ=
24611 old_archive_from_expsyms_cmds_GCJ=
24612 export_dynamic_flag_spec_GCJ=
24613 whole_archive_flag_spec_GCJ=
24614 thread_safe_flag_spec_GCJ=
24615 hardcode_libdir_flag_spec_GCJ=
24616 hardcode_libdir_flag_spec_ld_GCJ=
24617 hardcode_libdir_separator_GCJ=
24618 hardcode_direct_GCJ=no
24619 hardcode_minus_L_GCJ=no
24620 hardcode_shlibpath_var_GCJ=unsupported
24621 link_all_deplibs_GCJ=unknown
24622 hardcode_automatic_GCJ=no
24623 module_cmds_GCJ=
24624 module_expsym_cmds_GCJ=
24625 always_export_symbols_GCJ=no
24626 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24627 # include_expsyms should be a list of space-separated symbols to be *always*
24628 # included in the symbol list
24629 include_expsyms_GCJ=
24630 # exclude_expsyms can be an extended regexp of symbols to exclude
24631 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24632 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24633 # as well as any symbol that contains `d'.
24634 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24635 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24636 # platforms (ab)use it in PIC code, but their linkers get confused if
24637 # the symbol is explicitly referenced. Since portable code cannot
24638 # rely on this symbol name, it's probably fine to never include it in
24639 # preloaded symbol tables.
24640 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024641 # Just being paranoid about ensuring that cc_basename is set.
24642 for cc_temp in $compiler""; do
24643 case $cc_temp in
24644 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24645 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24646 \-*) ;;
24647 *) break;;
24648 esac
24649done
24650cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024651
24652 case $host_os in
24653 cygwin* | mingw* | pw32*)
24654 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24655 # When not using gcc, we currently assume that we are using
24656 # Microsoft Visual C++.
24657 if test "$GCC" != yes; then
24658 with_gnu_ld=no
24659 fi
24660 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024661 interix*)
24662 # we just hope/assume this is gcc and not c89 (= MSVC++)
24663 with_gnu_ld=yes
24664 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024665 openbsd*)
24666 with_gnu_ld=no
24667 ;;
24668 esac
24669
24670 ld_shlibs_GCJ=yes
24671 if test "$with_gnu_ld" = yes; then
24672 # If archive_cmds runs LD, not CC, wlarc should be empty
24673 wlarc='${wl}'
24674
Reid Spencera773bd52006-08-04 18:18:08 +000024675 # Set some defaults for GNU ld with shared library support. These
24676 # are reset later if shared libraries are not supported. Putting them
24677 # here allows them to be overridden if necessary.
24678 runpath_var=LD_RUN_PATH
24679 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24680 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24681 # ancient GNU ld didn't support --whole-archive et. al.
24682 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24683 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24684 else
24685 whole_archive_flag_spec_GCJ=
24686 fi
24687 supports_anon_versioning=no
24688 case `$LD -v 2>/dev/null` in
24689 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24690 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24691 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24692 *\ 2.11.*) ;; # other 2.11 versions
24693 *) supports_anon_versioning=yes ;;
24694 esac
24695
John Criswell47fdd832003-07-14 16:52:07 +000024696 # See if GNU ld supports shared libraries.
24697 case $host_os in
24698 aix3* | aix4* | aix5*)
24699 # On AIX/PPC, the GNU linker is very broken
24700 if test "$host_cpu" != ia64; then
24701 ld_shlibs_GCJ=no
24702 cat <<EOF 1>&2
24703
24704*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24705*** to be unable to reliably create shared libraries on AIX.
24706*** Therefore, libtool is disabling shared libraries support. If you
24707*** really care for shared libraries, you may want to modify your PATH
24708*** so that a non-GNU linker is found, and then restart.
24709
24710EOF
24711 fi
24712 ;;
24713
24714 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024715 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 +000024716 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24717 hardcode_minus_L_GCJ=yes
24718
24719 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24720 # that the semantics of dynamic libraries on AmigaOS, at least up
24721 # to version 4, is to share data among multiple programs linked
24722 # with the same dynamic library. Since this doesn't match the
24723 # behavior of shared libraries on other platforms, we can't use
24724 # them.
24725 ld_shlibs_GCJ=no
24726 ;;
24727
24728 beos*)
24729 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24730 allow_undefined_flag_GCJ=unsupported
24731 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24732 # support --undefined. This deserves some investigation. FIXME
24733 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24734 else
24735 ld_shlibs_GCJ=no
24736 fi
24737 ;;
24738
24739 cygwin* | mingw* | pw32*)
24740 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24741 # as there is no search path for DLLs.
24742 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24743 allow_undefined_flag_GCJ=unsupported
24744 always_export_symbols_GCJ=no
24745 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024746 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 +000024747
24748 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024749 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 +000024750 # If the export-symbols file already is a .def file (1st line
24751 # is EXPORTS), use it as is; otherwise, prepend...
24752 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24753 cp $export_symbols $output_objdir/$soname.def;
24754 else
24755 echo EXPORTS > $output_objdir/$soname.def;
24756 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024757 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024758 $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 +000024759 else
Reid Spencera773bd52006-08-04 18:18:08 +000024760 ld_shlibs_GCJ=no
24761 fi
24762 ;;
24763
24764 interix3*)
24765 hardcode_direct_GCJ=no
24766 hardcode_shlibpath_var_GCJ=no
24767 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24768 export_dynamic_flag_spec_GCJ='${wl}-E'
24769 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24770 # Instead, shared libraries are loaded at an image base (0x10000000 by
24771 # default) and relocated if they conflict, which is a slow very memory
24772 # consuming and fragmenting process. To avoid this, we pick a random,
24773 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24774 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24775 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'
24776 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'
24777 ;;
24778
24779 linux*)
24780 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24781 tmp_addflag=
24782 case $cc_basename,$host_cpu in
24783 pgcc*) # Portland Group C compiler
24784 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'
24785 tmp_addflag=' $pic_flag'
24786 ;;
24787 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24788 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'
24789 tmp_addflag=' $pic_flag -Mnomain' ;;
24790 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24791 tmp_addflag=' -i_dynamic' ;;
24792 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24793 tmp_addflag=' -i_dynamic -nofor_main' ;;
24794 ifc* | ifort*) # Intel Fortran compiler
24795 tmp_addflag=' -nofor_main' ;;
24796 esac
24797 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24798
24799 if test $supports_anon_versioning = yes; then
24800 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24801 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24802 $echo "local: *; };" >> $output_objdir/$libname.ver~
24803 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24804 fi
24805 else
24806 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024807 fi
24808 ;;
24809
24810 netbsd*)
24811 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24812 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24813 wlarc=
24814 else
24815 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24816 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24817 fi
24818 ;;
24819
Reid Spencera773bd52006-08-04 18:18:08 +000024820 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024821 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24822 ld_shlibs_GCJ=no
24823 cat <<EOF 1>&2
24824
24825*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24826*** create shared libraries on Solaris systems. Therefore, libtool
24827*** is disabling shared libraries support. We urge you to upgrade GNU
24828*** binutils to release 2.9.1 or newer. Another option is to modify
24829*** your PATH or compiler configuration so that the native linker is
24830*** used, and then restart.
24831
24832EOF
24833 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24834 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24835 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24836 else
24837 ld_shlibs_GCJ=no
24838 fi
24839 ;;
24840
Reid Spencera773bd52006-08-04 18:18:08 +000024841 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24842 case `$LD -v 2>&1` in
24843 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24844 ld_shlibs_GCJ=no
24845 cat <<_LT_EOF 1>&2
24846
24847*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24848*** reliably create shared libraries on SCO systems. Therefore, libtool
24849*** is disabling shared libraries support. We urge you to upgrade GNU
24850*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24851*** your PATH or compiler configuration so that the native linker is
24852*** used, and then restart.
24853
24854_LT_EOF
24855 ;;
24856 *)
24857 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24858 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24859 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24860 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24861 else
24862 ld_shlibs_GCJ=no
24863 fi
24864 ;;
24865 esac
24866 ;;
24867
John Criswell47fdd832003-07-14 16:52:07 +000024868 sunos4*)
24869 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24870 wlarc=
24871 hardcode_direct_GCJ=yes
24872 hardcode_shlibpath_var_GCJ=no
24873 ;;
24874
24875 *)
24876 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24877 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24878 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24879 else
24880 ld_shlibs_GCJ=no
24881 fi
24882 ;;
24883 esac
24884
Reid Spencera773bd52006-08-04 18:18:08 +000024885 if test "$ld_shlibs_GCJ" = no; then
24886 runpath_var=
24887 hardcode_libdir_flag_spec_GCJ=
24888 export_dynamic_flag_spec_GCJ=
24889 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024890 fi
24891 else
24892 # PORTME fill in a description of your system's linker (not GNU ld)
24893 case $host_os in
24894 aix3*)
24895 allow_undefined_flag_GCJ=unsupported
24896 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024897 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 +000024898 # Note: this linker hardcodes the directories in LIBPATH if there
24899 # are no directories specified by -L.
24900 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024901 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024902 # Neither direct hardcoding nor static linking is supported with a
24903 # broken collect2.
24904 hardcode_direct_GCJ=unsupported
24905 fi
24906 ;;
24907
24908 aix4* | aix5*)
24909 if test "$host_cpu" = ia64; then
24910 # On IA64, the linker does run time linking by default, so we don't
24911 # have to do anything special.
24912 aix_use_runtimelinking=no
24913 exp_sym_flag='-Bexport'
24914 no_entry_flag=""
24915 else
24916 # If we're using GNU nm, then we don't want the "-C" option.
24917 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24918 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24919 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'
24920 else
24921 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'
24922 fi
24923 aix_use_runtimelinking=no
24924
24925 # Test if we are trying to use run time linking or normal
24926 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24927 # need to do runtime linking.
24928 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24929 for ld_flag in $LDFLAGS; do
24930 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24931 aix_use_runtimelinking=yes
24932 break
24933 fi
24934 done
Reid Spencera773bd52006-08-04 18:18:08 +000024935 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024936 esac
24937
24938 exp_sym_flag='-bexport'
24939 no_entry_flag='-bnoentry'
24940 fi
24941
24942 # When large executables or shared objects are built, AIX ld can
24943 # have problems creating the table of contents. If linking a library
24944 # or program results in "error TOC overflow" add -mminimal-toc to
24945 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24946 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24947
24948 archive_cmds_GCJ=''
24949 hardcode_direct_GCJ=yes
24950 hardcode_libdir_separator_GCJ=':'
24951 link_all_deplibs_GCJ=yes
24952
24953 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024954 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024955 # We only want to do this on AIX 4.2 and lower, the check
24956 # below for broken collect2 doesn't work under 4.3+
24957 collect2name=`${CC} -print-prog-name=collect2`
24958 if test -f "$collect2name" && \
24959 strings "$collect2name" | grep resolve_lib_name >/dev/null
24960 then
24961 # We have reworked collect2
24962 hardcode_direct_GCJ=yes
24963 else
24964 # We have old collect2
24965 hardcode_direct_GCJ=unsupported
24966 # It fails to find uninstalled libraries when the uninstalled
24967 # path is not listed in the libpath. Setting hardcode_minus_L
24968 # to unsupported forces relinking
24969 hardcode_minus_L_GCJ=yes
24970 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24971 hardcode_libdir_separator_GCJ=
24972 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024973 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024974 esac
24975 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024976 if test "$aix_use_runtimelinking" = yes; then
24977 shared_flag="$shared_flag "'${wl}-G'
24978 fi
John Criswell47fdd832003-07-14 16:52:07 +000024979 else
24980 # not using gcc
24981 if test "$host_cpu" = ia64; then
24982 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24983 # chokes on -Wl,-G. The following line is correct:
24984 shared_flag='-G'
24985 else
Reid Spencera773bd52006-08-04 18:18:08 +000024986 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024987 shared_flag='${wl}-G'
24988 else
24989 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024990 fi
John Criswell47fdd832003-07-14 16:52:07 +000024991 fi
24992 fi
24993
24994 # It seems that -bexpall does not export symbols beginning with
24995 # underscore (_), so it is better to generate a list of symbols to export.
24996 always_export_symbols_GCJ=yes
24997 if test "$aix_use_runtimelinking" = yes; then
24998 # Warning - without using the other runtime loading flags (-brtl),
24999 # -berok will link without error, but may produce a broken library.
25000 allow_undefined_flag_GCJ='-berok'
25001 # Determine the default libpath from the value encoded in an empty executable.
25002 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025003/* confdefs.h. */
25004_ACEOF
25005cat confdefs.h >>conftest.$ac_ext
25006cat >>conftest.$ac_ext <<_ACEOF
25007/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000025008
John Criswell47fdd832003-07-14 16:52:07 +000025009int
25010main ()
25011{
25012
25013 ;
25014 return 0;
25015}
25016_ACEOF
25017rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025018if { (ac_try="$ac_link"
25019case "(($ac_try" in
25020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25021 *) ac_try_echo=$ac_try;;
25022esac
25023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25024 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000025025 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025026 grep -v '^ *+' conftest.er1 >conftest.err
25027 rm -f conftest.er1
25028 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000025029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000025030 (exit $ac_status); } &&
25031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25032 { (case "(($ac_try" in
25033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25034 *) ac_try_echo=$ac_try;;
25035esac
25036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25037 (eval "$ac_try") 2>&5
25038 ac_status=$?
25039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040 (exit $ac_status); }; } &&
25041 { ac_try='test -s conftest$ac_exeext'
25042 { (case "(($ac_try" in
25043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25044 *) ac_try_echo=$ac_try;;
25045esac
25046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25047 (eval "$ac_try") 2>&5
25048 ac_status=$?
25049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25050 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000025051
25052aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25053}'`
25054# Check for a 64-bit object if we didn't find anything.
25055if 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; }
25056}'`; fi
25057else
25058 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025059sed 's/^/| /' conftest.$ac_ext >&5
25060
Reid Spencera773bd52006-08-04 18:18:08 +000025061
John Criswell47fdd832003-07-14 16:52:07 +000025062fi
Reid Spencera773bd52006-08-04 18:18:08 +000025063
Bill Wendlingebcceee2009-04-18 11:20:33 +000025064rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025065 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000025066if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25067
25068 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000025069 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 +000025070 else
25071 if test "$host_cpu" = ia64; then
25072 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25073 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000025074 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 +000025075 else
25076 # Determine the default libpath from the value encoded in an empty executable.
25077 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025078/* confdefs.h. */
25079_ACEOF
25080cat confdefs.h >>conftest.$ac_ext
25081cat >>conftest.$ac_ext <<_ACEOF
25082/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000025083
John Criswell47fdd832003-07-14 16:52:07 +000025084int
25085main ()
25086{
25087
25088 ;
25089 return 0;
25090}
25091_ACEOF
25092rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025093if { (ac_try="$ac_link"
25094case "(($ac_try" in
25095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25096 *) ac_try_echo=$ac_try;;
25097esac
25098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25099 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000025100 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025101 grep -v '^ *+' conftest.er1 >conftest.err
25102 rm -f conftest.er1
25103 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000025104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000025105 (exit $ac_status); } &&
25106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25107 { (case "(($ac_try" in
25108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25109 *) ac_try_echo=$ac_try;;
25110esac
25111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25112 (eval "$ac_try") 2>&5
25113 ac_status=$?
25114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25115 (exit $ac_status); }; } &&
25116 { ac_try='test -s conftest$ac_exeext'
25117 { (case "(($ac_try" in
25118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25119 *) ac_try_echo=$ac_try;;
25120esac
25121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25122 (eval "$ac_try") 2>&5
25123 ac_status=$?
25124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000025126
25127aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25128}'`
25129# Check for a 64-bit object if we didn't find anything.
25130if 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; }
25131}'`; fi
25132else
25133 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025134sed 's/^/| /' conftest.$ac_ext >&5
25135
Reid Spencera773bd52006-08-04 18:18:08 +000025136
John Criswell47fdd832003-07-14 16:52:07 +000025137fi
Reid Spencera773bd52006-08-04 18:18:08 +000025138
Bill Wendlingebcceee2009-04-18 11:20:33 +000025139rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025140 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000025141if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25142
25143 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25144 # Warning - without using the other run time loading flags,
25145 # -berok will link without error, but may produce a broken library.
25146 no_undefined_flag_GCJ=' ${wl}-bernotok'
25147 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000025148 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000025149 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000025150 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000025151 # This is similar to how AIX traditionally builds its shared libraries.
25152 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 +000025153 fi
25154 fi
25155 ;;
25156
25157 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000025158 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 +000025159 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25160 hardcode_minus_L_GCJ=yes
25161 # see comment about different semantics on the GNU ld section
25162 ld_shlibs_GCJ=no
25163 ;;
25164
Reid Spencer2706f8c2004-09-19 23:53:36 +000025165 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025166 export_dynamic_flag_spec_GCJ=-rdynamic
25167 ;;
25168
25169 cygwin* | mingw* | pw32*)
25170 # When not using gcc, we currently assume that we are using
25171 # Microsoft Visual C++.
25172 # hardcode_libdir_flag_spec is actually meaningless, as there is
25173 # no search path for DLLs.
25174 hardcode_libdir_flag_spec_GCJ=' '
25175 allow_undefined_flag_GCJ=unsupported
25176 # Tell ltmain to make .lib files, not .a files.
25177 libext=lib
25178 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025179 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025180 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000025181 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 +000025182 # The linker will automatically build a .lib file if we build a DLL.
25183 old_archive_From_new_cmds_GCJ='true'
25184 # FIXME: Should let the user specify the lib program.
25185 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000025186 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000025187 enable_shared_with_static_runtimes_GCJ=yes
25188 ;;
25189
25190 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000025191 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025192 rhapsody* | darwin1.[012])
25193 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25194 ;;
25195 *) # Darwin 1.3 on
25196 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25197 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25198 else
25199 case ${MACOSX_DEPLOYMENT_TARGET} in
25200 10.[012])
25201 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25202 ;;
25203 10.*)
25204 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25205 ;;
25206 esac
25207 fi
25208 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025209 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025210 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025211 hardcode_direct_GCJ=no
25212 hardcode_automatic_GCJ=yes
25213 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000025214 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000025215 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000025216 if test "$GCC" = yes ; then
25217 output_verbose_link_cmd='echo'
25218 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25219 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025220 # 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 +000025221 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}'
25222 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 +000025223 else
Reid Spencera773bd52006-08-04 18:18:08 +000025224 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025225 xlc*)
25226 output_verbose_link_cmd='echo'
25227 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25228 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025229 # 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 +000025230 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}'
25231 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 +000025232 ;;
25233 *)
25234 ld_shlibs_GCJ=no
25235 ;;
25236 esac
John Criswell47fdd832003-07-14 16:52:07 +000025237 fi
25238 ;;
25239
25240 dgux*)
25241 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25242 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25243 hardcode_shlibpath_var_GCJ=no
25244 ;;
25245
25246 freebsd1*)
25247 ld_shlibs_GCJ=no
25248 ;;
25249
25250 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25251 # support. Future versions do this automatically, but an explicit c++rt0.o
25252 # does not break anything, and helps significantly (at the cost of a little
25253 # extra space).
25254 freebsd2.2*)
25255 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25256 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25257 hardcode_direct_GCJ=yes
25258 hardcode_shlibpath_var_GCJ=no
25259 ;;
25260
25261 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25262 freebsd2*)
25263 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25264 hardcode_direct_GCJ=yes
25265 hardcode_minus_L_GCJ=yes
25266 hardcode_shlibpath_var_GCJ=no
25267 ;;
25268
25269 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000025270 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000025271 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25272 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25273 hardcode_direct_GCJ=yes
25274 hardcode_shlibpath_var_GCJ=no
25275 ;;
25276
25277 hpux9*)
25278 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000025279 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 +000025280 else
Reid Spencer177dbe22004-10-13 01:01:03 +000025281 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 +000025282 fi
25283 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25284 hardcode_libdir_separator_GCJ=:
25285 hardcode_direct_GCJ=yes
25286
25287 # hardcode_minus_L: Not really in the search PATH,
25288 # but as the default location of the library.
25289 hardcode_minus_L_GCJ=yes
25290 export_dynamic_flag_spec_GCJ='${wl}-E'
25291 ;;
25292
Reid Spencera773bd52006-08-04 18:18:08 +000025293 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000025294 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025295 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25296 else
25297 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25298 fi
25299 if test "$with_gnu_ld" = no; then
25300 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25301 hardcode_libdir_separator_GCJ=:
25302
25303 hardcode_direct_GCJ=yes
25304 export_dynamic_flag_spec_GCJ='${wl}-E'
25305
25306 # hardcode_minus_L: Not really in the search PATH,
25307 # but as the default location of the library.
25308 hardcode_minus_L_GCJ=yes
25309 fi
25310 ;;
25311
25312 hpux11*)
25313 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25314 case $host_cpu in
25315 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000025316 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25317 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025318 ia64*)
25319 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25320 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025321 *)
25322 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25323 ;;
25324 esac
25325 else
Reid Spencera773bd52006-08-04 18:18:08 +000025326 case $host_cpu in
25327 hppa*64*)
25328 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25329 ;;
25330 ia64*)
25331 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000025332 ;;
25333 *)
Reid Spencera773bd52006-08-04 18:18:08 +000025334 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 +000025335 ;;
25336 esac
25337 fi
25338 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025339 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25340 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000025341
Reid Spencera773bd52006-08-04 18:18:08 +000025342 case $host_cpu in
25343 hppa*64*|ia64*)
25344 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25345 hardcode_direct_GCJ=no
25346 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025347 ;;
25348 *)
John Criswell47fdd832003-07-14 16:52:07 +000025349 hardcode_direct_GCJ=yes
25350 export_dynamic_flag_spec_GCJ='${wl}-E'
25351
25352 # hardcode_minus_L: Not really in the search PATH,
25353 # but as the default location of the library.
25354 hardcode_minus_L_GCJ=yes
25355 ;;
25356 esac
25357 fi
25358 ;;
25359
25360 irix5* | irix6* | nonstopux*)
25361 if test "$GCC" = yes; then
25362 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'
25363 else
25364 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'
25365 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25366 fi
25367 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25368 hardcode_libdir_separator_GCJ=:
25369 link_all_deplibs_GCJ=yes
25370 ;;
25371
25372 netbsd*)
25373 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25374 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25375 else
25376 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25377 fi
25378 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25379 hardcode_direct_GCJ=yes
25380 hardcode_shlibpath_var_GCJ=no
25381 ;;
25382
25383 newsos6)
25384 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25385 hardcode_direct_GCJ=yes
25386 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25387 hardcode_libdir_separator_GCJ=:
25388 hardcode_shlibpath_var_GCJ=no
25389 ;;
25390
25391 openbsd*)
25392 hardcode_direct_GCJ=yes
25393 hardcode_shlibpath_var_GCJ=no
25394 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25395 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025396 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 +000025397 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25398 export_dynamic_flag_spec_GCJ='${wl}-E'
25399 else
25400 case $host_os in
25401 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25402 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25403 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25404 ;;
25405 *)
25406 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25407 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25408 ;;
25409 esac
25410 fi
25411 ;;
25412
25413 os2*)
25414 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25415 hardcode_minus_L_GCJ=yes
25416 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000025417 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 +000025418 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25419 ;;
25420
25421 osf3*)
25422 if test "$GCC" = yes; then
25423 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25424 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'
25425 else
25426 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25427 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'
25428 fi
25429 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25430 hardcode_libdir_separator_GCJ=:
25431 ;;
25432
25433 osf4* | osf5*) # as osf3* with the addition of -msym flag
25434 if test "$GCC" = yes; then
25435 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25436 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'
25437 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25438 else
25439 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25440 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 +000025441 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 +000025442 $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 +000025443
John Criswell47fdd832003-07-14 16:52:07 +000025444 # Both c and cxx compiler support -rpath directly
25445 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25446 fi
25447 hardcode_libdir_separator_GCJ=:
25448 ;;
25449
John Criswell47fdd832003-07-14 16:52:07 +000025450 solaris*)
25451 no_undefined_flag_GCJ=' -z text'
25452 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025453 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025454 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025455 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25456 $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 +000025457 else
Reid Spencera773bd52006-08-04 18:18:08 +000025458 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025459 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025460 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25461 $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 +000025462 fi
25463 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25464 hardcode_shlibpath_var_GCJ=no
25465 case $host_os in
25466 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025467 *)
25468 # The compiler driver will combine linker options so we
25469 # cannot just pass the convience library names through
25470 # without $wl, iff we do not link with $LD.
25471 # Luckily, gcc supports the same syntax we need for Sun Studio.
25472 # Supported since Solaris 2.6 (maybe 2.5.1?)
25473 case $wlarc in
25474 '')
25475 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25476 *)
25477 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' ;;
25478 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025479 esac
25480 link_all_deplibs_GCJ=yes
25481 ;;
25482
25483 sunos4*)
25484 if test "x$host_vendor" = xsequent; then
25485 # Use $CC to link under sequent, because it throws in some extra .o
25486 # files that make .init and .fini sections work.
25487 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25488 else
25489 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25490 fi
25491 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25492 hardcode_direct_GCJ=yes
25493 hardcode_minus_L_GCJ=yes
25494 hardcode_shlibpath_var_GCJ=no
25495 ;;
25496
25497 sysv4)
25498 case $host_vendor in
25499 sni)
25500 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25501 hardcode_direct_GCJ=yes # is this really true???
25502 ;;
25503 siemens)
25504 ## LD is ld it makes a PLAMLIB
25505 ## CC just makes a GrossModule.
25506 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25507 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25508 hardcode_direct_GCJ=no
25509 ;;
25510 motorola)
25511 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25512 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25513 ;;
25514 esac
25515 runpath_var='LD_RUN_PATH'
25516 hardcode_shlibpath_var_GCJ=no
25517 ;;
25518
25519 sysv4.3*)
25520 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25521 hardcode_shlibpath_var_GCJ=no
25522 export_dynamic_flag_spec_GCJ='-Bexport'
25523 ;;
25524
25525 sysv4*MP*)
25526 if test -d /usr/nec; then
25527 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25528 hardcode_shlibpath_var_GCJ=no
25529 runpath_var=LD_RUN_PATH
25530 hardcode_runpath_var=yes
25531 ld_shlibs_GCJ=yes
25532 fi
25533 ;;
25534
Reid Spencera773bd52006-08-04 18:18:08 +000025535 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25536 no_undefined_flag_GCJ='${wl}-z,text'
25537 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025538 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025539 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025540
John Criswell47fdd832003-07-14 16:52:07 +000025541 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025542 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25543 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 +000025544 else
Reid Spencera773bd52006-08-04 18:18:08 +000025545 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25546 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 +000025547 fi
John Criswell47fdd832003-07-14 16:52:07 +000025548 ;;
25549
Reid Spencera773bd52006-08-04 18:18:08 +000025550 sysv5* | sco3.2v5* | sco5v6*)
25551 # Note: We can NOT use -z defs as we might desire, because we do not
25552 # link with -lc, and that would cause any symbols used from libc to
25553 # always be unresolved, which means just about no library would
25554 # ever link correctly. If we're not using GNU ld we use -z text
25555 # though, which does catch some bad symbols but isn't as heavy-handed
25556 # as -z defs.
25557 no_undefined_flag_GCJ='${wl}-z,text'
25558 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25559 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025560 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025561 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25562 hardcode_libdir_separator_GCJ=':'
25563 link_all_deplibs_GCJ=yes
25564 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025565 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025566
25567 if test "$GCC" = yes; then
25568 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25569 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25570 else
25571 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25572 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25573 fi
John Criswell47fdd832003-07-14 16:52:07 +000025574 ;;
25575
25576 uts4*)
25577 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25578 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25579 hardcode_shlibpath_var_GCJ=no
25580 ;;
25581
25582 *)
25583 ld_shlibs_GCJ=no
25584 ;;
25585 esac
25586 fi
25587
Reid Spencera773bd52006-08-04 18:18:08 +000025588{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25589echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025590test "$ld_shlibs_GCJ" = no && can_build_shared=no
25591
John Criswell47fdd832003-07-14 16:52:07 +000025592#
25593# Do we need to explicitly link libc?
25594#
25595case "x$archive_cmds_need_lc_GCJ" in
25596x|xyes)
25597 # Assume -lc should be added
25598 archive_cmds_need_lc_GCJ=yes
25599
25600 if test "$enable_shared" = yes && test "$GCC" = yes; then
25601 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025602 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025603 # FIXME: we may have to deal with multi-command sequences.
25604 ;;
25605 '$CC '*)
25606 # Test whether the compiler implicitly links with -lc since on some
25607 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25608 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025609 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25610echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025611 $rm conftest*
25612 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25613
25614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25615 (eval $ac_compile) 2>&5
25616 ac_status=$?
25617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25618 (exit $ac_status); } 2>conftest.err; then
25619 soname=conftest
25620 lib=conftest
25621 libobjs=conftest.$ac_objext
25622 deplibs=
25623 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025624 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025625 compiler_flags=-v
25626 linker_flags=-v
25627 verstring=
25628 output_objdir=.
25629 libname=conftest
25630 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25631 allow_undefined_flag_GCJ=
25632 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25633 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25634 ac_status=$?
25635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25636 (exit $ac_status); }
25637 then
25638 archive_cmds_need_lc_GCJ=no
25639 else
25640 archive_cmds_need_lc_GCJ=yes
25641 fi
25642 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25643 else
25644 cat conftest.err 1>&5
25645 fi
25646 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025647 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25648echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025649 ;;
25650 esac
25651 fi
25652 ;;
25653esac
25654
Reid Spencera773bd52006-08-04 18:18:08 +000025655{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25656echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025657library_names_spec=
25658libname_spec='lib$name'
25659soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025660shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025661postinstall_cmds=
25662postuninstall_cmds=
25663finish_cmds=
25664finish_eval=
25665shlibpath_var=
25666shlibpath_overrides_runpath=unknown
25667version_type=none
25668dynamic_linker="$host_os ld.so"
25669sys_lib_dlsearch_path_spec="/lib /usr/lib"
25670if test "$GCC" = yes; then
25671 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25672 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25673 # if the path contains ";" then we assume it to be the separator
25674 # otherwise default to the standard path separator (i.e. ":") - it is
25675 # assumed that no part of a normal pathname contains ";" but that should
25676 # okay in the real world where ";" in dirpaths is itself problematic.
25677 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25678 else
25679 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25680 fi
25681else
25682 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25683fi
25684need_lib_prefix=unknown
25685hardcode_into_libs=no
25686
25687# when you set need_version to no, make sure it does not cause -set_version
25688# flags to be left without arguments
25689need_version=unknown
25690
25691case $host_os in
25692aix3*)
25693 version_type=linux
25694 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25695 shlibpath_var=LIBPATH
25696
25697 # AIX 3 has no versioning support, so we append a major version to the name.
25698 soname_spec='${libname}${release}${shared_ext}$major'
25699 ;;
25700
25701aix4* | aix5*)
25702 version_type=linux
25703 need_lib_prefix=no
25704 need_version=no
25705 hardcode_into_libs=yes
25706 if test "$host_cpu" = ia64; then
25707 # AIX 5 supports IA64
25708 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25709 shlibpath_var=LD_LIBRARY_PATH
25710 else
25711 # With GCC up to 2.95.x, collect2 would create an import file
25712 # for dependence libraries. The import file would start with
25713 # the line `#! .'. This would cause the generated library to
25714 # depend on `.', always an invalid library. This was fixed in
25715 # development snapshots of GCC prior to 3.0.
25716 case $host_os in
25717 aix4 | aix4.[01] | aix4.[01].*)
25718 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25719 echo ' yes '
25720 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25721 :
25722 else
25723 can_build_shared=no
25724 fi
25725 ;;
25726 esac
25727 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25728 # soname into executable. Probably we can add versioning support to
25729 # collect2, so additional links can be useful in future.
25730 if test "$aix_use_runtimelinking" = yes; then
25731 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25732 # instead of lib<name>.a to let people know that these are not
25733 # typical AIX shared libraries.
25734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25735 else
25736 # We preserve .a as extension for shared libraries through AIX4.2
25737 # and later when we are not doing run time linking.
25738 library_names_spec='${libname}${release}.a $libname.a'
25739 soname_spec='${libname}${release}${shared_ext}$major'
25740 fi
25741 shlibpath_var=LIBPATH
25742 fi
25743 ;;
25744
25745amigaos*)
25746 library_names_spec='$libname.ixlibrary $libname.a'
25747 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025748 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 +000025749 ;;
25750
25751beos*)
25752 library_names_spec='${libname}${shared_ext}'
25753 dynamic_linker="$host_os ld.so"
25754 shlibpath_var=LIBRARY_PATH
25755 ;;
25756
Reid Spencer2706f8c2004-09-19 23:53:36 +000025757bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025758 version_type=linux
25759 need_version=no
25760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25761 soname_spec='${libname}${release}${shared_ext}$major'
25762 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25763 shlibpath_var=LD_LIBRARY_PATH
25764 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25765 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25766 # the default ld.so.conf also contains /usr/contrib/lib and
25767 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25768 # libtool to hard-code these into programs
25769 ;;
25770
25771cygwin* | mingw* | pw32*)
25772 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025773 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025774 need_version=no
25775 need_lib_prefix=no
25776
25777 case $GCC,$host_os in
25778 yes,cygwin* | yes,mingw* | yes,pw32*)
25779 library_names_spec='$libname.dll.a'
25780 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025781 postinstall_cmds='base_file=`basename \${file}`~
25782 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25783 dldir=$destdir/`dirname \$dlpath`~
25784 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025785 $install_prog $dir/$dlname \$dldir/$dlname~
25786 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025787 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25788 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025789 $rm \$dlpath'
25790 shlibpath_overrides_runpath=yes
25791
25792 case $host_os in
25793 cygwin*)
25794 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25795 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 +000025796 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025797 ;;
25798 mingw*)
25799 # MinGW DLLs use traditional 'lib' prefix
25800 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25801 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25802 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25803 # It is most probably a Windows format PATH printed by
25804 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25805 # path with ; separators, and with drive letters. We can handle the
25806 # drive letters (cygwin fileutils understands them), so leave them,
25807 # especially as we might pass files found there to a mingw objdump,
25808 # which wouldn't understand a cygwinified path. Ahh.
25809 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25810 else
25811 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25812 fi
25813 ;;
25814 pw32*)
25815 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025816 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 +000025817 ;;
25818 esac
25819 ;;
25820
25821 *)
25822 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25823 ;;
25824 esac
25825 dynamic_linker='Win32 ld.exe'
25826 # FIXME: first we should search . and the directory the executable is in
25827 shlibpath_var=PATH
25828 ;;
25829
25830darwin* | rhapsody*)
25831 dynamic_linker="$host_os dyld"
25832 version_type=darwin
25833 need_lib_prefix=no
25834 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025835 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025836 soname_spec='${libname}${release}${major}$shared_ext'
25837 shlibpath_overrides_runpath=yes
25838 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025839 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025840 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025841 if test "$GCC" = yes; then
25842 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"`
25843 else
25844 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025845 fi
25846 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25847 ;;
25848
25849dgux*)
25850 version_type=linux
25851 need_lib_prefix=no
25852 need_version=no
25853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25854 soname_spec='${libname}${release}${shared_ext}$major'
25855 shlibpath_var=LD_LIBRARY_PATH
25856 ;;
25857
25858freebsd1*)
25859 dynamic_linker=no
25860 ;;
25861
Reid Spencer2706f8c2004-09-19 23:53:36 +000025862kfreebsd*-gnu)
25863 version_type=linux
25864 need_lib_prefix=no
25865 need_version=no
25866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25867 soname_spec='${libname}${release}${shared_ext}$major'
25868 shlibpath_var=LD_LIBRARY_PATH
25869 shlibpath_overrides_runpath=no
25870 hardcode_into_libs=yes
25871 dynamic_linker='GNU ld.so'
25872 ;;
25873
Reid Spencera773bd52006-08-04 18:18:08 +000025874freebsd* | dragonfly*)
25875 # DragonFly does not have aout. When/if they implement a new
25876 # versioning mechanism, adjust this.
25877 if test -x /usr/bin/objformat; then
25878 objformat=`/usr/bin/objformat`
25879 else
25880 case $host_os in
25881 freebsd[123]*) objformat=aout ;;
25882 *) objformat=elf ;;
25883 esac
25884 fi
John Criswell47fdd832003-07-14 16:52:07 +000025885 version_type=freebsd-$objformat
25886 case $version_type in
25887 freebsd-elf*)
25888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25889 need_version=no
25890 need_lib_prefix=no
25891 ;;
25892 freebsd-*)
25893 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25894 need_version=yes
25895 ;;
25896 esac
25897 shlibpath_var=LD_LIBRARY_PATH
25898 case $host_os in
25899 freebsd2*)
25900 shlibpath_overrides_runpath=yes
25901 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025902 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025903 shlibpath_overrides_runpath=yes
25904 hardcode_into_libs=yes
25905 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025906 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25907 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025908 shlibpath_overrides_runpath=no
25909 hardcode_into_libs=yes
25910 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025911 freebsd*) # from 4.6 on
25912 shlibpath_overrides_runpath=yes
25913 hardcode_into_libs=yes
25914 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025915 esac
25916 ;;
25917
25918gnu*)
25919 version_type=linux
25920 need_lib_prefix=no
25921 need_version=no
25922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25923 soname_spec='${libname}${release}${shared_ext}$major'
25924 shlibpath_var=LD_LIBRARY_PATH
25925 hardcode_into_libs=yes
25926 ;;
25927
25928hpux9* | hpux10* | hpux11*)
25929 # Give a soname corresponding to the major version so that dld.sl refuses to
25930 # link against other versions.
25931 version_type=sunos
25932 need_lib_prefix=no
25933 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025934 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025935 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025936 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025937 hardcode_into_libs=yes
25938 dynamic_linker="$host_os dld.so"
25939 shlibpath_var=LD_LIBRARY_PATH
25940 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25942 soname_spec='${libname}${release}${shared_ext}$major'
25943 if test "X$HPUX_IA64_MODE" = X32; then
25944 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25945 else
25946 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25947 fi
25948 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25949 ;;
25950 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025951 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025952 hardcode_into_libs=yes
25953 dynamic_linker="$host_os dld.sl"
25954 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25955 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25957 soname_spec='${libname}${release}${shared_ext}$major'
25958 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25959 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25960 ;;
25961 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025962 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025963 dynamic_linker="$host_os dld.sl"
25964 shlibpath_var=SHLIB_PATH
25965 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25967 soname_spec='${libname}${release}${shared_ext}$major'
25968 ;;
25969 esac
25970 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25971 postinstall_cmds='chmod 555 $lib'
25972 ;;
25973
Reid Spencera773bd52006-08-04 18:18:08 +000025974interix3*)
25975 version_type=linux
25976 need_lib_prefix=no
25977 need_version=no
25978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25979 soname_spec='${libname}${release}${shared_ext}$major'
25980 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25981 shlibpath_var=LD_LIBRARY_PATH
25982 shlibpath_overrides_runpath=no
25983 hardcode_into_libs=yes
25984 ;;
25985
John Criswell47fdd832003-07-14 16:52:07 +000025986irix5* | irix6* | nonstopux*)
25987 case $host_os in
25988 nonstopux*) version_type=nonstopux ;;
25989 *)
25990 if test "$lt_cv_prog_gnu_ld" = yes; then
25991 version_type=linux
25992 else
25993 version_type=irix
25994 fi ;;
25995 esac
25996 need_lib_prefix=no
25997 need_version=no
25998 soname_spec='${libname}${release}${shared_ext}$major'
25999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
26000 case $host_os in
26001 irix5* | nonstopux*)
26002 libsuff= shlibsuff=
26003 ;;
26004 *)
26005 case $LD in # libtool.m4 will add one of these switches to LD
26006 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
26007 libsuff= shlibsuff= libmagic=32-bit;;
26008 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
26009 libsuff=32 shlibsuff=N32 libmagic=N32;;
26010 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
26011 libsuff=64 shlibsuff=64 libmagic=64-bit;;
26012 *) libsuff= shlibsuff= libmagic=never-match;;
26013 esac
26014 ;;
26015 esac
26016 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26017 shlibpath_overrides_runpath=no
26018 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26019 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26020 hardcode_into_libs=yes
26021 ;;
26022
26023# No shared lib support for Linux oldld, aout, or coff.
26024linux*oldld* | linux*aout* | linux*coff*)
26025 dynamic_linker=no
26026 ;;
26027
26028# This must be Linux ELF.
26029linux*)
26030 version_type=linux
26031 need_lib_prefix=no
26032 need_version=no
26033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26034 soname_spec='${libname}${release}${shared_ext}$major'
26035 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26036 shlibpath_var=LD_LIBRARY_PATH
26037 shlibpath_overrides_runpath=no
26038 # This implies no fast_install, which is unacceptable.
26039 # Some rework will be needed to allow for fast_install
26040 # before this can be enabled.
26041 hardcode_into_libs=yes
26042
Reid Spencer2706f8c2004-09-19 23:53:36 +000026043 # Append ld.so.conf contents to the search path
26044 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000026045 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 +000026046 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26047 fi
26048
John Criswell47fdd832003-07-14 16:52:07 +000026049 # We used to test for /lib/ld.so.1 and disable shared libraries on
26050 # powerpc, because MkLinux only supported shared libraries with the
26051 # GNU dynamic linker. Since this was broken with cross compilers,
26052 # most powerpc-linux boxes support dynamic linking these days and
26053 # people can always --disable-shared, the test was removed, and we
26054 # assume the GNU/Linux dynamic linker is in use.
26055 dynamic_linker='GNU/Linux ld.so'
26056 ;;
26057
Reid Spencer2706f8c2004-09-19 23:53:36 +000026058knetbsd*-gnu)
26059 version_type=linux
26060 need_lib_prefix=no
26061 need_version=no
26062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26063 soname_spec='${libname}${release}${shared_ext}$major'
26064 shlibpath_var=LD_LIBRARY_PATH
26065 shlibpath_overrides_runpath=no
26066 hardcode_into_libs=yes
26067 dynamic_linker='GNU ld.so'
26068 ;;
26069
John Criswell47fdd832003-07-14 16:52:07 +000026070netbsd*)
26071 version_type=sunos
26072 need_lib_prefix=no
26073 need_version=no
26074 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26077 dynamic_linker='NetBSD (a.out) ld.so'
26078 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000026079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000026080 soname_spec='${libname}${release}${shared_ext}$major'
26081 dynamic_linker='NetBSD ld.elf_so'
26082 fi
26083 shlibpath_var=LD_LIBRARY_PATH
26084 shlibpath_overrides_runpath=yes
26085 hardcode_into_libs=yes
26086 ;;
26087
26088newsos6)
26089 version_type=linux
26090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26091 shlibpath_var=LD_LIBRARY_PATH
26092 shlibpath_overrides_runpath=yes
26093 ;;
26094
Reid Spencer2706f8c2004-09-19 23:53:36 +000026095nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000026096 version_type=linux
26097 need_lib_prefix=no
26098 need_version=no
26099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26100 soname_spec='${libname}${release}${shared_ext}$major'
26101 shlibpath_var=LD_LIBRARY_PATH
26102 shlibpath_overrides_runpath=yes
26103 ;;
26104
26105openbsd*)
26106 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000026107 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000026108 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000026109 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26110 case $host_os in
26111 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26112 *) need_version=no ;;
26113 esac
John Criswell47fdd832003-07-14 16:52:07 +000026114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26115 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26116 shlibpath_var=LD_LIBRARY_PATH
26117 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26118 case $host_os in
26119 openbsd2.[89] | openbsd2.[89].*)
26120 shlibpath_overrides_runpath=no
26121 ;;
26122 *)
26123 shlibpath_overrides_runpath=yes
26124 ;;
26125 esac
26126 else
26127 shlibpath_overrides_runpath=yes
26128 fi
26129 ;;
26130
26131os2*)
26132 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000026133 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000026134 need_lib_prefix=no
26135 library_names_spec='$libname${shared_ext} $libname.a'
26136 dynamic_linker='OS/2 ld.exe'
26137 shlibpath_var=LIBPATH
26138 ;;
26139
26140osf3* | osf4* | osf5*)
26141 version_type=osf
26142 need_lib_prefix=no
26143 need_version=no
26144 soname_spec='${libname}${release}${shared_ext}$major'
26145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26146 shlibpath_var=LD_LIBRARY_PATH
26147 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26148 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26149 ;;
26150
John Criswell47fdd832003-07-14 16:52:07 +000026151solaris*)
26152 version_type=linux
26153 need_lib_prefix=no
26154 need_version=no
26155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26156 soname_spec='${libname}${release}${shared_ext}$major'
26157 shlibpath_var=LD_LIBRARY_PATH
26158 shlibpath_overrides_runpath=yes
26159 hardcode_into_libs=yes
26160 # ldd complains unless libraries are executable
26161 postinstall_cmds='chmod +x $lib'
26162 ;;
26163
26164sunos4*)
26165 version_type=sunos
26166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26167 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26168 shlibpath_var=LD_LIBRARY_PATH
26169 shlibpath_overrides_runpath=yes
26170 if test "$with_gnu_ld" = yes; then
26171 need_lib_prefix=no
26172 fi
26173 need_version=yes
26174 ;;
26175
Reid Spencera773bd52006-08-04 18:18:08 +000026176sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000026177 version_type=linux
26178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26179 soname_spec='${libname}${release}${shared_ext}$major'
26180 shlibpath_var=LD_LIBRARY_PATH
26181 case $host_vendor in
26182 sni)
26183 shlibpath_overrides_runpath=no
26184 need_lib_prefix=no
26185 export_dynamic_flag_spec='${wl}-Blargedynsym'
26186 runpath_var=LD_RUN_PATH
26187 ;;
26188 siemens)
26189 need_lib_prefix=no
26190 ;;
26191 motorola)
26192 need_lib_prefix=no
26193 need_version=no
26194 shlibpath_overrides_runpath=no
26195 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26196 ;;
26197 esac
26198 ;;
26199
26200sysv4*MP*)
26201 if test -d /usr/nec ;then
26202 version_type=linux
26203 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26204 soname_spec='$libname${shared_ext}.$major'
26205 shlibpath_var=LD_LIBRARY_PATH
26206 fi
26207 ;;
26208
Reid Spencera773bd52006-08-04 18:18:08 +000026209sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26210 version_type=freebsd-elf
26211 need_lib_prefix=no
26212 need_version=no
26213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26214 soname_spec='${libname}${release}${shared_ext}$major'
26215 shlibpath_var=LD_LIBRARY_PATH
26216 hardcode_into_libs=yes
26217 if test "$with_gnu_ld" = yes; then
26218 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26219 shlibpath_overrides_runpath=no
26220 else
26221 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26222 shlibpath_overrides_runpath=yes
26223 case $host_os in
26224 sco3.2v5*)
26225 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26226 ;;
26227 esac
26228 fi
26229 sys_lib_dlsearch_path_spec='/usr/lib'
26230 ;;
26231
John Criswell47fdd832003-07-14 16:52:07 +000026232uts4*)
26233 version_type=linux
26234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26235 soname_spec='${libname}${release}${shared_ext}$major'
26236 shlibpath_var=LD_LIBRARY_PATH
26237 ;;
26238
26239*)
26240 dynamic_linker=no
26241 ;;
26242esac
Reid Spencera773bd52006-08-04 18:18:08 +000026243{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26244echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000026245test "$dynamic_linker" = no && can_build_shared=no
26246
Reid Spencera773bd52006-08-04 18:18:08 +000026247variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26248if test "$GCC" = yes; then
26249 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26250fi
26251
26252{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26253echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026254hardcode_action_GCJ=
26255if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26256 test -n "$runpath_var_GCJ" || \
26257 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26258
26259 # We can hardcode non-existant directories.
26260 if test "$hardcode_direct_GCJ" != no &&
26261 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26262 # have to relink, otherwise we might link with an installed library
26263 # when we should be linking with a yet-to-be-installed one
26264 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26265 test "$hardcode_minus_L_GCJ" != no; then
26266 # Linking always hardcodes the temporary library directory.
26267 hardcode_action_GCJ=relink
26268 else
26269 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26270 hardcode_action_GCJ=immediate
26271 fi
26272else
26273 # We cannot hardcode anything, or else we can only hardcode existing
26274 # directories.
26275 hardcode_action_GCJ=unsupported
26276fi
Reid Spencera773bd52006-08-04 18:18:08 +000026277{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26278echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026279
26280if test "$hardcode_action_GCJ" = relink; then
26281 # Fast installation is not supported
26282 enable_fast_install=no
26283elif test "$shlibpath_overrides_runpath" = yes ||
26284 test "$enable_shared" = no; then
26285 # Fast installation is not necessary
26286 enable_fast_install=needless
26287fi
26288
John Criswell47fdd832003-07-14 16:52:07 +000026289
26290# The else clause should only fire when bootstrapping the
26291# libtool distribution, otherwise you forgot to ship ltmain.sh
26292# with your package, and you will get complaints that there are
26293# no rules to generate ltmain.sh.
26294if test -f "$ltmain"; then
26295 # See if we are running on zsh, and set the options which allow our commands through
26296 # without removal of \ escapes.
26297 if test -n "${ZSH_VERSION+set}" ; then
26298 setopt NO_GLOB_SUBST
26299 fi
26300 # Now quote all the things that may contain metacharacters while being
26301 # careful not to overquote the AC_SUBSTed values. We take copies of the
26302 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026303 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 +000026304 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026305 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26306 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26307 deplibs_check_method reload_flag reload_cmds need_locks \
26308 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26309 lt_cv_sys_global_symbol_to_c_name_address \
26310 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26311 old_postinstall_cmds old_postuninstall_cmds \
26312 compiler_GCJ \
26313 CC_GCJ \
26314 LD_GCJ \
26315 lt_prog_compiler_wl_GCJ \
26316 lt_prog_compiler_pic_GCJ \
26317 lt_prog_compiler_static_GCJ \
26318 lt_prog_compiler_no_builtin_flag_GCJ \
26319 export_dynamic_flag_spec_GCJ \
26320 thread_safe_flag_spec_GCJ \
26321 whole_archive_flag_spec_GCJ \
26322 enable_shared_with_static_runtimes_GCJ \
26323 old_archive_cmds_GCJ \
26324 old_archive_from_new_cmds_GCJ \
26325 predep_objects_GCJ \
26326 postdep_objects_GCJ \
26327 predeps_GCJ \
26328 postdeps_GCJ \
26329 compiler_lib_search_path_GCJ \
26330 archive_cmds_GCJ \
26331 archive_expsym_cmds_GCJ \
26332 postinstall_cmds_GCJ \
26333 postuninstall_cmds_GCJ \
26334 old_archive_from_expsyms_cmds_GCJ \
26335 allow_undefined_flag_GCJ \
26336 no_undefined_flag_GCJ \
26337 export_symbols_cmds_GCJ \
26338 hardcode_libdir_flag_spec_GCJ \
26339 hardcode_libdir_flag_spec_ld_GCJ \
26340 hardcode_libdir_separator_GCJ \
26341 hardcode_automatic_GCJ \
26342 module_cmds_GCJ \
26343 module_expsym_cmds_GCJ \
26344 lt_cv_prog_compiler_c_o_GCJ \
26345 exclude_expsyms_GCJ \
26346 include_expsyms_GCJ; do
26347
26348 case $var in
26349 old_archive_cmds_GCJ | \
26350 old_archive_from_new_cmds_GCJ | \
26351 archive_cmds_GCJ | \
26352 archive_expsym_cmds_GCJ | \
26353 module_cmds_GCJ | \
26354 module_expsym_cmds_GCJ | \
26355 old_archive_from_expsyms_cmds_GCJ | \
26356 export_symbols_cmds_GCJ | \
26357 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26358 postinstall_cmds | postuninstall_cmds | \
26359 old_postinstall_cmds | old_postuninstall_cmds | \
26360 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26361 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026362 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 +000026363 ;;
26364 *)
26365 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26366 ;;
26367 esac
26368 done
26369
26370 case $lt_echo in
26371 *'\$0 --fallback-echo"')
26372 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26373 ;;
26374 esac
26375
26376cfgfile="$ofile"
26377
26378 cat <<__EOF__ >> "$cfgfile"
26379# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26380
26381# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26382
26383# Shell to use when invoking shell scripts.
26384SHELL=$lt_SHELL
26385
26386# Whether or not to build shared libraries.
26387build_libtool_libs=$enable_shared
26388
26389# Whether or not to build static libraries.
26390build_old_libs=$enable_static
26391
26392# Whether or not to add -lc for building shared libraries.
26393build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26394
26395# Whether or not to disallow shared libs when runtime libs are static
26396allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26397
26398# Whether or not to optimize for fast installation.
26399fast_install=$enable_fast_install
26400
26401# The host system.
26402host_alias=$host_alias
26403host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026404host_os=$host_os
26405
26406# The build system.
26407build_alias=$build_alias
26408build=$build
26409build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026410
26411# An echo program that does not interpret backslashes.
26412echo=$lt_echo
26413
26414# The archiver.
26415AR=$lt_AR
26416AR_FLAGS=$lt_AR_FLAGS
26417
26418# A C compiler.
26419LTCC=$lt_LTCC
26420
Reid Spencera773bd52006-08-04 18:18:08 +000026421# LTCC compiler flags.
26422LTCFLAGS=$lt_LTCFLAGS
26423
John Criswell47fdd832003-07-14 16:52:07 +000026424# A language-specific compiler.
26425CC=$lt_compiler_GCJ
26426
26427# Is the compiler the GNU C compiler?
26428with_gcc=$GCC_GCJ
26429
26430# An ERE matcher.
26431EGREP=$lt_EGREP
26432
26433# The linker used to build libraries.
26434LD=$lt_LD_GCJ
26435
26436# Whether we need hard or soft links.
26437LN_S=$lt_LN_S
26438
26439# A BSD-compatible nm program.
26440NM=$lt_NM
26441
26442# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026443STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026444
26445# Used to examine libraries when file_magic_cmd begins "file"
26446MAGIC_CMD=$MAGIC_CMD
26447
26448# Used on cygwin: DLL creation program.
26449DLLTOOL="$DLLTOOL"
26450
26451# Used on cygwin: object dumper.
26452OBJDUMP="$OBJDUMP"
26453
26454# Used on cygwin: assembler.
26455AS="$AS"
26456
26457# The name of the directory that contains temporary libtool files.
26458objdir=$objdir
26459
26460# How to create reloadable object files.
26461reload_flag=$lt_reload_flag
26462reload_cmds=$lt_reload_cmds
26463
26464# How to pass a linker flag through the compiler.
26465wl=$lt_lt_prog_compiler_wl_GCJ
26466
26467# Object file suffix (normally "o").
26468objext="$ac_objext"
26469
26470# Old archive suffix (normally "a").
26471libext="$libext"
26472
26473# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026474shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026475
26476# Executable file suffix (normally "").
26477exeext="$exeext"
26478
26479# Additional compiler flags for building library objects.
26480pic_flag=$lt_lt_prog_compiler_pic_GCJ
26481pic_mode=$pic_mode
26482
26483# What is the maximum length of a command?
26484max_cmd_len=$lt_cv_sys_max_cmd_len
26485
26486# Does compiler simultaneously support -c and -o options?
26487compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26488
Reid Spencera773bd52006-08-04 18:18:08 +000026489# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026490need_locks=$lt_need_locks
26491
26492# Do we need the lib prefix for modules?
26493need_lib_prefix=$need_lib_prefix
26494
26495# Do we need a version for libraries?
26496need_version=$need_version
26497
26498# Whether dlopen is supported.
26499dlopen_support=$enable_dlopen
26500
26501# Whether dlopen of programs is supported.
26502dlopen_self=$enable_dlopen_self
26503
26504# Whether dlopen of statically linked programs is supported.
26505dlopen_self_static=$enable_dlopen_self_static
26506
26507# Compiler flag to prevent dynamic linking.
26508link_static_flag=$lt_lt_prog_compiler_static_GCJ
26509
26510# Compiler flag to turn off builtin functions.
26511no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26512
26513# Compiler flag to allow reflexive dlopens.
26514export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26515
26516# Compiler flag to generate shared objects directly from archives.
26517whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26518
26519# Compiler flag to generate thread-safe objects.
26520thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26521
26522# Library versioning type.
26523version_type=$version_type
26524
26525# Format of library name prefix.
26526libname_spec=$lt_libname_spec
26527
26528# List of archive names. First name is the real one, the rest are links.
26529# The last name is the one that the linker finds with -lNAME.
26530library_names_spec=$lt_library_names_spec
26531
26532# The coded name of the library, if different from the real name.
26533soname_spec=$lt_soname_spec
26534
26535# Commands used to build and install an old-style archive.
26536RANLIB=$lt_RANLIB
26537old_archive_cmds=$lt_old_archive_cmds_GCJ
26538old_postinstall_cmds=$lt_old_postinstall_cmds
26539old_postuninstall_cmds=$lt_old_postuninstall_cmds
26540
26541# Create an old-style archive from a shared archive.
26542old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26543
26544# Create a temporary old-style archive to link instead of a shared archive.
26545old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26546
26547# Commands used to build and install a shared archive.
26548archive_cmds=$lt_archive_cmds_GCJ
26549archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26550postinstall_cmds=$lt_postinstall_cmds
26551postuninstall_cmds=$lt_postuninstall_cmds
26552
26553# Commands used to build a loadable module (assumed same as above if empty)
26554module_cmds=$lt_module_cmds_GCJ
26555module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26556
26557# Commands to strip libraries.
26558old_striplib=$lt_old_striplib
26559striplib=$lt_striplib
26560
26561# Dependencies to place before the objects being linked to create a
26562# shared library.
26563predep_objects=$lt_predep_objects_GCJ
26564
26565# Dependencies to place after the objects being linked to create a
26566# shared library.
26567postdep_objects=$lt_postdep_objects_GCJ
26568
26569# Dependencies to place before the objects being linked to create a
26570# shared library.
26571predeps=$lt_predeps_GCJ
26572
26573# Dependencies to place after the objects being linked to create a
26574# shared library.
26575postdeps=$lt_postdeps_GCJ
26576
26577# The library search path used internally by the compiler when linking
26578# a shared library.
26579compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26580
26581# Method to check whether dependent libraries are shared objects.
26582deplibs_check_method=$lt_deplibs_check_method
26583
26584# Command to use when deplibs_check_method == file_magic.
26585file_magic_cmd=$lt_file_magic_cmd
26586
26587# Flag that allows shared libraries with undefined symbols to be built.
26588allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26589
26590# Flag that forces no undefined symbols.
26591no_undefined_flag=$lt_no_undefined_flag_GCJ
26592
26593# Commands used to finish a libtool library installation in a directory.
26594finish_cmds=$lt_finish_cmds
26595
26596# Same as above, but a single script fragment to be evaled but not shown.
26597finish_eval=$lt_finish_eval
26598
26599# Take the output of nm and produce a listing of raw symbols and C names.
26600global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26601
26602# Transform the output of nm in a proper C declaration
26603global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26604
26605# Transform the output of nm in a C name address pair
26606global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26607
26608# This is the shared library runtime path variable.
26609runpath_var=$runpath_var
26610
26611# This is the shared library path variable.
26612shlibpath_var=$shlibpath_var
26613
26614# Is shlibpath searched before the hard-coded library search path?
26615shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26616
26617# How to hardcode a shared library path into an executable.
26618hardcode_action=$hardcode_action_GCJ
26619
26620# Whether we should hardcode library paths into libraries.
26621hardcode_into_libs=$hardcode_into_libs
26622
26623# Flag to hardcode \$libdir into a binary during linking.
26624# This must work even if \$libdir does not exist.
26625hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26626
26627# If ld is used when linking, flag to hardcode \$libdir into
26628# a binary during linking. This must work even if \$libdir does
26629# not exist.
26630hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26631
26632# Whether we need a single -rpath flag with a separated argument.
26633hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26634
26635# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26636# resulting binary.
26637hardcode_direct=$hardcode_direct_GCJ
26638
26639# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26640# resulting binary.
26641hardcode_minus_L=$hardcode_minus_L_GCJ
26642
26643# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26644# the resulting binary.
26645hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26646
26647# Set to yes if building a shared library automatically hardcodes DIR into the library
26648# and all subsequent libraries and executables linked against it.
26649hardcode_automatic=$hardcode_automatic_GCJ
26650
26651# Variables whose values should be saved in libtool wrapper scripts and
26652# restored at relink time.
26653variables_saved_for_relink="$variables_saved_for_relink"
26654
26655# Whether libtool must link a program against all its dependency libraries.
26656link_all_deplibs=$link_all_deplibs_GCJ
26657
26658# Compile-time system search path for libraries
26659sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26660
26661# Run-time system search path for libraries
26662sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26663
26664# Fix the shell variable \$srcfile for the compiler.
26665fix_srcfile_path="$fix_srcfile_path_GCJ"
26666
26667# Set to yes if exported symbols are required.
26668always_export_symbols=$always_export_symbols_GCJ
26669
26670# The commands to list exported symbols.
26671export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26672
26673# The commands to extract the exported symbol list from a shared archive.
26674extract_expsyms_cmds=$lt_extract_expsyms_cmds
26675
26676# Symbols that should not be listed in the preloaded symbols.
26677exclude_expsyms=$lt_exclude_expsyms_GCJ
26678
26679# Symbols that must always be exported.
26680include_expsyms=$lt_include_expsyms_GCJ
26681
26682# ### END LIBTOOL TAG CONFIG: $tagname
26683
26684__EOF__
26685
26686
26687else
26688 # If there is no Makefile yet, we rely on a make rule to execute
26689 # `config.status --recheck' to rerun these tests and create the
26690 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026691 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26692 if test -f "$ltmain_in"; then
26693 test -f Makefile && make "$ltmain"
26694 fi
John Criswell47fdd832003-07-14 16:52:07 +000026695fi
26696
26697
26698ac_ext=c
26699ac_cpp='$CPP $CPPFLAGS'
26700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26702ac_compiler_gnu=$ac_cv_c_compiler_gnu
26703
26704CC="$lt_save_CC"
26705
26706 else
26707 tagname=""
26708 fi
26709 ;;
26710
26711 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026712 ac_ext=c
26713ac_cpp='$CPP $CPPFLAGS'
26714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26716ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026717
26718
26719# Source file extension for RC test sources.
26720ac_ext=rc
26721
26722# Object file extension for compiled RC test sources.
26723objext=o
26724objext_RC=$objext
26725
26726# Code to be used in simple compile tests
26727lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26728
26729# Code to be used in simple link tests
26730lt_simple_link_test_code="$lt_simple_compile_test_code"
26731
26732# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26733
26734# If no C compiler was specified, use CC.
26735LTCC=${LTCC-"$CC"}
26736
Reid Spencera773bd52006-08-04 18:18:08 +000026737# If no C compiler flags were specified, use CFLAGS.
26738LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26739
John Criswell47fdd832003-07-14 16:52:07 +000026740# Allow CC to be a program name with arguments.
26741compiler=$CC
26742
26743
Reid Spencera773bd52006-08-04 18:18:08 +000026744# save warnings/boilerplate of simple test code
26745ac_outfile=conftest.$ac_objext
26746printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26747eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26748_lt_compiler_boilerplate=`cat conftest.err`
26749$rm conftest*
26750
26751ac_outfile=conftest.$ac_objext
26752printf "$lt_simple_link_test_code" >conftest.$ac_ext
26753eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26754_lt_linker_boilerplate=`cat conftest.err`
26755$rm conftest*
26756
26757
John Criswell47fdd832003-07-14 16:52:07 +000026758# Allow CC to be a program name with arguments.
26759lt_save_CC="$CC"
26760CC=${RC-"windres"}
26761compiler=$CC
26762compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026763for cc_temp in $compiler""; do
26764 case $cc_temp in
26765 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26766 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26767 \-*) ;;
26768 *) break;;
26769 esac
26770done
26771cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26772
John Criswell47fdd832003-07-14 16:52:07 +000026773lt_cv_prog_compiler_c_o_RC=yes
26774
26775# The else clause should only fire when bootstrapping the
26776# libtool distribution, otherwise you forgot to ship ltmain.sh
26777# with your package, and you will get complaints that there are
26778# no rules to generate ltmain.sh.
26779if test -f "$ltmain"; then
26780 # See if we are running on zsh, and set the options which allow our commands through
26781 # without removal of \ escapes.
26782 if test -n "${ZSH_VERSION+set}" ; then
26783 setopt NO_GLOB_SUBST
26784 fi
26785 # Now quote all the things that may contain metacharacters while being
26786 # careful not to overquote the AC_SUBSTed values. We take copies of the
26787 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026788 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 +000026789 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026790 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26791 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26792 deplibs_check_method reload_flag reload_cmds need_locks \
26793 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26794 lt_cv_sys_global_symbol_to_c_name_address \
26795 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26796 old_postinstall_cmds old_postuninstall_cmds \
26797 compiler_RC \
26798 CC_RC \
26799 LD_RC \
26800 lt_prog_compiler_wl_RC \
26801 lt_prog_compiler_pic_RC \
26802 lt_prog_compiler_static_RC \
26803 lt_prog_compiler_no_builtin_flag_RC \
26804 export_dynamic_flag_spec_RC \
26805 thread_safe_flag_spec_RC \
26806 whole_archive_flag_spec_RC \
26807 enable_shared_with_static_runtimes_RC \
26808 old_archive_cmds_RC \
26809 old_archive_from_new_cmds_RC \
26810 predep_objects_RC \
26811 postdep_objects_RC \
26812 predeps_RC \
26813 postdeps_RC \
26814 compiler_lib_search_path_RC \
26815 archive_cmds_RC \
26816 archive_expsym_cmds_RC \
26817 postinstall_cmds_RC \
26818 postuninstall_cmds_RC \
26819 old_archive_from_expsyms_cmds_RC \
26820 allow_undefined_flag_RC \
26821 no_undefined_flag_RC \
26822 export_symbols_cmds_RC \
26823 hardcode_libdir_flag_spec_RC \
26824 hardcode_libdir_flag_spec_ld_RC \
26825 hardcode_libdir_separator_RC \
26826 hardcode_automatic_RC \
26827 module_cmds_RC \
26828 module_expsym_cmds_RC \
26829 lt_cv_prog_compiler_c_o_RC \
26830 exclude_expsyms_RC \
26831 include_expsyms_RC; do
26832
26833 case $var in
26834 old_archive_cmds_RC | \
26835 old_archive_from_new_cmds_RC | \
26836 archive_cmds_RC | \
26837 archive_expsym_cmds_RC | \
26838 module_cmds_RC | \
26839 module_expsym_cmds_RC | \
26840 old_archive_from_expsyms_cmds_RC | \
26841 export_symbols_cmds_RC | \
26842 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26843 postinstall_cmds | postuninstall_cmds | \
26844 old_postinstall_cmds | old_postuninstall_cmds | \
26845 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26846 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026847 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 +000026848 ;;
26849 *)
26850 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26851 ;;
26852 esac
26853 done
26854
26855 case $lt_echo in
26856 *'\$0 --fallback-echo"')
26857 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26858 ;;
26859 esac
26860
26861cfgfile="$ofile"
26862
26863 cat <<__EOF__ >> "$cfgfile"
26864# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26865
26866# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26867
26868# Shell to use when invoking shell scripts.
26869SHELL=$lt_SHELL
26870
26871# Whether or not to build shared libraries.
26872build_libtool_libs=$enable_shared
26873
26874# Whether or not to build static libraries.
26875build_old_libs=$enable_static
26876
26877# Whether or not to add -lc for building shared libraries.
26878build_libtool_need_lc=$archive_cmds_need_lc_RC
26879
26880# Whether or not to disallow shared libs when runtime libs are static
26881allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26882
26883# Whether or not to optimize for fast installation.
26884fast_install=$enable_fast_install
26885
26886# The host system.
26887host_alias=$host_alias
26888host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026889host_os=$host_os
26890
26891# The build system.
26892build_alias=$build_alias
26893build=$build
26894build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026895
26896# An echo program that does not interpret backslashes.
26897echo=$lt_echo
26898
26899# The archiver.
26900AR=$lt_AR
26901AR_FLAGS=$lt_AR_FLAGS
26902
26903# A C compiler.
26904LTCC=$lt_LTCC
26905
Reid Spencera773bd52006-08-04 18:18:08 +000026906# LTCC compiler flags.
26907LTCFLAGS=$lt_LTCFLAGS
26908
John Criswell47fdd832003-07-14 16:52:07 +000026909# A language-specific compiler.
26910CC=$lt_compiler_RC
26911
26912# Is the compiler the GNU C compiler?
26913with_gcc=$GCC_RC
26914
26915# An ERE matcher.
26916EGREP=$lt_EGREP
26917
26918# The linker used to build libraries.
26919LD=$lt_LD_RC
26920
26921# Whether we need hard or soft links.
26922LN_S=$lt_LN_S
26923
26924# A BSD-compatible nm program.
26925NM=$lt_NM
26926
26927# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026928STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026929
26930# Used to examine libraries when file_magic_cmd begins "file"
26931MAGIC_CMD=$MAGIC_CMD
26932
26933# Used on cygwin: DLL creation program.
26934DLLTOOL="$DLLTOOL"
26935
26936# Used on cygwin: object dumper.
26937OBJDUMP="$OBJDUMP"
26938
26939# Used on cygwin: assembler.
26940AS="$AS"
26941
26942# The name of the directory that contains temporary libtool files.
26943objdir=$objdir
26944
26945# How to create reloadable object files.
26946reload_flag=$lt_reload_flag
26947reload_cmds=$lt_reload_cmds
26948
26949# How to pass a linker flag through the compiler.
26950wl=$lt_lt_prog_compiler_wl_RC
26951
26952# Object file suffix (normally "o").
26953objext="$ac_objext"
26954
26955# Old archive suffix (normally "a").
26956libext="$libext"
26957
26958# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026959shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026960
26961# Executable file suffix (normally "").
26962exeext="$exeext"
26963
26964# Additional compiler flags for building library objects.
26965pic_flag=$lt_lt_prog_compiler_pic_RC
26966pic_mode=$pic_mode
26967
26968# What is the maximum length of a command?
26969max_cmd_len=$lt_cv_sys_max_cmd_len
26970
26971# Does compiler simultaneously support -c and -o options?
26972compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26973
Reid Spencera773bd52006-08-04 18:18:08 +000026974# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026975need_locks=$lt_need_locks
26976
26977# Do we need the lib prefix for modules?
26978need_lib_prefix=$need_lib_prefix
26979
26980# Do we need a version for libraries?
26981need_version=$need_version
26982
26983# Whether dlopen is supported.
26984dlopen_support=$enable_dlopen
26985
26986# Whether dlopen of programs is supported.
26987dlopen_self=$enable_dlopen_self
26988
26989# Whether dlopen of statically linked programs is supported.
26990dlopen_self_static=$enable_dlopen_self_static
26991
26992# Compiler flag to prevent dynamic linking.
26993link_static_flag=$lt_lt_prog_compiler_static_RC
26994
26995# Compiler flag to turn off builtin functions.
26996no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26997
26998# Compiler flag to allow reflexive dlopens.
26999export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
27000
27001# Compiler flag to generate shared objects directly from archives.
27002whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
27003
27004# Compiler flag to generate thread-safe objects.
27005thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
27006
27007# Library versioning type.
27008version_type=$version_type
27009
27010# Format of library name prefix.
27011libname_spec=$lt_libname_spec
27012
27013# List of archive names. First name is the real one, the rest are links.
27014# The last name is the one that the linker finds with -lNAME.
27015library_names_spec=$lt_library_names_spec
27016
27017# The coded name of the library, if different from the real name.
27018soname_spec=$lt_soname_spec
27019
27020# Commands used to build and install an old-style archive.
27021RANLIB=$lt_RANLIB
27022old_archive_cmds=$lt_old_archive_cmds_RC
27023old_postinstall_cmds=$lt_old_postinstall_cmds
27024old_postuninstall_cmds=$lt_old_postuninstall_cmds
27025
27026# Create an old-style archive from a shared archive.
27027old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27028
27029# Create a temporary old-style archive to link instead of a shared archive.
27030old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27031
27032# Commands used to build and install a shared archive.
27033archive_cmds=$lt_archive_cmds_RC
27034archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27035postinstall_cmds=$lt_postinstall_cmds
27036postuninstall_cmds=$lt_postuninstall_cmds
27037
27038# Commands used to build a loadable module (assumed same as above if empty)
27039module_cmds=$lt_module_cmds_RC
27040module_expsym_cmds=$lt_module_expsym_cmds_RC
27041
27042# Commands to strip libraries.
27043old_striplib=$lt_old_striplib
27044striplib=$lt_striplib
27045
27046# Dependencies to place before the objects being linked to create a
27047# shared library.
27048predep_objects=$lt_predep_objects_RC
27049
27050# Dependencies to place after the objects being linked to create a
27051# shared library.
27052postdep_objects=$lt_postdep_objects_RC
27053
27054# Dependencies to place before the objects being linked to create a
27055# shared library.
27056predeps=$lt_predeps_RC
27057
27058# Dependencies to place after the objects being linked to create a
27059# shared library.
27060postdeps=$lt_postdeps_RC
27061
27062# The library search path used internally by the compiler when linking
27063# a shared library.
27064compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27065
27066# Method to check whether dependent libraries are shared objects.
27067deplibs_check_method=$lt_deplibs_check_method
27068
27069# Command to use when deplibs_check_method == file_magic.
27070file_magic_cmd=$lt_file_magic_cmd
27071
27072# Flag that allows shared libraries with undefined symbols to be built.
27073allow_undefined_flag=$lt_allow_undefined_flag_RC
27074
27075# Flag that forces no undefined symbols.
27076no_undefined_flag=$lt_no_undefined_flag_RC
27077
27078# Commands used to finish a libtool library installation in a directory.
27079finish_cmds=$lt_finish_cmds
27080
27081# Same as above, but a single script fragment to be evaled but not shown.
27082finish_eval=$lt_finish_eval
27083
27084# Take the output of nm and produce a listing of raw symbols and C names.
27085global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27086
27087# Transform the output of nm in a proper C declaration
27088global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27089
27090# Transform the output of nm in a C name address pair
27091global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27092
27093# This is the shared library runtime path variable.
27094runpath_var=$runpath_var
27095
27096# This is the shared library path variable.
27097shlibpath_var=$shlibpath_var
27098
27099# Is shlibpath searched before the hard-coded library search path?
27100shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27101
27102# How to hardcode a shared library path into an executable.
27103hardcode_action=$hardcode_action_RC
27104
27105# Whether we should hardcode library paths into libraries.
27106hardcode_into_libs=$hardcode_into_libs
27107
27108# Flag to hardcode \$libdir into a binary during linking.
27109# This must work even if \$libdir does not exist.
27110hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27111
27112# If ld is used when linking, flag to hardcode \$libdir into
27113# a binary during linking. This must work even if \$libdir does
27114# not exist.
27115hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27116
27117# Whether we need a single -rpath flag with a separated argument.
27118hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27119
27120# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27121# resulting binary.
27122hardcode_direct=$hardcode_direct_RC
27123
27124# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27125# resulting binary.
27126hardcode_minus_L=$hardcode_minus_L_RC
27127
27128# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27129# the resulting binary.
27130hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27131
27132# Set to yes if building a shared library automatically hardcodes DIR into the library
27133# and all subsequent libraries and executables linked against it.
27134hardcode_automatic=$hardcode_automatic_RC
27135
27136# Variables whose values should be saved in libtool wrapper scripts and
27137# restored at relink time.
27138variables_saved_for_relink="$variables_saved_for_relink"
27139
27140# Whether libtool must link a program against all its dependency libraries.
27141link_all_deplibs=$link_all_deplibs_RC
27142
27143# Compile-time system search path for libraries
27144sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27145
27146# Run-time system search path for libraries
27147sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27148
27149# Fix the shell variable \$srcfile for the compiler.
27150fix_srcfile_path="$fix_srcfile_path_RC"
27151
27152# Set to yes if exported symbols are required.
27153always_export_symbols=$always_export_symbols_RC
27154
27155# The commands to list exported symbols.
27156export_symbols_cmds=$lt_export_symbols_cmds_RC
27157
27158# The commands to extract the exported symbol list from a shared archive.
27159extract_expsyms_cmds=$lt_extract_expsyms_cmds
27160
27161# Symbols that should not be listed in the preloaded symbols.
27162exclude_expsyms=$lt_exclude_expsyms_RC
27163
27164# Symbols that must always be exported.
27165include_expsyms=$lt_include_expsyms_RC
27166
27167# ### END LIBTOOL TAG CONFIG: $tagname
27168
27169__EOF__
27170
27171
27172else
27173 # If there is no Makefile yet, we rely on a make rule to execute
27174 # `config.status --recheck' to rerun these tests and create the
27175 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027176 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27177 if test -f "$ltmain_in"; then
27178 test -f Makefile && make "$ltmain"
27179 fi
John Criswell47fdd832003-07-14 16:52:07 +000027180fi
27181
27182
27183ac_ext=c
27184ac_cpp='$CPP $CPPFLAGS'
27185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27187ac_compiler_gnu=$ac_cv_c_compiler_gnu
27188
27189CC="$lt_save_CC"
27190
27191 ;;
27192
27193 *)
27194 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27195echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27196 { (exit 1); exit 1; }; }
27197 ;;
27198 esac
27199
27200 # Append the new tag name to the list of available tags.
27201 if test -n "$tagname" ; then
27202 available_tags="$available_tags $tagname"
27203 fi
27204 fi
27205 done
27206 IFS="$lt_save_ifs"
27207
27208 # Now substitute the updated list of available tags.
27209 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27210 mv "${ofile}T" "$ofile"
27211 chmod +x "$ofile"
27212 else
27213 rm -f "${ofile}T"
27214 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27215echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27216 { (exit 1); exit 1; }; }
27217 fi
27218fi
John Criswell7a73b802003-06-30 21:59:07 +000027219
27220
27221
27222# This can be used to rebuild libtool when needed
27223LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27224
27225# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027226LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000027227
27228# Prevent multiple expansion
27229
27230
27231
John Criswell47fdd832003-07-14 16:52:07 +000027232
27233
27234
27235
27236
27237
27238
27239
27240
27241
27242
27243
27244
27245
27246
27247
27248
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027249
Reid Spencer582a23c2004-12-29 07:07:57 +000027250if test "$lt_cv_dlopen_self" = "yes" ; then
27251
27252cat >>confdefs.h <<\_ACEOF
27253#define CAN_DLOPEN_SELF 1
27254_ACEOF
27255
27256fi
27257
Douglas Gregor01746742009-05-11 18:05:52 +000027258
Reid Spencer7931a782004-12-27 06:15:02 +000027259if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000027260 LLVMGCC="llvm-gcc${EXEEXT}"
27261 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027262 LLVMGCCCOMMAND="$LLVMGCC"
27263 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027264 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27265
27266 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27267
Reid Spencerc84492c2005-06-02 22:34:49 +000027268 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27269set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027270{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027272if test "${ac_cv_path_LLVMGCC+set}" = set; then
27273 echo $ECHO_N "(cached) $ECHO_C" >&6
27274else
27275 case $LLVMGCC in
27276 [\\/]* | ?:[\\/]*)
27277 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27278 ;;
27279 *)
27280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27281for as_dir in $PATH
27282do
27283 IFS=$as_save_IFS
27284 test -z "$as_dir" && as_dir=.
27285 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000027286 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 +000027287 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27289 break 2
27290 fi
27291done
27292done
Reid Spencera773bd52006-08-04 18:18:08 +000027293IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027294
Reid Spencer59473af2004-12-25 07:31:29 +000027295 ;;
27296esac
27297fi
27298LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000027299if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027300 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27301echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027302else
Reid Spencera773bd52006-08-04 18:18:08 +000027303 { echo "$as_me:$LINENO: result: no" >&5
27304echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027305fi
27306
Reid Spencera773bd52006-08-04 18:18:08 +000027307
Reid Spencerc84492c2005-06-02 22:34:49 +000027308 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27309set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027310{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027312if test "${ac_cv_path_LLVMGXX+set}" = set; then
27313 echo $ECHO_N "(cached) $ECHO_C" >&6
27314else
27315 case $LLVMGXX in
27316 [\\/]* | ?:[\\/]*)
27317 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27318 ;;
27319 *)
27320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27321for as_dir in $PATH
27322do
27323 IFS=$as_save_IFS
27324 test -z "$as_dir" && as_dir=.
27325 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000027326 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 +000027327 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27329 break 2
27330 fi
27331done
27332done
Reid Spencera773bd52006-08-04 18:18:08 +000027333IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027334
Reid Spencer59473af2004-12-25 07:31:29 +000027335 ;;
27336esac
27337fi
27338LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000027339if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027340 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27341echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027342else
Reid Spencera773bd52006-08-04 18:18:08 +000027343 { echo "$as_me:$LINENO: result: no" >&5
27344echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027345fi
27346
Reid Spencera773bd52006-08-04 18:18:08 +000027347
Reid Spencer59473af2004-12-25 07:31:29 +000027348else
Devang Patel5d28b882007-12-04 22:54:47 +000027349 if test -z "$LLVMGCC"; then
27350 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027351 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000027352 fi
27353 if test -z "$LLVMGXX"; then
27354 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027355 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000027356 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027357
Reid Spencer59473af2004-12-25 07:31:29 +000027358 LLVMGCC=$LLVMGCC
27359
27360 LLVMGXX=$LLVMGXX
27361
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027362 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27363
27364 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27365
Reid Spencer59473af2004-12-25 07:31:29 +000027366fi
27367
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027368
Reid Spencera773bd52006-08-04 18:18:08 +000027369{ echo "$as_me:$LINENO: checking tool compatibility" >&5
27370echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027371
Reid Spencer86901802004-12-08 23:07:27 +000027372ICC=no
27373IXX=no
27374case $CC in
27375 icc*|icpc*)
27376 ICC=yes
27377 IXX=yes
27378 ;;
27379 *)
27380 ;;
27381esac
27382
Duraid Madina937c60a2006-02-15 07:57:42 +000027383if test "$GCC" != "yes" && test "$ICC" != "yes"
27384then
27385 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27386echo "$as_me: error: gcc|icc required but not found" >&2;}
27387 { (exit 1); exit 1; }; }
27388fi
27389
27390if test "$GXX" != "yes" && test "$IXX" != "yes"
27391then
27392 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27393echo "$as_me: error: g++|icc required but not found" >&2;}
27394 { (exit 1); exit 1; }; }
27395fi
27396
Reid Spencer86901802004-12-08 23:07:27 +000027397if test "$GCC" = "yes"
27398then
Chris Lattner399c7c72008-02-05 19:43:53 +000027399 cat >conftest.$ac_ext <<_ACEOF
27400#if !defined(__GNUC__) || __GNUC__ < 3
27401#error Unsupported GCC version
27402#endif
27403
27404_ACEOF
27405rm -f conftest.$ac_objext
27406if { (ac_try="$ac_compile"
27407case "(($ac_try" in
27408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27409 *) ac_try_echo=$ac_try;;
27410esac
27411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27412 (eval "$ac_compile") 2>conftest.er1
27413 ac_status=$?
27414 grep -v '^ *+' conftest.er1 >conftest.err
27415 rm -f conftest.er1
27416 cat conftest.err >&5
27417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027418 (exit $ac_status); } &&
27419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27420 { (case "(($ac_try" in
27421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27422 *) ac_try_echo=$ac_try;;
27423esac
27424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27425 (eval "$ac_try") 2>&5
27426 ac_status=$?
27427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27428 (exit $ac_status); }; } &&
27429 { ac_try='test -s conftest.$ac_objext'
27430 { (case "(($ac_try" in
27431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27432 *) ac_try_echo=$ac_try;;
27433esac
27434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27435 (eval "$ac_try") 2>&5
27436 ac_status=$?
27437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27438 (exit $ac_status); }; }; then
Chris Lattner399c7c72008-02-05 19:43:53 +000027439 :
27440else
27441 echo "$as_me: failed program was:" >&5
27442sed 's/^/| /' conftest.$ac_ext >&5
27443
27444 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027445echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27446 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027447fi
27448
27449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027450fi
27451
27452if test -z "$llvm_cv_gnu_make_command"
27453then
27454 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27455echo "$as_me: error: GNU Make required but not found" >&2;}
27456 { (exit 1); exit 1; }; }
27457fi
27458
Reid Spencera773bd52006-08-04 18:18:08 +000027459{ echo "$as_me:$LINENO: result: ok" >&5
27460echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027461
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000027462
27463
Reid Spencera773bd52006-08-04 18:18:08 +000027464{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27465echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027466if test "${ac_cv_lib_m_sin+set}" = set; then
27467 echo $ECHO_N "(cached) $ECHO_C" >&6
27468else
27469 ac_check_lib_save_LIBS=$LIBS
27470LIBS="-lm $LIBS"
27471cat >conftest.$ac_ext <<_ACEOF
27472/* confdefs.h. */
27473_ACEOF
27474cat confdefs.h >>conftest.$ac_ext
27475cat >>conftest.$ac_ext <<_ACEOF
27476/* end confdefs.h. */
27477
Reid Spencera773bd52006-08-04 18:18:08 +000027478/* Override any GCC internal prototype to avoid an error.
27479 Use char because int might match the return type of a GCC
27480 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027481#ifdef __cplusplus
27482extern "C"
27483#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027484char sin ();
27485int
27486main ()
27487{
Reid Spencera773bd52006-08-04 18:18:08 +000027488return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027489 ;
27490 return 0;
27491}
27492_ACEOF
27493rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027494if { (ac_try="$ac_link"
27495case "(($ac_try" in
27496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27497 *) ac_try_echo=$ac_try;;
27498esac
27499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27500 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027501 ac_status=$?
27502 grep -v '^ *+' conftest.er1 >conftest.err
27503 rm -f conftest.er1
27504 cat conftest.err >&5
27505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027506 (exit $ac_status); } &&
27507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27508 { (case "(($ac_try" in
27509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27510 *) ac_try_echo=$ac_try;;
27511esac
27512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27513 (eval "$ac_try") 2>&5
27514 ac_status=$?
27515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27516 (exit $ac_status); }; } &&
27517 { ac_try='test -s conftest$ac_exeext'
27518 { (case "(($ac_try" in
27519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27520 *) ac_try_echo=$ac_try;;
27521esac
27522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27523 (eval "$ac_try") 2>&5
27524 ac_status=$?
27525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27526 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027527 ac_cv_lib_m_sin=yes
27528else
27529 echo "$as_me: failed program was:" >&5
27530sed 's/^/| /' conftest.$ac_ext >&5
27531
Reid Spencera773bd52006-08-04 18:18:08 +000027532 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027533fi
Reid Spencera773bd52006-08-04 18:18:08 +000027534
Bill Wendlingebcceee2009-04-18 11:20:33 +000027535rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027536 conftest$ac_exeext conftest.$ac_ext
27537LIBS=$ac_check_lib_save_LIBS
27538fi
Reid Spencera773bd52006-08-04 18:18:08 +000027539{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27540echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027541if test $ac_cv_lib_m_sin = yes; then
27542 cat >>confdefs.h <<_ACEOF
27543#define HAVE_LIBM 1
27544_ACEOF
27545
27546 LIBS="-lm $LIBS"
27547
27548fi
27549
Jeff Cohen28783c32007-01-12 18:22:38 +000027550if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027551
Reid Spencera773bd52006-08-04 18:18:08 +000027552{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27553echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027554if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027555 echo $ECHO_N "(cached) $ECHO_C" >&6
27556else
27557 ac_check_lib_save_LIBS=$LIBS
27558LIBS="-limagehlp $LIBS"
27559cat >conftest.$ac_ext <<_ACEOF
27560/* confdefs.h. */
27561_ACEOF
27562cat confdefs.h >>conftest.$ac_ext
27563cat >>conftest.$ac_ext <<_ACEOF
27564/* end confdefs.h. */
27565
Reid Spencer48fdf912006-06-01 19:03:21 +000027566
Reid Spencer484fc8e2006-06-01 16:55:59 +000027567int
27568main ()
27569{
Reid Spencera773bd52006-08-04 18:18:08 +000027570return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027571 ;
27572 return 0;
27573}
27574_ACEOF
27575rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027576if { (ac_try="$ac_link"
27577case "(($ac_try" in
27578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27579 *) ac_try_echo=$ac_try;;
27580esac
27581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27582 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027583 ac_status=$?
27584 grep -v '^ *+' conftest.er1 >conftest.err
27585 rm -f conftest.er1
27586 cat conftest.err >&5
27587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027588 (exit $ac_status); } &&
27589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27590 { (case "(($ac_try" in
27591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27592 *) ac_try_echo=$ac_try;;
27593esac
27594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27595 (eval "$ac_try") 2>&5
27596 ac_status=$?
27597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27598 (exit $ac_status); }; } &&
27599 { ac_try='test -s conftest$ac_exeext'
27600 { (case "(($ac_try" in
27601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27602 *) ac_try_echo=$ac_try;;
27603esac
27604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27605 (eval "$ac_try") 2>&5
27606 ac_status=$?
27607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27608 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027609 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027610else
27611 echo "$as_me: failed program was:" >&5
27612sed 's/^/| /' conftest.$ac_ext >&5
27613
Reid Spencera773bd52006-08-04 18:18:08 +000027614 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027615fi
Reid Spencera773bd52006-08-04 18:18:08 +000027616
Bill Wendlingebcceee2009-04-18 11:20:33 +000027617rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027618 conftest$ac_exeext conftest.$ac_ext
27619LIBS=$ac_check_lib_save_LIBS
27620fi
Reid Spencera773bd52006-08-04 18:18:08 +000027621{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27622echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027623if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027624 cat >>confdefs.h <<_ACEOF
27625#define HAVE_LIBIMAGEHLP 1
27626_ACEOF
27627
27628 LIBS="-limagehlp $LIBS"
27629
27630fi
27631
27632
Reid Spencera773bd52006-08-04 18:18:08 +000027633{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27634echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027635if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027636 echo $ECHO_N "(cached) $ECHO_C" >&6
27637else
27638 ac_check_lib_save_LIBS=$LIBS
27639LIBS="-lpsapi $LIBS"
27640cat >conftest.$ac_ext <<_ACEOF
27641/* confdefs.h. */
27642_ACEOF
27643cat confdefs.h >>conftest.$ac_ext
27644cat >>conftest.$ac_ext <<_ACEOF
27645/* end confdefs.h. */
27646
Reid Spencer48fdf912006-06-01 19:03:21 +000027647
Reid Spencer484fc8e2006-06-01 16:55:59 +000027648int
27649main ()
27650{
Reid Spencera773bd52006-08-04 18:18:08 +000027651return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027652 ;
27653 return 0;
27654}
27655_ACEOF
27656rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027657if { (ac_try="$ac_link"
27658case "(($ac_try" in
27659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27660 *) ac_try_echo=$ac_try;;
27661esac
27662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27663 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027664 ac_status=$?
27665 grep -v '^ *+' conftest.er1 >conftest.err
27666 rm -f conftest.er1
27667 cat conftest.err >&5
27668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027669 (exit $ac_status); } &&
27670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27671 { (case "(($ac_try" in
27672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27673 *) ac_try_echo=$ac_try;;
27674esac
27675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27676 (eval "$ac_try") 2>&5
27677 ac_status=$?
27678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27679 (exit $ac_status); }; } &&
27680 { ac_try='test -s conftest$ac_exeext'
27681 { (case "(($ac_try" in
27682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27683 *) ac_try_echo=$ac_try;;
27684esac
27685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27686 (eval "$ac_try") 2>&5
27687 ac_status=$?
27688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27689 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027690 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027691else
27692 echo "$as_me: failed program was:" >&5
27693sed 's/^/| /' conftest.$ac_ext >&5
27694
Reid Spencera773bd52006-08-04 18:18:08 +000027695 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027696fi
Reid Spencera773bd52006-08-04 18:18:08 +000027697
Bill Wendlingebcceee2009-04-18 11:20:33 +000027698rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027699 conftest$ac_exeext conftest.$ac_ext
27700LIBS=$ac_check_lib_save_LIBS
27701fi
Reid Spencera773bd52006-08-04 18:18:08 +000027702{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27703echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027704if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027705 cat >>confdefs.h <<_ACEOF
27706#define HAVE_LIBPSAPI 1
27707_ACEOF
27708
27709 LIBS="-lpsapi $LIBS"
27710
27711fi
27712
27713fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027714
Reid Spencera773bd52006-08-04 18:18:08 +000027715{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27716echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027717if test "${ac_cv_search_dlopen+set}" = set; then
27718 echo $ECHO_N "(cached) $ECHO_C" >&6
27719else
27720 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027721cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027722/* confdefs.h. */
27723_ACEOF
27724cat confdefs.h >>conftest.$ac_ext
27725cat >>conftest.$ac_ext <<_ACEOF
27726/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027727
Reid Spencera773bd52006-08-04 18:18:08 +000027728/* Override any GCC internal prototype to avoid an error.
27729 Use char because int might match the return type of a GCC
27730 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027731#ifdef __cplusplus
27732extern "C"
27733#endif
John Criswell7a73b802003-06-30 21:59:07 +000027734char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027735int
27736main ()
27737{
Reid Spencera773bd52006-08-04 18:18:08 +000027738return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027739 ;
27740 return 0;
27741}
27742_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027743for ac_lib in '' dl; do
27744 if test -z "$ac_lib"; then
27745 ac_res="none required"
27746 else
27747 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027748 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027749 fi
27750 rm -f conftest.$ac_objext conftest$ac_exeext
27751if { (ac_try="$ac_link"
27752case "(($ac_try" in
27753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27754 *) ac_try_echo=$ac_try;;
27755esac
27756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27757 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027758 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027759 grep -v '^ *+' conftest.er1 >conftest.err
27760 rm -f conftest.er1
27761 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027763 (exit $ac_status); } &&
27764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27765 { (case "(($ac_try" in
27766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27767 *) ac_try_echo=$ac_try;;
27768esac
27769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27770 (eval "$ac_try") 2>&5
27771 ac_status=$?
27772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27773 (exit $ac_status); }; } &&
27774 { ac_try='test -s conftest$ac_exeext'
27775 { (case "(($ac_try" in
27776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27777 *) ac_try_echo=$ac_try;;
27778esac
27779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27780 (eval "$ac_try") 2>&5
27781 ac_status=$?
27782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27783 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027784 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027785else
27786 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027787sed 's/^/| /' conftest.$ac_ext >&5
27788
Reid Spencera773bd52006-08-04 18:18:08 +000027789
John Criswell7a73b802003-06-30 21:59:07 +000027790fi
Reid Spencera773bd52006-08-04 18:18:08 +000027791
Bill Wendlingebcceee2009-04-18 11:20:33 +000027792rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027793 conftest$ac_exeext
27794 if test "${ac_cv_search_dlopen+set}" = set; then
27795 break
John Criswell7a73b802003-06-30 21:59:07 +000027796fi
Reid Spencera773bd52006-08-04 18:18:08 +000027797done
27798if test "${ac_cv_search_dlopen+set}" = set; then
27799 :
27800else
27801 ac_cv_search_dlopen=no
27802fi
27803rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027804LIBS=$ac_func_search_save_LIBS
27805fi
Reid Spencera773bd52006-08-04 18:18:08 +000027806{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27807echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27808ac_res=$ac_cv_search_dlopen
27809if test "$ac_res" != no; then
27810 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027811
27812cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027813#define HAVE_DLOPEN 1
27814_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027815
27816else
Brian Gaekec45be042003-10-07 06:01:34 +000027817 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27818echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027819fi
27820
27821
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027822if test "$llvm_cv_enable_libffi" = "yes" ; then
27823 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
Nick Lewycky267fddb2009-04-13 04:26:27 +000027824echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27825if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027826 echo $ECHO_N "(cached) $ECHO_C" >&6
27827else
Nick Lewycky267fddb2009-04-13 04:26:27 +000027828 ac_func_search_save_LIBS=$LIBS
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027829cat >conftest.$ac_ext <<_ACEOF
27830/* confdefs.h. */
27831_ACEOF
27832cat confdefs.h >>conftest.$ac_ext
27833cat >>conftest.$ac_ext <<_ACEOF
27834/* end confdefs.h. */
27835
27836/* Override any GCC internal prototype to avoid an error.
27837 Use char because int might match the return type of a GCC
27838 builtin and then its argument prototype would still apply. */
27839#ifdef __cplusplus
27840extern "C"
27841#endif
27842char ffi_call ();
27843int
27844main ()
27845{
27846return ffi_call ();
27847 ;
27848 return 0;
27849}
27850_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000027851for ac_lib in '' ffi; do
27852 if test -z "$ac_lib"; then
27853 ac_res="none required"
27854 else
27855 ac_res=-l$ac_lib
27856 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27857 fi
27858 rm -f conftest.$ac_objext conftest$ac_exeext
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027859if { (ac_try="$ac_link"
27860case "(($ac_try" in
27861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27862 *) ac_try_echo=$ac_try;;
27863esac
27864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27865 (eval "$ac_link") 2>conftest.er1
27866 ac_status=$?
27867 grep -v '^ *+' conftest.er1 >conftest.err
27868 rm -f conftest.er1
27869 cat conftest.err >&5
27870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027871 (exit $ac_status); } &&
27872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27873 { (case "(($ac_try" in
27874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27875 *) ac_try_echo=$ac_try;;
27876esac
27877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27878 (eval "$ac_try") 2>&5
27879 ac_status=$?
27880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881 (exit $ac_status); }; } &&
27882 { ac_try='test -s conftest$ac_exeext'
27883 { (case "(($ac_try" in
27884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27885 *) ac_try_echo=$ac_try;;
27886esac
27887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27888 (eval "$ac_try") 2>&5
27889 ac_status=$?
27890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000027892 ac_cv_search_ffi_call=$ac_res
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027893else
27894 echo "$as_me: failed program was:" >&5
27895sed 's/^/| /' conftest.$ac_ext >&5
27896
Nick Lewycky267fddb2009-04-13 04:26:27 +000027897
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027898fi
27899
Bill Wendlingebcceee2009-04-18 11:20:33 +000027900rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky267fddb2009-04-13 04:26:27 +000027901 conftest$ac_exeext
27902 if test "${ac_cv_search_ffi_call+set}" = set; then
27903 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027904fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000027905done
27906if test "${ac_cv_search_ffi_call+set}" = set; then
27907 :
27908else
27909 ac_cv_search_ffi_call=no
27910fi
27911rm conftest.$ac_ext
27912LIBS=$ac_func_search_save_LIBS
27913fi
27914{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27915echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27916ac_res=$ac_cv_search_ffi_call
27917if test "$ac_res" != no; then
27918 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27919
27920cat >>confdefs.h <<\_ACEOF
27921#define HAVE_FFI_CALL 1
27922_ACEOF
27923
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027924else
27925 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27926echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27927fi
27928
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027929fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027930
Reid Spencera773bd52006-08-04 18:18:08 +000027931{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27932echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027933if test "${ac_cv_search_mallinfo+set}" = set; then
27934 echo $ECHO_N "(cached) $ECHO_C" >&6
27935else
27936 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027937cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027938/* confdefs.h. */
27939_ACEOF
27940cat confdefs.h >>conftest.$ac_ext
27941cat >>conftest.$ac_ext <<_ACEOF
27942/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027943
Reid Spencera773bd52006-08-04 18:18:08 +000027944/* Override any GCC internal prototype to avoid an error.
27945 Use char because int might match the return type of a GCC
27946 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027947#ifdef __cplusplus
27948extern "C"
27949#endif
John Criswell7a73b802003-06-30 21:59:07 +000027950char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027951int
27952main ()
27953{
Reid Spencera773bd52006-08-04 18:18:08 +000027954return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027955 ;
27956 return 0;
27957}
27958_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027959for ac_lib in '' malloc; do
27960 if test -z "$ac_lib"; then
27961 ac_res="none required"
27962 else
27963 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027964 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027965 fi
27966 rm -f conftest.$ac_objext conftest$ac_exeext
27967if { (ac_try="$ac_link"
27968case "(($ac_try" in
27969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27970 *) ac_try_echo=$ac_try;;
27971esac
27972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27973 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027974 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027975 grep -v '^ *+' conftest.er1 >conftest.err
27976 rm -f conftest.er1
27977 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027979 (exit $ac_status); } &&
27980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27981 { (case "(($ac_try" in
27982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27983 *) ac_try_echo=$ac_try;;
27984esac
27985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27986 (eval "$ac_try") 2>&5
27987 ac_status=$?
27988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27989 (exit $ac_status); }; } &&
27990 { ac_try='test -s conftest$ac_exeext'
27991 { (case "(($ac_try" in
27992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27993 *) ac_try_echo=$ac_try;;
27994esac
27995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27996 (eval "$ac_try") 2>&5
27997 ac_status=$?
27998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028000 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000028001else
28002 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028003sed 's/^/| /' conftest.$ac_ext >&5
28004
Reid Spencera773bd52006-08-04 18:18:08 +000028005
John Criswell7a73b802003-06-30 21:59:07 +000028006fi
Reid Spencera773bd52006-08-04 18:18:08 +000028007
Bill Wendlingebcceee2009-04-18 11:20:33 +000028008rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028009 conftest$ac_exeext
28010 if test "${ac_cv_search_mallinfo+set}" = set; then
28011 break
John Criswell7a73b802003-06-30 21:59:07 +000028012fi
Reid Spencera773bd52006-08-04 18:18:08 +000028013done
28014if test "${ac_cv_search_mallinfo+set}" = set; then
28015 :
28016else
28017 ac_cv_search_mallinfo=no
28018fi
28019rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028020LIBS=$ac_func_search_save_LIBS
28021fi
Reid Spencera773bd52006-08-04 18:18:08 +000028022{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
28023echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
28024ac_res=$ac_cv_search_mallinfo
28025if test "$ac_res" != no; then
28026 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000028027
28028cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000028029#define HAVE_MALLINFO 1
28030_ACEOF
28031
28032fi
28033
28034
Reid Spencer0a262ba2005-08-24 10:07:20 +000028035if test "$ENABLE_THREADS" -eq 1 ; then
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000028036 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_init" >&5
28037echo $ECHO_N "checking for library containing pthread_mutex_init... $ECHO_C" >&6; }
28038if test "${ac_cv_search_pthread_mutex_init+set}" = set; then
Reid Spencer22177fe2005-07-12 15:24:20 +000028039 echo $ECHO_N "(cached) $ECHO_C" >&6
28040else
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000028041 ac_func_search_save_LIBS=$LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000028042cat >conftest.$ac_ext <<_ACEOF
28043/* confdefs.h. */
28044_ACEOF
28045cat confdefs.h >>conftest.$ac_ext
28046cat >>conftest.$ac_ext <<_ACEOF
28047/* end confdefs.h. */
28048
Reid Spencera773bd52006-08-04 18:18:08 +000028049/* Override any GCC internal prototype to avoid an error.
28050 Use char because int might match the return type of a GCC
28051 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000028052#ifdef __cplusplus
28053extern "C"
28054#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000028055char pthread_mutex_init ();
28056int
28057main ()
28058{
Reid Spencera773bd52006-08-04 18:18:08 +000028059return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000028060 ;
28061 return 0;
28062}
28063_ACEOF
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000028064for ac_lib in '' pthread; do
28065 if test -z "$ac_lib"; then
28066 ac_res="none required"
28067 else
28068 ac_res=-l$ac_lib
28069 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28070 fi
28071 rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028072if { (ac_try="$ac_link"
28073case "(($ac_try" in
28074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28075 *) ac_try_echo=$ac_try;;
28076esac
28077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28078 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000028079 ac_status=$?
28080 grep -v '^ *+' conftest.er1 >conftest.err
28081 rm -f conftest.er1
28082 cat conftest.err >&5
28083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028084 (exit $ac_status); } &&
28085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28086 { (case "(($ac_try" in
28087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28088 *) ac_try_echo=$ac_try;;
28089esac
28090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28091 (eval "$ac_try") 2>&5
28092 ac_status=$?
28093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094 (exit $ac_status); }; } &&
28095 { ac_try='test -s conftest$ac_exeext'
28096 { (case "(($ac_try" in
28097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28098 *) ac_try_echo=$ac_try;;
28099esac
28100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28101 (eval "$ac_try") 2>&5
28102 ac_status=$?
28103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28104 (exit $ac_status); }; }; then
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000028105 ac_cv_search_pthread_mutex_init=$ac_res
Reid Spencer22177fe2005-07-12 15:24:20 +000028106else
28107 echo "$as_me: failed program was:" >&5
28108sed 's/^/| /' conftest.$ac_ext >&5
28109
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000028110
Reid Spencer22177fe2005-07-12 15:24:20 +000028111fi
Reid Spencera773bd52006-08-04 18:18:08 +000028112
Bill Wendlingebcceee2009-04-18 11:20:33 +000028113rm -f core conftest.err conftest.$ac_objext \
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000028114 conftest$ac_exeext
28115 if test "${ac_cv_search_pthread_mutex_init+set}" = set; then
28116 break
Reid Spencer22177fe2005-07-12 15:24:20 +000028117fi
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000028118done
28119if test "${ac_cv_search_pthread_mutex_init+set}" = set; then
28120 :
28121else
28122 ac_cv_search_pthread_mutex_init=no
28123fi
28124rm conftest.$ac_ext
28125LIBS=$ac_func_search_save_LIBS
28126fi
28127{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_init" >&5
28128echo "${ECHO_T}$ac_cv_search_pthread_mutex_init" >&6; }
28129ac_res=$ac_cv_search_pthread_mutex_init
28130if test "$ac_res" != no; then
28131 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer22177fe2005-07-12 15:24:20 +000028132
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000028133cat >>confdefs.h <<\_ACEOF
28134#define HAVE_PTHREAD 1
28135_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000028136
28137fi
28138
Reid Spencera773bd52006-08-04 18:18:08 +000028139 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28140echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000028141if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28142 echo $ECHO_N "(cached) $ECHO_C" >&6
28143else
28144 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000028145cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000028146/* confdefs.h. */
28147_ACEOF
28148cat confdefs.h >>conftest.$ac_ext
28149cat >>conftest.$ac_ext <<_ACEOF
28150/* end confdefs.h. */
28151
Reid Spencera773bd52006-08-04 18:18:08 +000028152/* Override any GCC internal prototype to avoid an error.
28153 Use char because int might match the return type of a GCC
28154 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000028155#ifdef __cplusplus
28156extern "C"
28157#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000028158char pthread_mutex_lock ();
28159int
28160main ()
28161{
Reid Spencera773bd52006-08-04 18:18:08 +000028162return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000028163 ;
28164 return 0;
28165}
28166_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028167for ac_lib in '' pthread; do
28168 if test -z "$ac_lib"; then
28169 ac_res="none required"
28170 else
28171 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000028172 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028173 fi
28174 rm -f conftest.$ac_objext conftest$ac_exeext
28175if { (ac_try="$ac_link"
28176case "(($ac_try" in
28177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28178 *) ac_try_echo=$ac_try;;
28179esac
28180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28181 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000028182 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028183 grep -v '^ *+' conftest.er1 >conftest.err
28184 rm -f conftest.er1
28185 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000028186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028187 (exit $ac_status); } &&
28188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28189 { (case "(($ac_try" in
28190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28191 *) ac_try_echo=$ac_try;;
28192esac
28193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28194 (eval "$ac_try") 2>&5
28195 ac_status=$?
28196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28197 (exit $ac_status); }; } &&
28198 { ac_try='test -s conftest$ac_exeext'
28199 { (case "(($ac_try" in
28200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28201 *) ac_try_echo=$ac_try;;
28202esac
28203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28204 (eval "$ac_try") 2>&5
28205 ac_status=$?
28206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28207 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028208 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000028209else
28210 echo "$as_me: failed program was:" >&5
28211sed 's/^/| /' conftest.$ac_ext >&5
28212
Reid Spencera773bd52006-08-04 18:18:08 +000028213
Brian Gaeke5f268f72003-12-05 19:29:01 +000028214fi
Reid Spencera773bd52006-08-04 18:18:08 +000028215
Bill Wendlingebcceee2009-04-18 11:20:33 +000028216rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028217 conftest$ac_exeext
28218 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28219 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000028220fi
Reid Spencera773bd52006-08-04 18:18:08 +000028221done
28222if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28223 :
28224else
28225 ac_cv_search_pthread_mutex_lock=no
28226fi
28227rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000028228LIBS=$ac_func_search_save_LIBS
28229fi
Reid Spencera773bd52006-08-04 18:18:08 +000028230{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28231echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28232ac_res=$ac_cv_search_pthread_mutex_lock
28233if test "$ac_res" != no; then
28234 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000028235
John Criswell40468462004-09-24 21:19:06 +000028236cat >>confdefs.h <<\_ACEOF
28237#define HAVE_PTHREAD_MUTEX_LOCK 1
28238_ACEOF
28239
28240fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000028241
Owen Andersonde8aed22009-06-16 18:20:20 +000028242 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28243echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28244if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28245 echo $ECHO_N "(cached) $ECHO_C" >&6
28246else
28247 ac_func_search_save_LIBS=$LIBS
28248cat >conftest.$ac_ext <<_ACEOF
28249/* confdefs.h. */
28250_ACEOF
28251cat confdefs.h >>conftest.$ac_ext
28252cat >>conftest.$ac_ext <<_ACEOF
28253/* end confdefs.h. */
28254
28255/* Override any GCC internal prototype to avoid an error.
28256 Use char because int might match the return type of a GCC
28257 builtin and then its argument prototype would still apply. */
28258#ifdef __cplusplus
28259extern "C"
28260#endif
28261char pthread_rwlock_init ();
28262int
28263main ()
28264{
28265return pthread_rwlock_init ();
28266 ;
28267 return 0;
28268}
28269_ACEOF
28270for ac_lib in '' pthread; do
28271 if test -z "$ac_lib"; then
28272 ac_res="none required"
28273 else
28274 ac_res=-l$ac_lib
28275 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28276 fi
28277 rm -f conftest.$ac_objext conftest$ac_exeext
28278if { (ac_try="$ac_link"
28279case "(($ac_try" in
28280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28281 *) ac_try_echo=$ac_try;;
28282esac
28283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28284 (eval "$ac_link") 2>conftest.er1
28285 ac_status=$?
28286 grep -v '^ *+' conftest.er1 >conftest.err
28287 rm -f conftest.er1
28288 cat conftest.err >&5
28289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28290 (exit $ac_status); } &&
28291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28292 { (case "(($ac_try" in
28293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28294 *) ac_try_echo=$ac_try;;
28295esac
28296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28297 (eval "$ac_try") 2>&5
28298 ac_status=$?
28299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28300 (exit $ac_status); }; } &&
28301 { ac_try='test -s conftest$ac_exeext'
28302 { (case "(($ac_try" in
28303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28304 *) ac_try_echo=$ac_try;;
28305esac
28306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28307 (eval "$ac_try") 2>&5
28308 ac_status=$?
28309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28310 (exit $ac_status); }; }; then
28311 ac_cv_search_pthread_rwlock_init=$ac_res
28312else
28313 echo "$as_me: failed program was:" >&5
28314sed 's/^/| /' conftest.$ac_ext >&5
28315
28316
28317fi
28318
28319rm -f core conftest.err conftest.$ac_objext \
28320 conftest$ac_exeext
28321 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28322 break
28323fi
28324done
28325if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28326 :
28327else
28328 ac_cv_search_pthread_rwlock_init=no
28329fi
28330rm conftest.$ac_ext
28331LIBS=$ac_func_search_save_LIBS
28332fi
28333{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28334echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28335ac_res=$ac_cv_search_pthread_rwlock_init
28336if test "$ac_res" != no; then
28337 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28338
28339cat >>confdefs.h <<\_ACEOF
28340#define HAVE_PTHREAD_RWLOCK_INIT 1
28341_ACEOF
28342
28343fi
28344
Owen Anderson27fcfe12009-06-25 23:10:26 +000028345 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28346echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28347if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28348 echo $ECHO_N "(cached) $ECHO_C" >&6
28349else
28350 ac_func_search_save_LIBS=$LIBS
28351cat >conftest.$ac_ext <<_ACEOF
28352/* confdefs.h. */
28353_ACEOF
28354cat confdefs.h >>conftest.$ac_ext
28355cat >>conftest.$ac_ext <<_ACEOF
28356/* end confdefs.h. */
28357
28358/* Override any GCC internal prototype to avoid an error.
28359 Use char because int might match the return type of a GCC
28360 builtin and then its argument prototype would still apply. */
28361#ifdef __cplusplus
28362extern "C"
28363#endif
28364char pthread_getspecific ();
28365int
28366main ()
28367{
28368return pthread_getspecific ();
28369 ;
28370 return 0;
28371}
28372_ACEOF
28373for ac_lib in '' pthread; do
28374 if test -z "$ac_lib"; then
28375 ac_res="none required"
28376 else
28377 ac_res=-l$ac_lib
28378 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28379 fi
28380 rm -f conftest.$ac_objext conftest$ac_exeext
28381if { (ac_try="$ac_link"
28382case "(($ac_try" in
28383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28384 *) ac_try_echo=$ac_try;;
28385esac
28386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28387 (eval "$ac_link") 2>conftest.er1
28388 ac_status=$?
28389 grep -v '^ *+' conftest.er1 >conftest.err
28390 rm -f conftest.er1
28391 cat conftest.err >&5
28392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28393 (exit $ac_status); } &&
28394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28395 { (case "(($ac_try" in
28396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28397 *) ac_try_echo=$ac_try;;
28398esac
28399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28400 (eval "$ac_try") 2>&5
28401 ac_status=$?
28402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28403 (exit $ac_status); }; } &&
28404 { ac_try='test -s conftest$ac_exeext'
28405 { (case "(($ac_try" in
28406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28407 *) ac_try_echo=$ac_try;;
28408esac
28409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28410 (eval "$ac_try") 2>&5
28411 ac_status=$?
28412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28413 (exit $ac_status); }; }; then
28414 ac_cv_search_pthread_getspecific=$ac_res
28415else
28416 echo "$as_me: failed program was:" >&5
28417sed 's/^/| /' conftest.$ac_ext >&5
28418
28419
28420fi
28421
28422rm -f core conftest.err conftest.$ac_objext \
28423 conftest$ac_exeext
28424 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28425 break
28426fi
28427done
28428if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28429 :
28430else
28431 ac_cv_search_pthread_getspecific=no
28432fi
28433rm conftest.$ac_ext
28434LIBS=$ac_func_search_save_LIBS
28435fi
28436{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28437echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28438ac_res=$ac_cv_search_pthread_getspecific
28439if test "$ac_res" != no; then
28440 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28441
28442cat >>confdefs.h <<\_ACEOF
28443#define HAVE_PTHREAD_GETSPECIFIC 1
28444_ACEOF
28445
28446fi
28447
Reid Spencer0a262ba2005-08-24 10:07:20 +000028448fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000028449
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028450
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028451# Check whether --with-udis86 was given.
28452if test "${with_udis86+set}" = set; then
28453 withval=$with_udis86;
28454 USE_UDIS86=1
28455
28456 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000028457 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028458 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28459 esac
28460
28461{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28462echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28463if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28464 echo $ECHO_N "(cached) $ECHO_C" >&6
28465else
28466 ac_check_lib_save_LIBS=$LIBS
28467LIBS="-ludis86 $LIBS"
28468cat >conftest.$ac_ext <<_ACEOF
28469/* confdefs.h. */
28470_ACEOF
28471cat confdefs.h >>conftest.$ac_ext
28472cat >>conftest.$ac_ext <<_ACEOF
28473/* end confdefs.h. */
28474
28475/* Override any GCC internal prototype to avoid an error.
28476 Use char because int might match the return type of a GCC
28477 builtin and then its argument prototype would still apply. */
28478#ifdef __cplusplus
28479extern "C"
28480#endif
28481char ud_init ();
28482int
28483main ()
28484{
28485return ud_init ();
28486 ;
28487 return 0;
28488}
28489_ACEOF
28490rm -f conftest.$ac_objext conftest$ac_exeext
28491if { (ac_try="$ac_link"
28492case "(($ac_try" in
28493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28494 *) ac_try_echo=$ac_try;;
28495esac
28496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28497 (eval "$ac_link") 2>conftest.er1
28498 ac_status=$?
28499 grep -v '^ *+' conftest.er1 >conftest.err
28500 rm -f conftest.er1
28501 cat conftest.err >&5
28502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028503 (exit $ac_status); } &&
28504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28505 { (case "(($ac_try" in
28506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28507 *) ac_try_echo=$ac_try;;
28508esac
28509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28510 (eval "$ac_try") 2>&5
28511 ac_status=$?
28512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513 (exit $ac_status); }; } &&
28514 { ac_try='test -s conftest$ac_exeext'
28515 { (case "(($ac_try" in
28516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28517 *) ac_try_echo=$ac_try;;
28518esac
28519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28520 (eval "$ac_try") 2>&5
28521 ac_status=$?
28522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28523 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028524 ac_cv_lib_udis86_ud_init=yes
28525else
28526 echo "$as_me: failed program was:" >&5
28527sed 's/^/| /' conftest.$ac_ext >&5
28528
28529 ac_cv_lib_udis86_ud_init=no
28530fi
28531
Bill Wendlingebcceee2009-04-18 11:20:33 +000028532rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028533 conftest$ac_exeext conftest.$ac_ext
28534LIBS=$ac_check_lib_save_LIBS
28535fi
28536{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28537echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28538if test $ac_cv_lib_udis86_ud_init = yes; then
28539 cat >>confdefs.h <<_ACEOF
28540#define HAVE_LIBUDIS86 1
28541_ACEOF
28542
28543 LIBS="-ludis86 $LIBS"
28544
28545else
28546
28547 echo "Error! You need to have libudis86 around."
28548 exit -1
28549
28550fi
28551
28552
28553else
28554 USE_UDIS86=0
28555
28556fi
28557
28558
28559cat >>confdefs.h <<_ACEOF
28560#define USE_UDIS86 $USE_UDIS86
28561_ACEOF
28562
28563
28564
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028565# Check whether --with-oprofile was given.
28566if test "${with_oprofile+set}" = set; then
28567 withval=$with_oprofile;
28568 USE_OPROFILE=1
28569
28570 case "$withval" in
28571 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028572 no) llvm_cv_oppath=
28573 USE_OPROFILE=0
28574 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028575 *) llvm_cv_oppath="${withval}/lib/oprofile"
28576 CPPFLAGS="-I${withval}/include";;
28577 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028578 if test -n "$llvm_cv_oppath" ; then
28579 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28580 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
28581echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
28582if test "${ac_cv_search_bfd_init+set}" = set; then
28583 echo $ECHO_N "(cached) $ECHO_C" >&6
28584else
28585 ac_func_search_save_LIBS=$LIBS
28586cat >conftest.$ac_ext <<_ACEOF
28587/* confdefs.h. */
28588_ACEOF
28589cat confdefs.h >>conftest.$ac_ext
28590cat >>conftest.$ac_ext <<_ACEOF
28591/* end confdefs.h. */
28592
28593/* Override any GCC internal prototype to avoid an error.
28594 Use char because int might match the return type of a GCC
28595 builtin and then its argument prototype would still apply. */
28596#ifdef __cplusplus
28597extern "C"
28598#endif
28599char bfd_init ();
28600int
28601main ()
28602{
28603return bfd_init ();
28604 ;
28605 return 0;
28606}
28607_ACEOF
28608for ac_lib in '' bfd; do
28609 if test -z "$ac_lib"; then
28610 ac_res="none required"
28611 else
28612 ac_res=-l$ac_lib
28613 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28614 fi
28615 rm -f conftest.$ac_objext conftest$ac_exeext
28616if { (ac_try="$ac_link"
28617case "(($ac_try" in
28618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28619 *) ac_try_echo=$ac_try;;
28620esac
28621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28622 (eval "$ac_link") 2>conftest.er1
28623 ac_status=$?
28624 grep -v '^ *+' conftest.er1 >conftest.err
28625 rm -f conftest.er1
28626 cat conftest.err >&5
28627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28628 (exit $ac_status); } &&
28629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28630 { (case "(($ac_try" in
28631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28632 *) ac_try_echo=$ac_try;;
28633esac
28634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28635 (eval "$ac_try") 2>&5
28636 ac_status=$?
28637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28638 (exit $ac_status); }; } &&
28639 { ac_try='test -s conftest$ac_exeext'
28640 { (case "(($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_try") 2>&5
28646 ac_status=$?
28647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28648 (exit $ac_status); }; }; then
28649 ac_cv_search_bfd_init=$ac_res
28650else
28651 echo "$as_me: failed program was:" >&5
28652sed 's/^/| /' conftest.$ac_ext >&5
28653
28654
28655fi
28656
28657rm -f core conftest.err conftest.$ac_objext \
28658 conftest$ac_exeext
28659 if test "${ac_cv_search_bfd_init+set}" = set; then
28660 break
28661fi
28662done
28663if test "${ac_cv_search_bfd_init+set}" = set; then
28664 :
28665else
28666 ac_cv_search_bfd_init=no
28667fi
28668rm conftest.$ac_ext
28669LIBS=$ac_func_search_save_LIBS
28670fi
28671{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
28672echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
28673ac_res=$ac_cv_search_bfd_init
28674if test "$ac_res" != no; then
28675 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28676
28677fi
28678
28679 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028680echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28681if test "${ac_cv_search_op_open_agent+set}" = set; then
28682 echo $ECHO_N "(cached) $ECHO_C" >&6
28683else
28684 ac_func_search_save_LIBS=$LIBS
28685cat >conftest.$ac_ext <<_ACEOF
28686/* confdefs.h. */
28687_ACEOF
28688cat confdefs.h >>conftest.$ac_ext
28689cat >>conftest.$ac_ext <<_ACEOF
28690/* end confdefs.h. */
28691
28692/* Override any GCC internal prototype to avoid an error.
28693 Use char because int might match the return type of a GCC
28694 builtin and then its argument prototype would still apply. */
28695#ifdef __cplusplus
28696extern "C"
28697#endif
28698char op_open_agent ();
28699int
28700main ()
28701{
28702return op_open_agent ();
28703 ;
28704 return 0;
28705}
28706_ACEOF
28707for ac_lib in '' opagent; do
28708 if test -z "$ac_lib"; then
28709 ac_res="none required"
28710 else
28711 ac_res=-l$ac_lib
28712 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28713 fi
28714 rm -f conftest.$ac_objext conftest$ac_exeext
28715if { (ac_try="$ac_link"
28716case "(($ac_try" in
28717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28718 *) ac_try_echo=$ac_try;;
28719esac
28720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28721 (eval "$ac_link") 2>conftest.er1
28722 ac_status=$?
28723 grep -v '^ *+' conftest.er1 >conftest.err
28724 rm -f conftest.er1
28725 cat conftest.err >&5
28726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727 (exit $ac_status); } &&
28728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28729 { (case "(($ac_try" in
28730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28731 *) ac_try_echo=$ac_try;;
28732esac
28733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28734 (eval "$ac_try") 2>&5
28735 ac_status=$?
28736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28737 (exit $ac_status); }; } &&
28738 { ac_try='test -s conftest$ac_exeext'
28739 { (case "(($ac_try" in
28740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28741 *) ac_try_echo=$ac_try;;
28742esac
28743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28744 (eval "$ac_try") 2>&5
28745 ac_status=$?
28746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747 (exit $ac_status); }; }; then
28748 ac_cv_search_op_open_agent=$ac_res
28749else
28750 echo "$as_me: failed program was:" >&5
28751sed 's/^/| /' conftest.$ac_ext >&5
28752
28753
28754fi
28755
28756rm -f core conftest.err conftest.$ac_objext \
28757 conftest$ac_exeext
28758 if test "${ac_cv_search_op_open_agent+set}" = set; then
28759 break
28760fi
28761done
28762if test "${ac_cv_search_op_open_agent+set}" = set; then
28763 :
28764else
28765 ac_cv_search_op_open_agent=no
28766fi
28767rm conftest.$ac_ext
28768LIBS=$ac_func_search_save_LIBS
28769fi
28770{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28771echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28772ac_res=$ac_cv_search_op_open_agent
28773if test "$ac_res" != no; then
28774 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28775
28776else
28777
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028778 echo "Error! You need to have libopagent around."
28779 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028780
28781fi
28782
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028783 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028784 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28785echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28786if test "${ac_cv_header_opagent_h+set}" = set; then
28787 echo $ECHO_N "(cached) $ECHO_C" >&6
28788fi
28789{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28790echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28791else
28792 # Is the header compilable?
28793{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
28794echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28795cat >conftest.$ac_ext <<_ACEOF
28796/* confdefs.h. */
28797_ACEOF
28798cat confdefs.h >>conftest.$ac_ext
28799cat >>conftest.$ac_ext <<_ACEOF
28800/* end confdefs.h. */
28801$ac_includes_default
28802#include <opagent.h>
28803_ACEOF
28804rm -f conftest.$ac_objext
28805if { (ac_try="$ac_compile"
28806case "(($ac_try" in
28807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28808 *) ac_try_echo=$ac_try;;
28809esac
28810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28811 (eval "$ac_compile") 2>conftest.er1
28812 ac_status=$?
28813 grep -v '^ *+' conftest.er1 >conftest.err
28814 rm -f conftest.er1
28815 cat conftest.err >&5
28816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28817 (exit $ac_status); } &&
28818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28819 { (case "(($ac_try" in
28820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28821 *) ac_try_echo=$ac_try;;
28822esac
28823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28824 (eval "$ac_try") 2>&5
28825 ac_status=$?
28826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28827 (exit $ac_status); }; } &&
28828 { ac_try='test -s conftest.$ac_objext'
28829 { (case "(($ac_try" in
28830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28831 *) ac_try_echo=$ac_try;;
28832esac
28833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28834 (eval "$ac_try") 2>&5
28835 ac_status=$?
28836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28837 (exit $ac_status); }; }; then
28838 ac_header_compiler=yes
28839else
28840 echo "$as_me: failed program was:" >&5
28841sed 's/^/| /' conftest.$ac_ext >&5
28842
28843 ac_header_compiler=no
28844fi
28845
28846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28847{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28848echo "${ECHO_T}$ac_header_compiler" >&6; }
28849
28850# Is the header present?
28851{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
28852echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28853cat >conftest.$ac_ext <<_ACEOF
28854/* confdefs.h. */
28855_ACEOF
28856cat confdefs.h >>conftest.$ac_ext
28857cat >>conftest.$ac_ext <<_ACEOF
28858/* end confdefs.h. */
28859#include <opagent.h>
28860_ACEOF
28861if { (ac_try="$ac_cpp conftest.$ac_ext"
28862case "(($ac_try" in
28863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28864 *) ac_try_echo=$ac_try;;
28865esac
28866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28868 ac_status=$?
28869 grep -v '^ *+' conftest.er1 >conftest.err
28870 rm -f conftest.er1
28871 cat conftest.err >&5
28872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28873 (exit $ac_status); } >/dev/null; then
28874 if test -s conftest.err; then
28875 ac_cpp_err=$ac_c_preproc_warn_flag
28876 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28877 else
28878 ac_cpp_err=
28879 fi
28880else
28881 ac_cpp_err=yes
28882fi
28883if test -z "$ac_cpp_err"; then
28884 ac_header_preproc=yes
28885else
28886 echo "$as_me: failed program was:" >&5
28887sed 's/^/| /' conftest.$ac_ext >&5
28888
28889 ac_header_preproc=no
28890fi
28891
28892rm -f conftest.err conftest.$ac_ext
28893{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28894echo "${ECHO_T}$ac_header_preproc" >&6; }
28895
28896# So? What about this header?
28897case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28898 yes:no: )
28899 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28900echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28901 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28902echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28903 ac_header_preproc=yes
28904 ;;
28905 no:yes:* )
28906 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28907echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28908 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28909echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28910 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28911echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28912 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28913echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28914 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28915echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28916 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28917echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28918 ( cat <<\_ASBOX
28919## ----------------------------------- ##
28920## Report this to llvmbugs@cs.uiuc.edu ##
28921## ----------------------------------- ##
28922_ASBOX
28923 ) | sed "s/^/$as_me: WARNING: /" >&2
28924 ;;
28925esac
28926{ echo "$as_me:$LINENO: checking for opagent.h" >&5
28927echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28928if test "${ac_cv_header_opagent_h+set}" = set; then
28929 echo $ECHO_N "(cached) $ECHO_C" >&6
28930else
28931 ac_cv_header_opagent_h=$ac_header_preproc
28932fi
28933{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28934echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28935
28936fi
28937if test $ac_cv_header_opagent_h = yes; then
28938 :
28939else
28940
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028941 echo "Error! You need to have opagent.h around."
28942 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028943
28944fi
28945
28946
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028947 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028948
28949else
28950
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028951 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028952
28953
28954fi
28955
28956
28957cat >>confdefs.h <<_ACEOF
28958#define USE_OPROFILE $USE_OPROFILE
28959_ACEOF
28960
28961
28962
Reid Spencer59473af2004-12-25 07:31:29 +000028963
28964
28965
28966
28967
28968ac_header_dirent=no
28969for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28970 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028971{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28972echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28973if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028974 echo $ECHO_N "(cached) $ECHO_C" >&6
28975else
28976 cat >conftest.$ac_ext <<_ACEOF
28977/* confdefs.h. */
28978_ACEOF
28979cat confdefs.h >>conftest.$ac_ext
28980cat >>conftest.$ac_ext <<_ACEOF
28981/* end confdefs.h. */
28982#include <sys/types.h>
28983#include <$ac_hdr>
28984
28985int
28986main ()
28987{
28988if ((DIR *) 0)
28989return 0;
28990 ;
28991 return 0;
28992}
28993_ACEOF
28994rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028995if { (ac_try="$ac_compile"
28996case "(($ac_try" in
28997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28998 *) ac_try_echo=$ac_try;;
28999esac
29000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29001 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029002 ac_status=$?
29003 grep -v '^ *+' conftest.er1 >conftest.err
29004 rm -f conftest.er1
29005 cat conftest.err >&5
29006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029007 (exit $ac_status); } &&
29008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29009 { (case "(($ac_try" in
29010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29011 *) ac_try_echo=$ac_try;;
29012esac
29013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29014 (eval "$ac_try") 2>&5
29015 ac_status=$?
29016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29017 (exit $ac_status); }; } &&
29018 { ac_try='test -s conftest.$ac_objext'
29019 { (case "(($ac_try" in
29020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29021 *) ac_try_echo=$ac_try;;
29022esac
29023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29024 (eval "$ac_try") 2>&5
29025 ac_status=$?
29026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29027 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029028 eval "$as_ac_Header=yes"
29029else
29030 echo "$as_me: failed program was:" >&5
29031sed 's/^/| /' conftest.$ac_ext >&5
29032
Reid Spencera773bd52006-08-04 18:18:08 +000029033 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000029034fi
Reid Spencera773bd52006-08-04 18:18:08 +000029035
29036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029037fi
Reid Spencera773bd52006-08-04 18:18:08 +000029038ac_res=`eval echo '${'$as_ac_Header'}'`
29039 { echo "$as_me:$LINENO: result: $ac_res" >&5
29040echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029041if test `eval echo '${'$as_ac_Header'}'` = yes; then
29042 cat >>confdefs.h <<_ACEOF
29043#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29044_ACEOF
29045
29046ac_header_dirent=$ac_hdr; break
29047fi
29048
29049done
29050# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29051if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000029052 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29053echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029054if test "${ac_cv_search_opendir+set}" = set; then
29055 echo $ECHO_N "(cached) $ECHO_C" >&6
29056else
29057 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000029058cat >conftest.$ac_ext <<_ACEOF
29059/* confdefs.h. */
29060_ACEOF
29061cat confdefs.h >>conftest.$ac_ext
29062cat >>conftest.$ac_ext <<_ACEOF
29063/* end confdefs.h. */
29064
Reid Spencera773bd52006-08-04 18:18:08 +000029065/* Override any GCC internal prototype to avoid an error.
29066 Use char because int might match the return type of a GCC
29067 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000029068#ifdef __cplusplus
29069extern "C"
29070#endif
Reid Spencer59473af2004-12-25 07:31:29 +000029071char opendir ();
29072int
29073main ()
29074{
Reid Spencera773bd52006-08-04 18:18:08 +000029075return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000029076 ;
29077 return 0;
29078}
29079_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029080for ac_lib in '' dir; do
29081 if test -z "$ac_lib"; then
29082 ac_res="none required"
29083 else
29084 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000029085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000029086 fi
29087 rm -f conftest.$ac_objext conftest$ac_exeext
29088if { (ac_try="$ac_link"
29089case "(($ac_try" in
29090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29091 *) ac_try_echo=$ac_try;;
29092esac
29093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29094 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029095 ac_status=$?
29096 grep -v '^ *+' conftest.er1 >conftest.err
29097 rm -f conftest.er1
29098 cat conftest.err >&5
29099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029100 (exit $ac_status); } &&
29101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29102 { (case "(($ac_try" in
29103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29104 *) ac_try_echo=$ac_try;;
29105esac
29106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29107 (eval "$ac_try") 2>&5
29108 ac_status=$?
29109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110 (exit $ac_status); }; } &&
29111 { ac_try='test -s conftest$ac_exeext'
29112 { (case "(($ac_try" in
29113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29114 *) ac_try_echo=$ac_try;;
29115esac
29116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29117 (eval "$ac_try") 2>&5
29118 ac_status=$?
29119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29120 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029121 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000029122else
29123 echo "$as_me: failed program was:" >&5
29124sed 's/^/| /' conftest.$ac_ext >&5
29125
Reid Spencera773bd52006-08-04 18:18:08 +000029126
Reid Spencer59473af2004-12-25 07:31:29 +000029127fi
Reid Spencera773bd52006-08-04 18:18:08 +000029128
Bill Wendlingebcceee2009-04-18 11:20:33 +000029129rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000029130 conftest$ac_exeext
29131 if test "${ac_cv_search_opendir+set}" = set; then
29132 break
Reid Spencer59473af2004-12-25 07:31:29 +000029133fi
Reid Spencera773bd52006-08-04 18:18:08 +000029134done
29135if test "${ac_cv_search_opendir+set}" = set; then
29136 :
29137else
29138 ac_cv_search_opendir=no
29139fi
29140rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029141LIBS=$ac_func_search_save_LIBS
29142fi
Reid Spencera773bd52006-08-04 18:18:08 +000029143{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29144echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29145ac_res=$ac_cv_search_opendir
29146if test "$ac_res" != no; then
29147 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000029148
29149fi
29150
29151else
Reid Spencera773bd52006-08-04 18:18:08 +000029152 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29153echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029154if test "${ac_cv_search_opendir+set}" = set; then
29155 echo $ECHO_N "(cached) $ECHO_C" >&6
29156else
29157 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000029158cat >conftest.$ac_ext <<_ACEOF
29159/* confdefs.h. */
29160_ACEOF
29161cat confdefs.h >>conftest.$ac_ext
29162cat >>conftest.$ac_ext <<_ACEOF
29163/* end confdefs.h. */
29164
Reid Spencera773bd52006-08-04 18:18:08 +000029165/* Override any GCC internal prototype to avoid an error.
29166 Use char because int might match the return type of a GCC
29167 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000029168#ifdef __cplusplus
29169extern "C"
29170#endif
Reid Spencer59473af2004-12-25 07:31:29 +000029171char opendir ();
29172int
29173main ()
29174{
Reid Spencera773bd52006-08-04 18:18:08 +000029175return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000029176 ;
29177 return 0;
29178}
29179_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029180for ac_lib in '' x; do
29181 if test -z "$ac_lib"; then
29182 ac_res="none required"
29183 else
29184 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000029185 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000029186 fi
29187 rm -f conftest.$ac_objext conftest$ac_exeext
29188if { (ac_try="$ac_link"
29189case "(($ac_try" in
29190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29191 *) ac_try_echo=$ac_try;;
29192esac
29193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29194 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029195 ac_status=$?
29196 grep -v '^ *+' conftest.er1 >conftest.err
29197 rm -f conftest.er1
29198 cat conftest.err >&5
29199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029200 (exit $ac_status); } &&
29201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29202 { (case "(($ac_try" in
29203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29204 *) ac_try_echo=$ac_try;;
29205esac
29206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29207 (eval "$ac_try") 2>&5
29208 ac_status=$?
29209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29210 (exit $ac_status); }; } &&
29211 { ac_try='test -s conftest$ac_exeext'
29212 { (case "(($ac_try" in
29213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29214 *) ac_try_echo=$ac_try;;
29215esac
29216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29217 (eval "$ac_try") 2>&5
29218 ac_status=$?
29219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29220 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029221 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000029222else
29223 echo "$as_me: failed program was:" >&5
29224sed 's/^/| /' conftest.$ac_ext >&5
29225
Reid Spencera773bd52006-08-04 18:18:08 +000029226
Reid Spencer59473af2004-12-25 07:31:29 +000029227fi
Reid Spencera773bd52006-08-04 18:18:08 +000029228
Bill Wendlingebcceee2009-04-18 11:20:33 +000029229rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000029230 conftest$ac_exeext
29231 if test "${ac_cv_search_opendir+set}" = set; then
29232 break
Reid Spencer59473af2004-12-25 07:31:29 +000029233fi
Reid Spencera773bd52006-08-04 18:18:08 +000029234done
29235if test "${ac_cv_search_opendir+set}" = set; then
29236 :
29237else
29238 ac_cv_search_opendir=no
29239fi
29240rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029241LIBS=$ac_func_search_save_LIBS
29242fi
Reid Spencera773bd52006-08-04 18:18:08 +000029243{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29244echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29245ac_res=$ac_cv_search_opendir
29246if test "$ac_res" != no; then
29247 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000029248
29249fi
29250
29251fi
29252
Reid Spencera773bd52006-08-04 18:18:08 +000029253{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29254echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029255if test "${ac_cv_header_mmap_anon+set}" = set; then
29256 echo $ECHO_N "(cached) $ECHO_C" >&6
29257else
29258 ac_ext=c
29259ac_cpp='$CPP $CPPFLAGS'
29260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29262ac_compiler_gnu=$ac_cv_c_compiler_gnu
29263
29264 cat >conftest.$ac_ext <<_ACEOF
29265/* confdefs.h. */
29266_ACEOF
29267cat confdefs.h >>conftest.$ac_ext
29268cat >>conftest.$ac_ext <<_ACEOF
29269/* end confdefs.h. */
29270#include <sys/mman.h>
29271#include <unistd.h>
29272#include <fcntl.h>
29273int
29274main ()
29275{
29276mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29277 ;
29278 return 0;
29279}
29280_ACEOF
29281rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029282if { (ac_try="$ac_compile"
29283case "(($ac_try" in
29284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29285 *) ac_try_echo=$ac_try;;
29286esac
29287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29288 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029289 ac_status=$?
29290 grep -v '^ *+' conftest.er1 >conftest.err
29291 rm -f conftest.er1
29292 cat conftest.err >&5
29293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029294 (exit $ac_status); } &&
29295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29296 { (case "(($ac_try" in
29297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29298 *) ac_try_echo=$ac_try;;
29299esac
29300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29301 (eval "$ac_try") 2>&5
29302 ac_status=$?
29303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29304 (exit $ac_status); }; } &&
29305 { ac_try='test -s conftest.$ac_objext'
29306 { (case "(($ac_try" in
29307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29308 *) ac_try_echo=$ac_try;;
29309esac
29310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29311 (eval "$ac_try") 2>&5
29312 ac_status=$?
29313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29314 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029315 ac_cv_header_mmap_anon=yes
29316else
29317 echo "$as_me: failed program was:" >&5
29318sed 's/^/| /' conftest.$ac_ext >&5
29319
Reid Spencera773bd52006-08-04 18:18:08 +000029320 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000029321fi
Reid Spencera773bd52006-08-04 18:18:08 +000029322
29323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029324 ac_ext=c
29325ac_cpp='$CPP $CPPFLAGS'
29326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29328ac_compiler_gnu=$ac_cv_c_compiler_gnu
29329
29330
29331fi
Reid Spencera773bd52006-08-04 18:18:08 +000029332{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29333echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029334if test "$ac_cv_header_mmap_anon" = yes; then
29335
29336cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000029337#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000029338_ACEOF
29339
29340fi
29341
Reid Spencera773bd52006-08-04 18:18:08 +000029342{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29343echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029344if test "${ac_cv_header_stat_broken+set}" = set; then
29345 echo $ECHO_N "(cached) $ECHO_C" >&6
29346else
29347 cat >conftest.$ac_ext <<_ACEOF
29348/* confdefs.h. */
29349_ACEOF
29350cat confdefs.h >>conftest.$ac_ext
29351cat >>conftest.$ac_ext <<_ACEOF
29352/* end confdefs.h. */
29353#include <sys/types.h>
29354#include <sys/stat.h>
29355
Reid Spencera773bd52006-08-04 18:18:08 +000029356#if defined S_ISBLK && defined S_IFDIR
Bill Wendlingebcceee2009-04-18 11:20:33 +000029357# if S_ISBLK (S_IFDIR)
29358You lose.
29359# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029360#endif
29361
Reid Spencera773bd52006-08-04 18:18:08 +000029362#if defined S_ISBLK && defined S_IFCHR
Bill Wendlingebcceee2009-04-18 11:20:33 +000029363# if S_ISBLK (S_IFCHR)
29364You lose.
29365# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029366#endif
29367
Reid Spencera773bd52006-08-04 18:18:08 +000029368#if defined S_ISLNK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000029369# if S_ISLNK (S_IFREG)
29370You lose.
29371# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029372#endif
29373
Reid Spencera773bd52006-08-04 18:18:08 +000029374#if defined S_ISSOCK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000029375# if S_ISSOCK (S_IFREG)
29376You lose.
29377# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029378#endif
29379
29380_ACEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +000029381if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29382 $EGREP "You lose" >/dev/null 2>&1; then
29383 ac_cv_header_stat_broken=yes
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029384else
Bill Wendlingebcceee2009-04-18 11:20:33 +000029385 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029386fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000029387rm -f conftest*
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029388
Reid Spencer59473af2004-12-25 07:31:29 +000029389fi
Reid Spencera773bd52006-08-04 18:18:08 +000029390{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29391echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029392if test $ac_cv_header_stat_broken = yes; then
29393
29394cat >>confdefs.h <<\_ACEOF
29395#define STAT_MACROS_BROKEN 1
29396_ACEOF
29397
29398fi
29399
Reid Spencera773bd52006-08-04 18:18:08 +000029400{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29401echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029402if test "${ac_cv_header_stdc+set}" = set; then
29403 echo $ECHO_N "(cached) $ECHO_C" >&6
29404else
29405 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029406/* confdefs.h. */
29407_ACEOF
29408cat confdefs.h >>conftest.$ac_ext
29409cat >>conftest.$ac_ext <<_ACEOF
29410/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029411#include <stdlib.h>
29412#include <stdarg.h>
29413#include <string.h>
29414#include <float.h>
29415
John Criswell0c38eaf2003-09-10 15:17:25 +000029416int
29417main ()
29418{
29419
29420 ;
29421 return 0;
29422}
John Criswell7a73b802003-06-30 21:59:07 +000029423_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029424rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029425if { (ac_try="$ac_compile"
29426case "(($ac_try" in
29427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29428 *) ac_try_echo=$ac_try;;
29429esac
29430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29431 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029432 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029433 grep -v '^ *+' conftest.er1 >conftest.err
29434 rm -f conftest.er1
29435 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029437 (exit $ac_status); } &&
29438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29439 { (case "(($ac_try" in
29440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29441 *) ac_try_echo=$ac_try;;
29442esac
29443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29444 (eval "$ac_try") 2>&5
29445 ac_status=$?
29446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29447 (exit $ac_status); }; } &&
29448 { ac_try='test -s conftest.$ac_objext'
29449 { (case "(($ac_try" in
29450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29451 *) ac_try_echo=$ac_try;;
29452esac
29453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29454 (eval "$ac_try") 2>&5
29455 ac_status=$?
29456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29457 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029458 ac_cv_header_stdc=yes
29459else
29460 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029461sed 's/^/| /' conftest.$ac_ext >&5
29462
Reid Spencera773bd52006-08-04 18:18:08 +000029463 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000029464fi
Reid Spencera773bd52006-08-04 18:18:08 +000029465
29466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029467
29468if test $ac_cv_header_stdc = yes; then
29469 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29470 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029471/* confdefs.h. */
29472_ACEOF
29473cat confdefs.h >>conftest.$ac_ext
29474cat >>conftest.$ac_ext <<_ACEOF
29475/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029476#include <string.h>
29477
29478_ACEOF
29479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000029480 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029481 :
29482else
29483 ac_cv_header_stdc=no
29484fi
29485rm -f conftest*
29486
29487fi
29488
29489if test $ac_cv_header_stdc = yes; then
29490 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29491 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029492/* confdefs.h. */
29493_ACEOF
29494cat confdefs.h >>conftest.$ac_ext
29495cat >>conftest.$ac_ext <<_ACEOF
29496/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029497#include <stdlib.h>
29498
29499_ACEOF
29500if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000029501 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029502 :
29503else
29504 ac_cv_header_stdc=no
29505fi
29506rm -f conftest*
29507
29508fi
29509
29510if test $ac_cv_header_stdc = yes; then
29511 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29512 if test "$cross_compiling" = yes; then
29513 :
29514else
29515 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029516/* confdefs.h. */
29517_ACEOF
29518cat confdefs.h >>conftest.$ac_ext
29519cat >>conftest.$ac_ext <<_ACEOF
29520/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029521#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000029522#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000029523#if ((' ' & 0x0FF) == 0x020)
29524# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29525# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29526#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029527# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000029528 (('a' <= (c) && (c) <= 'i') \
29529 || ('j' <= (c) && (c) <= 'r') \
29530 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000029531# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29532#endif
29533
29534#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29535int
29536main ()
29537{
29538 int i;
29539 for (i = 0; i < 256; i++)
29540 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000029541 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000029542 return 2;
29543 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029544}
29545_ACEOF
29546rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029547if { (ac_try="$ac_link"
29548case "(($ac_try" in
29549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29550 *) ac_try_echo=$ac_try;;
29551esac
29552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29553 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029554 ac_status=$?
29555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029557 { (case "(($ac_try" in
29558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29559 *) ac_try_echo=$ac_try;;
29560esac
29561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29562 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029563 ac_status=$?
29564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29565 (exit $ac_status); }; }; then
29566 :
29567else
29568 echo "$as_me: program exited with status $ac_status" >&5
29569echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029570sed 's/^/| /' conftest.$ac_ext >&5
29571
John Criswell7a73b802003-06-30 21:59:07 +000029572( exit $ac_status )
29573ac_cv_header_stdc=no
29574fi
Reid Spencera773bd52006-08-04 18:18:08 +000029575rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29576fi
29577
29578
John Criswell7a73b802003-06-30 21:59:07 +000029579fi
29580fi
Reid Spencera773bd52006-08-04 18:18:08 +000029581{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29582echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029583if test $ac_cv_header_stdc = yes; then
29584
29585cat >>confdefs.h <<\_ACEOF
29586#define STDC_HEADERS 1
29587_ACEOF
29588
29589fi
29590
Reid Spencera773bd52006-08-04 18:18:08 +000029591{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29592echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029593if test "${ac_cv_header_sys_wait_h+set}" = set; then
29594 echo $ECHO_N "(cached) $ECHO_C" >&6
29595else
29596 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029597/* confdefs.h. */
29598_ACEOF
29599cat confdefs.h >>conftest.$ac_ext
29600cat >>conftest.$ac_ext <<_ACEOF
29601/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029602#include <sys/types.h>
29603#include <sys/wait.h>
29604#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000029605# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000029606#endif
29607#ifndef WIFEXITED
29608# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29609#endif
29610
John Criswell7a73b802003-06-30 21:59:07 +000029611int
29612main ()
29613{
29614 int s;
29615 wait (&s);
29616 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29617 ;
29618 return 0;
29619}
29620_ACEOF
29621rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029622if { (ac_try="$ac_compile"
29623case "(($ac_try" in
29624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29625 *) ac_try_echo=$ac_try;;
29626esac
29627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29628 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029629 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029630 grep -v '^ *+' conftest.er1 >conftest.err
29631 rm -f conftest.er1
29632 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029634 (exit $ac_status); } &&
29635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29636 { (case "(($ac_try" in
29637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29638 *) ac_try_echo=$ac_try;;
29639esac
29640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29641 (eval "$ac_try") 2>&5
29642 ac_status=$?
29643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644 (exit $ac_status); }; } &&
29645 { ac_try='test -s conftest.$ac_objext'
29646 { (case "(($ac_try" in
29647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29648 *) ac_try_echo=$ac_try;;
29649esac
29650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29651 (eval "$ac_try") 2>&5
29652 ac_status=$?
29653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29654 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029655 ac_cv_header_sys_wait_h=yes
29656else
29657 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029658sed 's/^/| /' conftest.$ac_ext >&5
29659
Reid Spencera773bd52006-08-04 18:18:08 +000029660 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000029661fi
Reid Spencera773bd52006-08-04 18:18:08 +000029662
29663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029664fi
Reid Spencera773bd52006-08-04 18:18:08 +000029665{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29666echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029667if test $ac_cv_header_sys_wait_h = yes; then
29668
29669cat >>confdefs.h <<\_ACEOF
29670#define HAVE_SYS_WAIT_H 1
29671_ACEOF
29672
29673fi
29674
Reid Spencera773bd52006-08-04 18:18:08 +000029675{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29676echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029677if test "${ac_cv_header_time+set}" = set; then
29678 echo $ECHO_N "(cached) $ECHO_C" >&6
29679else
29680 cat >conftest.$ac_ext <<_ACEOF
29681/* confdefs.h. */
29682_ACEOF
29683cat confdefs.h >>conftest.$ac_ext
29684cat >>conftest.$ac_ext <<_ACEOF
29685/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029686#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029687#include <sys/time.h>
29688#include <time.h>
29689
29690int
29691main ()
29692{
29693if ((struct tm *) 0)
29694return 0;
29695 ;
29696 return 0;
29697}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029698_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029699rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029700if { (ac_try="$ac_compile"
29701case "(($ac_try" in
29702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29703 *) ac_try_echo=$ac_try;;
29704esac
29705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29706 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029707 ac_status=$?
29708 grep -v '^ *+' conftest.er1 >conftest.err
29709 rm -f conftest.er1
29710 cat conftest.err >&5
29711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029712 (exit $ac_status); } &&
29713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29714 { (case "(($ac_try" in
29715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29716 *) ac_try_echo=$ac_try;;
29717esac
29718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29719 (eval "$ac_try") 2>&5
29720 ac_status=$?
29721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29722 (exit $ac_status); }; } &&
29723 { ac_try='test -s conftest.$ac_objext'
29724 { (case "(($ac_try" in
29725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29726 *) ac_try_echo=$ac_try;;
29727esac
29728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29729 (eval "$ac_try") 2>&5
29730 ac_status=$?
29731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29732 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029733 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029734else
29735 echo "$as_me: failed program was:" >&5
29736sed 's/^/| /' conftest.$ac_ext >&5
29737
Reid Spencera773bd52006-08-04 18:18:08 +000029738 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029739fi
Reid Spencera773bd52006-08-04 18:18:08 +000029740
29741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029742fi
Reid Spencera773bd52006-08-04 18:18:08 +000029743{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29744echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029745if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029746
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029747cat >>confdefs.h <<\_ACEOF
29748#define TIME_WITH_SYS_TIME 1
29749_ACEOF
29750
29751fi
29752
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029753
Reid Spencer59473af2004-12-25 07:31:29 +000029754
29755
29756
29757
29758
29759
29760for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29761do
29762as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29765echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29766if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029767 echo $ECHO_N "(cached) $ECHO_C" >&6
29768fi
Reid Spencera773bd52006-08-04 18:18:08 +000029769ac_res=`eval echo '${'$as_ac_Header'}'`
29770 { echo "$as_me:$LINENO: result: $ac_res" >&5
29771echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029772else
29773 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029774{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29775echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029776cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029777/* confdefs.h. */
29778_ACEOF
29779cat confdefs.h >>conftest.$ac_ext
29780cat >>conftest.$ac_ext <<_ACEOF
29781/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000029782$ac_includes_default
29783#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029784_ACEOF
29785rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029786if { (ac_try="$ac_compile"
29787case "(($ac_try" in
29788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29789 *) ac_try_echo=$ac_try;;
29790esac
29791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29792 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029793 ac_status=$?
29794 grep -v '^ *+' conftest.er1 >conftest.err
29795 rm -f conftest.er1
29796 cat conftest.err >&5
29797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029798 (exit $ac_status); } &&
29799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29800 { (case "(($ac_try" in
29801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29802 *) ac_try_echo=$ac_try;;
29803esac
29804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29805 (eval "$ac_try") 2>&5
29806 ac_status=$?
29807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29808 (exit $ac_status); }; } &&
29809 { ac_try='test -s conftest.$ac_objext'
29810 { (case "(($ac_try" in
29811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29812 *) ac_try_echo=$ac_try;;
29813esac
29814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29815 (eval "$ac_try") 2>&5
29816 ac_status=$?
29817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29818 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029819 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029820else
29821 echo "$as_me: failed program was:" >&5
29822sed 's/^/| /' conftest.$ac_ext >&5
29823
Reid Spencera773bd52006-08-04 18:18:08 +000029824 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029825fi
Reid Spencera773bd52006-08-04 18:18:08 +000029826
29827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29828{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29829echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029830
Reid Spencer59473af2004-12-25 07:31:29 +000029831# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029832{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29833echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029834cat >conftest.$ac_ext <<_ACEOF
29835/* confdefs.h. */
29836_ACEOF
29837cat confdefs.h >>conftest.$ac_ext
29838cat >>conftest.$ac_ext <<_ACEOF
29839/* end confdefs.h. */
29840#include <$ac_header>
29841_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029842if { (ac_try="$ac_cpp conftest.$ac_ext"
29843case "(($ac_try" in
29844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29845 *) ac_try_echo=$ac_try;;
29846esac
29847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029849 ac_status=$?
29850 grep -v '^ *+' conftest.er1 >conftest.err
29851 rm -f conftest.er1
29852 cat conftest.err >&5
29853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029854 (exit $ac_status); } >/dev/null; then
29855 if test -s conftest.err; then
29856 ac_cpp_err=$ac_c_preproc_warn_flag
29857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29858 else
29859 ac_cpp_err=
29860 fi
29861else
29862 ac_cpp_err=yes
29863fi
29864if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029865 ac_header_preproc=yes
29866else
29867 echo "$as_me: failed program was:" >&5
29868sed 's/^/| /' conftest.$ac_ext >&5
29869
29870 ac_header_preproc=no
29871fi
Reid Spencera773bd52006-08-04 18:18:08 +000029872
Reid Spencer59473af2004-12-25 07:31:29 +000029873rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029874{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29875echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029876
29877# So? What about this header?
29878case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29879 yes:no: )
29880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29881echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29883echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29884 ac_header_preproc=yes
29885 ;;
29886 no:yes:* )
29887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29888echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29890echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29892echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29894echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29896echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29898echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029899 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029900## ----------------------------------- ##
29901## Report this to llvmbugs@cs.uiuc.edu ##
29902## ----------------------------------- ##
29903_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029904 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029905 ;;
29906esac
Reid Spencera773bd52006-08-04 18:18:08 +000029907{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29908echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29909if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029910 echo $ECHO_N "(cached) $ECHO_C" >&6
29911else
29912 eval "$as_ac_Header=\$ac_header_preproc"
29913fi
Reid Spencera773bd52006-08-04 18:18:08 +000029914ac_res=`eval echo '${'$as_ac_Header'}'`
29915 { echo "$as_me:$LINENO: result: $ac_res" >&5
29916echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029917
29918fi
Reid Spencer59473af2004-12-25 07:31:29 +000029919if test `eval echo '${'$as_ac_Header'}'` = yes; then
29920 cat >>confdefs.h <<_ACEOF
29921#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029922_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029923
29924fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029925
Reid Spencer59473af2004-12-25 07:31:29 +000029926done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029927
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029928
29929
Reid Spencer59473af2004-12-25 07:31:29 +000029930
29931
29932
29933
Douglas Gregor071d73d2009-05-18 17:21:34 +000029934for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Reid Spencer59473af2004-12-25 07:31:29 +000029935do
29936as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029937if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29938 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29939echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29940if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029941 echo $ECHO_N "(cached) $ECHO_C" >&6
29942fi
Reid Spencera773bd52006-08-04 18:18:08 +000029943ac_res=`eval echo '${'$as_ac_Header'}'`
29944 { echo "$as_me:$LINENO: result: $ac_res" >&5
29945echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029946else
29947 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029948{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29949echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029950cat >conftest.$ac_ext <<_ACEOF
29951/* confdefs.h. */
29952_ACEOF
29953cat confdefs.h >>conftest.$ac_ext
29954cat >>conftest.$ac_ext <<_ACEOF
29955/* end confdefs.h. */
29956$ac_includes_default
29957#include <$ac_header>
29958_ACEOF
29959rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029960if { (ac_try="$ac_compile"
29961case "(($ac_try" in
29962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29963 *) ac_try_echo=$ac_try;;
29964esac
29965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29966 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029967 ac_status=$?
29968 grep -v '^ *+' conftest.er1 >conftest.err
29969 rm -f conftest.er1
29970 cat conftest.err >&5
29971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029972 (exit $ac_status); } &&
29973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29974 { (case "(($ac_try" in
29975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29976 *) ac_try_echo=$ac_try;;
29977esac
29978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29979 (eval "$ac_try") 2>&5
29980 ac_status=$?
29981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29982 (exit $ac_status); }; } &&
29983 { ac_try='test -s conftest.$ac_objext'
29984 { (case "(($ac_try" in
29985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29986 *) ac_try_echo=$ac_try;;
29987esac
29988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29989 (eval "$ac_try") 2>&5
29990 ac_status=$?
29991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029993 ac_header_compiler=yes
29994else
29995 echo "$as_me: failed program was:" >&5
29996sed 's/^/| /' conftest.$ac_ext >&5
29997
Reid Spencera773bd52006-08-04 18:18:08 +000029998 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000029999fi
Reid Spencera773bd52006-08-04 18:18:08 +000030000
30001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30002{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30003echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030004
30005# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030006{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30007echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030008cat >conftest.$ac_ext <<_ACEOF
30009/* confdefs.h. */
30010_ACEOF
30011cat confdefs.h >>conftest.$ac_ext
30012cat >>conftest.$ac_ext <<_ACEOF
30013/* end confdefs.h. */
30014#include <$ac_header>
30015_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030016if { (ac_try="$ac_cpp conftest.$ac_ext"
30017case "(($ac_try" in
30018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30019 *) ac_try_echo=$ac_try;;
30020esac
30021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000030023 ac_status=$?
30024 grep -v '^ *+' conftest.er1 >conftest.err
30025 rm -f conftest.er1
30026 cat conftest.err >&5
30027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030028 (exit $ac_status); } >/dev/null; then
30029 if test -s conftest.err; then
30030 ac_cpp_err=$ac_c_preproc_warn_flag
30031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30032 else
30033 ac_cpp_err=
30034 fi
30035else
30036 ac_cpp_err=yes
30037fi
30038if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000030039 ac_header_preproc=yes
30040else
30041 echo "$as_me: failed program was:" >&5
30042sed 's/^/| /' conftest.$ac_ext >&5
30043
30044 ac_header_preproc=no
30045fi
Reid Spencera773bd52006-08-04 18:18:08 +000030046
Reid Spencer59473af2004-12-25 07:31:29 +000030047rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030048{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30049echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030050
30051# So? What about this header?
30052case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30053 yes:no: )
30054 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30055echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30057echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30058 ac_header_preproc=yes
30059 ;;
30060 no:yes:* )
30061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30062echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30064echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30065 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30066echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30067 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30068echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30070echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30071 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30072echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030073 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000030074## ----------------------------------- ##
30075## Report this to llvmbugs@cs.uiuc.edu ##
30076## ----------------------------------- ##
30077_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030078 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000030079 ;;
30080esac
Reid Spencera773bd52006-08-04 18:18:08 +000030081{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30082echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30083if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030084 echo $ECHO_N "(cached) $ECHO_C" >&6
30085else
30086 eval "$as_ac_Header=\$ac_header_preproc"
30087fi
Reid Spencera773bd52006-08-04 18:18:08 +000030088ac_res=`eval echo '${'$as_ac_Header'}'`
30089 { echo "$as_me:$LINENO: result: $ac_res" >&5
30090echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030091
30092fi
30093if test `eval echo '${'$as_ac_Header'}'` = yes; then
30094 cat >>confdefs.h <<_ACEOF
30095#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30096_ACEOF
30097
30098fi
30099
30100done
30101
30102
Douglas Gregor071d73d2009-05-18 17:21:34 +000030103
30104for ac_header in utime.h windows.h
Reid Spencerbe3e4192007-08-17 05:45:26 +000030105do
30106as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30107if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30109echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30110if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30111 echo $ECHO_N "(cached) $ECHO_C" >&6
30112fi
30113ac_res=`eval echo '${'$as_ac_Header'}'`
30114 { echo "$as_me:$LINENO: result: $ac_res" >&5
30115echo "${ECHO_T}$ac_res" >&6; }
30116else
30117 # Is the header compilable?
30118{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30119echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30120cat >conftest.$ac_ext <<_ACEOF
30121/* confdefs.h. */
30122_ACEOF
30123cat confdefs.h >>conftest.$ac_ext
30124cat >>conftest.$ac_ext <<_ACEOF
30125/* end confdefs.h. */
30126$ac_includes_default
30127#include <$ac_header>
30128_ACEOF
30129rm -f conftest.$ac_objext
30130if { (ac_try="$ac_compile"
30131case "(($ac_try" in
30132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30133 *) ac_try_echo=$ac_try;;
30134esac
30135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30136 (eval "$ac_compile") 2>conftest.er1
30137 ac_status=$?
30138 grep -v '^ *+' conftest.er1 >conftest.err
30139 rm -f conftest.er1
30140 cat conftest.err >&5
30141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030142 (exit $ac_status); } &&
30143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30144 { (case "(($ac_try" in
30145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30146 *) ac_try_echo=$ac_try;;
30147esac
30148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30149 (eval "$ac_try") 2>&5
30150 ac_status=$?
30151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30152 (exit $ac_status); }; } &&
30153 { ac_try='test -s conftest.$ac_objext'
30154 { (case "(($ac_try" in
30155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30156 *) ac_try_echo=$ac_try;;
30157esac
30158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30159 (eval "$ac_try") 2>&5
30160 ac_status=$?
30161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30162 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030163 ac_header_compiler=yes
30164else
30165 echo "$as_me: failed program was:" >&5
30166sed 's/^/| /' conftest.$ac_ext >&5
30167
30168 ac_header_compiler=no
30169fi
30170
30171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30172{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30173echo "${ECHO_T}$ac_header_compiler" >&6; }
30174
30175# Is the header present?
30176{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30177echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30178cat >conftest.$ac_ext <<_ACEOF
30179/* confdefs.h. */
30180_ACEOF
30181cat confdefs.h >>conftest.$ac_ext
30182cat >>conftest.$ac_ext <<_ACEOF
30183/* end confdefs.h. */
30184#include <$ac_header>
30185_ACEOF
30186if { (ac_try="$ac_cpp conftest.$ac_ext"
30187case "(($ac_try" in
30188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30189 *) ac_try_echo=$ac_try;;
30190esac
30191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30193 ac_status=$?
30194 grep -v '^ *+' conftest.er1 >conftest.err
30195 rm -f conftest.er1
30196 cat conftest.err >&5
30197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030198 (exit $ac_status); } >/dev/null; then
30199 if test -s conftest.err; then
30200 ac_cpp_err=$ac_c_preproc_warn_flag
30201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30202 else
30203 ac_cpp_err=
30204 fi
30205else
30206 ac_cpp_err=yes
30207fi
30208if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030209 ac_header_preproc=yes
30210else
30211 echo "$as_me: failed program was:" >&5
30212sed 's/^/| /' conftest.$ac_ext >&5
30213
30214 ac_header_preproc=no
30215fi
30216
30217rm -f conftest.err conftest.$ac_ext
30218{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30219echo "${ECHO_T}$ac_header_preproc" >&6; }
30220
30221# So? What about this header?
30222case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30223 yes:no: )
30224 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30225echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30227echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30228 ac_header_preproc=yes
30229 ;;
30230 no:yes:* )
30231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30232echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30234echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30235 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30236echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30237 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30238echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30240echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30241 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30242echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30243 ( cat <<\_ASBOX
30244## ----------------------------------- ##
30245## Report this to llvmbugs@cs.uiuc.edu ##
30246## ----------------------------------- ##
30247_ASBOX
30248 ) | sed "s/^/$as_me: WARNING: /" >&2
30249 ;;
30250esac
30251{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30253if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30254 echo $ECHO_N "(cached) $ECHO_C" >&6
30255else
30256 eval "$as_ac_Header=\$ac_header_preproc"
30257fi
30258ac_res=`eval echo '${'$as_ac_Header'}'`
30259 { echo "$as_me:$LINENO: result: $ac_res" >&5
30260echo "${ECHO_T}$ac_res" >&6; }
30261
30262fi
30263if test `eval echo '${'$as_ac_Header'}'` = yes; then
30264 cat >>confdefs.h <<_ACEOF
30265#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30266_ACEOF
30267
30268fi
30269
30270done
Reid Spencer59473af2004-12-25 07:31:29 +000030271
30272
30273
30274
Reid Spencerbe3e4192007-08-17 05:45:26 +000030275
30276for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030277do
30278as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030279if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30281echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30282if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030283 echo $ECHO_N "(cached) $ECHO_C" >&6
30284fi
Reid Spencera773bd52006-08-04 18:18:08 +000030285ac_res=`eval echo '${'$as_ac_Header'}'`
30286 { echo "$as_me:$LINENO: result: $ac_res" >&5
30287echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030288else
30289 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030290{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30291echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030292cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030293/* confdefs.h. */
30294_ACEOF
30295cat confdefs.h >>conftest.$ac_ext
30296cat >>conftest.$ac_ext <<_ACEOF
30297/* end confdefs.h. */
30298$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030299#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030300_ACEOF
30301rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030302if { (ac_try="$ac_compile"
30303case "(($ac_try" in
30304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30305 *) ac_try_echo=$ac_try;;
30306esac
30307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30308 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030309 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030310 grep -v '^ *+' conftest.er1 >conftest.err
30311 rm -f conftest.er1
30312 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030314 (exit $ac_status); } &&
30315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30316 { (case "(($ac_try" in
30317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30318 *) ac_try_echo=$ac_try;;
30319esac
30320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30321 (eval "$ac_try") 2>&5
30322 ac_status=$?
30323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30324 (exit $ac_status); }; } &&
30325 { ac_try='test -s conftest.$ac_objext'
30326 { (case "(($ac_try" in
30327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30328 *) ac_try_echo=$ac_try;;
30329esac
30330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30331 (eval "$ac_try") 2>&5
30332 ac_status=$?
30333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30334 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030335 ac_header_compiler=yes
30336else
30337 echo "$as_me: failed program was:" >&5
30338sed 's/^/| /' conftest.$ac_ext >&5
30339
Reid Spencera773bd52006-08-04 18:18:08 +000030340 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030341fi
Reid Spencera773bd52006-08-04 18:18:08 +000030342
30343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30344{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30345echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030346
30347# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030348{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30349echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030350cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030351/* confdefs.h. */
30352_ACEOF
30353cat confdefs.h >>conftest.$ac_ext
30354cat >>conftest.$ac_ext <<_ACEOF
30355/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030356#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030357_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030358if { (ac_try="$ac_cpp conftest.$ac_ext"
30359case "(($ac_try" in
30360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30361 *) ac_try_echo=$ac_try;;
30362esac
30363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030365 ac_status=$?
30366 grep -v '^ *+' conftest.er1 >conftest.err
30367 rm -f conftest.er1
30368 cat conftest.err >&5
30369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030370 (exit $ac_status); } >/dev/null; then
30371 if test -s conftest.err; then
30372 ac_cpp_err=$ac_c_preproc_warn_flag
30373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30374 else
30375 ac_cpp_err=
30376 fi
30377else
30378 ac_cpp_err=yes
30379fi
30380if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030381 ac_header_preproc=yes
30382else
30383 echo "$as_me: failed program was:" >&5
30384sed 's/^/| /' conftest.$ac_ext >&5
30385
30386 ac_header_preproc=no
30387fi
Reid Spencera773bd52006-08-04 18:18:08 +000030388
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030389rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030390{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30391echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030392
30393# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030394case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30395 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030396 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30397echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30399echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030400 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000030401 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030402 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030403 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30404echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30405 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30406echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30407 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30408echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30409 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30410echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30412echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30413 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30414echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030415 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000030416## ----------------------------------- ##
30417## Report this to llvmbugs@cs.uiuc.edu ##
30418## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030419_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030420 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030421 ;;
30422esac
Reid Spencera773bd52006-08-04 18:18:08 +000030423{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30424echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30425if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030426 echo $ECHO_N "(cached) $ECHO_C" >&6
30427else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030428 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030429fi
Reid Spencera773bd52006-08-04 18:18:08 +000030430ac_res=`eval echo '${'$as_ac_Header'}'`
30431 { echo "$as_me:$LINENO: result: $ac_res" >&5
30432echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030433
30434fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030435if test `eval echo '${'$as_ac_Header'}'` = yes; then
30436 cat >>confdefs.h <<_ACEOF
30437#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000030438_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000030439
30440fi
John Criswell7ed43ad2004-07-19 16:12:29 +000030441
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030442done
30443
John Criswell7ed43ad2004-07-19 16:12:29 +000030444
Reid Spencercdb08a32006-06-05 16:11:07 +000030445
Reid Spencera6d990a2006-09-14 06:17:21 +000030446
Douglas Gregor01746742009-05-11 18:05:52 +000030447
30448for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000030449do
30450as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030451if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30452 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30454if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030455 echo $ECHO_N "(cached) $ECHO_C" >&6
30456fi
Reid Spencera773bd52006-08-04 18:18:08 +000030457ac_res=`eval echo '${'$as_ac_Header'}'`
30458 { echo "$as_me:$LINENO: result: $ac_res" >&5
30459echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030460else
30461 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030462{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30463echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030464cat >conftest.$ac_ext <<_ACEOF
30465/* confdefs.h. */
30466_ACEOF
30467cat confdefs.h >>conftest.$ac_ext
30468cat >>conftest.$ac_ext <<_ACEOF
30469/* end confdefs.h. */
30470$ac_includes_default
30471#include <$ac_header>
30472_ACEOF
30473rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030474if { (ac_try="$ac_compile"
30475case "(($ac_try" in
30476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30477 *) ac_try_echo=$ac_try;;
30478esac
30479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30480 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000030481 ac_status=$?
30482 grep -v '^ *+' conftest.er1 >conftest.err
30483 rm -f conftest.er1
30484 cat conftest.err >&5
30485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030486 (exit $ac_status); } &&
30487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30488 { (case "(($ac_try" in
30489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30490 *) ac_try_echo=$ac_try;;
30491esac
30492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30493 (eval "$ac_try") 2>&5
30494 ac_status=$?
30495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30496 (exit $ac_status); }; } &&
30497 { ac_try='test -s conftest.$ac_objext'
30498 { (case "(($ac_try" in
30499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30500 *) ac_try_echo=$ac_try;;
30501esac
30502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30503 (eval "$ac_try") 2>&5
30504 ac_status=$?
30505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30506 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030507 ac_header_compiler=yes
30508else
30509 echo "$as_me: failed program was:" >&5
30510sed 's/^/| /' conftest.$ac_ext >&5
30511
Reid Spencera773bd52006-08-04 18:18:08 +000030512 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000030513fi
Reid Spencera773bd52006-08-04 18:18:08 +000030514
30515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30516{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30517echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030518
30519# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030520{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30521echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030522cat >conftest.$ac_ext <<_ACEOF
30523/* confdefs.h. */
30524_ACEOF
30525cat confdefs.h >>conftest.$ac_ext
30526cat >>conftest.$ac_ext <<_ACEOF
30527/* end confdefs.h. */
30528#include <$ac_header>
30529_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030530if { (ac_try="$ac_cpp conftest.$ac_ext"
30531case "(($ac_try" in
30532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30533 *) ac_try_echo=$ac_try;;
30534esac
30535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000030537 ac_status=$?
30538 grep -v '^ *+' conftest.er1 >conftest.err
30539 rm -f conftest.er1
30540 cat conftest.err >&5
30541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030542 (exit $ac_status); } >/dev/null; then
30543 if test -s conftest.err; then
30544 ac_cpp_err=$ac_c_preproc_warn_flag
30545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30546 else
30547 ac_cpp_err=
30548 fi
30549else
30550 ac_cpp_err=yes
30551fi
30552if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000030553 ac_header_preproc=yes
30554else
30555 echo "$as_me: failed program was:" >&5
30556sed 's/^/| /' conftest.$ac_ext >&5
30557
30558 ac_header_preproc=no
30559fi
Reid Spencera773bd52006-08-04 18:18:08 +000030560
Chris Lattner0b142592005-11-14 06:57:34 +000030561rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030562{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30563echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030564
30565# So? What about this header?
30566case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30567 yes:no: )
30568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30569echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30571echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30572 ac_header_preproc=yes
30573 ;;
30574 no:yes:* )
30575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30576echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30578echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30580echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30582echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30584echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30586echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030587 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000030588## ----------------------------------- ##
30589## Report this to llvmbugs@cs.uiuc.edu ##
30590## ----------------------------------- ##
30591_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030592 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000030593 ;;
30594esac
Reid Spencera773bd52006-08-04 18:18:08 +000030595{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30596echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30597if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030598 echo $ECHO_N "(cached) $ECHO_C" >&6
30599else
30600 eval "$as_ac_Header=\$ac_header_preproc"
30601fi
Reid Spencera773bd52006-08-04 18:18:08 +000030602ac_res=`eval echo '${'$as_ac_Header'}'`
30603 { echo "$as_me:$LINENO: result: $ac_res" >&5
30604echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030605
30606fi
30607if test `eval echo '${'$as_ac_Header'}'` = yes; then
30608 cat >>confdefs.h <<_ACEOF
30609#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30610_ACEOF
30611
30612fi
30613
30614done
30615
Reid Spencer0a262ba2005-08-24 10:07:20 +000030616if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030617
30618for ac_header in pthread.h
30619do
30620as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30621if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30623echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30624if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030625 echo $ECHO_N "(cached) $ECHO_C" >&6
30626fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030627ac_res=`eval echo '${'$as_ac_Header'}'`
30628 { echo "$as_me:$LINENO: result: $ac_res" >&5
30629echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030630else
30631 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000030632{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30633echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030634cat >conftest.$ac_ext <<_ACEOF
30635/* confdefs.h. */
30636_ACEOF
30637cat confdefs.h >>conftest.$ac_ext
30638cat >>conftest.$ac_ext <<_ACEOF
30639/* end confdefs.h. */
30640$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000030641#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000030642_ACEOF
30643rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030644if { (ac_try="$ac_compile"
30645case "(($ac_try" in
30646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30647 *) ac_try_echo=$ac_try;;
30648esac
30649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30650 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030651 ac_status=$?
30652 grep -v '^ *+' conftest.er1 >conftest.err
30653 rm -f conftest.er1
30654 cat conftest.err >&5
30655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030656 (exit $ac_status); } &&
30657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30658 { (case "(($ac_try" in
30659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30660 *) ac_try_echo=$ac_try;;
30661esac
30662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30663 (eval "$ac_try") 2>&5
30664 ac_status=$?
30665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30666 (exit $ac_status); }; } &&
30667 { ac_try='test -s conftest.$ac_objext'
30668 { (case "(($ac_try" in
30669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30670 *) ac_try_echo=$ac_try;;
30671esac
30672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30673 (eval "$ac_try") 2>&5
30674 ac_status=$?
30675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30676 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030677 ac_header_compiler=yes
30678else
30679 echo "$as_me: failed program was:" >&5
30680sed 's/^/| /' conftest.$ac_ext >&5
30681
Reid Spencera773bd52006-08-04 18:18:08 +000030682 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000030683fi
Reid Spencera773bd52006-08-04 18:18:08 +000030684
30685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30686{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30687echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030688
30689# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000030690{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30691echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030692cat >conftest.$ac_ext <<_ACEOF
30693/* confdefs.h. */
30694_ACEOF
30695cat confdefs.h >>conftest.$ac_ext
30696cat >>conftest.$ac_ext <<_ACEOF
30697/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000030698#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000030699_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030700if { (ac_try="$ac_cpp conftest.$ac_ext"
30701case "(($ac_try" in
30702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30703 *) ac_try_echo=$ac_try;;
30704esac
30705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030707 ac_status=$?
30708 grep -v '^ *+' conftest.er1 >conftest.err
30709 rm -f conftest.er1
30710 cat conftest.err >&5
30711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030712 (exit $ac_status); } >/dev/null; then
30713 if test -s conftest.err; then
30714 ac_cpp_err=$ac_c_preproc_warn_flag
30715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30716 else
30717 ac_cpp_err=
30718 fi
30719else
30720 ac_cpp_err=yes
30721fi
30722if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030723 ac_header_preproc=yes
30724else
30725 echo "$as_me: failed program was:" >&5
30726sed 's/^/| /' conftest.$ac_ext >&5
30727
30728 ac_header_preproc=no
30729fi
Reid Spencera773bd52006-08-04 18:18:08 +000030730
Reid Spencer0a262ba2005-08-24 10:07:20 +000030731rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030732{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30733echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030734
30735# So? What about this header?
30736case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30737 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30739echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30741echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000030742 ac_header_preproc=yes
30743 ;;
30744 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30746echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30748echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30750echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30752echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30754echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30756echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030757 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000030758## ----------------------------------- ##
30759## Report this to llvmbugs@cs.uiuc.edu ##
30760## ----------------------------------- ##
30761_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030762 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000030763 ;;
30764esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000030765{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30766echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30767if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030768 echo $ECHO_N "(cached) $ECHO_C" >&6
30769else
Reid Spencerbe3e4192007-08-17 05:45:26 +000030770 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000030771fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030772ac_res=`eval echo '${'$as_ac_Header'}'`
30773 { echo "$as_me:$LINENO: result: $ac_res" >&5
30774echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030775
30776fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030777if test `eval echo '${'$as_ac_Header'}'` = yes; then
30778 cat >>confdefs.h <<_ACEOF
30779#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30780_ACEOF
30781 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000030782
30783else
30784 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030785
30786fi
30787
Reid Spencerbe3e4192007-08-17 05:45:26 +000030788done
Reid Spencer1000b732006-12-01 00:37:14 +000030789
30790else
30791 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030792
30793fi
Reid Spencer8085cff2005-01-16 02:58:39 +000030794
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000030795if test "$llvm_cv_enable_libffi" = "yes" ; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030796
30797
30798for ac_header in ffi.h ffi/ffi.h
30799do
30800as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30801if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30803echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30804if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30805 echo $ECHO_N "(cached) $ECHO_C" >&6
30806fi
30807ac_res=`eval echo '${'$as_ac_Header'}'`
30808 { echo "$as_me:$LINENO: result: $ac_res" >&5
30809echo "${ECHO_T}$ac_res" >&6; }
30810else
30811 # Is the header compilable?
30812{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30813echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30814cat >conftest.$ac_ext <<_ACEOF
30815/* confdefs.h. */
30816_ACEOF
30817cat confdefs.h >>conftest.$ac_ext
30818cat >>conftest.$ac_ext <<_ACEOF
30819/* end confdefs.h. */
30820$ac_includes_default
30821#include <$ac_header>
30822_ACEOF
30823rm -f conftest.$ac_objext
30824if { (ac_try="$ac_compile"
30825case "(($ac_try" in
30826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30827 *) ac_try_echo=$ac_try;;
30828esac
30829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30830 (eval "$ac_compile") 2>conftest.er1
30831 ac_status=$?
30832 grep -v '^ *+' conftest.er1 >conftest.err
30833 rm -f conftest.er1
30834 cat conftest.err >&5
30835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030836 (exit $ac_status); } &&
30837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30838 { (case "(($ac_try" in
30839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30840 *) ac_try_echo=$ac_try;;
30841esac
30842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30843 (eval "$ac_try") 2>&5
30844 ac_status=$?
30845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30846 (exit $ac_status); }; } &&
30847 { ac_try='test -s conftest.$ac_objext'
30848 { (case "(($ac_try" in
30849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30850 *) ac_try_echo=$ac_try;;
30851esac
30852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30853 (eval "$ac_try") 2>&5
30854 ac_status=$?
30855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30856 (exit $ac_status); }; }; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030857 ac_header_compiler=yes
30858else
30859 echo "$as_me: failed program was:" >&5
30860sed 's/^/| /' conftest.$ac_ext >&5
30861
30862 ac_header_compiler=no
30863fi
30864
30865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30866{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30867echo "${ECHO_T}$ac_header_compiler" >&6; }
30868
30869# Is the header present?
30870{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30871echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30872cat >conftest.$ac_ext <<_ACEOF
30873/* confdefs.h. */
30874_ACEOF
30875cat confdefs.h >>conftest.$ac_ext
30876cat >>conftest.$ac_ext <<_ACEOF
30877/* end confdefs.h. */
30878#include <$ac_header>
30879_ACEOF
30880if { (ac_try="$ac_cpp conftest.$ac_ext"
30881case "(($ac_try" in
30882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30883 *) ac_try_echo=$ac_try;;
30884esac
30885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30887 ac_status=$?
30888 grep -v '^ *+' conftest.er1 >conftest.err
30889 rm -f conftest.er1
30890 cat conftest.err >&5
30891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030892 (exit $ac_status); } >/dev/null; then
30893 if test -s conftest.err; then
30894 ac_cpp_err=$ac_c_preproc_warn_flag
30895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30896 else
30897 ac_cpp_err=
30898 fi
30899else
30900 ac_cpp_err=yes
30901fi
30902if test -z "$ac_cpp_err"; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030903 ac_header_preproc=yes
30904else
30905 echo "$as_me: failed program was:" >&5
30906sed 's/^/| /' conftest.$ac_ext >&5
30907
30908 ac_header_preproc=no
30909fi
30910
30911rm -f conftest.err conftest.$ac_ext
30912{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30913echo "${ECHO_T}$ac_header_preproc" >&6; }
30914
30915# So? What about this header?
30916case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30917 yes:no: )
30918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30919echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30921echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30922 ac_header_preproc=yes
30923 ;;
30924 no:yes:* )
30925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30926echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30928echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30930echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30932echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30934echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30936echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30937 ( cat <<\_ASBOX
30938## ----------------------------------- ##
30939## Report this to llvmbugs@cs.uiuc.edu ##
30940## ----------------------------------- ##
30941_ASBOX
30942 ) | sed "s/^/$as_me: WARNING: /" >&2
30943 ;;
30944esac
30945{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30946echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30947if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30948 echo $ECHO_N "(cached) $ECHO_C" >&6
30949else
30950 eval "$as_ac_Header=\$ac_header_preproc"
30951fi
30952ac_res=`eval echo '${'$as_ac_Header'}'`
30953 { echo "$as_me:$LINENO: result: $ac_res" >&5
30954echo "${ECHO_T}$ac_res" >&6; }
30955
30956fi
30957if test `eval echo '${'$as_ac_Header'}'` = yes; then
30958 cat >>confdefs.h <<_ACEOF
30959#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30960_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030961
30962fi
30963
30964done
30965
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000030966fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030967
Nick Lewycky2ab1d862009-01-20 00:52:24 +000030968
Reid Spencer8085cff2005-01-16 02:58:39 +000030969
Reid Spencerb2ed05262006-11-03 18:04:08 +000030970 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30971echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30972if test "${ac_cv_huge_val_sanity+set}" = set; then
30973 echo $ECHO_N "(cached) $ECHO_C" >&6
30974else
30975
Reid Spencer6a7c0b72006-11-03 19:49:16 +000030976 ac_ext=cpp
30977ac_cpp='$CXXCPP $CPPFLAGS'
30978ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30979ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30980ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000030981
Reid Spencer6a7c0b72006-11-03 19:49:16 +000030982 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000030983 if test "$cross_compiling" = yes; then
30984 ac_cv_huge_val_sanity=yes
30985else
30986 cat >conftest.$ac_ext <<_ACEOF
30987/* confdefs.h. */
30988_ACEOF
30989cat confdefs.h >>conftest.$ac_ext
30990cat >>conftest.$ac_ext <<_ACEOF
30991/* end confdefs.h. */
30992#include <math.h>
30993int
30994main ()
30995{
30996double x = HUGE_VAL; return x != x;
30997 ;
30998 return 0;
30999}
31000_ACEOF
31001rm -f conftest$ac_exeext
31002if { (ac_try="$ac_link"
31003case "(($ac_try" in
31004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31005 *) ac_try_echo=$ac_try;;
31006esac
31007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31008 (eval "$ac_link") 2>&5
31009 ac_status=$?
31010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31012 { (case "(($ac_try" in
31013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31014 *) ac_try_echo=$ac_try;;
31015esac
31016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31017 (eval "$ac_try") 2>&5
31018 ac_status=$?
31019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31020 (exit $ac_status); }; }; then
31021 ac_cv_huge_val_sanity=yes
31022else
31023 echo "$as_me: program exited with status $ac_status" >&5
31024echo "$as_me: failed program was:" >&5
31025sed 's/^/| /' conftest.$ac_ext >&5
31026
31027( exit $ac_status )
31028ac_cv_huge_val_sanity=no
31029fi
31030rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31031fi
31032
31033
31034 ac_ext=c
31035ac_cpp='$CPP $CPPFLAGS'
31036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31038ac_compiler_gnu=$ac_cv_c_compiler_gnu
31039
31040
31041fi
31042{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31043echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31044 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31045
31046
Reid Spencera773bd52006-08-04 18:18:08 +000031047{ echo "$as_me:$LINENO: checking for pid_t" >&5
31048echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031049if test "${ac_cv_type_pid_t+set}" = set; then
31050 echo $ECHO_N "(cached) $ECHO_C" >&6
31051else
31052 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031053/* confdefs.h. */
31054_ACEOF
31055cat confdefs.h >>conftest.$ac_ext
31056cat >>conftest.$ac_ext <<_ACEOF
31057/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031058$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031059typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031060int
31061main ()
31062{
Reid Spencera773bd52006-08-04 18:18:08 +000031063if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031064 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031065if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031066 return 0;
31067 ;
31068 return 0;
31069}
31070_ACEOF
31071rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031072if { (ac_try="$ac_compile"
31073case "(($ac_try" in
31074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31075 *) ac_try_echo=$ac_try;;
31076esac
31077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31078 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031079 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031080 grep -v '^ *+' conftest.er1 >conftest.err
31081 rm -f conftest.er1
31082 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031084 (exit $ac_status); } &&
31085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31086 { (case "(($ac_try" in
31087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31088 *) ac_try_echo=$ac_try;;
31089esac
31090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31091 (eval "$ac_try") 2>&5
31092 ac_status=$?
31093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31094 (exit $ac_status); }; } &&
31095 { ac_try='test -s conftest.$ac_objext'
31096 { (case "(($ac_try" in
31097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31098 *) ac_try_echo=$ac_try;;
31099esac
31100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31101 (eval "$ac_try") 2>&5
31102 ac_status=$?
31103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31104 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031105 ac_cv_type_pid_t=yes
31106else
31107 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031108sed 's/^/| /' conftest.$ac_ext >&5
31109
Reid Spencera773bd52006-08-04 18:18:08 +000031110 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031111fi
Reid Spencera773bd52006-08-04 18:18:08 +000031112
31113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031114fi
Reid Spencera773bd52006-08-04 18:18:08 +000031115{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31116echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031117if test $ac_cv_type_pid_t = yes; then
31118 :
31119else
31120
31121cat >>confdefs.h <<_ACEOF
31122#define pid_t int
31123_ACEOF
31124
31125fi
31126
Reid Spencera773bd52006-08-04 18:18:08 +000031127{ echo "$as_me:$LINENO: checking for size_t" >&5
31128echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031129if test "${ac_cv_type_size_t+set}" = set; then
31130 echo $ECHO_N "(cached) $ECHO_C" >&6
31131else
31132 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031133/* confdefs.h. */
31134_ACEOF
31135cat confdefs.h >>conftest.$ac_ext
31136cat >>conftest.$ac_ext <<_ACEOF
31137/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031138$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031139typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031140int
31141main ()
31142{
Reid Spencera773bd52006-08-04 18:18:08 +000031143if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031144 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031145if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031146 return 0;
31147 ;
31148 return 0;
31149}
31150_ACEOF
31151rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031152if { (ac_try="$ac_compile"
31153case "(($ac_try" in
31154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31155 *) ac_try_echo=$ac_try;;
31156esac
31157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31158 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031159 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031160 grep -v '^ *+' conftest.er1 >conftest.err
31161 rm -f conftest.er1
31162 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031164 (exit $ac_status); } &&
31165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31166 { (case "(($ac_try" in
31167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31168 *) ac_try_echo=$ac_try;;
31169esac
31170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31171 (eval "$ac_try") 2>&5
31172 ac_status=$?
31173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31174 (exit $ac_status); }; } &&
31175 { ac_try='test -s conftest.$ac_objext'
31176 { (case "(($ac_try" in
31177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31178 *) ac_try_echo=$ac_try;;
31179esac
31180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31181 (eval "$ac_try") 2>&5
31182 ac_status=$?
31183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31184 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031185 ac_cv_type_size_t=yes
31186else
31187 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031188sed 's/^/| /' conftest.$ac_ext >&5
31189
Reid Spencera773bd52006-08-04 18:18:08 +000031190 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031191fi
Reid Spencera773bd52006-08-04 18:18:08 +000031192
31193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031194fi
Reid Spencera773bd52006-08-04 18:18:08 +000031195{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31196echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031197if test $ac_cv_type_size_t = yes; then
31198 :
31199else
31200
31201cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000031202#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000031203_ACEOF
31204
31205fi
31206
Reid Spencera773bd52006-08-04 18:18:08 +000031207{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31208echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031209if test "${ac_cv_type_signal+set}" = set; then
31210 echo $ECHO_N "(cached) $ECHO_C" >&6
31211else
31212 cat >conftest.$ac_ext <<_ACEOF
31213/* confdefs.h. */
31214_ACEOF
31215cat confdefs.h >>conftest.$ac_ext
31216cat >>conftest.$ac_ext <<_ACEOF
31217/* end confdefs.h. */
31218#include <sys/types.h>
31219#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031220
31221int
31222main ()
31223{
Reid Spencera773bd52006-08-04 18:18:08 +000031224return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031225 ;
31226 return 0;
31227}
31228_ACEOF
31229rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031230if { (ac_try="$ac_compile"
31231case "(($ac_try" in
31232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31233 *) ac_try_echo=$ac_try;;
31234esac
31235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31236 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031237 ac_status=$?
31238 grep -v '^ *+' conftest.er1 >conftest.err
31239 rm -f conftest.er1
31240 cat conftest.err >&5
31241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031242 (exit $ac_status); } &&
31243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31244 { (case "(($ac_try" in
31245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31246 *) ac_try_echo=$ac_try;;
31247esac
31248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31249 (eval "$ac_try") 2>&5
31250 ac_status=$?
31251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31252 (exit $ac_status); }; } &&
31253 { ac_try='test -s conftest.$ac_objext'
31254 { (case "(($ac_try" in
31255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31256 *) ac_try_echo=$ac_try;;
31257esac
31258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31259 (eval "$ac_try") 2>&5
31260 ac_status=$?
31261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31262 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000031263 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031264else
31265 echo "$as_me: failed program was:" >&5
31266sed 's/^/| /' conftest.$ac_ext >&5
31267
Reid Spencera773bd52006-08-04 18:18:08 +000031268 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031269fi
Reid Spencera773bd52006-08-04 18:18:08 +000031270
31271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031272fi
Reid Spencera773bd52006-08-04 18:18:08 +000031273{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31274echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031275
31276cat >>confdefs.h <<_ACEOF
31277#define RETSIGTYPE $ac_cv_type_signal
31278_ACEOF
31279
31280
Reid Spencera773bd52006-08-04 18:18:08 +000031281{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31282echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031283if test "${ac_cv_struct_tm+set}" = set; then
31284 echo $ECHO_N "(cached) $ECHO_C" >&6
31285else
31286 cat >conftest.$ac_ext <<_ACEOF
31287/* confdefs.h. */
31288_ACEOF
31289cat confdefs.h >>conftest.$ac_ext
31290cat >>conftest.$ac_ext <<_ACEOF
31291/* end confdefs.h. */
31292#include <sys/types.h>
31293#include <time.h>
31294
31295int
31296main ()
31297{
Bill Wendlingebcceee2009-04-18 11:20:33 +000031298struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031299 ;
31300 return 0;
31301}
31302_ACEOF
31303rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031304if { (ac_try="$ac_compile"
31305case "(($ac_try" in
31306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31307 *) ac_try_echo=$ac_try;;
31308esac
31309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31310 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031311 ac_status=$?
31312 grep -v '^ *+' conftest.er1 >conftest.err
31313 rm -f conftest.er1
31314 cat conftest.err >&5
31315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031316 (exit $ac_status); } &&
31317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31318 { (case "(($ac_try" in
31319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31320 *) ac_try_echo=$ac_try;;
31321esac
31322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31323 (eval "$ac_try") 2>&5
31324 ac_status=$?
31325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31326 (exit $ac_status); }; } &&
31327 { ac_try='test -s conftest.$ac_objext'
31328 { (case "(($ac_try" in
31329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31330 *) ac_try_echo=$ac_try;;
31331esac
31332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31333 (eval "$ac_try") 2>&5
31334 ac_status=$?
31335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31336 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031337 ac_cv_struct_tm=time.h
31338else
31339 echo "$as_me: failed program was:" >&5
31340sed 's/^/| /' conftest.$ac_ext >&5
31341
Reid Spencera773bd52006-08-04 18:18:08 +000031342 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031343fi
Reid Spencera773bd52006-08-04 18:18:08 +000031344
31345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031346fi
Reid Spencera773bd52006-08-04 18:18:08 +000031347{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31348echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031349if test $ac_cv_struct_tm = sys/time.h; then
31350
31351cat >>confdefs.h <<\_ACEOF
31352#define TM_IN_SYS_TIME 1
31353_ACEOF
31354
31355fi
31356
Reid Spencera773bd52006-08-04 18:18:08 +000031357{ echo "$as_me:$LINENO: checking for int64_t" >&5
31358echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031359if test "${ac_cv_type_int64_t+set}" = set; then
31360 echo $ECHO_N "(cached) $ECHO_C" >&6
31361else
31362 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031363/* confdefs.h. */
31364_ACEOF
31365cat confdefs.h >>conftest.$ac_ext
31366cat >>conftest.$ac_ext <<_ACEOF
31367/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031368$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031369typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031370int
31371main ()
31372{
Reid Spencera773bd52006-08-04 18:18:08 +000031373if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031374 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031375if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031376 return 0;
31377 ;
31378 return 0;
31379}
31380_ACEOF
31381rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031382if { (ac_try="$ac_compile"
31383case "(($ac_try" in
31384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31385 *) ac_try_echo=$ac_try;;
31386esac
31387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31388 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031389 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031390 grep -v '^ *+' conftest.er1 >conftest.err
31391 rm -f conftest.er1
31392 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031394 (exit $ac_status); } &&
31395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31396 { (case "(($ac_try" in
31397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31398 *) ac_try_echo=$ac_try;;
31399esac
31400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31401 (eval "$ac_try") 2>&5
31402 ac_status=$?
31403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31404 (exit $ac_status); }; } &&
31405 { ac_try='test -s conftest.$ac_objext'
31406 { (case "(($ac_try" in
31407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31408 *) ac_try_echo=$ac_try;;
31409esac
31410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31411 (eval "$ac_try") 2>&5
31412 ac_status=$?
31413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31414 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031415 ac_cv_type_int64_t=yes
31416else
31417 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031418sed 's/^/| /' conftest.$ac_ext >&5
31419
Reid Spencera773bd52006-08-04 18:18:08 +000031420 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031421fi
Reid Spencera773bd52006-08-04 18:18:08 +000031422
31423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031424fi
Reid Spencera773bd52006-08-04 18:18:08 +000031425{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31426echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031427if test $ac_cv_type_int64_t = yes; then
31428
31429cat >>confdefs.h <<_ACEOF
31430#define HAVE_INT64_T 1
31431_ACEOF
31432
31433
31434else
31435 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31436echo "$as_me: error: Type int64_t required but not found" >&2;}
31437 { (exit 1); exit 1; }; }
31438fi
31439
Reid Spencera773bd52006-08-04 18:18:08 +000031440{ echo "$as_me:$LINENO: checking for uint64_t" >&5
31441echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031442if test "${ac_cv_type_uint64_t+set}" = set; then
31443 echo $ECHO_N "(cached) $ECHO_C" >&6
31444else
31445 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031446/* confdefs.h. */
31447_ACEOF
31448cat confdefs.h >>conftest.$ac_ext
31449cat >>conftest.$ac_ext <<_ACEOF
31450/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031451$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031452typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031453int
31454main ()
31455{
Reid Spencera773bd52006-08-04 18:18:08 +000031456if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031457 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031458if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031459 return 0;
31460 ;
31461 return 0;
31462}
31463_ACEOF
31464rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031465if { (ac_try="$ac_compile"
31466case "(($ac_try" in
31467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31468 *) ac_try_echo=$ac_try;;
31469esac
31470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31471 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031472 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031473 grep -v '^ *+' conftest.er1 >conftest.err
31474 rm -f conftest.er1
31475 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031477 (exit $ac_status); } &&
31478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31479 { (case "(($ac_try" in
31480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31481 *) ac_try_echo=$ac_try;;
31482esac
31483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31484 (eval "$ac_try") 2>&5
31485 ac_status=$?
31486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31487 (exit $ac_status); }; } &&
31488 { ac_try='test -s conftest.$ac_objext'
31489 { (case "(($ac_try" in
31490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31491 *) ac_try_echo=$ac_try;;
31492esac
31493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31494 (eval "$ac_try") 2>&5
31495 ac_status=$?
31496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31497 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031498 ac_cv_type_uint64_t=yes
31499else
31500 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031501sed 's/^/| /' conftest.$ac_ext >&5
31502
Reid Spencera773bd52006-08-04 18:18:08 +000031503 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031504fi
Reid Spencera773bd52006-08-04 18:18:08 +000031505
31506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031507fi
Reid Spencera773bd52006-08-04 18:18:08 +000031508{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31509echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031510if test $ac_cv_type_uint64_t = yes; then
31511
31512cat >>confdefs.h <<_ACEOF
31513#define HAVE_UINT64_T 1
31514_ACEOF
31515
31516
31517else
Reid Spencera773bd52006-08-04 18:18:08 +000031518 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31519echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000031520if test "${ac_cv_type_u_int64_t+set}" = set; then
31521 echo $ECHO_N "(cached) $ECHO_C" >&6
31522else
31523 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000031524/* confdefs.h. */
31525_ACEOF
31526cat confdefs.h >>conftest.$ac_ext
31527cat >>conftest.$ac_ext <<_ACEOF
31528/* end confdefs.h. */
31529$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031530typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000031531int
31532main ()
31533{
Reid Spencera773bd52006-08-04 18:18:08 +000031534if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000031535 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031536if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000031537 return 0;
31538 ;
31539 return 0;
31540}
31541_ACEOF
31542rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031543if { (ac_try="$ac_compile"
31544case "(($ac_try" in
31545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31546 *) ac_try_echo=$ac_try;;
31547esac
31548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31549 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000031550 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031551 grep -v '^ *+' conftest.er1 >conftest.err
31552 rm -f conftest.er1
31553 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000031554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031555 (exit $ac_status); } &&
31556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31557 { (case "(($ac_try" in
31558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31559 *) ac_try_echo=$ac_try;;
31560esac
31561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31562 (eval "$ac_try") 2>&5
31563 ac_status=$?
31564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31565 (exit $ac_status); }; } &&
31566 { ac_try='test -s conftest.$ac_objext'
31567 { (case "(($ac_try" in
31568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31569 *) ac_try_echo=$ac_try;;
31570esac
31571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31572 (eval "$ac_try") 2>&5
31573 ac_status=$?
31574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31575 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000031576 ac_cv_type_u_int64_t=yes
31577else
31578 echo "$as_me: failed program was:" >&5
31579sed 's/^/| /' conftest.$ac_ext >&5
31580
Reid Spencera773bd52006-08-04 18:18:08 +000031581 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000031582fi
Reid Spencera773bd52006-08-04 18:18:08 +000031583
31584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000031585fi
Reid Spencera773bd52006-08-04 18:18:08 +000031586{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31587echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000031588if test $ac_cv_type_u_int64_t = yes; then
31589
31590cat >>confdefs.h <<_ACEOF
31591#define HAVE_U_INT64_T 1
31592_ACEOF
31593
31594
Misha Brukmanceca9042004-09-02 23:02:30 +000031595else
31596 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31597echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31598 { (exit 1); exit 1; }; }
31599fi
31600
John Criswell679ff312004-09-02 18:44:44 +000031601fi
31602
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031603
31604
31605
31606
31607
31608
31609
Reid Spencerf4bb9b12006-01-19 08:22:40 +000031610
31611
Reid Spencerdf3be822006-01-23 08:15:53 +000031612for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031613do
31614as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031615{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31616echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31617if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031618 echo $ECHO_N "(cached) $ECHO_C" >&6
31619else
31620 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031621/* confdefs.h. */
31622_ACEOF
31623cat confdefs.h >>conftest.$ac_ext
31624cat >>conftest.$ac_ext <<_ACEOF
31625/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031626/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31628#define $ac_func innocuous_$ac_func
31629
31630/* System header to define __stub macros and hopefully few prototypes,
31631 which can conflict with char $ac_func (); below.
31632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31633 <limits.h> exists even on freestanding compilers. */
31634
31635#ifdef __STDC__
31636# include <limits.h>
31637#else
31638# include <assert.h>
31639#endif
31640
31641#undef $ac_func
31642
Reid Spencera773bd52006-08-04 18:18:08 +000031643/* Override any GCC internal prototype to avoid an error.
31644 Use char because int might match the return type of a GCC
31645 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031646#ifdef __cplusplus
31647extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031648#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031649char $ac_func ();
31650/* The GNU C library defines this for functions which it implements
31651 to always fail with ENOSYS. Some functions are actually named
31652 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031653#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031654choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031655#endif
John Criswell7a73b802003-06-30 21:59:07 +000031656
John Criswell7a73b802003-06-30 21:59:07 +000031657int
31658main ()
31659{
Reid Spencera773bd52006-08-04 18:18:08 +000031660return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031661 ;
31662 return 0;
31663}
31664_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031665rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031666if { (ac_try="$ac_link"
31667case "(($ac_try" in
31668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31669 *) ac_try_echo=$ac_try;;
31670esac
31671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31672 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031673 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031674 grep -v '^ *+' conftest.er1 >conftest.err
31675 rm -f conftest.er1
31676 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031678 (exit $ac_status); } &&
31679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31680 { (case "(($ac_try" in
31681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31682 *) ac_try_echo=$ac_try;;
31683esac
31684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31685 (eval "$ac_try") 2>&5
31686 ac_status=$?
31687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31688 (exit $ac_status); }; } &&
31689 { ac_try='test -s conftest$ac_exeext'
31690 { (case "(($ac_try" in
31691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31692 *) ac_try_echo=$ac_try;;
31693esac
31694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31695 (eval "$ac_try") 2>&5
31696 ac_status=$?
31697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31698 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031699 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031700else
31701 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031702sed 's/^/| /' conftest.$ac_ext >&5
31703
Reid Spencera773bd52006-08-04 18:18:08 +000031704 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031705fi
Reid Spencera773bd52006-08-04 18:18:08 +000031706
Bill Wendlingebcceee2009-04-18 11:20:33 +000031707rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031708 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031709fi
Reid Spencera773bd52006-08-04 18:18:08 +000031710ac_res=`eval echo '${'$as_ac_var'}'`
31711 { echo "$as_me:$LINENO: result: $ac_res" >&5
31712echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031713if test `eval echo '${'$as_ac_var'}'` = yes; then
31714 cat >>confdefs.h <<_ACEOF
31715#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031716_ACEOF
31717
31718fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031719done
John Criswell7a73b802003-06-30 21:59:07 +000031720
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031721
31722
31723
Reid Spencer6af3d262004-12-15 04:01:48 +000031724
Reid Spencer96cf5872007-07-13 10:05:30 +000031725for ac_func in powf fmodf strtof round
31726do
31727as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31728{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31729echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31730if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31731 echo $ECHO_N "(cached) $ECHO_C" >&6
31732else
31733 cat >conftest.$ac_ext <<_ACEOF
31734/* confdefs.h. */
31735_ACEOF
31736cat confdefs.h >>conftest.$ac_ext
31737cat >>conftest.$ac_ext <<_ACEOF
31738/* end confdefs.h. */
31739/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31741#define $ac_func innocuous_$ac_func
31742
31743/* System header to define __stub macros and hopefully few prototypes,
31744 which can conflict with char $ac_func (); below.
31745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31746 <limits.h> exists even on freestanding compilers. */
31747
31748#ifdef __STDC__
31749# include <limits.h>
31750#else
31751# include <assert.h>
31752#endif
31753
31754#undef $ac_func
31755
31756/* Override any GCC internal prototype to avoid an error.
31757 Use char because int might match the return type of a GCC
31758 builtin and then its argument prototype would still apply. */
31759#ifdef __cplusplus
31760extern "C"
31761#endif
31762char $ac_func ();
31763/* The GNU C library defines this for functions which it implements
31764 to always fail with ENOSYS. Some functions are actually named
31765 something starting with __ and the normal name is an alias. */
31766#if defined __stub_$ac_func || defined __stub___$ac_func
31767choke me
31768#endif
31769
31770int
31771main ()
31772{
31773return $ac_func ();
31774 ;
31775 return 0;
31776}
31777_ACEOF
31778rm -f conftest.$ac_objext conftest$ac_exeext
31779if { (ac_try="$ac_link"
31780case "(($ac_try" in
31781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31782 *) ac_try_echo=$ac_try;;
31783esac
31784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31785 (eval "$ac_link") 2>conftest.er1
31786 ac_status=$?
31787 grep -v '^ *+' conftest.er1 >conftest.err
31788 rm -f conftest.er1
31789 cat conftest.err >&5
31790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031791 (exit $ac_status); } &&
31792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31793 { (case "(($ac_try" in
31794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31795 *) ac_try_echo=$ac_try;;
31796esac
31797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31798 (eval "$ac_try") 2>&5
31799 ac_status=$?
31800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31801 (exit $ac_status); }; } &&
31802 { ac_try='test -s conftest$ac_exeext'
31803 { (case "(($ac_try" in
31804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31805 *) ac_try_echo=$ac_try;;
31806esac
31807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31808 (eval "$ac_try") 2>&5
31809 ac_status=$?
31810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31811 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000031812 eval "$as_ac_var=yes"
31813else
31814 echo "$as_me: failed program was:" >&5
31815sed 's/^/| /' conftest.$ac_ext >&5
31816
31817 eval "$as_ac_var=no"
31818fi
31819
Bill Wendlingebcceee2009-04-18 11:20:33 +000031820rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000031821 conftest$ac_exeext conftest.$ac_ext
31822fi
31823ac_res=`eval echo '${'$as_ac_var'}'`
31824 { echo "$as_me:$LINENO: result: $ac_res" >&5
31825echo "${ECHO_T}$ac_res" >&6; }
31826if test `eval echo '${'$as_ac_var'}'` = yes; then
31827 cat >>confdefs.h <<_ACEOF
31828#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31829_ACEOF
31830
31831fi
31832done
31833
31834
31835
31836
31837
Reid Spencer6af3d262004-12-15 04:01:48 +000031838
Reid Spencerb90645c2007-02-16 19:17:20 +000031839for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31840do
31841as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31842{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31843echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31844if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31845 echo $ECHO_N "(cached) $ECHO_C" >&6
31846else
31847 cat >conftest.$ac_ext <<_ACEOF
31848/* confdefs.h. */
31849_ACEOF
31850cat confdefs.h >>conftest.$ac_ext
31851cat >>conftest.$ac_ext <<_ACEOF
31852/* end confdefs.h. */
31853/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31855#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000031856
Reid Spencerb90645c2007-02-16 19:17:20 +000031857/* System header to define __stub macros and hopefully few prototypes,
31858 which can conflict with char $ac_func (); below.
31859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31860 <limits.h> exists even on freestanding compilers. */
31861
31862#ifdef __STDC__
31863# include <limits.h>
31864#else
31865# include <assert.h>
31866#endif
31867
31868#undef $ac_func
31869
31870/* Override any GCC internal prototype to avoid an error.
31871 Use char because int might match the return type of a GCC
31872 builtin and then its argument prototype would still apply. */
31873#ifdef __cplusplus
31874extern "C"
31875#endif
31876char $ac_func ();
31877/* The GNU C library defines this for functions which it implements
31878 to always fail with ENOSYS. Some functions are actually named
31879 something starting with __ and the normal name is an alias. */
31880#if defined __stub_$ac_func || defined __stub___$ac_func
31881choke me
31882#endif
31883
31884int
31885main ()
31886{
31887return $ac_func ();
31888 ;
31889 return 0;
31890}
31891_ACEOF
31892rm -f conftest.$ac_objext conftest$ac_exeext
31893if { (ac_try="$ac_link"
31894case "(($ac_try" in
31895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31896 *) ac_try_echo=$ac_try;;
31897esac
31898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31899 (eval "$ac_link") 2>conftest.er1
31900 ac_status=$?
31901 grep -v '^ *+' conftest.er1 >conftest.err
31902 rm -f conftest.er1
31903 cat conftest.err >&5
31904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031905 (exit $ac_status); } &&
31906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31907 { (case "(($ac_try" in
31908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31909 *) ac_try_echo=$ac_try;;
31910esac
31911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31912 (eval "$ac_try") 2>&5
31913 ac_status=$?
31914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31915 (exit $ac_status); }; } &&
31916 { ac_try='test -s conftest$ac_exeext'
31917 { (case "(($ac_try" in
31918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31919 *) ac_try_echo=$ac_try;;
31920esac
31921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31922 (eval "$ac_try") 2>&5
31923 ac_status=$?
31924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31925 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000031926 eval "$as_ac_var=yes"
31927else
31928 echo "$as_me: failed program was:" >&5
31929sed 's/^/| /' conftest.$ac_ext >&5
31930
31931 eval "$as_ac_var=no"
31932fi
31933
Bill Wendlingebcceee2009-04-18 11:20:33 +000031934rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000031935 conftest$ac_exeext conftest.$ac_ext
31936fi
31937ac_res=`eval echo '${'$as_ac_var'}'`
31938 { echo "$as_me:$LINENO: result: $ac_res" >&5
31939echo "${ECHO_T}$ac_res" >&6; }
31940if test `eval echo '${'$as_ac_var'}'` = yes; then
31941 cat >>confdefs.h <<_ACEOF
31942#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31943_ACEOF
31944
31945fi
31946done
31947
31948
31949
31950
31951for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000031952do
31953as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031954{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31955echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31956if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000031957 echo $ECHO_N "(cached) $ECHO_C" >&6
31958else
31959 cat >conftest.$ac_ext <<_ACEOF
31960/* confdefs.h. */
31961_ACEOF
31962cat confdefs.h >>conftest.$ac_ext
31963cat >>conftest.$ac_ext <<_ACEOF
31964/* end confdefs.h. */
31965/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31967#define $ac_func innocuous_$ac_func
31968
31969/* System header to define __stub macros and hopefully few prototypes,
31970 which can conflict with char $ac_func (); below.
31971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31972 <limits.h> exists even on freestanding compilers. */
31973
31974#ifdef __STDC__
31975# include <limits.h>
31976#else
31977# include <assert.h>
31978#endif
31979
31980#undef $ac_func
31981
Reid Spencera773bd52006-08-04 18:18:08 +000031982/* Override any GCC internal prototype to avoid an error.
31983 Use char because int might match the return type of a GCC
31984 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000031985#ifdef __cplusplus
31986extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000031987#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000031988char $ac_func ();
31989/* The GNU C library defines this for functions which it implements
31990 to always fail with ENOSYS. Some functions are actually named
31991 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031992#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000031993choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000031994#endif
31995
31996int
31997main ()
31998{
Reid Spencera773bd52006-08-04 18:18:08 +000031999return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000032000 ;
32001 return 0;
32002}
32003_ACEOF
32004rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032005if { (ac_try="$ac_link"
32006case "(($ac_try" in
32007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32008 *) ac_try_echo=$ac_try;;
32009esac
32010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32011 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000032012 ac_status=$?
32013 grep -v '^ *+' conftest.er1 >conftest.err
32014 rm -f conftest.er1
32015 cat conftest.err >&5
32016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032017 (exit $ac_status); } &&
32018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32019 { (case "(($ac_try" in
32020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32021 *) ac_try_echo=$ac_try;;
32022esac
32023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32024 (eval "$ac_try") 2>&5
32025 ac_status=$?
32026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32027 (exit $ac_status); }; } &&
32028 { ac_try='test -s conftest$ac_exeext'
32029 { (case "(($ac_try" in
32030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32031 *) ac_try_echo=$ac_try;;
32032esac
32033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32034 (eval "$ac_try") 2>&5
32035 ac_status=$?
32036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32037 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000032038 eval "$as_ac_var=yes"
32039else
32040 echo "$as_me: failed program was:" >&5
32041sed 's/^/| /' conftest.$ac_ext >&5
32042
Reid Spencera773bd52006-08-04 18:18:08 +000032043 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000032044fi
Reid Spencera773bd52006-08-04 18:18:08 +000032045
Bill Wendlingebcceee2009-04-18 11:20:33 +000032046rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000032047 conftest$ac_exeext conftest.$ac_ext
32048fi
Reid Spencera773bd52006-08-04 18:18:08 +000032049ac_res=`eval echo '${'$as_ac_var'}'`
32050 { echo "$as_me:$LINENO: result: $ac_res" >&5
32051echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000032052if test `eval echo '${'$as_ac_var'}'` = yes; then
32053 cat >>confdefs.h <<_ACEOF
32054#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32055_ACEOF
32056
32057fi
32058done
32059
32060
32061
32062
32063
32064
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000032065for ac_func in mktemp realpath sbrk setrlimit strdup
32066do
32067as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32068{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32069echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32070if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32071 echo $ECHO_N "(cached) $ECHO_C" >&6
32072else
32073 cat >conftest.$ac_ext <<_ACEOF
32074/* confdefs.h. */
32075_ACEOF
32076cat confdefs.h >>conftest.$ac_ext
32077cat >>conftest.$ac_ext <<_ACEOF
32078/* end confdefs.h. */
32079/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32081#define $ac_func innocuous_$ac_func
32082
32083/* System header to define __stub macros and hopefully few prototypes,
32084 which can conflict with char $ac_func (); below.
32085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32086 <limits.h> exists even on freestanding compilers. */
32087
32088#ifdef __STDC__
32089# include <limits.h>
32090#else
32091# include <assert.h>
32092#endif
32093
32094#undef $ac_func
32095
32096/* Override any GCC internal prototype to avoid an error.
32097 Use char because int might match the return type of a GCC
32098 builtin and then its argument prototype would still apply. */
32099#ifdef __cplusplus
32100extern "C"
32101#endif
32102char $ac_func ();
32103/* The GNU C library defines this for functions which it implements
32104 to always fail with ENOSYS. Some functions are actually named
32105 something starting with __ and the normal name is an alias. */
32106#if defined __stub_$ac_func || defined __stub___$ac_func
32107choke me
32108#endif
32109
32110int
32111main ()
32112{
32113return $ac_func ();
32114 ;
32115 return 0;
32116}
32117_ACEOF
32118rm -f conftest.$ac_objext conftest$ac_exeext
32119if { (ac_try="$ac_link"
32120case "(($ac_try" in
32121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32122 *) ac_try_echo=$ac_try;;
32123esac
32124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32125 (eval "$ac_link") 2>conftest.er1
32126 ac_status=$?
32127 grep -v '^ *+' conftest.er1 >conftest.err
32128 rm -f conftest.er1
32129 cat conftest.err >&5
32130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32131 (exit $ac_status); } &&
32132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32133 { (case "(($ac_try" in
32134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32135 *) ac_try_echo=$ac_try;;
32136esac
32137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32138 (eval "$ac_try") 2>&5
32139 ac_status=$?
32140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32141 (exit $ac_status); }; } &&
32142 { ac_try='test -s conftest$ac_exeext'
32143 { (case "(($ac_try" in
32144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32145 *) ac_try_echo=$ac_try;;
32146esac
32147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32148 (eval "$ac_try") 2>&5
32149 ac_status=$?
32150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32151 (exit $ac_status); }; }; then
32152 eval "$as_ac_var=yes"
32153else
32154 echo "$as_me: failed program was:" >&5
32155sed 's/^/| /' conftest.$ac_ext >&5
32156
32157 eval "$as_ac_var=no"
32158fi
32159
32160rm -f core conftest.err conftest.$ac_objext \
32161 conftest$ac_exeext conftest.$ac_ext
32162fi
32163ac_res=`eval echo '${'$as_ac_var'}'`
32164 { echo "$as_me:$LINENO: result: $ac_res" >&5
32165echo "${ECHO_T}$ac_res" >&6; }
32166if test `eval echo '${'$as_ac_var'}'` = yes; then
32167 cat >>confdefs.h <<_ACEOF
32168#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32169_ACEOF
32170
32171fi
32172done
Reid Spencerdf3be822006-01-23 08:15:53 +000032173
32174
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000032175
32176
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000032177
32178for ac_func in strerror strerror_r strerror_s setenv
Reid Spencer7931a782004-12-27 06:15:02 +000032179do
32180as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032181{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32182echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32183if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000032184 echo $ECHO_N "(cached) $ECHO_C" >&6
32185else
32186 cat >conftest.$ac_ext <<_ACEOF
32187/* confdefs.h. */
32188_ACEOF
32189cat confdefs.h >>conftest.$ac_ext
32190cat >>conftest.$ac_ext <<_ACEOF
32191/* end confdefs.h. */
32192/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32194#define $ac_func innocuous_$ac_func
32195
32196/* System header to define __stub macros and hopefully few prototypes,
32197 which can conflict with char $ac_func (); below.
32198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32199 <limits.h> exists even on freestanding compilers. */
32200
32201#ifdef __STDC__
32202# include <limits.h>
32203#else
32204# include <assert.h>
32205#endif
32206
32207#undef $ac_func
32208
Reid Spencera773bd52006-08-04 18:18:08 +000032209/* Override any GCC internal prototype to avoid an error.
32210 Use char because int might match the return type of a GCC
32211 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000032212#ifdef __cplusplus
32213extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000032214#endif
Reid Spencer7931a782004-12-27 06:15:02 +000032215char $ac_func ();
32216/* The GNU C library defines this for functions which it implements
32217 to always fail with ENOSYS. Some functions are actually named
32218 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032219#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000032220choke me
Reid Spencer7931a782004-12-27 06:15:02 +000032221#endif
32222
32223int
32224main ()
32225{
Reid Spencera773bd52006-08-04 18:18:08 +000032226return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000032227 ;
32228 return 0;
32229}
32230_ACEOF
32231rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032232if { (ac_try="$ac_link"
32233case "(($ac_try" in
32234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32235 *) ac_try_echo=$ac_try;;
32236esac
32237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32238 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000032239 ac_status=$?
32240 grep -v '^ *+' conftest.er1 >conftest.err
32241 rm -f conftest.er1
32242 cat conftest.err >&5
32243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032244 (exit $ac_status); } &&
32245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32246 { (case "(($ac_try" in
32247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32248 *) ac_try_echo=$ac_try;;
32249esac
32250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32251 (eval "$ac_try") 2>&5
32252 ac_status=$?
32253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32254 (exit $ac_status); }; } &&
32255 { ac_try='test -s conftest$ac_exeext'
32256 { (case "(($ac_try" in
32257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32258 *) ac_try_echo=$ac_try;;
32259esac
32260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32261 (eval "$ac_try") 2>&5
32262 ac_status=$?
32263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32264 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000032265 eval "$as_ac_var=yes"
32266else
32267 echo "$as_me: failed program was:" >&5
32268sed 's/^/| /' conftest.$ac_ext >&5
32269
Reid Spencera773bd52006-08-04 18:18:08 +000032270 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000032271fi
Reid Spencera773bd52006-08-04 18:18:08 +000032272
Bill Wendlingebcceee2009-04-18 11:20:33 +000032273rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000032274 conftest$ac_exeext conftest.$ac_ext
32275fi
Reid Spencera773bd52006-08-04 18:18:08 +000032276ac_res=`eval echo '${'$as_ac_var'}'`
32277 { echo "$as_me:$LINENO: result: $ac_res" >&5
32278echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000032279if test `eval echo '${'$as_ac_var'}'` = yes; then
32280 cat >>confdefs.h <<_ACEOF
32281#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32282_ACEOF
32283
32284fi
32285done
32286
32287
Reid Spencerba46ca32004-12-31 05:49:15 +000032288
32289
Chris Lattner0b142592005-11-14 06:57:34 +000032290
Chris Lattner511f11d2005-11-14 07:25:50 +000032291for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032292do
32293as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032294{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32295echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32296if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032297 echo $ECHO_N "(cached) $ECHO_C" >&6
32298else
32299 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032300/* confdefs.h. */
32301_ACEOF
32302cat confdefs.h >>conftest.$ac_ext
32303cat >>conftest.$ac_ext <<_ACEOF
32304/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032305/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32307#define $ac_func innocuous_$ac_func
32308
32309/* System header to define __stub macros and hopefully few prototypes,
32310 which can conflict with char $ac_func (); below.
32311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32312 <limits.h> exists even on freestanding compilers. */
32313
32314#ifdef __STDC__
32315# include <limits.h>
32316#else
32317# include <assert.h>
32318#endif
32319
32320#undef $ac_func
32321
Reid Spencera773bd52006-08-04 18:18:08 +000032322/* Override any GCC internal prototype to avoid an error.
32323 Use char because int might match the return type of a GCC
32324 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032325#ifdef __cplusplus
32326extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032327#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032328char $ac_func ();
32329/* The GNU C library defines this for functions which it implements
32330 to always fail with ENOSYS. Some functions are actually named
32331 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032332#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032333choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032334#endif
John Criswell7a73b802003-06-30 21:59:07 +000032335
John Criswell7a73b802003-06-30 21:59:07 +000032336int
32337main ()
32338{
Reid Spencera773bd52006-08-04 18:18:08 +000032339return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032340 ;
32341 return 0;
32342}
32343_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032344rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032345if { (ac_try="$ac_link"
32346case "(($ac_try" in
32347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32348 *) ac_try_echo=$ac_try;;
32349esac
32350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32351 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032352 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032353 grep -v '^ *+' conftest.er1 >conftest.err
32354 rm -f conftest.er1
32355 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032357 (exit $ac_status); } &&
32358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32359 { (case "(($ac_try" in
32360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32361 *) ac_try_echo=$ac_try;;
32362esac
32363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32364 (eval "$ac_try") 2>&5
32365 ac_status=$?
32366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32367 (exit $ac_status); }; } &&
32368 { ac_try='test -s conftest$ac_exeext'
32369 { (case "(($ac_try" in
32370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32371 *) ac_try_echo=$ac_try;;
32372esac
32373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32374 (eval "$ac_try") 2>&5
32375 ac_status=$?
32376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32377 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032378 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000032379else
32380 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032381sed 's/^/| /' conftest.$ac_ext >&5
32382
Reid Spencera773bd52006-08-04 18:18:08 +000032383 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000032384fi
Reid Spencera773bd52006-08-04 18:18:08 +000032385
Bill Wendlingebcceee2009-04-18 11:20:33 +000032386rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032387 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032388fi
Reid Spencera773bd52006-08-04 18:18:08 +000032389ac_res=`eval echo '${'$as_ac_var'}'`
32390 { echo "$as_me:$LINENO: result: $ac_res" >&5
32391echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032392if test `eval echo '${'$as_ac_var'}'` = yes; then
32393 cat >>confdefs.h <<_ACEOF
32394#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000032395_ACEOF
32396
32397fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032398done
John Criswell7a73b802003-06-30 21:59:07 +000032399
Reid Spencercdb08a32006-06-05 16:11:07 +000032400
32401
32402
32403
Reid Spencerafa22e22006-12-10 23:29:19 +000032404for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000032405do
32406as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032407{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32408echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32409if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000032410 echo $ECHO_N "(cached) $ECHO_C" >&6
32411else
32412 cat >conftest.$ac_ext <<_ACEOF
32413/* confdefs.h. */
32414_ACEOF
32415cat confdefs.h >>conftest.$ac_ext
32416cat >>conftest.$ac_ext <<_ACEOF
32417/* end confdefs.h. */
32418/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32420#define $ac_func innocuous_$ac_func
32421
32422/* System header to define __stub macros and hopefully few prototypes,
32423 which can conflict with char $ac_func (); below.
32424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32425 <limits.h> exists even on freestanding compilers. */
32426
32427#ifdef __STDC__
32428# include <limits.h>
32429#else
32430# include <assert.h>
32431#endif
32432
32433#undef $ac_func
32434
Reid Spencera773bd52006-08-04 18:18:08 +000032435/* Override any GCC internal prototype to avoid an error.
32436 Use char because int might match the return type of a GCC
32437 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000032438#ifdef __cplusplus
32439extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000032440#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000032441char $ac_func ();
32442/* The GNU C library defines this for functions which it implements
32443 to always fail with ENOSYS. Some functions are actually named
32444 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032445#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000032446choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000032447#endif
32448
32449int
32450main ()
32451{
Reid Spencera773bd52006-08-04 18:18:08 +000032452return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000032453 ;
32454 return 0;
32455}
32456_ACEOF
32457rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032458if { (ac_try="$ac_link"
32459case "(($ac_try" in
32460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32461 *) ac_try_echo=$ac_try;;
32462esac
32463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32464 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000032465 ac_status=$?
32466 grep -v '^ *+' conftest.er1 >conftest.err
32467 rm -f conftest.er1
32468 cat conftest.err >&5
32469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032470 (exit $ac_status); } &&
32471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32472 { (case "(($ac_try" in
32473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32474 *) ac_try_echo=$ac_try;;
32475esac
32476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32477 (eval "$ac_try") 2>&5
32478 ac_status=$?
32479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32480 (exit $ac_status); }; } &&
32481 { ac_try='test -s conftest$ac_exeext'
32482 { (case "(($ac_try" in
32483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32484 *) ac_try_echo=$ac_try;;
32485esac
32486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32487 (eval "$ac_try") 2>&5
32488 ac_status=$?
32489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32490 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000032491 eval "$as_ac_var=yes"
32492else
32493 echo "$as_me: failed program was:" >&5
32494sed 's/^/| /' conftest.$ac_ext >&5
32495
Reid Spencera773bd52006-08-04 18:18:08 +000032496 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000032497fi
Reid Spencera773bd52006-08-04 18:18:08 +000032498
Bill Wendlingebcceee2009-04-18 11:20:33 +000032499rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000032500 conftest$ac_exeext conftest.$ac_ext
32501fi
Reid Spencera773bd52006-08-04 18:18:08 +000032502ac_res=`eval echo '${'$as_ac_var'}'`
32503 { echo "$as_me:$LINENO: result: $ac_res" >&5
32504echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000032505if test `eval echo '${'$as_ac_var'}'` = yes; then
32506 cat >>confdefs.h <<_ACEOF
32507#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32508_ACEOF
32509
32510fi
32511done
32512
Reid Spencera773bd52006-08-04 18:18:08 +000032513{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32514echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000032515if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032516 echo $ECHO_N "(cached) $ECHO_C" >&6
32517else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032518 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000032519ac_cpp='$CPP $CPPFLAGS'
32520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32522ac_compiler_gnu=$ac_cv_c_compiler_gnu
32523
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032524 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000032525 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000032526else
32527 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000032528
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032529 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000032530_ACEOF
32531cat confdefs.h >>conftest.$ac_ext
32532cat >>conftest.$ac_ext <<_ACEOF
32533/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032534
John Criswella0137d32003-10-13 16:22:01 +000032535#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000032536#include <stdlib.h>
32537
John Criswella0137d32003-10-13 16:22:01 +000032538int
32539main ()
32540{
32541
Reid Spencer2706f8c2004-09-19 23:53:36 +000032542volatile double A, B;
32543char Buffer[100];
32544A = 1;
32545A /= 10.0;
32546sprintf(Buffer, "%a", A);
32547B = atof(Buffer);
32548if (A != B)
32549 return (1);
32550if (A != 0x1.999999999999ap-4)
32551 return (1);
32552return (0);
John Criswella0137d32003-10-13 16:22:01 +000032553 ;
32554 return 0;
32555}
32556_ACEOF
32557rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032558if { (ac_try="$ac_link"
32559case "(($ac_try" in
32560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32561 *) ac_try_echo=$ac_try;;
32562esac
32563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32564 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000032565 ac_status=$?
32566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32567 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032568 { (case "(($ac_try" in
32569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32570 *) ac_try_echo=$ac_try;;
32571esac
32572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32573 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000032574 ac_status=$?
32575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32576 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000032577 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000032578else
32579 echo "$as_me: program exited with status $ac_status" >&5
32580echo "$as_me: failed program was:" >&5
32581sed 's/^/| /' conftest.$ac_ext >&5
32582
32583( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000032584llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000032585fi
Reid Spencera773bd52006-08-04 18:18:08 +000032586rm -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 +000032587fi
Reid Spencera773bd52006-08-04 18:18:08 +000032588
32589
Reid Spencer2706f8c2004-09-19 23:53:36 +000032590 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000032591ac_cpp='$CPP $CPPFLAGS'
32592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32594ac_compiler_gnu=$ac_cv_c_compiler_gnu
32595
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032596fi
Reid Spencera773bd52006-08-04 18:18:08 +000032597{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32598echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000032599 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000032600
32601cat >>confdefs.h <<\_ACEOF
32602#define HAVE_PRINTF_A 1
32603_ACEOF
32604
Reid Spencer2706f8c2004-09-19 23:53:36 +000032605 fi
John Criswella0137d32003-10-13 16:22:01 +000032606
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032607# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32608# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000032609{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
32610echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032611if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000032612 echo $ECHO_N "(cached) $ECHO_C" >&6
32613else
John Criswell0021c312004-02-13 21:57:29 +000032614 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000032615/* confdefs.h. */
32616_ACEOF
32617cat confdefs.h >>conftest.$ac_ext
32618cat >>conftest.$ac_ext <<_ACEOF
32619/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032620#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000032621int
32622main ()
32623{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032624char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000032625 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000032626 ;
32627 return 0;
32628}
32629_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032630rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032631if { (ac_try="$ac_link"
32632case "(($ac_try" in
32633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32634 *) ac_try_echo=$ac_try;;
32635esac
32636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32637 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000032638 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032639 grep -v '^ *+' conftest.er1 >conftest.err
32640 rm -f conftest.er1
32641 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000032642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032643 (exit $ac_status); } &&
32644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32645 { (case "(($ac_try" in
32646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32647 *) ac_try_echo=$ac_try;;
32648esac
32649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32650 (eval "$ac_try") 2>&5
32651 ac_status=$?
32652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32653 (exit $ac_status); }; } &&
32654 { ac_try='test -s conftest$ac_exeext'
32655 { (case "(($ac_try" in
32656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32657 *) ac_try_echo=$ac_try;;
32658esac
32659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32660 (eval "$ac_try") 2>&5
32661 ac_status=$?
32662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32663 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032664 ac_cv_working_alloca_h=yes
32665else
32666 echo "$as_me: failed program was:" >&5
32667sed 's/^/| /' conftest.$ac_ext >&5
32668
Reid Spencera773bd52006-08-04 18:18:08 +000032669 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000032670fi
Reid Spencera773bd52006-08-04 18:18:08 +000032671
Bill Wendlingebcceee2009-04-18 11:20:33 +000032672rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032673 conftest$ac_exeext conftest.$ac_ext
32674fi
Reid Spencera773bd52006-08-04 18:18:08 +000032675{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32676echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032677if test $ac_cv_working_alloca_h = yes; then
32678
32679cat >>confdefs.h <<\_ACEOF
32680#define HAVE_ALLOCA_H 1
32681_ACEOF
32682
32683fi
32684
Reid Spencera773bd52006-08-04 18:18:08 +000032685{ echo "$as_me:$LINENO: checking for alloca" >&5
32686echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032687if test "${ac_cv_func_alloca_works+set}" = set; then
32688 echo $ECHO_N "(cached) $ECHO_C" >&6
32689else
32690 cat >conftest.$ac_ext <<_ACEOF
32691/* confdefs.h. */
32692_ACEOF
32693cat confdefs.h >>conftest.$ac_ext
32694cat >>conftest.$ac_ext <<_ACEOF
32695/* end confdefs.h. */
32696#ifdef __GNUC__
32697# define alloca __builtin_alloca
32698#else
32699# ifdef _MSC_VER
32700# include <malloc.h>
32701# define alloca _alloca
32702# else
Bill Wendlingebcceee2009-04-18 11:20:33 +000032703# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032704# include <alloca.h>
32705# else
32706# ifdef _AIX
32707 #pragma alloca
32708# else
32709# ifndef alloca /* predefined by HP cc +Olibcalls */
32710char *alloca ();
32711# endif
32712# endif
32713# endif
32714# endif
32715#endif
32716
32717int
32718main ()
32719{
32720char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000032721 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032722 ;
32723 return 0;
32724}
32725_ACEOF
32726rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032727if { (ac_try="$ac_link"
32728case "(($ac_try" in
32729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32730 *) ac_try_echo=$ac_try;;
32731esac
32732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32733 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032734 ac_status=$?
32735 grep -v '^ *+' conftest.er1 >conftest.err
32736 rm -f conftest.er1
32737 cat conftest.err >&5
32738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032739 (exit $ac_status); } &&
32740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32741 { (case "(($ac_try" in
32742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32743 *) ac_try_echo=$ac_try;;
32744esac
32745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32746 (eval "$ac_try") 2>&5
32747 ac_status=$?
32748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32749 (exit $ac_status); }; } &&
32750 { ac_try='test -s conftest$ac_exeext'
32751 { (case "(($ac_try" in
32752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32753 *) ac_try_echo=$ac_try;;
32754esac
32755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32756 (eval "$ac_try") 2>&5
32757 ac_status=$?
32758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32759 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032760 ac_cv_func_alloca_works=yes
32761else
32762 echo "$as_me: failed program was:" >&5
32763sed 's/^/| /' conftest.$ac_ext >&5
32764
Reid Spencera773bd52006-08-04 18:18:08 +000032765 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032766fi
Reid Spencera773bd52006-08-04 18:18:08 +000032767
Bill Wendlingebcceee2009-04-18 11:20:33 +000032768rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032769 conftest$ac_exeext conftest.$ac_ext
32770fi
Reid Spencera773bd52006-08-04 18:18:08 +000032771{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32772echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032773
32774if test $ac_cv_func_alloca_works = yes; then
32775
32776cat >>confdefs.h <<\_ACEOF
32777#define HAVE_ALLOCA 1
32778_ACEOF
32779
32780else
32781 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32782# that cause trouble. Some versions do not even contain alloca or
32783# contain a buggy version. If you still want to use their alloca,
32784# use ar to extract alloca.o from them instead of compiling alloca.c.
32785
Reid Spencera773bd52006-08-04 18:18:08 +000032786ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032787
32788cat >>confdefs.h <<\_ACEOF
32789#define C_ALLOCA 1
32790_ACEOF
32791
32792
Reid Spencera773bd52006-08-04 18:18:08 +000032793{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32794echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032795if test "${ac_cv_os_cray+set}" = set; then
32796 echo $ECHO_N "(cached) $ECHO_C" >&6
32797else
32798 cat >conftest.$ac_ext <<_ACEOF
32799/* confdefs.h. */
32800_ACEOF
32801cat confdefs.h >>conftest.$ac_ext
32802cat >>conftest.$ac_ext <<_ACEOF
32803/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000032804#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032805webecray
32806#else
32807wenotbecray
32808#endif
32809
32810_ACEOF
32811if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32812 $EGREP "webecray" >/dev/null 2>&1; then
32813 ac_cv_os_cray=yes
32814else
32815 ac_cv_os_cray=no
32816fi
32817rm -f conftest*
32818
32819fi
Reid Spencera773bd52006-08-04 18:18:08 +000032820{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32821echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032822if test $ac_cv_os_cray = yes; then
32823 for ac_func in _getb67 GETB67 getb67; do
32824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032825{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32826echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32827if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032828 echo $ECHO_N "(cached) $ECHO_C" >&6
32829else
32830 cat >conftest.$ac_ext <<_ACEOF
32831/* confdefs.h. */
32832_ACEOF
32833cat confdefs.h >>conftest.$ac_ext
32834cat >>conftest.$ac_ext <<_ACEOF
32835/* end confdefs.h. */
32836/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32838#define $ac_func innocuous_$ac_func
32839
32840/* System header to define __stub macros and hopefully few prototypes,
32841 which can conflict with char $ac_func (); below.
32842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32843 <limits.h> exists even on freestanding compilers. */
32844
32845#ifdef __STDC__
32846# include <limits.h>
32847#else
32848# include <assert.h>
32849#endif
32850
32851#undef $ac_func
32852
Reid Spencera773bd52006-08-04 18:18:08 +000032853/* Override any GCC internal prototype to avoid an error.
32854 Use char because int might match the return type of a GCC
32855 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032856#ifdef __cplusplus
32857extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032858#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032859char $ac_func ();
32860/* The GNU C library defines this for functions which it implements
32861 to always fail with ENOSYS. Some functions are actually named
32862 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032863#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032864choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032865#endif
32866
32867int
32868main ()
32869{
Reid Spencera773bd52006-08-04 18:18:08 +000032870return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032871 ;
32872 return 0;
32873}
32874_ACEOF
32875rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032876if { (ac_try="$ac_link"
32877case "(($ac_try" in
32878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32879 *) ac_try_echo=$ac_try;;
32880esac
32881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32882 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032883 ac_status=$?
32884 grep -v '^ *+' conftest.er1 >conftest.err
32885 rm -f conftest.er1
32886 cat conftest.err >&5
32887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032888 (exit $ac_status); } &&
32889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32890 { (case "(($ac_try" in
32891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32892 *) ac_try_echo=$ac_try;;
32893esac
32894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32895 (eval "$ac_try") 2>&5
32896 ac_status=$?
32897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32898 (exit $ac_status); }; } &&
32899 { ac_try='test -s conftest$ac_exeext'
32900 { (case "(($ac_try" in
32901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32902 *) ac_try_echo=$ac_try;;
32903esac
32904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32905 (eval "$ac_try") 2>&5
32906 ac_status=$?
32907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32908 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032909 eval "$as_ac_var=yes"
32910else
32911 echo "$as_me: failed program was:" >&5
32912sed 's/^/| /' conftest.$ac_ext >&5
32913
Reid Spencera773bd52006-08-04 18:18:08 +000032914 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032915fi
Reid Spencera773bd52006-08-04 18:18:08 +000032916
Bill Wendlingebcceee2009-04-18 11:20:33 +000032917rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032918 conftest$ac_exeext conftest.$ac_ext
32919fi
Reid Spencera773bd52006-08-04 18:18:08 +000032920ac_res=`eval echo '${'$as_ac_var'}'`
32921 { echo "$as_me:$LINENO: result: $ac_res" >&5
32922echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032923if test `eval echo '${'$as_ac_var'}'` = yes; then
32924
32925cat >>confdefs.h <<_ACEOF
32926#define CRAY_STACKSEG_END $ac_func
32927_ACEOF
32928
32929 break
32930fi
32931
32932 done
32933fi
32934
Reid Spencera773bd52006-08-04 18:18:08 +000032935{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32936echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032937if test "${ac_cv_c_stack_direction+set}" = set; then
32938 echo $ECHO_N "(cached) $ECHO_C" >&6
32939else
32940 if test "$cross_compiling" = yes; then
32941 ac_cv_c_stack_direction=0
32942else
32943 cat >conftest.$ac_ext <<_ACEOF
32944/* confdefs.h. */
32945_ACEOF
32946cat confdefs.h >>conftest.$ac_ext
32947cat >>conftest.$ac_ext <<_ACEOF
32948/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000032949$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032950int
32951find_stack_direction ()
32952{
32953 static char *addr = 0;
32954 auto char dummy;
32955 if (addr == 0)
32956 {
32957 addr = &dummy;
32958 return find_stack_direction ();
32959 }
John Criswell0021c312004-02-13 21:57:29 +000032960 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032961 return (&dummy > addr) ? 1 : -1;
32962}
John Criswell0021c312004-02-13 21:57:29 +000032963
John Criswell0021c312004-02-13 21:57:29 +000032964int
32965main ()
32966{
Reid Spencera773bd52006-08-04 18:18:08 +000032967 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000032968}
32969_ACEOF
32970rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032971if { (ac_try="$ac_link"
32972case "(($ac_try" in
32973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32974 *) ac_try_echo=$ac_try;;
32975esac
32976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32977 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000032978 ac_status=$?
32979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032981 { (case "(($ac_try" in
32982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32983 *) ac_try_echo=$ac_try;;
32984esac
32985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32986 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000032987 ac_status=$?
32988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32989 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032990 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000032991else
32992 echo "$as_me: program exited with status $ac_status" >&5
32993echo "$as_me: failed program was:" >&5
32994sed 's/^/| /' conftest.$ac_ext >&5
32995
32996( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032997ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000032998fi
Reid Spencera773bd52006-08-04 18:18:08 +000032999rm -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 +000033000fi
Reid Spencera773bd52006-08-04 18:18:08 +000033001
33002
John Criswell0021c312004-02-13 21:57:29 +000033003fi
Reid Spencera773bd52006-08-04 18:18:08 +000033004{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33005echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033006
33007cat >>confdefs.h <<_ACEOF
33008#define STACK_DIRECTION $ac_cv_c_stack_direction
33009_ACEOF
33010
33011
John Criswell0021c312004-02-13 21:57:29 +000033012fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033013
33014
Reid Spencera773bd52006-08-04 18:18:08 +000033015{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33016echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033017if test "${ac_cv_func_rand48+set}" = set; then
33018 echo $ECHO_N "(cached) $ECHO_C" >&6
33019else
Reid Spencera773bd52006-08-04 18:18:08 +000033020 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033021ac_cpp='$CXXCPP $CPPFLAGS'
33022ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33023ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33024ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33025
33026 cat >conftest.$ac_ext <<_ACEOF
33027/* confdefs.h. */
33028_ACEOF
33029cat confdefs.h >>conftest.$ac_ext
33030cat >>conftest.$ac_ext <<_ACEOF
33031/* end confdefs.h. */
33032#include <stdlib.h>
33033int
33034main ()
33035{
33036srand48(0);lrand48();drand48();
33037 ;
33038 return 0;
33039}
33040_ACEOF
33041rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033042if { (ac_try="$ac_compile"
33043case "(($ac_try" in
33044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33045 *) ac_try_echo=$ac_try;;
33046esac
33047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33048 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033049 ac_status=$?
33050 grep -v '^ *+' conftest.er1 >conftest.err
33051 rm -f conftest.er1
33052 cat conftest.err >&5
33053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033054 (exit $ac_status); } &&
33055 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33056 { (case "(($ac_try" in
33057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33058 *) ac_try_echo=$ac_try;;
33059esac
33060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33061 (eval "$ac_try") 2>&5
33062 ac_status=$?
33063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33064 (exit $ac_status); }; } &&
33065 { ac_try='test -s conftest.$ac_objext'
33066 { (case "(($ac_try" in
33067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33068 *) ac_try_echo=$ac_try;;
33069esac
33070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33071 (eval "$ac_try") 2>&5
33072 ac_status=$?
33073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33074 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033075 ac_cv_func_rand48=yes
33076else
33077 echo "$as_me: failed program was:" >&5
33078sed 's/^/| /' conftest.$ac_ext >&5
33079
Reid Spencera773bd52006-08-04 18:18:08 +000033080 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033081fi
Reid Spencera773bd52006-08-04 18:18:08 +000033082
33083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033084 ac_ext=c
33085ac_cpp='$CPP $CPPFLAGS'
33086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33088ac_compiler_gnu=$ac_cv_c_compiler_gnu
33089
33090fi
Reid Spencera773bd52006-08-04 18:18:08 +000033091{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33092echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033093
33094if test "$ac_cv_func_rand48" = "yes" ; then
33095
33096cat >>confdefs.h <<\_ACEOF
33097#define HAVE_RAND48 1
33098_ACEOF
33099
33100fi
John Criswell0021c312004-02-13 21:57:29 +000033101
33102
Reid Spencera773bd52006-08-04 18:18:08 +000033103{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33104echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033105if test "${ac_cv_cxx_namespaces+set}" = set; then
33106 echo $ECHO_N "(cached) $ECHO_C" >&6
33107else
Reid Spencera773bd52006-08-04 18:18:08 +000033108 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033109ac_cpp='$CXXCPP $CPPFLAGS'
33110ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33111ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33112ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33113
33114 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033115/* confdefs.h. */
33116_ACEOF
33117cat confdefs.h >>conftest.$ac_ext
33118cat >>conftest.$ac_ext <<_ACEOF
33119/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033120namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000033121int
33122main ()
33123{
33124using namespace Outer::Inner; return i;
33125 ;
33126 return 0;
33127}
33128_ACEOF
33129rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033130if { (ac_try="$ac_compile"
33131case "(($ac_try" in
33132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33133 *) ac_try_echo=$ac_try;;
33134esac
33135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33136 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033137 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033138 grep -v '^ *+' conftest.er1 >conftest.err
33139 rm -f conftest.er1
33140 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033142 (exit $ac_status); } &&
33143 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33144 { (case "(($ac_try" in
33145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33146 *) ac_try_echo=$ac_try;;
33147esac
33148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33149 (eval "$ac_try") 2>&5
33150 ac_status=$?
33151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33152 (exit $ac_status); }; } &&
33153 { ac_try='test -s conftest.$ac_objext'
33154 { (case "(($ac_try" in
33155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33156 *) ac_try_echo=$ac_try;;
33157esac
33158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33159 (eval "$ac_try") 2>&5
33160 ac_status=$?
33161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33162 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033163 ac_cv_cxx_namespaces=yes
33164else
33165 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033166sed 's/^/| /' conftest.$ac_ext >&5
33167
Reid Spencera773bd52006-08-04 18:18:08 +000033168 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000033169fi
Reid Spencera773bd52006-08-04 18:18:08 +000033170
33171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033172 ac_ext=c
33173ac_cpp='$CPP $CPPFLAGS'
33174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33176ac_compiler_gnu=$ac_cv_c_compiler_gnu
33177
33178
33179fi
Reid Spencera773bd52006-08-04 18:18:08 +000033180{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33181echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033182if test "$ac_cv_cxx_namespaces" = yes; then
33183
33184cat >>confdefs.h <<\_ACEOF
33185#define HAVE_NAMESPACES
33186_ACEOF
33187
33188fi
33189
Reid Spencera773bd52006-08-04 18:18:08 +000033190{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33191echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033192if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33193 echo $ECHO_N "(cached) $ECHO_C" >&6
33194else
33195
Reid Spencera773bd52006-08-04 18:18:08 +000033196 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033197ac_cpp='$CXXCPP $CPPFLAGS'
33198ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33199ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33200ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33201
33202 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033203/* confdefs.h. */
33204_ACEOF
33205cat confdefs.h >>conftest.$ac_ext
33206cat >>conftest.$ac_ext <<_ACEOF
33207/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033208#include <iterator>
33209#ifdef HAVE_NAMESPACES
33210using namespace std;
33211#endif
John Criswell7a73b802003-06-30 21:59:07 +000033212int
33213main ()
33214{
33215iterator<int,int,int> t; return 0;
33216 ;
33217 return 0;
33218}
33219_ACEOF
33220rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033221if { (ac_try="$ac_compile"
33222case "(($ac_try" in
33223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33224 *) ac_try_echo=$ac_try;;
33225esac
33226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33227 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033228 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033229 grep -v '^ *+' conftest.er1 >conftest.err
33230 rm -f conftest.er1
33231 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033233 (exit $ac_status); } &&
33234 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33235 { (case "(($ac_try" in
33236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33237 *) ac_try_echo=$ac_try;;
33238esac
33239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33240 (eval "$ac_try") 2>&5
33241 ac_status=$?
33242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33243 (exit $ac_status); }; } &&
33244 { ac_try='test -s conftest.$ac_objext'
33245 { (case "(($ac_try" in
33246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33247 *) ac_try_echo=$ac_try;;
33248esac
33249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33250 (eval "$ac_try") 2>&5
33251 ac_status=$?
33252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33253 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033254 ac_cv_cxx_have_std_iterator=yes
33255else
33256 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033257sed 's/^/| /' conftest.$ac_ext >&5
33258
Reid Spencera773bd52006-08-04 18:18:08 +000033259 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033260fi
Reid Spencera773bd52006-08-04 18:18:08 +000033261
33262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033263 ac_ext=c
33264ac_cpp='$CPP $CPPFLAGS'
33265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33267ac_compiler_gnu=$ac_cv_c_compiler_gnu
33268
33269
33270fi
Reid Spencera773bd52006-08-04 18:18:08 +000033271{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33272echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033273if test "$ac_cv_cxx_have_std_iterator" = yes
33274then
John Criswell40468462004-09-24 21:19:06 +000033275
33276cat >>confdefs.h <<\_ACEOF
33277#define HAVE_STD_ITERATOR 1
33278_ACEOF
33279
33280else
33281
33282cat >>confdefs.h <<\_ACEOF
33283#define HAVE_STD_ITERATOR 0
33284_ACEOF
33285
John Criswell7a73b802003-06-30 21:59:07 +000033286fi
33287
Reid Spencera773bd52006-08-04 18:18:08 +000033288{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33289echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033290if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33291 echo $ECHO_N "(cached) $ECHO_C" >&6
33292else
33293
Reid Spencera773bd52006-08-04 18:18:08 +000033294 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033295ac_cpp='$CXXCPP $CPPFLAGS'
33296ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33297ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33298ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33299
33300 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033301/* confdefs.h. */
33302_ACEOF
33303cat confdefs.h >>conftest.$ac_ext
33304cat >>conftest.$ac_ext <<_ACEOF
33305/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033306#include <iterator>
33307#ifdef HAVE_NAMESPACES
33308using namespace std;
33309#endif
John Criswell7a73b802003-06-30 21:59:07 +000033310int
33311main ()
33312{
John Criswellc78022e2003-07-29 19:11:58 +000033313bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033314 ;
33315 return 0;
33316}
33317_ACEOF
33318rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033319if { (ac_try="$ac_compile"
33320case "(($ac_try" in
33321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33322 *) ac_try_echo=$ac_try;;
33323esac
33324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33325 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033326 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033327 grep -v '^ *+' conftest.er1 >conftest.err
33328 rm -f conftest.er1
33329 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033331 (exit $ac_status); } &&
33332 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33333 { (case "(($ac_try" in
33334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33335 *) ac_try_echo=$ac_try;;
33336esac
33337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33338 (eval "$ac_try") 2>&5
33339 ac_status=$?
33340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33341 (exit $ac_status); }; } &&
33342 { ac_try='test -s conftest.$ac_objext'
33343 { (case "(($ac_try" in
33344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33345 *) ac_try_echo=$ac_try;;
33346esac
33347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33348 (eval "$ac_try") 2>&5
33349 ac_status=$?
33350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33351 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033352 ac_cv_cxx_have_bi_iterator=yes
33353else
33354 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033355sed 's/^/| /' conftest.$ac_ext >&5
33356
Reid Spencera773bd52006-08-04 18:18:08 +000033357 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033358fi
Reid Spencera773bd52006-08-04 18:18:08 +000033359
33360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033361 ac_ext=c
33362ac_cpp='$CPP $CPPFLAGS'
33363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33365ac_compiler_gnu=$ac_cv_c_compiler_gnu
33366
33367
33368fi
Reid Spencera773bd52006-08-04 18:18:08 +000033369{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33370echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033371if test "$ac_cv_cxx_have_bi_iterator" = yes
33372then
John Criswell40468462004-09-24 21:19:06 +000033373
33374cat >>confdefs.h <<\_ACEOF
33375#define HAVE_BI_ITERATOR 1
33376_ACEOF
33377
33378else
33379
33380cat >>confdefs.h <<\_ACEOF
33381#define HAVE_BI_ITERATOR 0
33382_ACEOF
33383
John Criswell7a73b802003-06-30 21:59:07 +000033384fi
33385
Reid Spencera773bd52006-08-04 18:18:08 +000033386{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33387echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033388if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33389 echo $ECHO_N "(cached) $ECHO_C" >&6
33390else
33391
Reid Spencera773bd52006-08-04 18:18:08 +000033392 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033393ac_cpp='$CXXCPP $CPPFLAGS'
33394ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33395ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33396ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33397
33398 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033399/* confdefs.h. */
33400_ACEOF
33401cat confdefs.h >>conftest.$ac_ext
33402cat >>conftest.$ac_ext <<_ACEOF
33403/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033404#include <iterator>
33405#ifdef HAVE_NAMESPACES
33406using namespace std;
33407#endif
John Criswell7a73b802003-06-30 21:59:07 +000033408int
33409main ()
33410{
John Criswellc78022e2003-07-29 19:11:58 +000033411forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033412 ;
33413 return 0;
33414}
33415_ACEOF
33416rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033417if { (ac_try="$ac_compile"
33418case "(($ac_try" in
33419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33420 *) ac_try_echo=$ac_try;;
33421esac
33422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33423 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033424 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033425 grep -v '^ *+' conftest.er1 >conftest.err
33426 rm -f conftest.er1
33427 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033429 (exit $ac_status); } &&
33430 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33431 { (case "(($ac_try" in
33432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33433 *) ac_try_echo=$ac_try;;
33434esac
33435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33436 (eval "$ac_try") 2>&5
33437 ac_status=$?
33438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33439 (exit $ac_status); }; } &&
33440 { ac_try='test -s conftest.$ac_objext'
33441 { (case "(($ac_try" in
33442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33443 *) ac_try_echo=$ac_try;;
33444esac
33445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33446 (eval "$ac_try") 2>&5
33447 ac_status=$?
33448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33449 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033450 ac_cv_cxx_have_fwd_iterator=yes
33451else
33452 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033453sed 's/^/| /' conftest.$ac_ext >&5
33454
Reid Spencera773bd52006-08-04 18:18:08 +000033455 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033456fi
Reid Spencera773bd52006-08-04 18:18:08 +000033457
33458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033459 ac_ext=c
33460ac_cpp='$CPP $CPPFLAGS'
33461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33463ac_compiler_gnu=$ac_cv_c_compiler_gnu
33464
33465
33466fi
Reid Spencera773bd52006-08-04 18:18:08 +000033467{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33468echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033469if test "$ac_cv_cxx_have_fwd_iterator" = yes
33470then
John Criswell40468462004-09-24 21:19:06 +000033471
33472cat >>confdefs.h <<\_ACEOF
33473#define HAVE_FWD_ITERATOR 1
33474_ACEOF
33475
33476else
33477
33478cat >>confdefs.h <<\_ACEOF
33479#define HAVE_FWD_ITERATOR 0
33480_ACEOF
33481
John Criswell7a73b802003-06-30 21:59:07 +000033482fi
33483
33484
Reid Spencera773bd52006-08-04 18:18:08 +000033485{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33486echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033487if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33488 echo $ECHO_N "(cached) $ECHO_C" >&6
33489else
Reid Spencera773bd52006-08-04 18:18:08 +000033490 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033491ac_cpp='$CXXCPP $CPPFLAGS'
33492ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33493ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33494ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33495
Reid Spencerabec8f92004-10-27 23:03:44 +000033496 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033497/* confdefs.h. */
33498_ACEOF
33499cat confdefs.h >>conftest.$ac_ext
33500cat >>conftest.$ac_ext <<_ACEOF
33501/* end confdefs.h. */
33502#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033503int
33504main ()
33505{
33506float f; isnan(f);
33507 ;
33508 return 0;
33509}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033510_ACEOF
33511rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033512if { (ac_try="$ac_compile"
33513case "(($ac_try" in
33514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33515 *) ac_try_echo=$ac_try;;
33516esac
33517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33518 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033519 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033520 grep -v '^ *+' conftest.er1 >conftest.err
33521 rm -f conftest.er1
33522 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033524 (exit $ac_status); } &&
33525 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33526 { (case "(($ac_try" in
33527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33528 *) ac_try_echo=$ac_try;;
33529esac
33530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33531 (eval "$ac_try") 2>&5
33532 ac_status=$?
33533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33534 (exit $ac_status); }; } &&
33535 { ac_try='test -s conftest.$ac_objext'
33536 { (case "(($ac_try" in
33537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33538 *) ac_try_echo=$ac_try;;
33539esac
33540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33541 (eval "$ac_try") 2>&5
33542 ac_status=$?
33543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33544 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033545 ac_cv_func_isnan_in_math_h=yes
33546else
33547 echo "$as_me: failed program was:" >&5
33548sed 's/^/| /' conftest.$ac_ext >&5
33549
Reid Spencera773bd52006-08-04 18:18:08 +000033550 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033551fi
Reid Spencera773bd52006-08-04 18:18:08 +000033552
33553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033554 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033555ac_cpp='$CPP $CPPFLAGS'
33556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33558ac_compiler_gnu=$ac_cv_c_compiler_gnu
33559
33560fi
Reid Spencera773bd52006-08-04 18:18:08 +000033561{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33562echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033563
33564
33565if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033566
33567cat >>confdefs.h <<\_ACEOF
33568#define HAVE_ISNAN_IN_MATH_H 1
33569_ACEOF
33570
Reid Spencerabec8f92004-10-27 23:03:44 +000033571fi
33572
Reid Spencera773bd52006-08-04 18:18:08 +000033573{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33574echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033575if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33576 echo $ECHO_N "(cached) $ECHO_C" >&6
33577else
Reid Spencera773bd52006-08-04 18:18:08 +000033578 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033579ac_cpp='$CXXCPP $CPPFLAGS'
33580ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33581ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33582ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33583
Reid Spencerabec8f92004-10-27 23:03:44 +000033584 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033585/* confdefs.h. */
33586_ACEOF
33587cat confdefs.h >>conftest.$ac_ext
33588cat >>conftest.$ac_ext <<_ACEOF
33589/* end confdefs.h. */
33590#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033591int
33592main ()
33593{
33594float f; isnan(f);
33595 ;
33596 return 0;
33597}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033598_ACEOF
33599rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033600if { (ac_try="$ac_compile"
33601case "(($ac_try" in
33602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33603 *) ac_try_echo=$ac_try;;
33604esac
33605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33606 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033607 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033608 grep -v '^ *+' conftest.er1 >conftest.err
33609 rm -f conftest.er1
33610 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033612 (exit $ac_status); } &&
33613 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33614 { (case "(($ac_try" in
33615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33616 *) ac_try_echo=$ac_try;;
33617esac
33618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33619 (eval "$ac_try") 2>&5
33620 ac_status=$?
33621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33622 (exit $ac_status); }; } &&
33623 { ac_try='test -s conftest.$ac_objext'
33624 { (case "(($ac_try" in
33625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33626 *) ac_try_echo=$ac_try;;
33627esac
33628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33629 (eval "$ac_try") 2>&5
33630 ac_status=$?
33631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33632 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033633 ac_cv_func_isnan_in_cmath=yes
33634else
33635 echo "$as_me: failed program was:" >&5
33636sed 's/^/| /' conftest.$ac_ext >&5
33637
Reid Spencera773bd52006-08-04 18:18:08 +000033638 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033639fi
Reid Spencera773bd52006-08-04 18:18:08 +000033640
33641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033642 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033643ac_cpp='$CPP $CPPFLAGS'
33644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33646ac_compiler_gnu=$ac_cv_c_compiler_gnu
33647
33648fi
Reid Spencera773bd52006-08-04 18:18:08 +000033649{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33650echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033651
33652if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033653
33654cat >>confdefs.h <<\_ACEOF
33655#define HAVE_ISNAN_IN_CMATH 1
33656_ACEOF
33657
Reid Spencerabec8f92004-10-27 23:03:44 +000033658fi
33659
Reid Spencera773bd52006-08-04 18:18:08 +000033660{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33661echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033662if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33663 echo $ECHO_N "(cached) $ECHO_C" >&6
33664else
Reid Spencera773bd52006-08-04 18:18:08 +000033665 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033666ac_cpp='$CXXCPP $CPPFLAGS'
33667ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33668ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33669ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33670
Reid Spencerabec8f92004-10-27 23:03:44 +000033671 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033672/* confdefs.h. */
33673_ACEOF
33674cat confdefs.h >>conftest.$ac_ext
33675cat >>conftest.$ac_ext <<_ACEOF
33676/* end confdefs.h. */
33677#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033678int
33679main ()
33680{
33681float f; std::isnan(f);
33682 ;
33683 return 0;
33684}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033685_ACEOF
33686rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033687if { (ac_try="$ac_compile"
33688case "(($ac_try" in
33689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33690 *) ac_try_echo=$ac_try;;
33691esac
33692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33693 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033694 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033695 grep -v '^ *+' conftest.er1 >conftest.err
33696 rm -f conftest.er1
33697 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033699 (exit $ac_status); } &&
33700 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33701 { (case "(($ac_try" in
33702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33703 *) ac_try_echo=$ac_try;;
33704esac
33705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33706 (eval "$ac_try") 2>&5
33707 ac_status=$?
33708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33709 (exit $ac_status); }; } &&
33710 { ac_try='test -s conftest.$ac_objext'
33711 { (case "(($ac_try" in
33712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33713 *) ac_try_echo=$ac_try;;
33714esac
33715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33716 (eval "$ac_try") 2>&5
33717 ac_status=$?
33718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33719 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033720 ac_cv_func_std_isnan_in_cmath=yes
33721else
33722 echo "$as_me: failed program was:" >&5
33723sed 's/^/| /' conftest.$ac_ext >&5
33724
Reid Spencera773bd52006-08-04 18:18:08 +000033725 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033726fi
Reid Spencera773bd52006-08-04 18:18:08 +000033727
33728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033729 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033730ac_cpp='$CPP $CPPFLAGS'
33731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33733ac_compiler_gnu=$ac_cv_c_compiler_gnu
33734
33735fi
Reid Spencera773bd52006-08-04 18:18:08 +000033736{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33737echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033738
33739if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033740
33741cat >>confdefs.h <<\_ACEOF
33742#define HAVE_STD_ISNAN_IN_CMATH 1
33743_ACEOF
33744
Reid Spencerabec8f92004-10-27 23:03:44 +000033745fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033746
33747
Reid Spencera773bd52006-08-04 18:18:08 +000033748{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33749echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033750if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33751 echo $ECHO_N "(cached) $ECHO_C" >&6
33752else
Reid Spencera773bd52006-08-04 18:18:08 +000033753 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033754ac_cpp='$CXXCPP $CPPFLAGS'
33755ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33756ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33757ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33758
Reid Spencerabec8f92004-10-27 23:03:44 +000033759 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033760/* confdefs.h. */
33761_ACEOF
33762cat confdefs.h >>conftest.$ac_ext
33763cat >>conftest.$ac_ext <<_ACEOF
33764/* end confdefs.h. */
33765#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033766int
33767main ()
33768{
33769float f; isinf(f);
33770 ;
33771 return 0;
33772}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033773_ACEOF
33774rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033775if { (ac_try="$ac_compile"
33776case "(($ac_try" in
33777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33778 *) ac_try_echo=$ac_try;;
33779esac
33780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33781 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033782 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033783 grep -v '^ *+' conftest.er1 >conftest.err
33784 rm -f conftest.er1
33785 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033787 (exit $ac_status); } &&
33788 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33789 { (case "(($ac_try" in
33790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33791 *) ac_try_echo=$ac_try;;
33792esac
33793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33794 (eval "$ac_try") 2>&5
33795 ac_status=$?
33796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33797 (exit $ac_status); }; } &&
33798 { ac_try='test -s conftest.$ac_objext'
33799 { (case "(($ac_try" in
33800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33801 *) ac_try_echo=$ac_try;;
33802esac
33803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33804 (eval "$ac_try") 2>&5
33805 ac_status=$?
33806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33807 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033808 ac_cv_func_isinf_in_math_h=yes
33809else
33810 echo "$as_me: failed program was:" >&5
33811sed 's/^/| /' conftest.$ac_ext >&5
33812
Reid Spencera773bd52006-08-04 18:18:08 +000033813 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033814fi
Reid Spencera773bd52006-08-04 18:18:08 +000033815
33816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033817 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033818ac_cpp='$CPP $CPPFLAGS'
33819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33821ac_compiler_gnu=$ac_cv_c_compiler_gnu
33822
33823fi
Reid Spencera773bd52006-08-04 18:18:08 +000033824{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33825echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033826
33827if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033828
33829cat >>confdefs.h <<\_ACEOF
33830#define HAVE_ISINF_IN_MATH_H 1
33831_ACEOF
33832
Reid Spencerabec8f92004-10-27 23:03:44 +000033833fi
33834
Reid Spencera773bd52006-08-04 18:18:08 +000033835{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33836echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033837if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33838 echo $ECHO_N "(cached) $ECHO_C" >&6
33839else
Reid Spencera773bd52006-08-04 18:18:08 +000033840 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033841ac_cpp='$CXXCPP $CPPFLAGS'
33842ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33843ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33844ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33845
Reid Spencerabec8f92004-10-27 23:03:44 +000033846 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033847/* confdefs.h. */
33848_ACEOF
33849cat confdefs.h >>conftest.$ac_ext
33850cat >>conftest.$ac_ext <<_ACEOF
33851/* end confdefs.h. */
33852#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033853int
33854main ()
33855{
33856float f; isinf(f);
33857 ;
33858 return 0;
33859}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033860_ACEOF
33861rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033862if { (ac_try="$ac_compile"
33863case "(($ac_try" in
33864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33865 *) ac_try_echo=$ac_try;;
33866esac
33867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33868 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033869 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033870 grep -v '^ *+' conftest.er1 >conftest.err
33871 rm -f conftest.er1
33872 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033874 (exit $ac_status); } &&
33875 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33876 { (case "(($ac_try" in
33877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33878 *) ac_try_echo=$ac_try;;
33879esac
33880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33881 (eval "$ac_try") 2>&5
33882 ac_status=$?
33883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33884 (exit $ac_status); }; } &&
33885 { ac_try='test -s conftest.$ac_objext'
33886 { (case "(($ac_try" in
33887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33888 *) ac_try_echo=$ac_try;;
33889esac
33890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33891 (eval "$ac_try") 2>&5
33892 ac_status=$?
33893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33894 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033895 ac_cv_func_isinf_in_cmath=yes
33896else
33897 echo "$as_me: failed program was:" >&5
33898sed 's/^/| /' conftest.$ac_ext >&5
33899
Reid Spencera773bd52006-08-04 18:18:08 +000033900 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033901fi
Reid Spencera773bd52006-08-04 18:18:08 +000033902
33903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033904 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033905ac_cpp='$CPP $CPPFLAGS'
33906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33908ac_compiler_gnu=$ac_cv_c_compiler_gnu
33909
33910fi
Reid Spencera773bd52006-08-04 18:18:08 +000033911{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33912echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033913
33914if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033915
33916cat >>confdefs.h <<\_ACEOF
33917#define HAVE_ISINF_IN_CMATH 1
33918_ACEOF
33919
Reid Spencerabec8f92004-10-27 23:03:44 +000033920fi
33921
Reid Spencera773bd52006-08-04 18:18:08 +000033922{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33923echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033924if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33925 echo $ECHO_N "(cached) $ECHO_C" >&6
33926else
Reid Spencera773bd52006-08-04 18:18:08 +000033927 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033928ac_cpp='$CXXCPP $CPPFLAGS'
33929ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33930ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33931ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33932
Reid Spencerabec8f92004-10-27 23:03:44 +000033933 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033934/* confdefs.h. */
33935_ACEOF
33936cat confdefs.h >>conftest.$ac_ext
33937cat >>conftest.$ac_ext <<_ACEOF
33938/* end confdefs.h. */
33939#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033940int
33941main ()
33942{
33943float f; std::isinf(f)}
33944 ;
33945 return 0;
33946}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033947_ACEOF
33948rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033949if { (ac_try="$ac_compile"
33950case "(($ac_try" in
33951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33952 *) ac_try_echo=$ac_try;;
33953esac
33954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33955 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033956 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033957 grep -v '^ *+' conftest.er1 >conftest.err
33958 rm -f conftest.er1
33959 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033961 (exit $ac_status); } &&
33962 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33963 { (case "(($ac_try" in
33964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33965 *) ac_try_echo=$ac_try;;
33966esac
33967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33968 (eval "$ac_try") 2>&5
33969 ac_status=$?
33970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33971 (exit $ac_status); }; } &&
33972 { ac_try='test -s conftest.$ac_objext'
33973 { (case "(($ac_try" in
33974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33975 *) ac_try_echo=$ac_try;;
33976esac
33977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33978 (eval "$ac_try") 2>&5
33979 ac_status=$?
33980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33981 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033982 ac_cv_func_std_isinf_in_cmath=yes
33983else
33984 echo "$as_me: failed program was:" >&5
33985sed 's/^/| /' conftest.$ac_ext >&5
33986
Reid Spencera773bd52006-08-04 18:18:08 +000033987 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033988fi
Reid Spencera773bd52006-08-04 18:18:08 +000033989
33990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033991 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033992ac_cpp='$CPP $CPPFLAGS'
33993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33995ac_compiler_gnu=$ac_cv_c_compiler_gnu
33996
33997fi
Reid Spencera773bd52006-08-04 18:18:08 +000033998{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33999echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000034000
34001if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034002
34003cat >>confdefs.h <<\_ACEOF
34004#define HAVE_STD_ISINF_IN_CMATH 1
34005_ACEOF
34006
Reid Spencerabec8f92004-10-27 23:03:44 +000034007fi
34008
Reid Spencera773bd52006-08-04 18:18:08 +000034009{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34010echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000034011if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34012 echo $ECHO_N "(cached) $ECHO_C" >&6
34013else
Reid Spencera773bd52006-08-04 18:18:08 +000034014 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000034015ac_cpp='$CXXCPP $CPPFLAGS'
34016ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34017ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34018ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34019
Reid Spencerabec8f92004-10-27 23:03:44 +000034020 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000034021/* confdefs.h. */
34022_ACEOF
34023cat confdefs.h >>conftest.$ac_ext
34024cat >>conftest.$ac_ext <<_ACEOF
34025/* end confdefs.h. */
34026#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000034027int
34028main ()
34029{
34030float f; finite(f);
34031 ;
34032 return 0;
34033}
Brian Gaeked59a6472004-07-21 03:33:58 +000034034_ACEOF
34035rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034036if { (ac_try="$ac_compile"
34037case "(($ac_try" in
34038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34039 *) ac_try_echo=$ac_try;;
34040esac
34041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34042 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000034043 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034044 grep -v '^ *+' conftest.er1 >conftest.err
34045 rm -f conftest.er1
34046 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000034047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034048 (exit $ac_status); } &&
34049 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34050 { (case "(($ac_try" in
34051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34052 *) ac_try_echo=$ac_try;;
34053esac
34054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34055 (eval "$ac_try") 2>&5
34056 ac_status=$?
34057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34058 (exit $ac_status); }; } &&
34059 { ac_try='test -s conftest.$ac_objext'
34060 { (case "(($ac_try" in
34061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34062 *) ac_try_echo=$ac_try;;
34063esac
34064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34065 (eval "$ac_try") 2>&5
34066 ac_status=$?
34067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34068 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000034069 ac_cv_func_finite_in_ieeefp_h=yes
34070else
34071 echo "$as_me: failed program was:" >&5
34072sed 's/^/| /' conftest.$ac_ext >&5
34073
Reid Spencera773bd52006-08-04 18:18:08 +000034074 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000034075fi
Reid Spencera773bd52006-08-04 18:18:08 +000034076
34077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000034078 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000034079ac_cpp='$CPP $CPPFLAGS'
34080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34082ac_compiler_gnu=$ac_cv_c_compiler_gnu
34083
34084fi
Reid Spencera773bd52006-08-04 18:18:08 +000034085{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34086echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000034087
Brian Gaeke6802b552004-10-28 05:06:45 +000034088if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000034089
34090cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000034091#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000034092_ACEOF
34093
Reid Spencerabec8f92004-10-27 23:03:44 +000034094fi
34095
34096
34097
Reid Spencer30fe5262007-01-20 07:48:49 +000034098if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000034099
34100
34101for ac_header in stdlib.h unistd.h
34102do
34103as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000034104if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34105 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34106echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34107if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034108 echo $ECHO_N "(cached) $ECHO_C" >&6
34109fi
Reid Spencera773bd52006-08-04 18:18:08 +000034110ac_res=`eval echo '${'$as_ac_Header'}'`
34111 { echo "$as_me:$LINENO: result: $ac_res" >&5
34112echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034113else
34114 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000034115{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
34116echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034117cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034118/* confdefs.h. */
34119_ACEOF
34120cat confdefs.h >>conftest.$ac_ext
34121cat >>conftest.$ac_ext <<_ACEOF
34122/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034123$ac_includes_default
34124#include <$ac_header>
34125_ACEOF
34126rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034127if { (ac_try="$ac_compile"
34128case "(($ac_try" in
34129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34130 *) ac_try_echo=$ac_try;;
34131esac
34132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34133 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034134 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034135 grep -v '^ *+' conftest.er1 >conftest.err
34136 rm -f conftest.er1
34137 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000034138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034139 (exit $ac_status); } &&
34140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34141 { (case "(($ac_try" in
34142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34143 *) ac_try_echo=$ac_try;;
34144esac
34145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34146 (eval "$ac_try") 2>&5
34147 ac_status=$?
34148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34149 (exit $ac_status); }; } &&
34150 { ac_try='test -s conftest.$ac_objext'
34151 { (case "(($ac_try" in
34152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34153 *) ac_try_echo=$ac_try;;
34154esac
34155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34156 (eval "$ac_try") 2>&5
34157 ac_status=$?
34158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34159 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034160 ac_header_compiler=yes
34161else
34162 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034163sed 's/^/| /' conftest.$ac_ext >&5
34164
Reid Spencera773bd52006-08-04 18:18:08 +000034165 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000034166fi
Reid Spencera773bd52006-08-04 18:18:08 +000034167
34168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34169{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34170echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034171
34172# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000034173{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
34174echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034175cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034176/* confdefs.h. */
34177_ACEOF
34178cat confdefs.h >>conftest.$ac_ext
34179cat >>conftest.$ac_ext <<_ACEOF
34180/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034181#include <$ac_header>
34182_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034183if { (ac_try="$ac_cpp conftest.$ac_ext"
34184case "(($ac_try" in
34185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34186 *) ac_try_echo=$ac_try;;
34187esac
34188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034190 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000034191 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000034192 rm -f conftest.er1
34193 cat conftest.err >&5
34194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034195 (exit $ac_status); } >/dev/null; then
34196 if test -s conftest.err; then
34197 ac_cpp_err=$ac_c_preproc_warn_flag
34198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34199 else
34200 ac_cpp_err=
34201 fi
34202else
34203 ac_cpp_err=yes
34204fi
34205if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000034206 ac_header_preproc=yes
34207else
34208 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034209sed 's/^/| /' conftest.$ac_ext >&5
34210
John Criswell7a73b802003-06-30 21:59:07 +000034211 ac_header_preproc=no
34212fi
Reid Spencera773bd52006-08-04 18:18:08 +000034213
John Criswell7a73b802003-06-30 21:59:07 +000034214rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000034215{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34216echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034217
34218# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034219case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34220 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000034221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34222echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34224echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34225 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000034226 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000034227 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000034228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34229echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34231echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34233echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34234 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34235echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000034236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34237echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034238 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34239echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000034240 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000034241## ----------------------------------- ##
34242## Report this to llvmbugs@cs.uiuc.edu ##
34243## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000034244_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000034245 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000034246 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034247esac
Reid Spencera773bd52006-08-04 18:18:08 +000034248{ echo "$as_me:$LINENO: checking for $ac_header" >&5
34249echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34250if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034251 echo $ECHO_N "(cached) $ECHO_C" >&6
34252else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034253 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000034254fi
Reid Spencera773bd52006-08-04 18:18:08 +000034255ac_res=`eval echo '${'$as_ac_Header'}'`
34256 { echo "$as_me:$LINENO: result: $ac_res" >&5
34257echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034258
34259fi
34260if test `eval echo '${'$as_ac_Header'}'` = yes; then
34261 cat >>confdefs.h <<_ACEOF
34262#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34263_ACEOF
34264
34265fi
34266
34267done
34268
34269
34270for ac_func in getpagesize
34271do
34272as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000034273{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34274echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34275if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034276 echo $ECHO_N "(cached) $ECHO_C" >&6
34277else
34278 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034279/* confdefs.h. */
34280_ACEOF
34281cat confdefs.h >>conftest.$ac_ext
34282cat >>conftest.$ac_ext <<_ACEOF
34283/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000034284/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34286#define $ac_func innocuous_$ac_func
34287
John Criswell7a73b802003-06-30 21:59:07 +000034288/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000034289 which can conflict with char $ac_func (); below.
34290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34291 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000034292
John Criswell0c38eaf2003-09-10 15:17:25 +000034293#ifdef __STDC__
34294# include <limits.h>
34295#else
34296# include <assert.h>
34297#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000034298
34299#undef $ac_func
34300
Reid Spencera773bd52006-08-04 18:18:08 +000034301/* Override any GCC internal prototype to avoid an error.
34302 Use char because int might match the return type of a GCC
34303 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000034304#ifdef __cplusplus
34305extern "C"
34306#endif
John Criswell7a73b802003-06-30 21:59:07 +000034307char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000034308/* The GNU C library defines this for functions which it implements
34309 to always fail with ENOSYS. Some functions are actually named
34310 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000034311#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000034312choke me
John Criswell7a73b802003-06-30 21:59:07 +000034313#endif
34314
John Criswell0c38eaf2003-09-10 15:17:25 +000034315int
34316main ()
34317{
Reid Spencera773bd52006-08-04 18:18:08 +000034318return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000034319 ;
34320 return 0;
34321}
34322_ACEOF
34323rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034324if { (ac_try="$ac_link"
34325case "(($ac_try" in
34326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34327 *) ac_try_echo=$ac_try;;
34328esac
34329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34330 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034331 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034332 grep -v '^ *+' conftest.er1 >conftest.err
34333 rm -f conftest.er1
34334 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000034335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034336 (exit $ac_status); } &&
34337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34338 { (case "(($ac_try" in
34339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34340 *) ac_try_echo=$ac_try;;
34341esac
34342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34343 (eval "$ac_try") 2>&5
34344 ac_status=$?
34345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34346 (exit $ac_status); }; } &&
34347 { ac_try='test -s conftest$ac_exeext'
34348 { (case "(($ac_try" in
34349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34350 *) ac_try_echo=$ac_try;;
34351esac
34352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34353 (eval "$ac_try") 2>&5
34354 ac_status=$?
34355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34356 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034357 eval "$as_ac_var=yes"
34358else
34359 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034360sed 's/^/| /' conftest.$ac_ext >&5
34361
Reid Spencera773bd52006-08-04 18:18:08 +000034362 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000034363fi
Reid Spencera773bd52006-08-04 18:18:08 +000034364
Bill Wendlingebcceee2009-04-18 11:20:33 +000034365rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034366 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000034367fi
Reid Spencera773bd52006-08-04 18:18:08 +000034368ac_res=`eval echo '${'$as_ac_var'}'`
34369 { echo "$as_me:$LINENO: result: $ac_res" >&5
34370echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034371if test `eval echo '${'$as_ac_var'}'` = yes; then
34372 cat >>confdefs.h <<_ACEOF
34373#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34374_ACEOF
34375
34376fi
34377done
34378
Reid Spencera773bd52006-08-04 18:18:08 +000034379{ echo "$as_me:$LINENO: checking for working mmap" >&5
34380echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034381if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34382 echo $ECHO_N "(cached) $ECHO_C" >&6
34383else
34384 if test "$cross_compiling" = yes; then
34385 ac_cv_func_mmap_fixed_mapped=no
34386else
34387 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034388/* confdefs.h. */
34389_ACEOF
34390cat confdefs.h >>conftest.$ac_ext
34391cat >>conftest.$ac_ext <<_ACEOF
34392/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034393$ac_includes_default
34394/* malloc might have been renamed as rpl_malloc. */
34395#undef malloc
34396
34397/* Thanks to Mike Haertel and Jim Avera for this test.
34398 Here is a matrix of mmap possibilities:
34399 mmap private not fixed
34400 mmap private fixed at somewhere currently unmapped
34401 mmap private fixed at somewhere already mapped
34402 mmap shared not fixed
34403 mmap shared fixed at somewhere currently unmapped
34404 mmap shared fixed at somewhere already mapped
34405 For private mappings, we should verify that changes cannot be read()
34406 back from the file, nor mmap's back from the file at a different
34407 address. (There have been systems where private was not correctly
34408 implemented like the infamous i386 svr4.0, and systems where the
34409 VM page cache was not coherent with the file system buffer cache
34410 like early versions of FreeBSD and possibly contemporary NetBSD.)
34411 For shared mappings, we should conversely verify that changes get
34412 propagated back to all the places they're supposed to be.
34413
34414 Grep wants private fixed already mapped.
34415 The main things grep needs to know about mmap are:
34416 * does it exist and is it safe to write into the mmap'd area
34417 * how to use it (BSD variants) */
34418
34419#include <fcntl.h>
34420#include <sys/mman.h>
34421
Bill Wendlingebcceee2009-04-18 11:20:33 +000034422#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000034423char *malloc ();
34424#endif
34425
34426/* This mess was copied from the GNU getpagesize.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034427#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000034428/* Assume that all systems that can run configure have sys/param.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034429# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000034430# define HAVE_SYS_PARAM_H 1
34431# endif
34432
34433# ifdef _SC_PAGESIZE
34434# define getpagesize() sysconf(_SC_PAGESIZE)
34435# else /* no _SC_PAGESIZE */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034436# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000034437# include <sys/param.h>
34438# ifdef EXEC_PAGESIZE
34439# define getpagesize() EXEC_PAGESIZE
34440# else /* no EXEC_PAGESIZE */
34441# ifdef NBPG
34442# define getpagesize() NBPG * CLSIZE
34443# ifndef CLSIZE
34444# define CLSIZE 1
34445# endif /* no CLSIZE */
34446# else /* no NBPG */
34447# ifdef NBPC
34448# define getpagesize() NBPC
34449# else /* no NBPC */
34450# ifdef PAGESIZE
34451# define getpagesize() PAGESIZE
34452# endif /* PAGESIZE */
34453# endif /* no NBPC */
34454# endif /* no NBPG */
34455# endif /* no EXEC_PAGESIZE */
34456# else /* no HAVE_SYS_PARAM_H */
34457# define getpagesize() 8192 /* punt totally */
34458# endif /* no HAVE_SYS_PARAM_H */
34459# endif /* no _SC_PAGESIZE */
34460
34461#endif /* no HAVE_GETPAGESIZE */
34462
34463int
34464main ()
34465{
34466 char *data, *data2, *data3;
34467 int i, pagesize;
34468 int fd;
34469
34470 pagesize = getpagesize ();
34471
34472 /* First, make a file with some known garbage in it. */
34473 data = (char *) malloc (pagesize);
34474 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000034475 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034476 for (i = 0; i < pagesize; ++i)
34477 *(data + i) = rand ();
34478 umask (0);
34479 fd = creat ("conftest.mmap", 0600);
34480 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034481 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034482 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034483 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034484 close (fd);
34485
34486 /* Next, try to mmap the file at a fixed address which already has
34487 something else allocated at it. If we can, also make sure that
34488 we see the same garbage. */
34489 fd = open ("conftest.mmap", O_RDWR);
34490 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034491 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034492 data2 = (char *) malloc (2 * pagesize);
34493 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000034494 return 1;
34495 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000034496 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000034497 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000034498 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034499 for (i = 0; i < pagesize; ++i)
34500 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034501 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034502
34503 /* Finally, make sure that changes to the mapped area do not
34504 percolate back to the file as seen by read(). (This is a bug on
34505 some variants of i386 svr4.0.) */
34506 for (i = 0; i < pagesize; ++i)
34507 *(data2 + i) = *(data2 + i) + 1;
34508 data3 = (char *) malloc (pagesize);
34509 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000034510 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034511 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034512 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034513 for (i = 0; i < pagesize; ++i)
34514 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034515 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034516 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000034517 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000034518}
34519_ACEOF
34520rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034521if { (ac_try="$ac_link"
34522case "(($ac_try" in
34523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34524 *) ac_try_echo=$ac_try;;
34525esac
34526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34527 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034528 ac_status=$?
34529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034531 { (case "(($ac_try" in
34532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34533 *) ac_try_echo=$ac_try;;
34534esac
34535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34536 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034537 ac_status=$?
34538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34539 (exit $ac_status); }; }; then
34540 ac_cv_func_mmap_fixed_mapped=yes
34541else
34542 echo "$as_me: program exited with status $ac_status" >&5
34543echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034544sed 's/^/| /' conftest.$ac_ext >&5
34545
John Criswell7a73b802003-06-30 21:59:07 +000034546( exit $ac_status )
34547ac_cv_func_mmap_fixed_mapped=no
34548fi
Reid Spencera773bd52006-08-04 18:18:08 +000034549rm -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 +000034550fi
Reid Spencera773bd52006-08-04 18:18:08 +000034551
34552
John Criswell7a73b802003-06-30 21:59:07 +000034553fi
Reid Spencera773bd52006-08-04 18:18:08 +000034554{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34555echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034556if test $ac_cv_func_mmap_fixed_mapped = yes; then
34557
34558cat >>confdefs.h <<\_ACEOF
34559#define HAVE_MMAP 1
34560_ACEOF
34561
34562fi
34563rm -f conftest.mmap
34564
Reid Spencer30fe5262007-01-20 07:48:49 +000034565 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034566echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034567if test "${ac_cv_func_mmap_file+set}" = set; then
34568 echo $ECHO_N "(cached) $ECHO_C" >&6
34569else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034570 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000034571ac_cpp='$CPP $CPPFLAGS'
34572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34574ac_compiler_gnu=$ac_cv_c_compiler_gnu
34575
34576 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034577 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000034578else
34579 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034580
Reid Spencer777ce172004-09-20 04:09:56 +000034581 /* confdefs.h. */
34582_ACEOF
34583cat confdefs.h >>conftest.$ac_ext
34584cat >>conftest.$ac_ext <<_ACEOF
34585/* end confdefs.h. */
34586
John Criswell7a73b802003-06-30 21:59:07 +000034587#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000034588#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000034589#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000034590
34591int
34592main ()
34593{
John Criswell7a73b802003-06-30 21:59:07 +000034594
34595 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000034596 fd = creat ("foo",0777);
34597 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34598 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034599 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000034600 ;
34601 return 0;
34602}
John Criswell7a73b802003-06-30 21:59:07 +000034603_ACEOF
34604rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034605if { (ac_try="$ac_link"
34606case "(($ac_try" in
34607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34608 *) ac_try_echo=$ac_try;;
34609esac
34610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34611 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034612 ac_status=$?
34613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034615 { (case "(($ac_try" in
34616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34617 *) ac_try_echo=$ac_try;;
34618esac
34619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34620 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034621 ac_status=$?
34622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34623 (exit $ac_status); }; }; then
34624 ac_cv_func_mmap_file=yes
34625else
34626 echo "$as_me: program exited with status $ac_status" >&5
34627echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034628sed 's/^/| /' conftest.$ac_ext >&5
34629
John Criswell7a73b802003-06-30 21:59:07 +000034630( exit $ac_status )
34631ac_cv_func_mmap_file=no
34632fi
Reid Spencera773bd52006-08-04 18:18:08 +000034633rm -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 +000034634fi
Reid Spencera773bd52006-08-04 18:18:08 +000034635
34636
John Criswell7a73b802003-06-30 21:59:07 +000034637 ac_ext=c
34638ac_cpp='$CPP $CPPFLAGS'
34639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34641ac_compiler_gnu=$ac_cv_c_compiler_gnu
34642
34643
34644fi
Reid Spencera773bd52006-08-04 18:18:08 +000034645{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34646echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034647if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000034648
34649cat >>confdefs.h <<\_ACEOF
34650#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000034651_ACEOF
34652
34653 MMAP_FILE=yes
34654
34655fi
34656
Reid Spencer30fe5262007-01-20 07:48:49 +000034657 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034658echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034659if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34660 echo $ECHO_N "(cached) $ECHO_C" >&6
34661else
Reid Spencer582a23c2004-12-29 07:07:57 +000034662 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000034663 ac_cv_need_dev_zero_for_mmap=yes
34664 else
34665 ac_cv_need_dev_zero_for_mmap=no
34666 fi
34667
34668fi
Reid Spencera773bd52006-08-04 18:18:08 +000034669{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34670echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034671if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34672
34673cat >>confdefs.h <<\_ACEOF
34674#define NEED_DEV_ZERO_FOR_MMAP 1
34675_ACEOF
34676
34677fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000034678
Reid Spencer30fe5262007-01-20 07:48:49 +000034679 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34680 then
34681 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000034682echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034683 fi
34684 if test "$ac_cv_func_mmap_file" = "no"
34685 then
34686 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034687echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034688 fi
John Criswellb13092b2003-07-22 21:00:24 +000034689fi
John Criswell7a73b802003-06-30 21:59:07 +000034690
Owen Andersona8603702009-05-19 22:18:56 +000034691{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000034692echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034693cat >conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000034694/* confdefs.h. */
34695_ACEOF
34696cat confdefs.h >>conftest.$ac_ext
34697cat >>conftest.$ac_ext <<_ACEOF
34698/* end confdefs.h. */
34699int main() {
Owen Andersona8603702009-05-19 22:18:56 +000034700 volatile unsigned long val = 1;
34701 __sync_synchronize();
34702 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000034703 __sync_add_and_fetch(&val, 1);
34704 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000034705 return 0;
34706 }
Owen Andersond4b272b2009-05-18 23:58:51 +000034707
34708_ACEOF
34709rm -f conftest.$ac_objext conftest$ac_exeext
34710if { (ac_try="$ac_link"
34711case "(($ac_try" in
34712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34713 *) ac_try_echo=$ac_try;;
34714esac
34715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34716 (eval "$ac_link") 2>conftest.er1
34717 ac_status=$?
34718 grep -v '^ *+' conftest.er1 >conftest.err
34719 rm -f conftest.er1
34720 cat conftest.err >&5
34721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34722 (exit $ac_status); } &&
34723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34724 { (case "(($ac_try" in
34725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34726 *) ac_try_echo=$ac_try;;
34727esac
34728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34729 (eval "$ac_try") 2>&5
34730 ac_status=$?
34731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34732 (exit $ac_status); }; } &&
34733 { ac_try='test -s conftest$ac_exeext'
34734 { (case "(($ac_try" in
34735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34736 *) ac_try_echo=$ac_try;;
34737esac
34738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34739 (eval "$ac_try") 2>&5
34740 ac_status=$?
34741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34742 (exit $ac_status); }; }; then
34743 { echo "$as_me:$LINENO: result: yes" >&5
34744echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034745
34746cat >>confdefs.h <<\_ACEOF
34747#define LLVM_MULTITHREADED 1
34748_ACEOF
34749
Owen Andersond4b272b2009-05-18 23:58:51 +000034750else
34751 echo "$as_me: failed program was:" >&5
34752sed 's/^/| /' conftest.$ac_ext >&5
34753
34754 { echo "$as_me:$LINENO: result: no" >&5
34755echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000034756
Owen Andersona8603702009-05-19 22:18:56 +000034757cat >>confdefs.h <<\_ACEOF
34758#define LLVM_MULTITHREADED 0
34759_ACEOF
34760
34761 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34762echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000034763fi
34764
34765rm -f core conftest.err conftest.$ac_objext \
34766 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000034767
34768
John Criswell7a73b802003-06-30 21:59:07 +000034769
Nick Lewycky4372e692009-09-29 06:18:23 +000034770if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
34771 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
34772echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
34773if test "${llvm_cv_linux_mixed+set}" = set; then
34774 echo $ECHO_N "(cached) $ECHO_C" >&6
34775else
34776 ac_ext=c
34777ac_cpp='$CPP $CPPFLAGS'
34778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34780ac_compiler_gnu=$ac_cv_c_compiler_gnu
34781
34782 cat >conftest.$ac_ext <<_ACEOF
34783/* confdefs.h. */
34784_ACEOF
34785cat confdefs.h >>conftest.$ac_ext
34786cat >>conftest.$ac_ext <<_ACEOF
34787/* end confdefs.h. */
34788#ifndef __x86_64__
34789 error: Not x86-64 even if uname says so!
34790 #endif
34791
34792int
34793main ()
34794{
34795
34796 ;
34797 return 0;
34798}
34799_ACEOF
34800rm -f conftest.$ac_objext
34801if { (ac_try="$ac_compile"
34802case "(($ac_try" in
34803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34804 *) ac_try_echo=$ac_try;;
34805esac
34806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34807 (eval "$ac_compile") 2>conftest.er1
34808 ac_status=$?
34809 grep -v '^ *+' conftest.er1 >conftest.err
34810 rm -f conftest.er1
34811 cat conftest.err >&5
34812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34813 (exit $ac_status); } &&
34814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34815 { (case "(($ac_try" in
34816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34817 *) ac_try_echo=$ac_try;;
34818esac
34819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34820 (eval "$ac_try") 2>&5
34821 ac_status=$?
34822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34823 (exit $ac_status); }; } &&
34824 { ac_try='test -s conftest.$ac_objext'
34825 { (case "(($ac_try" in
34826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34827 *) ac_try_echo=$ac_try;;
34828esac
34829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34830 (eval "$ac_try") 2>&5
34831 ac_status=$?
34832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34833 (exit $ac_status); }; }; then
34834 llvm_cv_linux_mixed=no
34835else
34836 echo "$as_me: failed program was:" >&5
34837sed 's/^/| /' conftest.$ac_ext >&5
34838
34839 llvm_cv_linux_mixed=yes
34840fi
34841
34842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34843 ac_ext=c
34844ac_cpp='$CPP $CPPFLAGS'
34845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34847ac_compiler_gnu=$ac_cv_c_compiler_gnu
34848
34849
34850fi
34851{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
34852echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
34853
34854 if test "$llvm_cv_linux_mixed" = "yes"; then
34855 llvm_cv_target_arch="x86"
34856 ARCH="x86"
34857 fi
34858fi
34859
Reid Spencer9372f152007-07-30 20:13:24 +000034860
34861for ac_func in __dso_handle
34862do
34863as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34864{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34865echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34866if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34867 echo $ECHO_N "(cached) $ECHO_C" >&6
34868else
34869 cat >conftest.$ac_ext <<_ACEOF
34870/* confdefs.h. */
34871_ACEOF
34872cat confdefs.h >>conftest.$ac_ext
34873cat >>conftest.$ac_ext <<_ACEOF
34874/* end confdefs.h. */
34875/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34877#define $ac_func innocuous_$ac_func
34878
34879/* System header to define __stub macros and hopefully few prototypes,
34880 which can conflict with char $ac_func (); below.
34881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34882 <limits.h> exists even on freestanding compilers. */
34883
34884#ifdef __STDC__
34885# include <limits.h>
34886#else
34887# include <assert.h>
34888#endif
34889
34890#undef $ac_func
34891
34892/* Override any GCC internal prototype to avoid an error.
34893 Use char because int might match the return type of a GCC
34894 builtin and then its argument prototype would still apply. */
34895#ifdef __cplusplus
34896extern "C"
34897#endif
34898char $ac_func ();
34899/* The GNU C library defines this for functions which it implements
34900 to always fail with ENOSYS. Some functions are actually named
34901 something starting with __ and the normal name is an alias. */
34902#if defined __stub_$ac_func || defined __stub___$ac_func
34903choke me
34904#endif
34905
34906int
34907main ()
34908{
34909return $ac_func ();
34910 ;
34911 return 0;
34912}
34913_ACEOF
34914rm -f conftest.$ac_objext conftest$ac_exeext
34915if { (ac_try="$ac_link"
34916case "(($ac_try" in
34917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34918 *) ac_try_echo=$ac_try;;
34919esac
34920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34921 (eval "$ac_link") 2>conftest.er1
34922 ac_status=$?
34923 grep -v '^ *+' conftest.er1 >conftest.err
34924 rm -f conftest.er1
34925 cat conftest.err >&5
34926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034927 (exit $ac_status); } &&
34928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34929 { (case "(($ac_try" in
34930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34931 *) ac_try_echo=$ac_try;;
34932esac
34933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34934 (eval "$ac_try") 2>&5
34935 ac_status=$?
34936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34937 (exit $ac_status); }; } &&
34938 { ac_try='test -s conftest$ac_exeext'
34939 { (case "(($ac_try" in
34940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34941 *) ac_try_echo=$ac_try;;
34942esac
34943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34944 (eval "$ac_try") 2>&5
34945 ac_status=$?
34946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34947 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000034948 eval "$as_ac_var=yes"
34949else
34950 echo "$as_me: failed program was:" >&5
34951sed 's/^/| /' conftest.$ac_ext >&5
34952
34953 eval "$as_ac_var=no"
34954fi
34955
Bill Wendlingebcceee2009-04-18 11:20:33 +000034956rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000034957 conftest$ac_exeext conftest.$ac_ext
34958fi
34959ac_res=`eval echo '${'$as_ac_var'}'`
34960 { echo "$as_me:$LINENO: result: $ac_res" >&5
34961echo "${ECHO_T}$ac_res" >&6; }
34962if test `eval echo '${'$as_ac_var'}'` = yes; then
34963 cat >>confdefs.h <<_ACEOF
34964#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34965_ACEOF
34966
34967fi
34968done
34969
34970
Reid Spencera773bd52006-08-04 18:18:08 +000034971{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34972echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034973if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34974 echo $ECHO_N "(cached) $ECHO_C" >&6
34975else
34976 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000034977if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034978 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000034979 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34980 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034981 if test $? -eq 0 ; then
34982 llvm_cv_llvmgcc_sanity="yes"
34983 fi
34984 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000034985fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034986fi
Reid Spencera773bd52006-08-04 18:18:08 +000034987{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34988echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034989
34990if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000034991 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34992echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000034993 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034994 LLVMCC1=$llvmcc1path
34995
Reid Spencer502935f2004-12-22 05:56:56 +000034996 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034997 LLVMCC1PLUS=$llvmcc1pluspath
34998
Reid Spencer502935f2004-12-22 05:56:56 +000034999 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
35000 LLVMGCCDIR=$llvmgccdir
35001
Reid Spencer282d8c12006-12-21 22:55:41 +000035002 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
35003 LLVMGCCLIBEXEC=$llvmgcclibexec
35004
Reid Spencerb5d75b82006-05-09 00:31:01 +000035005 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000035006 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35007 LLVMGCC_VERSION=$llvmgccversion
35008
35009 LLVMGCC_MAJVERS=$llvmgccmajvers
35010
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000035011 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000035012 LLVMGCC_LANGS=$llvmgcclangs
35013
35014 { echo "$as_me:$LINENO: result: ok" >&5
35015echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000035016fi
35017
Reid Spencer2bc7bd52004-11-29 12:29:58 +000035018SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000035019
35020
Reid Spencere9de0912004-08-20 09:03:57 +000035021# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035022# information into substitutions that will end up in Makefile.config.in
35023# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000035024if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000035025 prefix="/usr/local"
35026fi
Reid Spencere9de0912004-08-20 09:03:57 +000035027eval LLVM_PREFIX="${prefix}";
35028eval LLVM_BINDIR="${prefix}/bin";
35029eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000035030eval LLVM_DATADIR="${prefix}/share/llvm";
35031eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35032eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000035033eval LLVM_INCLUDEDIR="${prefix}/include";
35034eval LLVM_INFODIR="${prefix}/info";
35035eval LLVM_MANDIR="${prefix}/man";
35036LLVM_CONFIGTIME=`date`
35037
35038
35039
35040
35041
35042
35043
35044
35045
35046
35047
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035048# Place the various directores into the config.h file as #defines so that we
35049# can know about the installation paths within LLVM.
35050
Reid Spencere9de0912004-08-20 09:03:57 +000035051cat >>confdefs.h <<_ACEOF
35052#define LLVM_PREFIX "$LLVM_PREFIX"
35053_ACEOF
35054
35055
35056cat >>confdefs.h <<_ACEOF
35057#define LLVM_BINDIR "$LLVM_BINDIR"
35058_ACEOF
35059
35060
35061cat >>confdefs.h <<_ACEOF
35062#define LLVM_LIBDIR "$LLVM_LIBDIR"
35063_ACEOF
35064
35065
35066cat >>confdefs.h <<_ACEOF
35067#define LLVM_DATADIR "$LLVM_DATADIR"
35068_ACEOF
35069
35070
35071cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000035072#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000035073_ACEOF
35074
35075
35076cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000035077#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000035078_ACEOF
35079
35080
35081cat >>confdefs.h <<_ACEOF
35082#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35083_ACEOF
35084
35085
35086cat >>confdefs.h <<_ACEOF
35087#define LLVM_INFODIR "$LLVM_INFODIR"
35088_ACEOF
35089
35090
35091cat >>confdefs.h <<_ACEOF
35092#define LLVM_MANDIR "$LLVM_MANDIR"
35093_ACEOF
35094
35095
35096cat >>confdefs.h <<_ACEOF
35097#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35098_ACEOF
35099
35100
Eric Christopher790e11c2007-12-01 00:34:39 +000035101cat >>confdefs.h <<_ACEOF
35102#define LLVM_HOSTTRIPLE "$host"
35103_ACEOF
35104
35105
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035106# Determine which bindings to build.
35107if test "$BINDINGS_TO_BUILD" = auto ; then
35108 BINDINGS_TO_BUILD=""
35109 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35110 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35111 fi
35112fi
35113BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35114
35115
35116# This isn't really configurey, but it avoids having to repeat the list in
35117# other files.
35118ALL_BINDINGS=ocaml
35119
35120
Gordon Henriksenf0915682007-10-02 16:42:22 +000035121# Do any work necessary to ensure that bindings have what they need.
35122binding_prereqs_failed=0
35123for a_binding in $BINDINGS_TO_BUILD ; do
35124 case "$a_binding" in
35125 ocaml)
35126 if test "x$OCAMLC" = x ; then
35127 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35128echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35129 binding_prereqs_failed=1
35130 fi
35131 if test "x$OCAMLDEP" = x ; then
35132 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35133echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35134 binding_prereqs_failed=1
35135 fi
35136 if test "x$OCAMLOPT" = x ; then
35137 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35138echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35139 fi
35140 if test "x$with_ocaml_libdir" != xauto ; then
35141 OCAML_LIBDIR=$with_ocaml_libdir
35142
35143 else
35144 ocaml_stdlib="`"$OCAMLC" -where`"
35145 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35146 then
35147 # ocaml stdlib is beneath our prefix; use stdlib
35148 OCAML_LIBDIR=$ocaml_stdlib
35149
35150 else
35151 # ocaml stdlib is outside our prefix; use libdir/ocaml
35152 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35153
35154 fi
35155 fi
35156 ;;
35157 esac
35158done
35159if test "$binding_prereqs_failed" = 1 ; then
35160 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35161echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35162 { (exit 1); exit 1; }; }
35163fi
35164
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035165{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35166echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35167if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35168 echo $ECHO_N "(cached) $ECHO_C" >&6
35169else
35170 ac_ext=cpp
35171ac_cpp='$CXXCPP $CPPFLAGS'
35172ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35173ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35174ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35175
35176 oldcxxflags="$CXXFLAGS"
35177 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35178 cat >conftest.$ac_ext <<_ACEOF
35179/* confdefs.h. */
35180_ACEOF
35181cat confdefs.h >>conftest.$ac_ext
35182cat >>conftest.$ac_ext <<_ACEOF
35183/* end confdefs.h. */
35184
35185int
35186main ()
35187{
35188
35189 ;
35190 return 0;
35191}
35192_ACEOF
35193rm -f conftest.$ac_objext
35194if { (ac_try="$ac_compile"
35195case "(($ac_try" in
35196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35197 *) ac_try_echo=$ac_try;;
35198esac
35199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35200 (eval "$ac_compile") 2>conftest.er1
35201 ac_status=$?
35202 grep -v '^ *+' conftest.er1 >conftest.err
35203 rm -f conftest.er1
35204 cat conftest.err >&5
35205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000035206 (exit $ac_status); } &&
35207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35208 { (case "(($ac_try" in
35209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35210 *) ac_try_echo=$ac_try;;
35211esac
35212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35213 (eval "$ac_try") 2>&5
35214 ac_status=$?
35215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35216 (exit $ac_status); }; } &&
35217 { ac_try='test -s conftest.$ac_objext'
35218 { (case "(($ac_try" in
35219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35220 *) ac_try_echo=$ac_try;;
35221esac
35222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35223 (eval "$ac_try") 2>&5
35224 ac_status=$?
35225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35226 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035227 llvm_cv_cxx_visibility_inlines_hidden=yes
35228else
35229 echo "$as_me: failed program was:" >&5
35230sed 's/^/| /' conftest.$ac_ext >&5
35231
35232 llvm_cv_cxx_visibility_inlines_hidden=no
35233fi
35234
35235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35236 CXXFLAGS="$oldcxxflags"
35237 ac_ext=c
35238ac_cpp='$CPP $CPPFLAGS'
35239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35241ac_compiler_gnu=$ac_cv_c_compiler_gnu
35242
35243
35244fi
35245{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35246echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35247if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35248 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35249
35250else
35251 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35252
35253fi
35254
Gordon Henriksenf0915682007-10-02 16:42:22 +000035255
Nick Lewycky731c6ab2009-03-05 08:20:44 +000035256if test "$llvm_cv_link_use_r" = "yes" ; then
35257 RPATH="-Wl,-R"
35258else
35259 RPATH="-Wl,-rpath"
35260fi
35261
35262
35263if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35264 RDYNAMIC="-Wl,-export-dynamic"
35265else
35266 RDYNAMIC=""
35267fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000035268
35269
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035270
Reid Spencera773bd52006-08-04 18:18:08 +000035271ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035272
Douglas Gregor1555a232009-06-16 20:12:29 +000035273ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35274
35275ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35276
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000035277ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35278
Reid Spencera773bd52006-08-04 18:18:08 +000035279ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035280
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035281
Reid Spencera773bd52006-08-04 18:18:08 +000035282ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035283
35284
Reid Spencerea949cf2006-08-16 00:45:38 +000035285ac_config_files="$ac_config_files llvm.spec"
35286
35287
Reid Spencera773bd52006-08-04 18:18:08 +000035288ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000035289
35290
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035291ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35292
35293
Reid Spencera773bd52006-08-04 18:18:08 +000035294ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000035295
35296
Reid Spencera773bd52006-08-04 18:18:08 +000035297ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000035298
Reid Spencera773bd52006-08-04 18:18:08 +000035299ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035300
35301
Reid Spencera773bd52006-08-04 18:18:08 +000035302ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035303
35304
Reid Spencera773bd52006-08-04 18:18:08 +000035305ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035306
35307
Reid Spencera773bd52006-08-04 18:18:08 +000035308ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035309
35310
Reid Spencer8b2e1412006-11-17 03:32:33 +000035311ac_config_commands="$ac_config_commands runtime/Makefile"
35312
35313
Reid Spencera773bd52006-08-04 18:18:08 +000035314ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035315
35316
Reid Spencera773bd52006-08-04 18:18:08 +000035317ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035318
35319
Bill Wendlingf24eb392009-01-04 23:12:30 +000035320ac_config_commands="$ac_config_commands unittests/Makefile"
35321
35322
Reid Spencera773bd52006-08-04 18:18:08 +000035323ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035324
35325
Reid Spencera773bd52006-08-04 18:18:08 +000035326ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035327
35328
Reid Spencera773bd52006-08-04 18:18:08 +000035329ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035330
35331
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035332ac_config_commands="$ac_config_commands bindings/Makefile"
35333
35334
35335ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35336
35337
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035338
John Criswell7a73b802003-06-30 21:59:07 +000035339cat >confcache <<\_ACEOF
35340# This file is a shell script that caches the results of configure
35341# tests run on this system so they can be shared between configure
35342# scripts and configure runs, see configure's option --config-cache.
35343# It is not useful on other systems. If it contains results you don't
35344# want to keep, you may remove or edit it.
35345#
35346# config.status only pays attention to the cache file if you give it
35347# the --recheck option to rerun configure.
35348#
John Criswell0c38eaf2003-09-10 15:17:25 +000035349# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000035350# loading this file, other *unset* `ac_cv_foo' will be assigned the
35351# following values.
35352
35353_ACEOF
35354
35355# The following way of writing the cache mishandles newlines in values,
35356# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000035357# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000035358# Ultrix sh set writes to stderr and can't be redirected directly,
35359# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000035360(
35361 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35362 eval ac_val=\$$ac_var
35363 case $ac_val in #(
35364 *${as_nl}*)
35365 case $ac_var in #(
35366 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35367echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35368 esac
35369 case $ac_var in #(
35370 _ | IFS | as_nl) ;; #(
35371 *) $as_unset $ac_var ;;
35372 esac ;;
35373 esac
35374 done
35375
John Criswell7a73b802003-06-30 21:59:07 +000035376 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000035377 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35378 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000035379 # `set' does not quote correctly, so add quotes (double-quote
35380 # substitution turns \\\\ into \\, and sed turns \\ into \).
35381 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035382 "s/'/'\\\\''/g;
35383 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000035384 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000035385 *)
35386 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000035387 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000035388 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035389 esac |
35390 sort
35391) |
John Criswell7a73b802003-06-30 21:59:07 +000035392 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000035393 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000035394 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000035395 :clear
John Criswell7a73b802003-06-30 21:59:07 +000035396 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35397 t end
Reid Spencera773bd52006-08-04 18:18:08 +000035398 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35399 :end' >>confcache
35400if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35401 if test -w "$cache_file"; then
35402 test "x$cache_file" != "x/dev/null" &&
35403 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35404echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000035405 cat confcache >$cache_file
35406 else
Reid Spencera773bd52006-08-04 18:18:08 +000035407 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35408echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000035409 fi
35410fi
35411rm -f confcache
35412
35413test "x$prefix" = xNONE && prefix=$ac_default_prefix
35414# Let make expand exec_prefix.
35415test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35416
John Criswell7a73b802003-06-30 21:59:07 +000035417DEFS=-DHAVE_CONFIG_H
35418
John Criswell0c38eaf2003-09-10 15:17:25 +000035419ac_libobjs=
35420ac_ltlibobjs=
35421for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35422 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000035423 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35424 ac_i=`echo "$ac_i" | sed "$ac_script"`
35425 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35426 # will be set to the directory where LIBOBJS objects are built.
35427 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35428 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000035429done
35430LIBOBJS=$ac_libobjs
35431
35432LTLIBOBJS=$ac_ltlibobjs
35433
35434
Reid Spencer2bc7bd52004-11-29 12:29:58 +000035435if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35436 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35437Usually this means the macro was only invoked conditionally." >&5
35438echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35439Usually this means the macro was only invoked conditionally." >&2;}
35440 { (exit 1); exit 1; }; }
35441fi
35442if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35443 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35444Usually this means the macro was only invoked conditionally." >&5
35445echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35446Usually this means the macro was only invoked conditionally." >&2;}
35447 { (exit 1); exit 1; }; }
35448fi
John Criswell7a73b802003-06-30 21:59:07 +000035449
35450: ${CONFIG_STATUS=./config.status}
35451ac_clean_files_save=$ac_clean_files
35452ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35453{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35454echo "$as_me: creating $CONFIG_STATUS" >&6;}
35455cat >$CONFIG_STATUS <<_ACEOF
35456#! $SHELL
35457# Generated by $as_me.
35458# Run this file to recreate the current configuration.
35459# Compiler output produced by configure, useful for debugging
35460# configure, is in config.log if it exists.
35461
35462debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000035463ac_cs_recheck=false
35464ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000035465SHELL=\${CONFIG_SHELL-$SHELL}
35466_ACEOF
35467
35468cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035469## --------------------- ##
35470## M4sh Initialization. ##
35471## --------------------- ##
35472
Bill Wendlingebcceee2009-04-18 11:20:33 +000035473# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000035474if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35475 emulate sh
35476 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035477 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35478 # is contrary to our usage. Disable this feature.
35479 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000035480 setopt NO_GLOB_SUBST
35481else
Bill Wendlingebcceee2009-04-18 11:20:33 +000035482 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000035483fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000035484BIN_SH=xpg4; export BIN_SH # for Tru64
35485DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000035486
John Criswell7a73b802003-06-30 21:59:07 +000035487
Reid Spencera773bd52006-08-04 18:18:08 +000035488# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000035489# Avoid depending upon Character Ranges.
35490as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35492as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35493as_cr_digits='0123456789'
35494as_cr_alnum=$as_cr_Letters$as_cr_digits
35495
35496# The user is always right.
35497if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000035498 echo "#! /bin/sh" >conf$$.sh
35499 echo "exit 0" >>conf$$.sh
35500 chmod +x conf$$.sh
35501 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035502 PATH_SEPARATOR=';'
35503 else
35504 PATH_SEPARATOR=:
35505 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000035506 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000035507fi
35508
Reid Spencera773bd52006-08-04 18:18:08 +000035509# Support unset when possible.
35510if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35511 as_unset=unset
35512else
35513 as_unset=false
35514fi
John Criswell7a73b802003-06-30 21:59:07 +000035515
Reid Spencera773bd52006-08-04 18:18:08 +000035516
35517# IFS
35518# We need space, tab and new line, in precisely that order. Quoting is
35519# there to prevent editors from complaining about space-tab.
35520# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35521# splitting by setting IFS to empty value.)
35522as_nl='
35523'
35524IFS=" "" $as_nl"
35525
35526# Find who we are. Look in the path if we contain no directory separator.
35527case $0 in
35528 *[\\/]* ) as_myself=$0 ;;
35529 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000035530for as_dir in $PATH
35531do
35532 IFS=$as_save_IFS
35533 test -z "$as_dir" && as_dir=.
35534 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35535done
Reid Spencera773bd52006-08-04 18:18:08 +000035536IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000035537
Reid Spencera773bd52006-08-04 18:18:08 +000035538 ;;
35539esac
35540# We did not find ourselves, most probably we were run as `sh COMMAND'
35541# in which case we are not to be found in the path.
35542if test "x$as_myself" = x; then
35543 as_myself=$0
35544fi
35545if test ! -f "$as_myself"; then
35546 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35547 { (exit 1); exit 1; }
35548fi
35549
35550# Work around bugs in pre-3.0 UWIN ksh.
35551for as_var in ENV MAIL MAILPATH
35552do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35553done
35554PS1='$ '
35555PS2='> '
35556PS4='+ '
35557
35558# NLS nuisances.
35559for as_var in \
35560 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35561 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35562 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000035563do
Reid Spencera773bd52006-08-04 18:18:08 +000035564 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35565 eval $as_var=C; export $as_var
35566 else
35567 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35568 fi
35569done
35570
35571# Required to use basename.
35572if expr a : '\(a\)' >/dev/null 2>&1 &&
35573 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35574 as_expr=expr
35575else
35576 as_expr=false
35577fi
35578
35579if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35580 as_basename=basename
35581else
35582 as_basename=false
35583fi
35584
35585
35586# Name of the executable.
35587as_me=`$as_basename -- "$0" ||
35588$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35589 X"$0" : 'X\(//\)$' \| \
35590 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35591echo X/"$0" |
35592 sed '/^.*\/\([^/][^/]*\)\/*$/{
35593 s//\1/
35594 q
35595 }
35596 /^X\/\(\/\/\)$/{
35597 s//\1/
35598 q
35599 }
35600 /^X\/\(\/\).*/{
35601 s//\1/
35602 q
35603 }
35604 s/.*/./; q'`
35605
35606# CDPATH.
35607$as_unset CDPATH
35608
35609
35610
John Criswell7a73b802003-06-30 21:59:07 +000035611 as_lineno_1=$LINENO
35612 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000035613 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000035614 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000035615
35616 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35617 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000035618 # line-number line after each line using $LINENO; the second 'sed'
35619 # does the real work. The second script uses 'N' to pair each
35620 # line-number line with the line containing $LINENO, and appends
35621 # trailing '-' during substitution so that $LINENO is not a special
35622 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000035623 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000035624 # scripts with optimization help from Paolo Bonzini. Blame Lee
35625 # E. McMahon (1931-1989) for sed's syntax. :-)
35626 sed -n '
35627 p
35628 /[$]LINENO/=
35629 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000035630 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000035631 s/[$]LINENO.*/&-/
35632 t lineno
35633 b
35634 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000035635 N
Reid Spencera773bd52006-08-04 18:18:08 +000035636 :loop
35637 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000035638 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000035639 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000035640 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000035641 chmod +x "$as_me.lineno" ||
35642 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000035643 { (exit 1); exit 1; }; }
35644
35645 # Don't try to exec as it changes $[0], causing all sort of problems
35646 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000035647 # original and so on. Autoconf is especially sensitive to this).
35648 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000035649 # Exit status is that of the last command.
35650 exit
35651}
35652
35653
Reid Spencera773bd52006-08-04 18:18:08 +000035654if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35655 as_dirname=dirname
35656else
35657 as_dirname=false
35658fi
35659
35660ECHO_C= ECHO_N= ECHO_T=
35661case `echo -n x` in
35662-n*)
35663 case `echo 'x\c'` in
35664 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35665 *) ECHO_C='\c';;
35666 esac;;
35667*)
35668 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000035669esac
35670
Reid Spencera773bd52006-08-04 18:18:08 +000035671if expr a : '\(a\)' >/dev/null 2>&1 &&
35672 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000035673 as_expr=expr
35674else
35675 as_expr=false
35676fi
35677
35678rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000035679if test -d conf$$.dir; then
35680 rm -f conf$$.dir/conf$$.file
35681else
35682 rm -f conf$$.dir
35683 mkdir conf$$.dir
35684fi
John Criswell7a73b802003-06-30 21:59:07 +000035685echo >conf$$.file
35686if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000035687 as_ln_s='ln -s'
35688 # ... but there are two gotchas:
35689 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35690 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35691 # In both cases, we have to default to `cp -p'.
35692 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000035693 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000035694elif ln conf$$.file conf$$ 2>/dev/null; then
35695 as_ln_s=ln
35696else
35697 as_ln_s='cp -p'
35698fi
Reid Spencera773bd52006-08-04 18:18:08 +000035699rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35700rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000035701
John Criswell0c38eaf2003-09-10 15:17:25 +000035702if mkdir -p . 2>/dev/null; then
35703 as_mkdir_p=:
35704else
Reid Spencer2706f8c2004-09-19 23:53:36 +000035705 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000035706 as_mkdir_p=false
35707fi
35708
Bill Wendlingebcceee2009-04-18 11:20:33 +000035709# Find out whether ``test -x'' works. Don't use a zero-byte file, as
35710# systems may use methods other than mode bits to determine executability.
35711cat >conf$$.file <<_ASEOF
35712#! /bin/sh
35713exit 0
35714_ASEOF
35715chmod +x conf$$.file
35716if test -x conf$$.file >/dev/null 2>&1; then
35717 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000035718else
Bill Wendlingebcceee2009-04-18 11:20:33 +000035719 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000035720fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000035721rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000035722
35723# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035724as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035725
35726# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035727as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035728
35729
John Criswell7a73b802003-06-30 21:59:07 +000035730exec 6>&1
35731
Reid Spencera773bd52006-08-04 18:18:08 +000035732# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000035733# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000035734# values after options handling.
35735ac_log="
Tanya Lattner953042b2009-08-22 04:37:30 +000035736This file was extended by llvm $as_me 2.7svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +000035737generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000035738
35739 CONFIG_FILES = $CONFIG_FILES
35740 CONFIG_HEADERS = $CONFIG_HEADERS
35741 CONFIG_LINKS = $CONFIG_LINKS
35742 CONFIG_COMMANDS = $CONFIG_COMMANDS
35743 $ $0 $@
35744
Reid Spencera773bd52006-08-04 18:18:08 +000035745on `(hostname || uname -n) 2>/dev/null | sed 1q`
35746"
35747
John Criswell7a73b802003-06-30 21:59:07 +000035748_ACEOF
35749
Reid Spencera773bd52006-08-04 18:18:08 +000035750cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035751# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000035752config_files="$ac_config_files"
35753config_headers="$ac_config_headers"
35754config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000035755
Reid Spencera773bd52006-08-04 18:18:08 +000035756_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035757
35758cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035759ac_cs_usage="\
35760\`$as_me' instantiates files from templates according to the
35761current configuration.
35762
35763Usage: $0 [OPTIONS] [FILE]...
35764
35765 -h, --help print this help, then exit
Bill Wendlingebcceee2009-04-18 11:20:33 +000035766 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000035767 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000035768 -d, --debug don't remove temporary files
35769 --recheck update $as_me by reconfiguring in the same conditions
35770 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035771 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000035772 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035773 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000035774
35775Configuration files:
35776$config_files
35777
35778Configuration headers:
35779$config_headers
35780
John Criswellc764fbc2003-09-06 15:17:13 +000035781Configuration commands:
35782$config_commands
35783
John Criswell7a73b802003-06-30 21:59:07 +000035784Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000035785
Reid Spencera773bd52006-08-04 18:18:08 +000035786_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035787cat >>$CONFIG_STATUS <<_ACEOF
35788ac_cs_version="\\
Tanya Lattner953042b2009-08-22 04:37:30 +000035789llvm config.status 2.7svn
Bill Wendlingebcceee2009-04-18 11:20:33 +000035790configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000035791 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000035792
Reid Spencera773bd52006-08-04 18:18:08 +000035793Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000035794This config.status script is free software; the Free Software Foundation
35795gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000035796
35797ac_pwd='$ac_pwd'
35798srcdir='$srcdir'
35799INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000035800_ACEOF
35801
35802cat >>$CONFIG_STATUS <<\_ACEOF
35803# If no file are specified by the user, then we need to provide default
35804# value. By we need to know if files were specified by the user.
35805ac_need_defaults=:
35806while test $# != 0
35807do
35808 case $1 in
35809 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000035810 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35811 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000035812 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000035813 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035814 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000035815 ac_option=$1
35816 ac_optarg=$2
35817 ac_shift=shift
35818 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035819 esac
35820
John Criswell0c38eaf2003-09-10 15:17:25 +000035821 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000035822 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000035823 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35824 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035825 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35826 echo "$ac_cs_version"; exit ;;
35827 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000035828 debug=: ;;
35829 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000035830 $ac_shift
35831 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035832 ac_need_defaults=false;;
35833 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000035834 $ac_shift
35835 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035836 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000035837 --he | --h)
35838 # Conflict between --help and --header
35839 { echo "$as_me: error: ambiguous option: $1
35840Try \`$0 --help' for more information." >&2
35841 { (exit 1); exit 1; }; };;
35842 --help | --hel | -h )
35843 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000035844 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35845 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35846 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000035847
35848 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000035849 -*) { echo "$as_me: error: unrecognized option: $1
35850Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035851 { (exit 1); exit 1; }; } ;;
35852
Reid Spencera773bd52006-08-04 18:18:08 +000035853 *) ac_config_targets="$ac_config_targets $1"
35854 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000035855
35856 esac
35857 shift
35858done
35859
John Criswell0c38eaf2003-09-10 15:17:25 +000035860ac_configure_extra_args=
35861
35862if $ac_cs_silent; then
35863 exec 6>/dev/null
35864 ac_configure_extra_args="$ac_configure_extra_args --silent"
35865fi
35866
35867_ACEOF
35868cat >>$CONFIG_STATUS <<_ACEOF
35869if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000035870 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35871 CONFIG_SHELL=$SHELL
35872 export CONFIG_SHELL
35873 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000035874fi
35875
John Criswell7a73b802003-06-30 21:59:07 +000035876_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035877cat >>$CONFIG_STATUS <<\_ACEOF
35878exec 5>>config.log
35879{
35880 echo
35881 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35882## Running $as_me. ##
35883_ASBOX
35884 echo "$ac_log"
35885} >&5
John Criswell7a73b802003-06-30 21:59:07 +000035886
Reid Spencera773bd52006-08-04 18:18:08 +000035887_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000035888cat >>$CONFIG_STATUS <<_ACEOF
35889#
Reid Spencera773bd52006-08-04 18:18:08 +000035890# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000035891#
Reid Spencerc0682832005-02-24 19:05:19 +000035892llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000035893
35894_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035895
John Criswell7a73b802003-06-30 21:59:07 +000035896cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035897
35898# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000035899for ac_config_target in $ac_config_targets
35900do
Reid Spencera773bd52006-08-04 18:18:08 +000035901 case $ac_config_target in
35902 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000035903 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35904 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000035905 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035906 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035907 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000035908 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035909 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035910 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035911 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35912 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35913 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35914 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35915 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35916 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035917 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035918 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35919 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000035920 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035921 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35922 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35923 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035924 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35925 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035926
John Criswell7a73b802003-06-30 21:59:07 +000035927 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35928echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35929 { (exit 1); exit 1; }; };;
35930 esac
35931done
35932
Reid Spencera773bd52006-08-04 18:18:08 +000035933
John Criswell7a73b802003-06-30 21:59:07 +000035934# If the user did not use the arguments to specify the items to instantiate,
35935# then the envvar interface is used. Set only those that are not.
35936# We use the long form for the default assignment because of an extremely
35937# bizarre bug on SunOS 4.1.3.
35938if $ac_need_defaults; then
35939 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35940 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000035941 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000035942fi
35943
John Criswell0c38eaf2003-09-10 15:17:25 +000035944# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000035945# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000035946# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000035947# Hook for its removal unless debugging.
35948# Note that there is a small window in which the directory will not be cleaned:
35949# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000035950$debug ||
35951{
Reid Spencera773bd52006-08-04 18:18:08 +000035952 tmp=
35953 trap 'exit_status=$?
35954 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35955' 0
John Criswell7a73b802003-06-30 21:59:07 +000035956 trap '{ (exit 1); exit 1; }' 1 2 13 15
35957}
John Criswell7a73b802003-06-30 21:59:07 +000035958# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000035959
John Criswell7a73b802003-06-30 21:59:07 +000035960{
Reid Spencera773bd52006-08-04 18:18:08 +000035961 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000035962 test -n "$tmp" && test -d "$tmp"
35963} ||
35964{
Reid Spencera773bd52006-08-04 18:18:08 +000035965 tmp=./conf$$-$RANDOM
35966 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000035967} ||
35968{
John Criswell0c38eaf2003-09-10 15:17:25 +000035969 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035970 { (exit 1); exit 1; }
35971}
35972
John Criswell7a73b802003-06-30 21:59:07 +000035973#
Reid Spencera773bd52006-08-04 18:18:08 +000035974# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000035975#
35976
35977# No need to generate the scripts if there are no CONFIG_FILES.
35978# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000035979if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000035980
35981_ACEOF
35982
Reid Spencera773bd52006-08-04 18:18:08 +000035983
35984
35985ac_delim='%!_!# '
35986for ac_last_try in false false false false false :; do
35987 cat >conf$$subs.sed <<_ACEOF
35988SHELL!$SHELL$ac_delim
35989PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35990PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35991PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35992PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35993PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35994PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35995exec_prefix!$exec_prefix$ac_delim
35996prefix!$prefix$ac_delim
35997program_transform_name!$program_transform_name$ac_delim
35998bindir!$bindir$ac_delim
35999sbindir!$sbindir$ac_delim
36000libexecdir!$libexecdir$ac_delim
36001datarootdir!$datarootdir$ac_delim
36002datadir!$datadir$ac_delim
36003sysconfdir!$sysconfdir$ac_delim
36004sharedstatedir!$sharedstatedir$ac_delim
36005localstatedir!$localstatedir$ac_delim
36006includedir!$includedir$ac_delim
36007oldincludedir!$oldincludedir$ac_delim
36008docdir!$docdir$ac_delim
36009infodir!$infodir$ac_delim
36010htmldir!$htmldir$ac_delim
36011dvidir!$dvidir$ac_delim
36012pdfdir!$pdfdir$ac_delim
36013psdir!$psdir$ac_delim
36014libdir!$libdir$ac_delim
36015localedir!$localedir$ac_delim
36016mandir!$mandir$ac_delim
36017DEFS!$DEFS$ac_delim
36018ECHO_C!$ECHO_C$ac_delim
36019ECHO_N!$ECHO_N$ac_delim
36020ECHO_T!$ECHO_T$ac_delim
36021LIBS!$LIBS$ac_delim
36022build_alias!$build_alias$ac_delim
36023host_alias!$host_alias$ac_delim
36024target_alias!$target_alias$ac_delim
36025LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36026subdirs!$subdirs$ac_delim
36027build!$build$ac_delim
36028build_cpu!$build_cpu$ac_delim
36029build_vendor!$build_vendor$ac_delim
36030build_os!$build_os$ac_delim
36031host!$host$ac_delim
36032host_cpu!$host_cpu$ac_delim
36033host_vendor!$host_vendor$ac_delim
36034host_os!$host_os$ac_delim
36035target!$target$ac_delim
36036target_cpu!$target_cpu$ac_delim
36037target_vendor!$target_vendor$ac_delim
36038target_os!$target_os$ac_delim
36039OS!$OS$ac_delim
Anton Korobeynikov0855f102009-08-18 00:40:51 +000036040HOST_OS!$HOST_OS$ac_delim
36041TARGET_OS!$TARGET_OS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036042LINKALL!$LINKALL$ac_delim
36043NOLINKALL!$NOLINKALL$ac_delim
36044LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36045LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Nick Lewycky83fc4472009-09-29 05:48:51 +000036046ARCH!$ARCH$ac_delim
36047ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036048CC!$CC$ac_delim
36049CFLAGS!$CFLAGS$ac_delim
36050LDFLAGS!$LDFLAGS$ac_delim
36051CPPFLAGS!$CPPFLAGS$ac_delim
36052ac_ct_CC!$ac_ct_CC$ac_delim
36053EXEEXT!$EXEEXT$ac_delim
36054OBJEXT!$OBJEXT$ac_delim
36055CPP!$CPP$ac_delim
36056GREP!$GREP$ac_delim
36057EGREP!$EGREP$ac_delim
36058LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36059BUILD_CC!$BUILD_CC$ac_delim
36060BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000036061BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036062CVSBUILD!$CVSBUILD$ac_delim
36063ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000036064ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036065DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000036066ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36067EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000036068DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000036069DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036070JIT!$JIT$ac_delim
36071TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36072ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36073ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000036074ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036075TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000036076LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36077LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000036078LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000036079ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036080EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckye792b1d2009-02-03 07:10:30 +000036081BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000036082ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36083ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036084CXX!$CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036085_ACEOF
36086
36087 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36088 break
36089 elif $ac_last_try; then
36090 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36091echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36092 { (exit 1); exit 1; }; }
36093 else
36094 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000036095 fi
Reid Spencera773bd52006-08-04 18:18:08 +000036096done
36097
36098ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36099if test -n "$ac_eof"; then
36100 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36101 ac_eof=`expr $ac_eof + 1`
36102fi
36103
36104cat >>$CONFIG_STATUS <<_ACEOF
36105cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36106/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36107_ACEOF
36108sed '
36109s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36110s/^/s,@/; s/!/@,|#_!!_#|/
36111:n
36112t n
36113s/'"$ac_delim"'$/,g/; t
36114s/$/\\/; p
36115N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36116' >>$CONFIG_STATUS <conf$$subs.sed
36117rm -f conf$$subs.sed
36118cat >>$CONFIG_STATUS <<_ACEOF
36119CEOF$ac_eof
36120_ACEOF
36121
36122
36123ac_delim='%!_!# '
36124for ac_last_try in false false false false false :; do
36125 cat >conf$$subs.sed <<_ACEOF
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000036126CXXFLAGS!$CXXFLAGS$ac_delim
Anton Korobeynikov0855f102009-08-18 00:40:51 +000036127ac_ct_CXX!$ac_ct_CXX$ac_delim
Shantonu Sen7e836972009-08-11 13:39:52 +000036128NM!$NM$ac_delim
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000036129ifGNUmake!$ifGNUmake$ac_delim
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000036130LN_S!$LN_S$ac_delim
36131CMP!$CMP$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000036132CP!$CP$ac_delim
36133DATE!$DATE$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000036134FIND!$FIND$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036135MKDIR!$MKDIR$ac_delim
36136MV!$MV$ac_delim
36137RANLIB!$RANLIB$ac_delim
36138RM!$RM$ac_delim
36139SED!$SED$ac_delim
36140TAR!$TAR$ac_delim
36141BINPWD!$BINPWD$ac_delim
36142GRAPHVIZ!$GRAPHVIZ$ac_delim
36143DOT!$DOT$ac_delim
David Greenef0b9eff2009-07-09 17:16:26 +000036144FDP!$FDP$ac_delim
36145NEATO!$NEATO$ac_delim
36146TWOPI!$TWOPI$ac_delim
36147CIRCO!$CIRCO$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036148GV!$GV$ac_delim
36149DOTTY!$DOTTY$ac_delim
36150PERL!$PERL$ac_delim
36151HAVE_PERL!$HAVE_PERL$ac_delim
36152INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36153INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36154INSTALL_DATA!$INSTALL_DATA$ac_delim
36155BZIP2!$BZIP2$ac_delim
36156DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036157GROFF!$GROFF$ac_delim
36158GZIP!$GZIP$ac_delim
36159POD2HTML!$POD2HTML$ac_delim
36160POD2MAN!$POD2MAN$ac_delim
36161RUNTEST!$RUNTEST$ac_delim
36162TCLSH!$TCLSH$ac_delim
36163ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000036164OCAMLC!$OCAMLC$ac_delim
36165OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000036166OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000036167OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000036168GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036169INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36170INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36171CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36172CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36173LIBADD_DL!$LIBADD_DL$ac_delim
36174ECHO!$ECHO$ac_delim
36175AR!$AR$ac_delim
36176STRIP!$STRIP$ac_delim
36177CXXCPP!$CXXCPP$ac_delim
36178F77!$F77$ac_delim
36179FFLAGS!$FFLAGS$ac_delim
36180ac_ct_F77!$ac_ct_F77$ac_delim
36181LIBTOOL!$LIBTOOL$ac_delim
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000036182LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36183LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
Douglas Gregor01746742009-05-11 18:05:52 +000036184LLVMGCC!$LLVMGCC$ac_delim
36185LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000036186USE_UDIS86!$USE_UDIS86$ac_delim
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000036187USE_OPROFILE!$USE_OPROFILE$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000036188HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000036189HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036190ALLOCA!$ALLOCA$ac_delim
36191MMAP_FILE!$MMAP_FILE$ac_delim
36192LLVMCC1!$LLVMCC1$ac_delim
36193LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36194LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000036195LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036196LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36197LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000036198LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036199SHLIBEXT!$SHLIBEXT$ac_delim
36200LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36201LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36202LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36203LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36204LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36205LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36206LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36207LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36208LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36209LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000036210BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36211ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000036212OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000036213ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckye9821dc2009-03-03 04:55:29 +000036214RPATH!$RPATH$ac_delim
Nick Lewycky731c6ab2009-03-05 08:20:44 +000036215RDYNAMIC!$RDYNAMIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036216LIBOBJS!$LIBOBJS$ac_delim
36217LTLIBOBJS!$LTLIBOBJS$ac_delim
36218_ACEOF
36219
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000036220 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
Reid Spencera773bd52006-08-04 18:18:08 +000036221 break
36222 elif $ac_last_try; then
36223 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36224echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36225 { (exit 1); exit 1; }; }
36226 else
36227 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36228 fi
36229done
36230
36231ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36232if test -n "$ac_eof"; then
36233 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36234 ac_eof=`expr $ac_eof + 1`
36235fi
36236
36237cat >>$CONFIG_STATUS <<_ACEOF
36238cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36239/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36240_ACEOF
36241sed '
36242s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36243s/^/s,@/; s/!/@,|#_!!_#|/
36244:n
36245t n
36246s/'"$ac_delim"'$/,g/; t
36247s/$/\\/; p
36248N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36249' >>$CONFIG_STATUS <conf$$subs.sed
36250rm -f conf$$subs.sed
36251cat >>$CONFIG_STATUS <<_ACEOF
36252:end
36253s/|#_!!_#|//g
36254CEOF$ac_eof
36255_ACEOF
36256
36257
36258# VPATH may cause trouble with some makes, so we remove $(srcdir),
36259# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36260# trailing colons and then remove the whole line if VPATH becomes empty
36261# (actually we leave an empty line to preserve line numbers).
36262if test "x$srcdir" = x.; then
36263 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36264s/:*\$(srcdir):*/:/
36265s/:*\${srcdir}:*/:/
36266s/:*@srcdir@:*/:/
36267s/^\([^=]*=[ ]*\):*/\1/
36268s/:*$//
36269s/^[^=]*=[ ]*$//
36270}'
36271fi
36272
36273cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000036274fi # test -n "$CONFIG_FILES"
36275
Reid Spencera773bd52006-08-04 18:18:08 +000036276
36277for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36278do
36279 case $ac_tag in
36280 :[FHLC]) ac_mode=$ac_tag; continue;;
36281 esac
36282 case $ac_mode$ac_tag in
36283 :[FHL]*:*);;
36284 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36285echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36286 { (exit 1); exit 1; }; };;
36287 :[FH]-) ac_tag=-:-;;
36288 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36289 esac
36290 ac_save_IFS=$IFS
36291 IFS=:
36292 set x $ac_tag
36293 IFS=$ac_save_IFS
36294 shift
36295 ac_file=$1
36296 shift
36297
36298 case $ac_mode in
36299 :L) ac_source=$1;;
36300 :[FH])
36301 ac_file_inputs=
36302 for ac_f
36303 do
36304 case $ac_f in
36305 -) ac_f="$tmp/stdin";;
36306 *) # Look for the file first in the build tree, then in the source tree
36307 # (if the path is not absolute). The absolute path cannot be DOS-style,
36308 # because $ac_f cannot contain `:'.
36309 test -f "$ac_f" ||
36310 case $ac_f in
36311 [\\/$]*) false;;
36312 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36313 esac ||
36314 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36315echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36316 { (exit 1); exit 1; }; };;
36317 esac
36318 ac_file_inputs="$ac_file_inputs $ac_f"
36319 done
36320
36321 # Let's still pretend it is `configure' which instantiates (i.e., don't
36322 # use $as_me), people would be surprised to read:
36323 # /* config.h. Generated by config.status. */
36324 configure_input="Generated from "`IFS=:
36325 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36326 if test x"$ac_file" != x-; then
36327 configure_input="$ac_file. $configure_input"
36328 { echo "$as_me:$LINENO: creating $ac_file" >&5
36329echo "$as_me: creating $ac_file" >&6;}
36330 fi
36331
36332 case $ac_tag in
36333 *:-:* | *:-) cat >"$tmp/stdin";;
36334 esac
36335 ;;
John Criswell7a73b802003-06-30 21:59:07 +000036336 esac
36337
Reid Spencera773bd52006-08-04 18:18:08 +000036338 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000036339$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036340 X"$ac_file" : 'X\(//\)[^/]' \| \
36341 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036342 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000036343echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000036344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36345 s//\1/
36346 q
36347 }
36348 /^X\(\/\/\)[^/].*/{
36349 s//\1/
36350 q
36351 }
36352 /^X\(\/\/\)$/{
36353 s//\1/
36354 q
36355 }
36356 /^X\(\/\).*/{
36357 s//\1/
36358 q
36359 }
36360 s/.*/./; q'`
36361 { as_dir="$ac_dir"
36362 case $as_dir in #(
36363 -*) as_dir=./$as_dir;;
36364 esac
36365 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000036366 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036367 while :; do
36368 case $as_dir in #(
36369 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36370 *) as_qdir=$as_dir;;
36371 esac
36372 as_dirs="'$as_qdir' $as_dirs"
36373 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000036374$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036375 X"$as_dir" : 'X\(//\)[^/]' \| \
36376 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036377 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000036378echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36380 s//\1/
36381 q
36382 }
36383 /^X\(\/\/\)[^/].*/{
36384 s//\1/
36385 q
36386 }
36387 /^X\(\/\/\)$/{
36388 s//\1/
36389 q
36390 }
36391 /^X\(\/\).*/{
36392 s//\1/
36393 q
36394 }
36395 s/.*/./; q'`
36396 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000036397 done
Reid Spencera773bd52006-08-04 18:18:08 +000036398 test -z "$as_dirs" || eval "mkdir $as_dirs"
36399 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36400echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000036401 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000036402 ac_builddir=.
36403
Reid Spencera773bd52006-08-04 18:18:08 +000036404case "$ac_dir" in
36405.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36406*)
John Criswell7a73b802003-06-30 21:59:07 +000036407 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036408 # A ".." for each directory in $ac_dir_suffix.
36409 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36410 case $ac_top_builddir_sub in
36411 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36412 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36413 esac ;;
36414esac
36415ac_abs_top_builddir=$ac_pwd
36416ac_abs_builddir=$ac_pwd$ac_dir_suffix
36417# for backward compatibility:
36418ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000036419
36420case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036421 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000036422 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036423 ac_top_srcdir=$ac_top_builddir_sub
36424 ac_abs_top_srcdir=$ac_pwd ;;
36425 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000036426 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036427 ac_top_srcdir=$srcdir
36428 ac_abs_top_srcdir=$srcdir ;;
36429 *) # Relative name.
36430 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36431 ac_top_srcdir=$ac_top_build_prefix$srcdir
36432 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000036433esac
Reid Spencera773bd52006-08-04 18:18:08 +000036434ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000036435
John Criswell7a73b802003-06-30 21:59:07 +000036436
Reid Spencera773bd52006-08-04 18:18:08 +000036437 case $ac_mode in
36438 :F)
36439 #
36440 # CONFIG_FILE
36441 #
John Criswell7a73b802003-06-30 21:59:07 +000036442
36443 case $INSTALL in
36444 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036445 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000036446 esac
John Criswell7a73b802003-06-30 21:59:07 +000036447_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036448
36449cat >>$CONFIG_STATUS <<\_ACEOF
36450# If the template does not know about datarootdir, expand it.
36451# FIXME: This hack should be removed a few years after 2.60.
36452ac_datarootdir_hack=; ac_datarootdir_seen=
36453
36454case `sed -n '/datarootdir/ {
36455 p
36456 q
36457}
36458/@datadir@/p
36459/@docdir@/p
36460/@infodir@/p
36461/@localedir@/p
36462/@mandir@/p
36463' $ac_file_inputs` in
36464*datarootdir*) ac_datarootdir_seen=yes;;
36465*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36466 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36467echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36468_ACEOF
36469cat >>$CONFIG_STATUS <<_ACEOF
36470 ac_datarootdir_hack='
36471 s&@datadir@&$datadir&g
36472 s&@docdir@&$docdir&g
36473 s&@infodir@&$infodir&g
36474 s&@localedir@&$localedir&g
36475 s&@mandir@&$mandir&g
36476 s&\\\${datarootdir}&$datarootdir&g' ;;
36477esac
36478_ACEOF
36479
36480# Neutralize VPATH when `$srcdir' = `.'.
36481# Shell code in configure.ac might set extrasub.
36482# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000036483cat >>$CONFIG_STATUS <<_ACEOF
36484 sed "$ac_vpsub
36485$extrasub
36486_ACEOF
36487cat >>$CONFIG_STATUS <<\_ACEOF
36488:t
36489/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000036490s&@configure_input@&$configure_input&;t t
36491s&@top_builddir@&$ac_top_builddir_sub&;t t
36492s&@srcdir@&$ac_srcdir&;t t
36493s&@abs_srcdir@&$ac_abs_srcdir&;t t
36494s&@top_srcdir@&$ac_top_srcdir&;t t
36495s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36496s&@builddir@&$ac_builddir&;t t
36497s&@abs_builddir@&$ac_abs_builddir&;t t
36498s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36499s&@INSTALL@&$ac_INSTALL&;t t
36500$ac_datarootdir_hack
36501" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000036502
Reid Spencera773bd52006-08-04 18:18:08 +000036503test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36504 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36505 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36506 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36507which seems to be undefined. Please make sure it is defined." >&5
36508echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36509which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000036510
Reid Spencera773bd52006-08-04 18:18:08 +000036511 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000036512 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000036513 -) cat "$tmp/out"; rm -f "$tmp/out";;
36514 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000036515 esac
Reid Spencera773bd52006-08-04 18:18:08 +000036516 ;;
36517 :H)
36518 #
36519 # CONFIG_HEADER
36520 #
John Criswell7a73b802003-06-30 21:59:07 +000036521_ACEOF
36522
Reid Spencera773bd52006-08-04 18:18:08 +000036523# Transform confdefs.h into a sed script `conftest.defines', that
36524# substitutes the proper values into config.h.in to produce config.h.
36525rm -f conftest.defines conftest.tail
36526# First, append a space to every undef/define line, to ease matching.
36527echo 's/$/ /' >conftest.defines
36528# Then, protect against being on the right side of a sed subst, or in
36529# an unquoted here document, in config.status. If some macros were
36530# called several times there might be several #defines for the same
36531# symbol, which is useless. But do not sort them, since the last
36532# AC_DEFINE must be honored.
36533ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36534# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36535# NAME is the cpp macro being defined, VALUE is the value it is being given.
36536# PARAMS is the parameter list in the macro definition--in most cases, it's
36537# just an empty string.
36538ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36539ac_dB='\\)[ (].*,\\1define\\2'
36540ac_dC=' '
36541ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000036542
Reid Spencera773bd52006-08-04 18:18:08 +000036543uniq confdefs.h |
36544 sed -n '
36545 t rset
36546 :rset
36547 s/^[ ]*#[ ]*define[ ][ ]*//
36548 t ok
36549 d
36550 :ok
36551 s/[\\&,]/\\&/g
36552 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36553 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36554 ' >>conftest.defines
36555
36556# Remove the space that was appended to ease matching.
36557# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000036558# example, in the case of _POSIX_SOURCE, which is predefined and required
36559# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000036560# (The regexp can be short, since the line contains either #define or #undef.)
36561echo 's/ $//
36562s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000036563
Reid Spencera773bd52006-08-04 18:18:08 +000036564# Break up conftest.defines:
36565ac_max_sed_lines=50
36566
36567# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36568# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36569# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36570# et cetera.
36571ac_in='$ac_file_inputs'
36572ac_out='"$tmp/out1"'
36573ac_nxt='"$tmp/out2"'
36574
36575while :
John Criswell7a73b802003-06-30 21:59:07 +000036576do
Reid Spencera773bd52006-08-04 18:18:08 +000036577 # Write a here document:
36578 cat >>$CONFIG_STATUS <<_ACEOF
36579 # First, check the format of the line:
36580 cat >"\$tmp/defines.sed" <<\\CEOF
36581/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36582/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36583b
36584:def
36585_ACEOF
36586 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036587 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036588 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36589 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36590 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36591 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000036592 rm -f conftest.defines
36593 mv conftest.tail conftest.defines
36594done
Reid Spencera773bd52006-08-04 18:18:08 +000036595rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000036596
Reid Spencera773bd52006-08-04 18:18:08 +000036597echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036598cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000036599 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000036600 echo "/* $configure_input */" >"$tmp/config.h"
36601 cat "$ac_result" >>"$tmp/config.h"
36602 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000036603 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36604echo "$as_me: $ac_file is unchanged" >&6;}
36605 else
John Criswell7a73b802003-06-30 21:59:07 +000036606 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000036607 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000036608 fi
36609 else
Reid Spencera773bd52006-08-04 18:18:08 +000036610 echo "/* $configure_input */"
36611 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000036612 fi
Reid Spencera773bd52006-08-04 18:18:08 +000036613 rm -f "$tmp/out12"
36614 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036615
Reid Spencera773bd52006-08-04 18:18:08 +000036616 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36617echo "$as_me: executing $ac_file commands" >&6;}
36618 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036619 esac
John Criswell7a73b802003-06-30 21:59:07 +000036620
Reid Spencera773bd52006-08-04 18:18:08 +000036621
36622 case $ac_file$ac_mode in
36623 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036624 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036625 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000036626 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036627 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036628 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036629 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036630 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000036631 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036632 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036633 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036634 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036635 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000036636 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000036637 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036638 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036639 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036640 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036641 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036642 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036643 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036644 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000036645 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036646 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000036647 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000036648 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036649
36650 esac
36651done # for ac_tag
36652
John Criswell7a73b802003-06-30 21:59:07 +000036653
36654{ (exit 0); exit 0; }
36655_ACEOF
36656chmod +x $CONFIG_STATUS
36657ac_clean_files=$ac_clean_files_save
36658
36659
36660# configure is writing to config.log, and then calls config.status.
36661# config.status does its own redirection, appending to config.log.
36662# Unfortunately, on DOS this fails, as config.log is still kept open
36663# by configure, so config.status won't be able to write to it; its
36664# output is simply discarded. So we exec the FD to /dev/null,
36665# effectively closing config.log, so it can be properly (re)opened and
36666# appended to by config.status. When coming back to configure, we
36667# need to make the FD available again.
36668if test "$no_create" != yes; then
36669 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000036670 ac_config_status_args=
36671 test "$silent" = yes &&
36672 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000036673 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000036674 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000036675 exec 5>>config.log
36676 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36677 # would make configure fail if this is the last instruction.
36678 $ac_cs_success || { (exit 1); exit 1; }
36679fi
36680
John Criswell12399a12003-09-30 15:55:44 +000036681#
36682# CONFIG_SUBDIRS section.
36683#
36684if test "$no_recursion" != yes; then
36685
36686 # Remove --cache-file and --srcdir arguments so they do not pile up.
36687 ac_sub_configure_args=
36688 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000036689 eval "set x $ac_configure_args"
36690 shift
36691 for ac_arg
36692 do
John Criswell12399a12003-09-30 15:55:44 +000036693 if test -n "$ac_prev"; then
36694 ac_prev=
36695 continue
36696 fi
36697 case $ac_arg in
36698 -cache-file | --cache-file | --cache-fil | --cache-fi \
36699 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36700 ac_prev=cache_file ;;
36701 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36702 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36703 | --c=*)
36704 ;;
36705 --config-cache | -C)
36706 ;;
36707 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36708 ac_prev=srcdir ;;
36709 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36710 ;;
36711 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36712 ac_prev=prefix ;;
36713 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36714 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036715 *)
36716 case $ac_arg in
36717 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36718 esac
36719 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000036720 esac
36721 done
36722
36723 # Always prepend --prefix to ensure using the same prefix
36724 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000036725 ac_arg="--prefix=$prefix"
36726 case $ac_arg in
36727 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36728 esac
Bill Wendlingebcceee2009-04-18 11:20:33 +000036729 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000036730
36731 ac_popdir=`pwd`
36732 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36733
36734 # Do not complain, so a configure script can configure whichever
36735 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000036736 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000036737
Reid Spencera773bd52006-08-04 18:18:08 +000036738 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36739 echo "$as_me:$LINENO: $ac_msg" >&5
36740 echo "$ac_msg" >&6
36741 { as_dir="$ac_dir"
36742 case $as_dir in #(
36743 -*) as_dir=./$as_dir;;
36744 esac
36745 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000036746 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036747 while :; do
36748 case $as_dir in #(
36749 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36750 *) as_qdir=$as_dir;;
36751 esac
36752 as_dirs="'$as_qdir' $as_dirs"
36753 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000036754$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036755 X"$as_dir" : 'X\(//\)[^/]' \| \
36756 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036757 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000036758echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36760 s//\1/
36761 q
36762 }
36763 /^X\(\/\/\)[^/].*/{
36764 s//\1/
36765 q
36766 }
36767 /^X\(\/\/\)$/{
36768 s//\1/
36769 q
36770 }
36771 /^X\(\/\).*/{
36772 s//\1/
36773 q
36774 }
36775 s/.*/./; q'`
36776 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000036777 done
Reid Spencera773bd52006-08-04 18:18:08 +000036778 test -z "$as_dirs" || eval "mkdir $as_dirs"
36779 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36780echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000036781 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000036782 ac_builddir=.
36783
Reid Spencera773bd52006-08-04 18:18:08 +000036784case "$ac_dir" in
36785.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36786*)
John Criswell12399a12003-09-30 15:55:44 +000036787 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036788 # A ".." for each directory in $ac_dir_suffix.
36789 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36790 case $ac_top_builddir_sub in
36791 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36792 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36793 esac ;;
36794esac
36795ac_abs_top_builddir=$ac_pwd
36796ac_abs_builddir=$ac_pwd$ac_dir_suffix
36797# for backward compatibility:
36798ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000036799
36800case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036801 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000036802 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036803 ac_top_srcdir=$ac_top_builddir_sub
36804 ac_abs_top_srcdir=$ac_pwd ;;
36805 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000036806 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036807 ac_top_srcdir=$srcdir
36808 ac_abs_top_srcdir=$srcdir ;;
36809 *) # Relative name.
36810 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36811 ac_top_srcdir=$ac_top_build_prefix$srcdir
36812 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000036813esac
Reid Spencera773bd52006-08-04 18:18:08 +000036814ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000036815
36816
Reid Spencera773bd52006-08-04 18:18:08 +000036817 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000036818
36819 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000036820 if test -f "$ac_srcdir/configure.gnu"; then
36821 ac_sub_configure=$ac_srcdir/configure.gnu
36822 elif test -f "$ac_srcdir/configure"; then
36823 ac_sub_configure=$ac_srcdir/configure
36824 elif test -f "$ac_srcdir/configure.in"; then
36825 # This should be Cygnus configure.
36826 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000036827 else
36828 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36829echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36830 ac_sub_configure=
36831 fi
36832
36833 # The recursion is here.
36834 if test -n "$ac_sub_configure"; then
36835 # Make the cache file name correct relative to the subdirectory.
36836 case $cache_file in
36837 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036838 *) # Relative name.
36839 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000036840 esac
36841
Reid Spencera773bd52006-08-04 18:18:08 +000036842 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36843echo "$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 +000036844 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000036845 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36846 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000036847 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000036848echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36849 { (exit 1); exit 1; }; }
36850 fi
36851
Reid Spencera773bd52006-08-04 18:18:08 +000036852 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000036853 done
36854fi
36855