blob: 87278d73ea9d5d46b8a5b49b7841508431b2961e [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
Bill Wendlinga0833352009-03-12 04:10:09 +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" ;;
2341 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002342 llvm_cv_link_all_option="-Wl,--whole-archive"
2343 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002344 llvm_cv_os_type="Win32"
2345 llvm_cv_platform_type="Win32" ;;
2346 *-*-mingw*)
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="MingW"
2350 llvm_cv_platform_type="Win32" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002351 *-unknown-eabi*)
2352 llvm_cv_link_all_option="-Wl,--whole-archive"
2353 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2354 llvm_cv_os_type="Freestanding"
2355 llvm_cv_platform_type="Unix" ;;
2356 *-unknown-elf*)
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="Freestanding"
2360 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002361 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002362 llvm_cv_link_all_option=""
2363 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002364 llvm_cv_os_type="Unknown"
2365 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002366esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002367fi
Reid Spencera773bd52006-08-04 18:18:08 +00002368{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2369echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002370
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002371{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2372echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2373if test "${llvm_cv_target_os_type+set}" = set; then
2374 echo $ECHO_N "(cached) $ECHO_C" >&6
2375else
2376 case $target in
2377 *-*-aix*)
2378 llvm_cv_target_os_type="AIX" ;;
2379 *-*-irix*)
2380 llvm_cv_target_os_type="IRIX" ;;
2381 *-*-cygwin*)
2382 llvm_cv_target_os_type="Cygwin" ;;
2383 *-*-darwin*)
2384 llvm_cv_target_os_type="Darwin" ;;
2385 *-*-freebsd*)
2386 llvm_cv_target_os_type="FreeBSD" ;;
2387 *-*-openbsd*)
2388 llvm_cv_target_os_type="OpenBSD" ;;
2389 *-*-netbsd*)
2390 llvm_cv_target_os_type="NetBSD" ;;
2391 *-*-dragonfly*)
2392 llvm_cv_target_os_type="DragonFly" ;;
2393 *-*-hpux*)
2394 llvm_cv_target_os_type="HP-UX" ;;
2395 *-*-interix*)
2396 llvm_cv_target_os_type="Interix" ;;
2397 *-*-linux*)
2398 llvm_cv_target_os_type="Linux" ;;
2399 *-*-solaris*)
2400 llvm_cv_target_os_type="SunOS" ;;
2401 *-*-win32*)
2402 llvm_cv_target_os_type="Win32" ;;
2403 *-*-mingw*)
2404 llvm_cv_target_os_type="MingW" ;;
2405 *-unknown-eabi*)
2406 llvm_cv_target_os_type="Freestanding" ;;
2407 *)
2408 llvm_cv_target_os_type="Unknown" ;;
2409esac
2410fi
2411{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2412echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2413
Reid Spencer7b3e8512004-12-24 06:29:05 +00002414if test "$llvm_cv_os_type" = "Unknown" ; then
2415 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2416echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002417 { (exit 1); exit 1; }; }
2418fi
2419
Reid Spencer7b3e8512004-12-24 06:29:05 +00002420OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002421
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002422HOST_OS=$llvm_cv_os_type
2423
2424TARGET_OS=$llvm_cv_target_os_type
2425
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002426
Reid Spencera773bd52006-08-04 18:18:08 +00002427LINKALL=$llvm_cv_link_all_option
2428
2429NOLINKALL=$llvm_cv_no_link_all_option
2430
2431
Reid Spencer7b3e8512004-12-24 06:29:05 +00002432case $llvm_cv_platform_type in
2433 Unix)
2434
2435cat >>confdefs.h <<\_ACEOF
2436#define LLVM_ON_UNIX 1
2437_ACEOF
2438
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002439 LLVM_ON_UNIX=1
2440
2441 LLVM_ON_WIN32=0
2442
Reid Spencer7b3e8512004-12-24 06:29:05 +00002443 ;;
2444 Win32)
2445
2446cat >>confdefs.h <<\_ACEOF
2447#define LLVM_ON_WIN32 1
2448_ACEOF
2449
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002450 LLVM_ON_UNIX=0
2451
2452 LLVM_ON_WIN32=1
2453
Reid Spencer7b3e8512004-12-24 06:29:05 +00002454 ;;
2455esac
2456
Reid Spencera773bd52006-08-04 18:18:08 +00002457{ echo "$as_me:$LINENO: checking target architecture" >&5
2458echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002459if test "${llvm_cv_target_arch+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2461else
2462 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002463 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002464 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002465 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2466 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002467 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002468 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002469 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002470 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002471 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002472 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002473 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002474 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002475 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002476esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002477fi
Reid Spencera773bd52006-08-04 18:18:08 +00002478{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2479echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002480
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002481if test "$llvm_cv_target_arch" = "Unknown" ; then
2482 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2483echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2484fi
John Criswell76595452003-07-01 22:07:39 +00002485
Douglas Gregor0711c302009-06-17 00:43:20 +00002486# Determine the LLVM native architecture for the target
2487case "$llvm_cv_target_arch" in
2488 x86) LLVM_NATIVE_ARCH="X86" ;;
2489 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2490 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2491esac
2492
Bill Wendlinga0833352009-03-12 04:10:09 +00002493ARCH=$llvm_cv_target_arch
2494
2495
2496ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002497ac_cpp='$CPP $CPPFLAGS'
2498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2500ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002501if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002502 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2503set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002504{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002506if test "${ac_cv_prog_CC+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2508else
2509 if test -n "$CC"; then
2510 ac_cv_prog_CC="$CC" # Let the user override the test.
2511else
2512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513for as_dir in $PATH
2514do
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
2517 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002518 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 +00002519 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2521 break 2
2522 fi
2523done
2524done
Reid Spencera773bd52006-08-04 18:18:08 +00002525IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002526
2527fi
2528fi
2529CC=$ac_cv_prog_CC
2530if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002531 { echo "$as_me:$LINENO: result: $CC" >&5
2532echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002533else
Reid Spencera773bd52006-08-04 18:18:08 +00002534 { echo "$as_me:$LINENO: result: no" >&5
2535echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002536fi
2537
Reid Spencera773bd52006-08-04 18:18:08 +00002538
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002539fi
2540if test -z "$ac_cv_prog_CC"; then
2541 ac_ct_CC=$CC
2542 # Extract the first word of "gcc", so it can be a program name with args.
2543set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002544{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002546if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2548else
2549 if test -n "$ac_ct_CC"; then
2550 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2551else
2552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553for as_dir in $PATH
2554do
2555 IFS=$as_save_IFS
2556 test -z "$as_dir" && as_dir=.
2557 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002558 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 +00002559 ac_cv_prog_ac_ct_CC="gcc"
2560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2561 break 2
2562 fi
2563done
2564done
Reid Spencera773bd52006-08-04 18:18:08 +00002565IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002566
2567fi
2568fi
2569ac_ct_CC=$ac_cv_prog_ac_ct_CC
2570if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002571 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2572echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002573else
Reid Spencera773bd52006-08-04 18:18:08 +00002574 { echo "$as_me:$LINENO: result: no" >&5
2575echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002576fi
2577
Reid Spencera773bd52006-08-04 18:18:08 +00002578 if test "x$ac_ct_CC" = x; then
2579 CC=""
2580 else
2581 case $cross_compiling:$ac_tool_warned in
2582yes:)
2583{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2584whose name does not start with the host triplet. If you think this
2585configuration is useful to you, please write to autoconf@gnu.org." >&5
2586echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2587whose name does not start with the host triplet. If you think this
2588configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2589ac_tool_warned=yes ;;
2590esac
2591 CC=$ac_ct_CC
2592 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002593else
2594 CC="$ac_cv_prog_CC"
2595fi
2596
2597if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002598 if test -n "$ac_tool_prefix"; then
2599 # 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 +00002600set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002601{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002603if test "${ac_cv_prog_CC+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2605else
2606 if test -n "$CC"; then
2607 ac_cv_prog_CC="$CC" # Let the user override the test.
2608else
2609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610for as_dir in $PATH
2611do
2612 IFS=$as_save_IFS
2613 test -z "$as_dir" && as_dir=.
2614 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002615 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 +00002616 ac_cv_prog_CC="${ac_tool_prefix}cc"
2617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2618 break 2
2619 fi
2620done
2621done
Reid Spencera773bd52006-08-04 18:18:08 +00002622IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002623
2624fi
2625fi
2626CC=$ac_cv_prog_CC
2627if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002628 { echo "$as_me:$LINENO: result: $CC" >&5
2629echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002630else
Reid Spencera773bd52006-08-04 18:18:08 +00002631 { echo "$as_me:$LINENO: result: no" >&5
2632echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002633fi
2634
Reid Spencera773bd52006-08-04 18:18:08 +00002635
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002636 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002637fi
2638if test -z "$CC"; then
2639 # Extract the first word of "cc", so it can be a program name with args.
2640set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002641{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002643if test "${ac_cv_prog_CC+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2645else
2646 if test -n "$CC"; then
2647 ac_cv_prog_CC="$CC" # Let the user override the test.
2648else
2649 ac_prog_rejected=no
2650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651for as_dir in $PATH
2652do
2653 IFS=$as_save_IFS
2654 test -z "$as_dir" && as_dir=.
2655 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002656 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 +00002657 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2658 ac_prog_rejected=yes
2659 continue
2660 fi
2661 ac_cv_prog_CC="cc"
2662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 break 2
2664 fi
2665done
2666done
Reid Spencera773bd52006-08-04 18:18:08 +00002667IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002668
2669if test $ac_prog_rejected = yes; then
2670 # We found a bogon in the path, so make sure we never use it.
2671 set dummy $ac_cv_prog_CC
2672 shift
2673 if test $# != 0; then
2674 # We chose a different compiler from the bogus one.
2675 # However, it has the same basename, so the bogon will be chosen
2676 # first if we set CC to just the basename; use the full file name.
2677 shift
2678 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2679 fi
2680fi
2681fi
2682fi
2683CC=$ac_cv_prog_CC
2684if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002685 { echo "$as_me:$LINENO: result: $CC" >&5
2686echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002687else
Reid Spencera773bd52006-08-04 18:18:08 +00002688 { echo "$as_me:$LINENO: result: no" >&5
2689echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002690fi
2691
Reid Spencera773bd52006-08-04 18:18:08 +00002692
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002693fi
2694if test -z "$CC"; then
2695 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002696 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002697 do
2698 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2699set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002700{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002702if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002703 echo $ECHO_N "(cached) $ECHO_C" >&6
2704else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002705 if test -n "$CC"; then
2706 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002707else
2708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709for as_dir in $PATH
2710do
2711 IFS=$as_save_IFS
2712 test -z "$as_dir" && as_dir=.
2713 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002714 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 +00002715 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2717 break 2
2718 fi
2719done
2720done
Reid Spencera773bd52006-08-04 18:18:08 +00002721IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002722
2723fi
2724fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002725CC=$ac_cv_prog_CC
2726if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002727 { echo "$as_me:$LINENO: result: $CC" >&5
2728echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002729else
Reid Spencera773bd52006-08-04 18:18:08 +00002730 { echo "$as_me:$LINENO: result: no" >&5
2731echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002732fi
2733
Reid Spencera773bd52006-08-04 18:18:08 +00002734
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002735 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002736 done
2737fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002738if test -z "$CC"; then
2739 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002740 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002741do
2742 # Extract the first word of "$ac_prog", so it can be a program name with args.
2743set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002744{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002746if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002747 echo $ECHO_N "(cached) $ECHO_C" >&6
2748else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002749 if test -n "$ac_ct_CC"; then
2750 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002751else
2752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753for as_dir in $PATH
2754do
2755 IFS=$as_save_IFS
2756 test -z "$as_dir" && as_dir=.
2757 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002758 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 +00002759 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2761 break 2
2762 fi
2763done
2764done
Reid Spencera773bd52006-08-04 18:18:08 +00002765IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002766
2767fi
2768fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002769ac_ct_CC=$ac_cv_prog_ac_ct_CC
2770if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002771 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2772echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002773else
Reid Spencera773bd52006-08-04 18:18:08 +00002774 { echo "$as_me:$LINENO: result: no" >&5
2775echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002776fi
2777
Reid Spencera773bd52006-08-04 18:18:08 +00002778
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002779 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002780done
John Criswell7a73b802003-06-30 21:59:07 +00002781
Reid Spencera773bd52006-08-04 18:18:08 +00002782 if test "x$ac_ct_CC" = x; then
2783 CC=""
2784 else
2785 case $cross_compiling:$ac_tool_warned in
2786yes:)
2787{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2788whose name does not start with the host triplet. If you think this
2789configuration is useful to you, please write to autoconf@gnu.org." >&5
2790echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2791whose name does not start with the host triplet. If you think this
2792configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2793ac_tool_warned=yes ;;
2794esac
2795 CC=$ac_ct_CC
2796 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002797fi
2798
John Criswell7a73b802003-06-30 21:59:07 +00002799fi
2800
2801
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002802test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2803See \`config.log' for more details." >&5
2804echo "$as_me: error: no acceptable C compiler found in \$PATH
2805See \`config.log' for more details." >&2;}
2806 { (exit 1); exit 1; }; }
2807
John Criswell7a73b802003-06-30 21:59:07 +00002808# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002809echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002810ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002811{ (ac_try="$ac_compiler --version >&5"
2812case "(($ac_try" in
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2815esac
2816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002818 ac_status=$?
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002821{ (ac_try="$ac_compiler -v >&5"
2822case "(($ac_try" in
2823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824 *) ac_try_echo=$ac_try;;
2825esac
2826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2827 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002828 ac_status=$?
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002831{ (ac_try="$ac_compiler -V >&5"
2832case "(($ac_try" in
2833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834 *) ac_try_echo=$ac_try;;
2835esac
2836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2837 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002838 ac_status=$?
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }
2841
2842cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002843/* confdefs.h. */
2844_ACEOF
2845cat confdefs.h >>conftest.$ac_ext
2846cat >>conftest.$ac_ext <<_ACEOF
2847/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002848
John Criswell7a73b802003-06-30 21:59:07 +00002849int
2850main ()
2851{
2852
2853 ;
2854 return 0;
2855}
2856_ACEOF
2857ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002858ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002859# Try to create an executable without -o first, disregard a.out.
2860# It will help us diagnose broken compilers, and finding out an intuition
2861# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002862{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2863echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002864ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002865#
2866# List of possible output files, starting from the most likely.
2867# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2868# only as a last resort. b.out is created by i960 compilers.
2869ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2870#
2871# The IRIX 6 linker writes into existing files which may not be
2872# executable, retaining their permissions. Remove them first so a
2873# subsequent execution test works.
2874ac_rmfiles=
2875for ac_file in $ac_files
2876do
2877 case $ac_file in
2878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2879 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2880 esac
2881done
2882rm -f $ac_rmfiles
2883
2884if { (ac_try="$ac_link_default"
2885case "(($ac_try" in
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2888esac
2889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002894 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2895# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2896# in a Makefile. We should not override ac_cv_exeext if it was cached,
2897# so that the user can short-circuit this test for compilers unknown to
2898# Autoconf.
Bill Wendlingebcceee2009-04-18 11:20:33 +00002899for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002900do
2901 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002902 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002903 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002904 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002905 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002906 # We found the default executable, but exeext='' is most
2907 # certainly right.
2908 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002909 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002910 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2911 then :; else
2912 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2913 fi
2914 # We set ac_cv_exeext here because the later test for it is not
2915 # safe: cross compilers may not add the suffix if given an `-o'
2916 # argument, so we may need to know it at that point already.
2917 # Even if this section looks crufty: it has the advantage of
2918 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002919 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002920 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002921 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002922 esac
2923done
Reid Spencera773bd52006-08-04 18:18:08 +00002924test "$ac_cv_exeext" = no && ac_cv_exeext=
2925
John Criswell7a73b802003-06-30 21:59:07 +00002926else
2927 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002928sed 's/^/| /' conftest.$ac_ext >&5
2929
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002930{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002931See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002932echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002933See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002934 { (exit 77); exit 77; }; }
2935fi
2936
2937ac_exeext=$ac_cv_exeext
Bill Wendlingebcceee2009-04-18 11:20:33 +00002938{ echo "$as_me:$LINENO: result: $ac_file" >&5
2939echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002940
Reid Spencera773bd52006-08-04 18:18:08 +00002941# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002942# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002943{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2944echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002945# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2946# If not cross compiling, check that we can run a simple program.
2947if test "$cross_compiling" != yes; then
2948 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002949 { (case "(($ac_try" in
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2952esac
2953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002955 ac_status=$?
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; }; then
2958 cross_compiling=no
2959 else
2960 if test "$cross_compiling" = maybe; then
2961 cross_compiling=yes
2962 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002963 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002964If you meant to cross compile, use \`--host'.
2965See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002966echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002967If you meant to cross compile, use \`--host'.
2968See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002969 { (exit 1); exit 1; }; }
2970 fi
2971 fi
2972fi
Reid Spencera773bd52006-08-04 18:18:08 +00002973{ echo "$as_me:$LINENO: result: yes" >&5
2974echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002975
John Criswell0c38eaf2003-09-10 15:17:25 +00002976rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002977ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002978# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002979# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002980{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2981echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2982{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2983echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002984
Reid Spencera773bd52006-08-04 18:18:08 +00002985{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2986echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2987if { (ac_try="$ac_link"
2988case "(($ac_try" in
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2991esac
2992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002994 ac_status=$?
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }; then
2997 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2998# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2999# work properly (i.e., refer to `conftest.exe'), while it won't with
3000# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00003001for ac_file in conftest.exe conftest conftest.*; do
3002 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00003003 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00003004 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00003005 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00003006 break;;
John Criswell7a73b802003-06-30 21:59:07 +00003007 * ) break;;
3008 esac
3009done
3010else
John Criswell0c38eaf2003-09-10 15:17:25 +00003011 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3012See \`config.log' for more details." >&5
3013echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3014See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003015 { (exit 1); exit 1; }; }
3016fi
3017
3018rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003019{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3020echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003021
3022rm -f conftest.$ac_ext
3023EXEEXT=$ac_cv_exeext
3024ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00003025{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3026echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003027if test "${ac_cv_objext+set}" = set; then
3028 echo $ECHO_N "(cached) $ECHO_C" >&6
3029else
3030 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003031/* confdefs.h. */
3032_ACEOF
3033cat confdefs.h >>conftest.$ac_ext
3034cat >>conftest.$ac_ext <<_ACEOF
3035/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003036
John Criswell7a73b802003-06-30 21:59:07 +00003037int
3038main ()
3039{
3040
3041 ;
3042 return 0;
3043}
3044_ACEOF
3045rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00003046if { (ac_try="$ac_compile"
3047case "(($ac_try" in
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3050esac
3051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003053 ac_status=$?
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003056 for ac_file in conftest.o conftest.obj conftest.*; do
3057 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00003058 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00003059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00003060 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3061 break;;
3062 esac
3063done
3064else
3065 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003066sed 's/^/| /' conftest.$ac_ext >&5
3067
3068{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3069See \`config.log' for more details." >&5
3070echo "$as_me: error: cannot compute suffix of object files: cannot compile
3071See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003072 { (exit 1); exit 1; }; }
3073fi
3074
3075rm -f conftest.$ac_cv_objext conftest.$ac_ext
3076fi
Reid Spencera773bd52006-08-04 18:18:08 +00003077{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3078echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003079OBJEXT=$ac_cv_objext
3080ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00003081{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3082echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003083if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003084 echo $ECHO_N "(cached) $ECHO_C" >&6
3085else
3086 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003087/* confdefs.h. */
3088_ACEOF
3089cat confdefs.h >>conftest.$ac_ext
3090cat >>conftest.$ac_ext <<_ACEOF
3091/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003092
John Criswell7a73b802003-06-30 21:59:07 +00003093int
3094main ()
3095{
3096#ifndef __GNUC__
3097 choke me
3098#endif
3099
3100 ;
3101 return 0;
3102}
3103_ACEOF
3104rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003105if { (ac_try="$ac_compile"
3106case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109esac
3110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003112 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003113 grep -v '^ *+' conftest.er1 >conftest.err
3114 rm -f conftest.er1
3115 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003117 (exit $ac_status); } &&
3118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3119 { (case "(($ac_try" in
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3122esac
3123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_try") 2>&5
3125 ac_status=$?
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; } &&
3128 { ac_try='test -s conftest.$ac_objext'
3129 { (case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3132esac
3133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_try") 2>&5
3135 ac_status=$?
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003138 ac_compiler_gnu=yes
3139else
3140 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003141sed 's/^/| /' conftest.$ac_ext >&5
3142
Reid Spencera773bd52006-08-04 18:18:08 +00003143 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003144fi
Reid Spencera773bd52006-08-04 18:18:08 +00003145
3146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003147ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003148
3149fi
Reid Spencera773bd52006-08-04 18:18:08 +00003150{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3151echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003152GCC=`test $ac_compiler_gnu = yes && echo yes`
3153ac_test_CFLAGS=${CFLAGS+set}
3154ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003155{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3156echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003157if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003158 echo $ECHO_N "(cached) $ECHO_C" >&6
3159else
Reid Spencera773bd52006-08-04 18:18:08 +00003160 ac_save_c_werror_flag=$ac_c_werror_flag
3161 ac_c_werror_flag=yes
3162 ac_cv_prog_cc_g=no
3163 CFLAGS="-g"
3164 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003165/* confdefs.h. */
3166_ACEOF
3167cat confdefs.h >>conftest.$ac_ext
3168cat >>conftest.$ac_ext <<_ACEOF
3169/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003170
John Criswell7a73b802003-06-30 21:59:07 +00003171int
3172main ()
3173{
3174
3175 ;
3176 return 0;
3177}
3178_ACEOF
3179rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003180if { (ac_try="$ac_compile"
3181case "(($ac_try" in
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3184esac
3185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003187 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003188 grep -v '^ *+' conftest.er1 >conftest.err
3189 rm -f conftest.er1
3190 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003192 (exit $ac_status); } &&
3193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3194 { (case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3197esac
3198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199 (eval "$ac_try") 2>&5
3200 ac_status=$?
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); }; } &&
3203 { ac_try='test -s conftest.$ac_objext'
3204 { (case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3207esac
3208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3209 (eval "$ac_try") 2>&5
3210 ac_status=$?
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003213 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003214else
3215 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003216sed 's/^/| /' conftest.$ac_ext >&5
3217
Reid Spencera773bd52006-08-04 18:18:08 +00003218 CFLAGS=""
3219 cat >conftest.$ac_ext <<_ACEOF
3220/* confdefs.h. */
3221_ACEOF
3222cat confdefs.h >>conftest.$ac_ext
3223cat >>conftest.$ac_ext <<_ACEOF
3224/* end confdefs.h. */
3225
3226int
3227main ()
3228{
3229
3230 ;
3231 return 0;
3232}
3233_ACEOF
3234rm -f conftest.$ac_objext
3235if { (ac_try="$ac_compile"
3236case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3239esac
3240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241 (eval "$ac_compile") 2>conftest.er1
3242 ac_status=$?
3243 grep -v '^ *+' conftest.er1 >conftest.err
3244 rm -f conftest.er1
3245 cat conftest.err >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003247 (exit $ac_status); } &&
3248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3249 { (case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3252esac
3253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254 (eval "$ac_try") 2>&5
3255 ac_status=$?
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }; } &&
3258 { ac_try='test -s conftest.$ac_objext'
3259 { (case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3262esac
3263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3264 (eval "$ac_try") 2>&5
3265 ac_status=$?
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003268 :
3269else
3270 echo "$as_me: failed program was:" >&5
3271sed 's/^/| /' conftest.$ac_ext >&5
3272
3273 ac_c_werror_flag=$ac_save_c_werror_flag
3274 CFLAGS="-g"
3275 cat >conftest.$ac_ext <<_ACEOF
3276/* confdefs.h. */
3277_ACEOF
3278cat confdefs.h >>conftest.$ac_ext
3279cat >>conftest.$ac_ext <<_ACEOF
3280/* end confdefs.h. */
3281
3282int
3283main ()
3284{
3285
3286 ;
3287 return 0;
3288}
3289_ACEOF
3290rm -f conftest.$ac_objext
3291if { (ac_try="$ac_compile"
3292case "(($ac_try" in
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3295esac
3296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297 (eval "$ac_compile") 2>conftest.er1
3298 ac_status=$?
3299 grep -v '^ *+' conftest.er1 >conftest.err
3300 rm -f conftest.er1
3301 cat conftest.err >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003303 (exit $ac_status); } &&
3304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3305 { (case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3308esac
3309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3310 (eval "$ac_try") 2>&5
3311 ac_status=$?
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); }; } &&
3314 { ac_try='test -s conftest.$ac_objext'
3315 { (case "(($ac_try" in
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3318esac
3319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320 (eval "$ac_try") 2>&5
3321 ac_status=$?
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003324 ac_cv_prog_cc_g=yes
3325else
3326 echo "$as_me: failed program was:" >&5
3327sed 's/^/| /' conftest.$ac_ext >&5
3328
3329
John Criswell7a73b802003-06-30 21:59:07 +00003330fi
Reid Spencera773bd52006-08-04 18:18:08 +00003331
3332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003333fi
Reid Spencera773bd52006-08-04 18:18:08 +00003334
3335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336fi
3337
3338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339 ac_c_werror_flag=$ac_save_c_werror_flag
3340fi
3341{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3342echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003343if test "$ac_test_CFLAGS" = set; then
3344 CFLAGS=$ac_save_CFLAGS
3345elif test $ac_cv_prog_cc_g = yes; then
3346 if test "$GCC" = yes; then
3347 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003348 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003349 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003350 fi
3351else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003352 if test "$GCC" = yes; then
3353 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003354 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003355 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003356 fi
3357fi
Reid Spencera773bd52006-08-04 18:18:08 +00003358{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3359echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3360if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003361 echo $ECHO_N "(cached) $ECHO_C" >&6
3362else
Reid Spencera773bd52006-08-04 18:18:08 +00003363 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003364ac_save_CC=$CC
3365cat >conftest.$ac_ext <<_ACEOF
3366/* confdefs.h. */
3367_ACEOF
3368cat confdefs.h >>conftest.$ac_ext
3369cat >>conftest.$ac_ext <<_ACEOF
3370/* end confdefs.h. */
3371#include <stdarg.h>
3372#include <stdio.h>
3373#include <sys/types.h>
3374#include <sys/stat.h>
3375/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3376struct buf { int x; };
3377FILE * (*rcsopen) (struct buf *, struct stat *, int);
3378static char *e (p, i)
3379 char **p;
3380 int i;
3381{
3382 return p[i];
3383}
3384static char *f (char * (*g) (char **, int), char **p, ...)
3385{
3386 char *s;
3387 va_list v;
3388 va_start (v,p);
3389 s = g (p, va_arg (v,int));
3390 va_end (v);
3391 return s;
3392}
3393
3394/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3395 function prototypes and stuff, but not '\xHH' hex character constants.
3396 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003397 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003398 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3399 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003400 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003401int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3402
Reid Spencera773bd52006-08-04 18:18:08 +00003403/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3404 inside strings and character constants. */
3405#define FOO(x) 'x'
3406int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3407
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003408int test (int i, double x);
3409struct s1 {int (*f) (int a);};
3410struct s2 {int (*f) (double a);};
3411int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3412int argc;
3413char **argv;
3414int
3415main ()
3416{
3417return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3418 ;
3419 return 0;
3420}
3421_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003422for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3423 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003424do
3425 CC="$ac_save_CC $ac_arg"
3426 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003427if { (ac_try="$ac_compile"
3428case "(($ac_try" in
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3431esac
3432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003434 ac_status=$?
3435 grep -v '^ *+' conftest.er1 >conftest.err
3436 rm -f conftest.er1
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003439 (exit $ac_status); } &&
3440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3441 { (case "(($ac_try" in
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3444esac
3445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3446 (eval "$ac_try") 2>&5
3447 ac_status=$?
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); }; } &&
3450 { ac_try='test -s conftest.$ac_objext'
3451 { (case "(($ac_try" in
3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
3454esac
3455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3456 (eval "$ac_try") 2>&5
3457 ac_status=$?
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003460 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003461else
3462 echo "$as_me: failed program was:" >&5
3463sed 's/^/| /' conftest.$ac_ext >&5
3464
Reid Spencera773bd52006-08-04 18:18:08 +00003465
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003466fi
Reid Spencera773bd52006-08-04 18:18:08 +00003467
3468rm -f core conftest.err conftest.$ac_objext
3469 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003470done
Reid Spencera773bd52006-08-04 18:18:08 +00003471rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003472CC=$ac_save_CC
3473
3474fi
Reid Spencera773bd52006-08-04 18:18:08 +00003475# AC_CACHE_VAL
3476case "x$ac_cv_prog_cc_c89" in
3477 x)
3478 { echo "$as_me:$LINENO: result: none needed" >&5
3479echo "${ECHO_T}none needed" >&6; } ;;
3480 xno)
3481 { echo "$as_me:$LINENO: result: unsupported" >&5
3482echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003483 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003484 CC="$CC $ac_cv_prog_cc_c89"
3485 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3486echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003487esac
3488
John Criswell0c38eaf2003-09-10 15:17:25 +00003489
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003490ac_ext=c
3491ac_cpp='$CPP $CPPFLAGS'
3492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494ac_compiler_gnu=$ac_cv_c_compiler_gnu
3495
3496
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003497ac_ext=c
3498ac_cpp='$CPP $CPPFLAGS'
3499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003502{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3503echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003504# On Suns, sometimes $CPP names a directory.
3505if test -n "$CPP" && test -d "$CPP"; then
3506 CPP=
3507fi
3508if test -z "$CPP"; then
3509 if test "${ac_cv_prog_CPP+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3511else
3512 # Double quotes because CPP needs to be expanded
3513 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3514 do
3515 ac_preproc_ok=false
3516for ac_c_preproc_warn_flag in '' yes
3517do
3518 # Use a header file that comes with gcc, so configuring glibc
3519 # with a fresh cross-compiler works.
3520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3521 # <limits.h> exists even on freestanding compilers.
3522 # On the NeXT, cc -E runs the code through the compiler's parser,
3523 # not just through cpp. "Syntax error" is here to catch this case.
3524 cat >conftest.$ac_ext <<_ACEOF
3525/* confdefs.h. */
3526_ACEOF
3527cat confdefs.h >>conftest.$ac_ext
3528cat >>conftest.$ac_ext <<_ACEOF
3529/* end confdefs.h. */
3530#ifdef __STDC__
3531# include <limits.h>
3532#else
3533# include <assert.h>
3534#endif
3535 Syntax error
3536_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003537if { (ac_try="$ac_cpp conftest.$ac_ext"
3538case "(($ac_try" in
3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3541esac
3542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003544 ac_status=$?
3545 grep -v '^ *+' conftest.er1 >conftest.err
3546 rm -f conftest.er1
3547 cat conftest.err >&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003549 (exit $ac_status); } >/dev/null; then
3550 if test -s conftest.err; then
3551 ac_cpp_err=$ac_c_preproc_warn_flag
3552 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3553 else
3554 ac_cpp_err=
3555 fi
3556else
3557 ac_cpp_err=yes
3558fi
3559if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003560 :
3561else
3562 echo "$as_me: failed program was:" >&5
3563sed 's/^/| /' conftest.$ac_ext >&5
3564
3565 # Broken: fails on valid input.
3566continue
3567fi
Reid Spencera773bd52006-08-04 18:18:08 +00003568
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003569rm -f conftest.err conftest.$ac_ext
3570
Reid Spencera773bd52006-08-04 18:18:08 +00003571 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003572 # can be detected and how.
3573 cat >conftest.$ac_ext <<_ACEOF
3574/* confdefs.h. */
3575_ACEOF
3576cat confdefs.h >>conftest.$ac_ext
3577cat >>conftest.$ac_ext <<_ACEOF
3578/* end confdefs.h. */
3579#include <ac_nonexistent.h>
3580_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003581if { (ac_try="$ac_cpp conftest.$ac_ext"
3582case "(($ac_try" in
3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584 *) ac_try_echo=$ac_try;;
3585esac
3586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003588 ac_status=$?
3589 grep -v '^ *+' conftest.er1 >conftest.err
3590 rm -f conftest.er1
3591 cat conftest.err >&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003593 (exit $ac_status); } >/dev/null; then
3594 if test -s conftest.err; then
3595 ac_cpp_err=$ac_c_preproc_warn_flag
3596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3597 else
3598 ac_cpp_err=
3599 fi
3600else
3601 ac_cpp_err=yes
3602fi
3603if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003604 # Broken: success on invalid input.
3605continue
3606else
3607 echo "$as_me: failed program was:" >&5
3608sed 's/^/| /' conftest.$ac_ext >&5
3609
3610 # Passes both tests.
3611ac_preproc_ok=:
3612break
3613fi
Reid Spencera773bd52006-08-04 18:18:08 +00003614
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003615rm -f conftest.err conftest.$ac_ext
3616
3617done
3618# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3619rm -f conftest.err conftest.$ac_ext
3620if $ac_preproc_ok; then
3621 break
3622fi
3623
3624 done
3625 ac_cv_prog_CPP=$CPP
3626
3627fi
3628 CPP=$ac_cv_prog_CPP
3629else
3630 ac_cv_prog_CPP=$CPP
3631fi
Reid Spencera773bd52006-08-04 18:18:08 +00003632{ echo "$as_me:$LINENO: result: $CPP" >&5
3633echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003634ac_preproc_ok=false
3635for ac_c_preproc_warn_flag in '' yes
3636do
3637 # Use a header file that comes with gcc, so configuring glibc
3638 # with a fresh cross-compiler works.
3639 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3640 # <limits.h> exists even on freestanding compilers.
3641 # On the NeXT, cc -E runs the code through the compiler's parser,
3642 # not just through cpp. "Syntax error" is here to catch this case.
3643 cat >conftest.$ac_ext <<_ACEOF
3644/* confdefs.h. */
3645_ACEOF
3646cat confdefs.h >>conftest.$ac_ext
3647cat >>conftest.$ac_ext <<_ACEOF
3648/* end confdefs.h. */
3649#ifdef __STDC__
3650# include <limits.h>
3651#else
3652# include <assert.h>
3653#endif
3654 Syntax error
3655_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003656if { (ac_try="$ac_cpp conftest.$ac_ext"
3657case "(($ac_try" in
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3660esac
3661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003663 ac_status=$?
3664 grep -v '^ *+' conftest.er1 >conftest.err
3665 rm -f conftest.er1
3666 cat conftest.err >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003668 (exit $ac_status); } >/dev/null; then
3669 if test -s conftest.err; then
3670 ac_cpp_err=$ac_c_preproc_warn_flag
3671 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3672 else
3673 ac_cpp_err=
3674 fi
3675else
3676 ac_cpp_err=yes
3677fi
3678if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003679 :
3680else
3681 echo "$as_me: failed program was:" >&5
3682sed 's/^/| /' conftest.$ac_ext >&5
3683
3684 # Broken: fails on valid input.
3685continue
3686fi
Reid Spencera773bd52006-08-04 18:18:08 +00003687
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003688rm -f conftest.err conftest.$ac_ext
3689
Reid Spencera773bd52006-08-04 18:18:08 +00003690 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003691 # can be detected and how.
3692 cat >conftest.$ac_ext <<_ACEOF
3693/* confdefs.h. */
3694_ACEOF
3695cat confdefs.h >>conftest.$ac_ext
3696cat >>conftest.$ac_ext <<_ACEOF
3697/* end confdefs.h. */
3698#include <ac_nonexistent.h>
3699_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003700if { (ac_try="$ac_cpp conftest.$ac_ext"
3701case "(($ac_try" in
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3704esac
3705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003707 ac_status=$?
3708 grep -v '^ *+' conftest.er1 >conftest.err
3709 rm -f conftest.er1
3710 cat conftest.err >&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003712 (exit $ac_status); } >/dev/null; then
3713 if test -s conftest.err; then
3714 ac_cpp_err=$ac_c_preproc_warn_flag
3715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3716 else
3717 ac_cpp_err=
3718 fi
3719else
3720 ac_cpp_err=yes
3721fi
3722if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003723 # Broken: success on invalid input.
3724continue
3725else
3726 echo "$as_me: failed program was:" >&5
3727sed 's/^/| /' conftest.$ac_ext >&5
3728
3729 # Passes both tests.
3730ac_preproc_ok=:
3731break
3732fi
Reid Spencera773bd52006-08-04 18:18:08 +00003733
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003734rm -f conftest.err conftest.$ac_ext
3735
3736done
3737# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3738rm -f conftest.err conftest.$ac_ext
3739if $ac_preproc_ok; then
3740 :
3741else
3742 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3743See \`config.log' for more details." >&5
3744echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3745See \`config.log' for more details." >&2;}
3746 { (exit 1); exit 1; }; }
3747fi
3748
John Criswell7a73b802003-06-30 21:59:07 +00003749ac_ext=c
3750ac_cpp='$CPP $CPPFLAGS'
3751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754
John Criswell7a73b802003-06-30 21:59:07 +00003755
Reid Spencera773bd52006-08-04 18:18:08 +00003756{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3757echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003758if test "${ac_cv_path_GREP+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3760else
Reid Spencera773bd52006-08-04 18:18:08 +00003761 # Extract the first word of "grep ggrep" to use in msg output
3762if test -z "$GREP"; then
3763set dummy grep ggrep; ac_prog_name=$2
3764if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003765 echo $ECHO_N "(cached) $ECHO_C" >&6
3766else
Reid Spencera773bd52006-08-04 18:18:08 +00003767 ac_path_GREP_found=false
3768# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003770for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003771do
3772 IFS=$as_save_IFS
3773 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003774 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003775 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003776 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003777 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003778 # Check for GNU ac_path_GREP and select it if it is found.
3779 # Check for GNU $ac_path_GREP
3780case `"$ac_path_GREP" --version 2>&1` in
3781*GNU*)
3782 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3783*)
3784 ac_count=0
3785 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3786 while :
3787 do
3788 cat "conftest.in" "conftest.in" >"conftest.tmp"
3789 mv "conftest.tmp" "conftest.in"
3790 cp "conftest.in" "conftest.nl"
3791 echo 'GREP' >> "conftest.nl"
3792 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3793 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3794 ac_count=`expr $ac_count + 1`
3795 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3796 # Best one so far, save it but keep looking for a better one
3797 ac_cv_path_GREP="$ac_path_GREP"
3798 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003799 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003800 # 10*(2^10) chars as input seems more than enough
3801 test $ac_count -gt 10 && break
3802 done
3803 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3804esac
3805
3806
3807 $ac_path_GREP_found && break 3
3808 done
3809done
3810
3811done
3812IFS=$as_save_IFS
3813
3814
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003815fi
Reid Spencera773bd52006-08-04 18:18:08 +00003816
3817GREP="$ac_cv_path_GREP"
3818if test -z "$GREP"; then
3819 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3820echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3821 { (exit 1); exit 1; }; }
3822fi
3823
3824else
3825 ac_cv_path_GREP=$GREP
3826fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003827
John Criswell7a73b802003-06-30 21:59:07 +00003828
Reid Spencera773bd52006-08-04 18:18:08 +00003829fi
3830{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3831echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3832 GREP="$ac_cv_path_GREP"
3833
3834
3835{ echo "$as_me:$LINENO: checking for egrep" >&5
3836echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3837if test "${ac_cv_path_EGREP+set}" = set; then
3838 echo $ECHO_N "(cached) $ECHO_C" >&6
3839else
3840 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3841 then ac_cv_path_EGREP="$GREP -E"
3842 else
3843 # Extract the first word of "egrep" to use in msg output
3844if test -z "$EGREP"; then
3845set dummy egrep; ac_prog_name=$2
3846if test "${ac_cv_path_EGREP+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3848else
3849 ac_path_EGREP_found=false
3850# Loop through the user's path and test for each of PROGNAME-LIST
3851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3853do
3854 IFS=$as_save_IFS
3855 test -z "$as_dir" && as_dir=.
3856 for ac_prog in egrep; do
3857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003859 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003860 # Check for GNU ac_path_EGREP and select it if it is found.
3861 # Check for GNU $ac_path_EGREP
3862case `"$ac_path_EGREP" --version 2>&1` in
3863*GNU*)
3864 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3865*)
3866 ac_count=0
3867 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3868 while :
3869 do
3870 cat "conftest.in" "conftest.in" >"conftest.tmp"
3871 mv "conftest.tmp" "conftest.in"
3872 cp "conftest.in" "conftest.nl"
3873 echo 'EGREP' >> "conftest.nl"
3874 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3875 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3876 ac_count=`expr $ac_count + 1`
3877 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3878 # Best one so far, save it but keep looking for a better one
3879 ac_cv_path_EGREP="$ac_path_EGREP"
3880 ac_path_EGREP_max=$ac_count
3881 fi
3882 # 10*(2^10) chars as input seems more than enough
3883 test $ac_count -gt 10 && break
3884 done
3885 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3886esac
3887
3888
3889 $ac_path_EGREP_found && break 3
3890 done
3891done
3892
3893done
3894IFS=$as_save_IFS
3895
3896
3897fi
3898
3899EGREP="$ac_cv_path_EGREP"
3900if test -z "$EGREP"; then
3901 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3902echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3903 { (exit 1); exit 1; }; }
3904fi
3905
3906else
3907 ac_cv_path_EGREP=$EGREP
3908fi
3909
3910
3911 fi
3912fi
3913{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3914echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3915 EGREP="$ac_cv_path_EGREP"
3916
3917
3918{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3919echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003920if test "${ac_cv_header_stdc+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3922else
3923 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003924/* confdefs.h. */
3925_ACEOF
3926cat confdefs.h >>conftest.$ac_ext
3927cat >>conftest.$ac_ext <<_ACEOF
3928/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003929#include <stdlib.h>
3930#include <stdarg.h>
3931#include <string.h>
3932#include <float.h>
3933
John Criswell0c38eaf2003-09-10 15:17:25 +00003934int
3935main ()
3936{
3937
3938 ;
3939 return 0;
3940}
John Criswell7a73b802003-06-30 21:59:07 +00003941_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003942rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003943if { (ac_try="$ac_compile"
3944case "(($ac_try" in
3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3947esac
3948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3949 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003950 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003951 grep -v '^ *+' conftest.er1 >conftest.err
3952 rm -f conftest.er1
3953 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003955 (exit $ac_status); } &&
3956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3957 { (case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3960esac
3961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962 (eval "$ac_try") 2>&5
3963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }; } &&
3966 { ac_try='test -s conftest.$ac_objext'
3967 { (case "(($ac_try" in
3968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3969 *) ac_try_echo=$ac_try;;
3970esac
3971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3972 (eval "$ac_try") 2>&5
3973 ac_status=$?
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003976 ac_cv_header_stdc=yes
3977else
3978 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003979sed 's/^/| /' conftest.$ac_ext >&5
3980
Reid Spencera773bd52006-08-04 18:18:08 +00003981 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003982fi
Reid Spencera773bd52006-08-04 18:18:08 +00003983
3984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003985
3986if test $ac_cv_header_stdc = yes; then
3987 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3988 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003989/* confdefs.h. */
3990_ACEOF
3991cat confdefs.h >>conftest.$ac_ext
3992cat >>conftest.$ac_ext <<_ACEOF
3993/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003994#include <string.h>
3995
3996_ACEOF
3997if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003998 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003999 :
4000else
4001 ac_cv_header_stdc=no
4002fi
4003rm -f conftest*
4004
4005fi
4006
4007if test $ac_cv_header_stdc = yes; then
4008 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4009 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004010/* confdefs.h. */
4011_ACEOF
4012cat confdefs.h >>conftest.$ac_ext
4013cat >>conftest.$ac_ext <<_ACEOF
4014/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004015#include <stdlib.h>
4016
4017_ACEOF
4018if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004019 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004020 :
4021else
4022 ac_cv_header_stdc=no
4023fi
4024rm -f conftest*
4025
4026fi
4027
4028if test $ac_cv_header_stdc = yes; then
4029 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4030 if test "$cross_compiling" = yes; then
4031 :
4032else
4033 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004034/* confdefs.h. */
4035_ACEOF
4036cat confdefs.h >>conftest.$ac_ext
4037cat >>conftest.$ac_ext <<_ACEOF
4038/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004039#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004040#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004041#if ((' ' & 0x0FF) == 0x020)
4042# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4043# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4044#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004045# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004046 (('a' <= (c) && (c) <= 'i') \
4047 || ('j' <= (c) && (c) <= 'r') \
4048 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004049# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4050#endif
4051
4052#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4053int
4054main ()
4055{
4056 int i;
4057 for (i = 0; i < 256; i++)
4058 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004059 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004060 return 2;
4061 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004062}
4063_ACEOF
4064rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00004065if { (ac_try="$ac_link"
4066case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4069esac
4070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00004075 { (case "(($ac_try" in
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4078esac
4079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4080 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004081 ac_status=$?
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }; }; then
4084 :
4085else
4086 echo "$as_me: program exited with status $ac_status" >&5
4087echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004088sed 's/^/| /' conftest.$ac_ext >&5
4089
John Criswell7a73b802003-06-30 21:59:07 +00004090( exit $ac_status )
4091ac_cv_header_stdc=no
4092fi
Reid Spencera773bd52006-08-04 18:18:08 +00004093rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4094fi
4095
4096
John Criswell7a73b802003-06-30 21:59:07 +00004097fi
4098fi
Reid Spencera773bd52006-08-04 18:18:08 +00004099{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4100echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004101if test $ac_cv_header_stdc = yes; then
4102
4103cat >>confdefs.h <<\_ACEOF
4104#define STDC_HEADERS 1
4105_ACEOF
4106
4107fi
4108
Reid Spencera773bd52006-08-04 18:18:08 +00004109# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4120 inttypes.h stdint.h unistd.h
4121do
4122as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4123{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4124echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4125if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4127else
4128 cat >conftest.$ac_ext <<_ACEOF
4129/* confdefs.h. */
4130_ACEOF
4131cat confdefs.h >>conftest.$ac_ext
4132cat >>conftest.$ac_ext <<_ACEOF
4133/* end confdefs.h. */
4134$ac_includes_default
4135
4136#include <$ac_header>
4137_ACEOF
4138rm -f conftest.$ac_objext
4139if { (ac_try="$ac_compile"
4140case "(($ac_try" in
4141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142 *) ac_try_echo=$ac_try;;
4143esac
4144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4145 (eval "$ac_compile") 2>conftest.er1
4146 ac_status=$?
4147 grep -v '^ *+' conftest.er1 >conftest.err
4148 rm -f conftest.er1
4149 cat conftest.err >&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004151 (exit $ac_status); } &&
4152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4153 { (case "(($ac_try" in
4154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155 *) ac_try_echo=$ac_try;;
4156esac
4157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4158 (eval "$ac_try") 2>&5
4159 ac_status=$?
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; } &&
4162 { ac_try='test -s conftest.$ac_objext'
4163 { (case "(($ac_try" in
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4166esac
4167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168 (eval "$ac_try") 2>&5
4169 ac_status=$?
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004172 eval "$as_ac_Header=yes"
4173else
4174 echo "$as_me: failed program was:" >&5
4175sed 's/^/| /' conftest.$ac_ext >&5
4176
4177 eval "$as_ac_Header=no"
4178fi
4179
4180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4181fi
4182ac_res=`eval echo '${'$as_ac_Header'}'`
4183 { echo "$as_me:$LINENO: result: $ac_res" >&5
4184echo "${ECHO_T}$ac_res" >&6; }
4185if test `eval echo '${'$as_ac_Header'}'` = yes; then
4186 cat >>confdefs.h <<_ACEOF
4187#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4188_ACEOF
4189
4190fi
4191
4192done
4193
4194
4195{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4196echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4197if test "${ac_cv_c_bigendian+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4199else
4200 # See if sys/param.h defines the BYTE_ORDER macro.
4201cat >conftest.$ac_ext <<_ACEOF
4202/* confdefs.h. */
4203_ACEOF
4204cat confdefs.h >>conftest.$ac_ext
4205cat >>conftest.$ac_ext <<_ACEOF
4206/* end confdefs.h. */
4207#include <sys/types.h>
4208#include <sys/param.h>
4209
4210int
4211main ()
4212{
Bill Wendlingebcceee2009-04-18 11:20:33 +00004213#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004214 bogus endian macros
4215#endif
4216
4217 ;
4218 return 0;
4219}
4220_ACEOF
4221rm -f conftest.$ac_objext
4222if { (ac_try="$ac_compile"
4223case "(($ac_try" in
4224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225 *) ac_try_echo=$ac_try;;
4226esac
4227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228 (eval "$ac_compile") 2>conftest.er1
4229 ac_status=$?
4230 grep -v '^ *+' conftest.er1 >conftest.err
4231 rm -f conftest.er1
4232 cat conftest.err >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004234 (exit $ac_status); } &&
4235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4236 { (case "(($ac_try" in
4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238 *) ac_try_echo=$ac_try;;
4239esac
4240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4241 (eval "$ac_try") 2>&5
4242 ac_status=$?
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; } &&
4245 { ac_try='test -s conftest.$ac_objext'
4246 { (case "(($ac_try" in
4247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248 *) ac_try_echo=$ac_try;;
4249esac
4250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4251 (eval "$ac_try") 2>&5
4252 ac_status=$?
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004255 # It does; now see whether it defined to BIG_ENDIAN or not.
4256cat >conftest.$ac_ext <<_ACEOF
4257/* confdefs.h. */
4258_ACEOF
4259cat confdefs.h >>conftest.$ac_ext
4260cat >>conftest.$ac_ext <<_ACEOF
4261/* end confdefs.h. */
4262#include <sys/types.h>
4263#include <sys/param.h>
4264
4265int
4266main ()
4267{
4268#if BYTE_ORDER != BIG_ENDIAN
4269 not big endian
4270#endif
4271
4272 ;
4273 return 0;
4274}
4275_ACEOF
4276rm -f conftest.$ac_objext
4277if { (ac_try="$ac_compile"
4278case "(($ac_try" in
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4281esac
4282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4283 (eval "$ac_compile") 2>conftest.er1
4284 ac_status=$?
4285 grep -v '^ *+' conftest.er1 >conftest.err
4286 rm -f conftest.er1
4287 cat conftest.err >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004289 (exit $ac_status); } &&
4290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4291 { (case "(($ac_try" in
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4294esac
4295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296 (eval "$ac_try") 2>&5
4297 ac_status=$?
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; } &&
4300 { ac_try='test -s conftest.$ac_objext'
4301 { (case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4304esac
4305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306 (eval "$ac_try") 2>&5
4307 ac_status=$?
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004310 ac_cv_c_bigendian=yes
4311else
4312 echo "$as_me: failed program was:" >&5
4313sed 's/^/| /' conftest.$ac_ext >&5
4314
4315 ac_cv_c_bigendian=no
4316fi
4317
4318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319else
4320 echo "$as_me: failed program was:" >&5
4321sed 's/^/| /' conftest.$ac_ext >&5
4322
4323 # It does not; compile a test program.
4324if test "$cross_compiling" = yes; then
4325 # try to guess the endianness by grepping values into an object file
4326 ac_cv_c_bigendian=unknown
4327 cat >conftest.$ac_ext <<_ACEOF
4328/* confdefs.h. */
4329_ACEOF
4330cat confdefs.h >>conftest.$ac_ext
4331cat >>conftest.$ac_ext <<_ACEOF
4332/* end confdefs.h. */
4333short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4334short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4335void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4336short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4337short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4338void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4339int
4340main ()
4341{
4342 _ascii (); _ebcdic ();
4343 ;
4344 return 0;
4345}
4346_ACEOF
4347rm -f conftest.$ac_objext
4348if { (ac_try="$ac_compile"
4349case "(($ac_try" in
4350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351 *) ac_try_echo=$ac_try;;
4352esac
4353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4354 (eval "$ac_compile") 2>conftest.er1
4355 ac_status=$?
4356 grep -v '^ *+' conftest.er1 >conftest.err
4357 rm -f conftest.er1
4358 cat conftest.err >&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004360 (exit $ac_status); } &&
4361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4362 { (case "(($ac_try" in
4363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364 *) ac_try_echo=$ac_try;;
4365esac
4366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4367 (eval "$ac_try") 2>&5
4368 ac_status=$?
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; } &&
4371 { ac_try='test -s conftest.$ac_objext'
4372 { (case "(($ac_try" in
4373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4375esac
4376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4377 (eval "$ac_try") 2>&5
4378 ac_status=$?
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004381 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4382 ac_cv_c_bigendian=yes
4383fi
4384if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4385 if test "$ac_cv_c_bigendian" = unknown; then
4386 ac_cv_c_bigendian=no
4387 else
4388 # finding both strings is unlikely to happen, but who knows?
4389 ac_cv_c_bigendian=unknown
4390 fi
4391fi
4392else
4393 echo "$as_me: failed program was:" >&5
4394sed 's/^/| /' conftest.$ac_ext >&5
4395
4396
4397fi
4398
4399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4400else
4401 cat >conftest.$ac_ext <<_ACEOF
4402/* confdefs.h. */
4403_ACEOF
4404cat confdefs.h >>conftest.$ac_ext
4405cat >>conftest.$ac_ext <<_ACEOF
4406/* end confdefs.h. */
4407$ac_includes_default
4408int
4409main ()
4410{
4411
4412 /* Are we little or big endian? From Harbison&Steele. */
4413 union
4414 {
4415 long int l;
4416 char c[sizeof (long int)];
4417 } u;
4418 u.l = 1;
4419 return u.c[sizeof (long int) - 1] == 1;
4420
4421 ;
4422 return 0;
4423}
4424_ACEOF
4425rm -f conftest$ac_exeext
4426if { (ac_try="$ac_link"
4427case "(($ac_try" in
4428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429 *) ac_try_echo=$ac_try;;
4430esac
4431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4432 (eval "$ac_link") 2>&5
4433 ac_status=$?
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4436 { (case "(($ac_try" in
4437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4438 *) ac_try_echo=$ac_try;;
4439esac
4440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4441 (eval "$ac_try") 2>&5
4442 ac_status=$?
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); }; }; then
4445 ac_cv_c_bigendian=no
4446else
4447 echo "$as_me: program exited with status $ac_status" >&5
4448echo "$as_me: failed program was:" >&5
4449sed 's/^/| /' conftest.$ac_ext >&5
4450
4451( exit $ac_status )
4452ac_cv_c_bigendian=yes
4453fi
4454rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4455fi
4456
4457
4458fi
4459
4460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4461fi
4462{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4463echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4464case $ac_cv_c_bigendian in
4465 yes)
4466 ENDIAN=big
4467 ;;
4468 no)
4469 ENDIAN=little
4470 ;;
4471 *)
4472 { { echo "$as_me:$LINENO: error: unknown endianness
4473presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4474echo "$as_me: error: unknown endianness
4475presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4476 { (exit 1); exit 1; }; } ;;
4477esac
4478
4479
4480if test "$cross_compiling" = yes; then
4481 LLVM_CROSS_COMPILING=1
4482
4483
4484{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4485echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4486if test "${ac_cv_build_exeext+set}" = set; then
4487 echo $ECHO_N "(cached) $ECHO_C" >&6
4488else
4489 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4490 ac_cv_build_exeext=.exe
4491else
4492 ac_build_prefix=${build_alias}-
4493
4494 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4495set dummy ${ac_build_prefix}gcc; ac_word=$2
4496{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4498if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4500else
4501 if test -n "$BUILD_CC"; then
4502 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4503else
4504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505for as_dir in $PATH
4506do
4507 IFS=$as_save_IFS
4508 test -z "$as_dir" && as_dir=.
4509 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004510 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 +00004511 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4513 break 2
4514 fi
4515done
4516done
4517IFS=$as_save_IFS
4518
4519fi
4520fi
4521BUILD_CC=$ac_cv_prog_BUILD_CC
4522if test -n "$BUILD_CC"; then
4523 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4524echo "${ECHO_T}$BUILD_CC" >&6; }
4525else
4526 { echo "$as_me:$LINENO: result: no" >&5
4527echo "${ECHO_T}no" >&6; }
4528fi
4529
4530
4531 if test -z "$BUILD_CC"; then
4532 # Extract the first word of "gcc", so it can be a program name with args.
4533set dummy gcc; ac_word=$2
4534{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4536if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6
4538else
4539 if test -n "$BUILD_CC"; then
4540 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4541else
4542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543for as_dir in $PATH
4544do
4545 IFS=$as_save_IFS
4546 test -z "$as_dir" && as_dir=.
4547 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004548 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 +00004549 ac_cv_prog_BUILD_CC="gcc"
4550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4551 break 2
4552 fi
4553done
4554done
4555IFS=$as_save_IFS
4556
4557fi
4558fi
4559BUILD_CC=$ac_cv_prog_BUILD_CC
4560if test -n "$BUILD_CC"; then
4561 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4562echo "${ECHO_T}$BUILD_CC" >&6; }
4563else
4564 { echo "$as_me:$LINENO: result: no" >&5
4565echo "${ECHO_T}no" >&6; }
4566fi
4567
4568
4569 if test -z "$BUILD_CC"; then
4570 # Extract the first word of "cc", so it can be a program name with args.
4571set dummy cc; ac_word=$2
4572{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4574if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4576else
4577 if test -n "$BUILD_CC"; then
4578 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4579else
4580 ac_prog_rejected=no
4581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582for as_dir in $PATH
4583do
4584 IFS=$as_save_IFS
4585 test -z "$as_dir" && as_dir=.
4586 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004587 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 +00004588 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4589 ac_prog_rejected=yes
4590 continue
4591 fi
4592 ac_cv_prog_BUILD_CC="cc"
4593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4594 break 2
4595 fi
4596done
4597done
4598IFS=$as_save_IFS
4599
4600if test $ac_prog_rejected = yes; then
4601 # We found a bogon in the path, so make sure we never use it.
4602 set dummy $ac_cv_prog_BUILD_CC
4603 shift
4604 if test $# != 0; then
4605 # We chose a different compiler from the bogus one.
4606 # However, it has the same basename, so the bogon will be chosen
4607 # first if we set BUILD_CC to just the basename; use the full file name.
4608 shift
4609 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4610 fi
4611fi
4612fi
4613fi
4614BUILD_CC=$ac_cv_prog_BUILD_CC
4615if test -n "$BUILD_CC"; then
4616 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4617echo "${ECHO_T}$BUILD_CC" >&6; }
4618else
4619 { echo "$as_me:$LINENO: result: no" >&5
4620echo "${ECHO_T}no" >&6; }
4621fi
4622
4623
4624 fi
4625 fi
4626 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4627echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4628 { (exit 1); exit 1; }; }
4629 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4630 rm -f conftest*
4631 echo 'int main () { return 0; }' > conftest.$ac_ext
4632 ac_cv_build_exeext=
4633 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4634 (eval $ac_build_link) 2>&5
4635 ac_status=$?
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; then
4638 for file in conftest.*; do
4639 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004640 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004641 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4642 esac
4643 done
4644 else
4645 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4646echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4647 { (exit 1); exit 1; }; }
4648 fi
4649 rm -f conftest*
4650 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4651fi
4652fi
4653
4654BUILD_EXEEXT=""
4655test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4656{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4657echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4658ac_build_exeext=$BUILD_EXEEXT
4659
Jim Grosbach673612e2008-10-02 22:56:44 +00004660 ac_build_prefix=${build_alias}-
4661 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4662set dummy ${ac_build_prefix}g++; ac_word=$2
4663{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4665if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4667else
4668 if test -n "$BUILD_CXX"; then
4669 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4670else
4671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672for as_dir in $PATH
4673do
4674 IFS=$as_save_IFS
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004677 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 +00004678 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 break 2
4681 fi
4682done
4683done
4684IFS=$as_save_IFS
4685
4686fi
4687fi
4688BUILD_CXX=$ac_cv_prog_BUILD_CXX
4689if test -n "$BUILD_CXX"; then
4690 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4691echo "${ECHO_T}$BUILD_CXX" >&6; }
4692else
4693 { echo "$as_me:$LINENO: result: no" >&5
4694echo "${ECHO_T}no" >&6; }
4695fi
4696
4697
4698 if test -z "$BUILD_CXX"; then
4699 # Extract the first word of "g++", so it can be a program name with args.
4700set dummy g++; ac_word=$2
4701{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4703if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4704 echo $ECHO_N "(cached) $ECHO_C" >&6
4705else
4706 if test -n "$BUILD_CXX"; then
4707 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4708else
4709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710for as_dir in $PATH
4711do
4712 IFS=$as_save_IFS
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004715 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 +00004716 ac_cv_prog_BUILD_CXX="g++"
4717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 break 2
4719 fi
4720done
4721done
4722IFS=$as_save_IFS
4723
4724fi
4725fi
4726BUILD_CXX=$ac_cv_prog_BUILD_CXX
4727if test -n "$BUILD_CXX"; then
4728 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4729echo "${ECHO_T}$BUILD_CXX" >&6; }
4730else
4731 { echo "$as_me:$LINENO: result: no" >&5
4732echo "${ECHO_T}no" >&6; }
4733fi
4734
4735
4736 if test -z "$BUILD_CXX"; then
4737 # Extract the first word of "c++", so it can be a program name with args.
4738set dummy c++; ac_word=$2
4739{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4741if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4743else
4744 if test -n "$BUILD_CXX"; then
4745 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4746else
4747 ac_prog_rejected=no
4748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749for as_dir in $PATH
4750do
4751 IFS=$as_save_IFS
4752 test -z "$as_dir" && as_dir=.
4753 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004754 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 +00004755 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4756 ac_prog_rejected=yes
4757 continue
4758 fi
4759 ac_cv_prog_BUILD_CXX="c++"
4760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 break 2
4762 fi
4763done
4764done
4765IFS=$as_save_IFS
4766
4767if test $ac_prog_rejected = yes; then
4768 # We found a bogon in the path, so make sure we never use it.
4769 set dummy $ac_cv_prog_BUILD_CXX
4770 shift
4771 if test $# != 0; then
4772 # We chose a different compiler from the bogus one.
4773 # However, it has the same basename, so the bogon will be chosen
4774 # first if we set BUILD_CXX to just the basename; use the full file name.
4775 shift
4776 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4777 fi
4778fi
4779fi
4780fi
4781BUILD_CXX=$ac_cv_prog_BUILD_CXX
4782if test -n "$BUILD_CXX"; then
4783 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4784echo "${ECHO_T}$BUILD_CXX" >&6; }
4785else
4786 { echo "$as_me:$LINENO: result: no" >&5
4787echo "${ECHO_T}no" >&6; }
4788fi
4789
4790
4791 fi
4792 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004793else
4794 LLVM_CROSS_COMPILING=0
4795
4796fi
4797
Nick Lewycky5b28f862009-04-10 05:18:27 +00004798if 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 +00004799 cvsbuild="yes"
4800 optimize="no"
4801 CVSBUILD=CVSBUILD=1
4802
4803else
4804 cvsbuild="no"
4805 optimize="yes"
4806fi
4807
4808
4809# Check whether --enable-optimized was given.
4810if test "${enable_optimized+set}" = set; then
4811 enableval=$enable_optimized;
4812else
4813 enableval=$optimize
4814fi
4815
4816if test ${enableval} = "no" ; then
4817 ENABLE_OPTIMIZED=
4818
4819else
4820 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4821
4822fi
4823
David Greene2a5a12c2009-04-17 14:50:39 +00004824# Check whether --enable-profiling was given.
4825if test "${enable_profiling+set}" = set; then
4826 enableval=$enable_profiling;
4827else
4828 enableval="no"
4829fi
4830
4831if test ${enableval} = "no" ; then
4832 ENABLE_PROFILING=
4833
4834else
4835 ENABLE_PROFILING=ENABLE_PROFILING=1
4836
4837fi
4838
Reid Spencera773bd52006-08-04 18:18:08 +00004839# Check whether --enable-assertions was given.
4840if test "${enable_assertions+set}" = set; then
4841 enableval=$enable_assertions;
4842else
4843 enableval="yes"
4844fi
4845
4846if test ${enableval} = "yes" ; then
4847 DISABLE_ASSERTIONS=
4848
4849else
4850 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4851
4852fi
4853
David Greenea696d242007-06-28 19:36:08 +00004854# Check whether --enable-expensive-checks was given.
4855if test "${enable_expensive_checks+set}" = set; then
4856 enableval=$enable_expensive_checks;
4857else
4858 enableval="no"
4859fi
4860
4861if test ${enableval} = "yes" ; then
4862 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4863
4864 EXPENSIVE_CHECKS=yes
4865
4866else
4867 ENABLE_EXPENSIVE_CHECKS=
4868
4869 EXPENSIVE_CHECKS=no
4870
4871fi
4872
Reid Spencer8b2e1412006-11-17 03:32:33 +00004873# Check whether --enable-debug-runtime was given.
4874if test "${enable_debug_runtime+set}" = set; then
4875 enableval=$enable_debug_runtime;
4876else
4877 enableval=no
4878fi
4879
4880if test ${enableval} = "no" ; then
4881 DEBUG_RUNTIME=
4882
4883else
4884 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4885
4886fi
4887
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004888# Check whether --enable-debug-symbols was given.
4889if test "${enable_debug_symbols+set}" = set; then
4890 enableval=$enable_debug_symbols;
4891else
4892 enableval=no
4893fi
4894
4895if test ${enableval} = "no" ; then
4896 DEBUG_SYMBOLS=
4897
4898else
4899 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4900
4901fi
4902
Reid Spencera773bd52006-08-04 18:18:08 +00004903# Check whether --enable-jit was given.
4904if test "${enable_jit+set}" = set; then
4905 enableval=$enable_jit;
4906else
4907 enableval=default
4908fi
4909
4910if test ${enableval} = "no"
4911then
4912 JIT=
4913
4914else
4915 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004916 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004917 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004918 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004919 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004920 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004921 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004922 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004923 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004924 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004925 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004926 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004927 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004928 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004929 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004930 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004931 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004932 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004933 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004934 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004935 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004936 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004937 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004938 Blackfin) TARGET_HAS_JIT=0
4939 ;;
4940 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004941 ;;
4942 esac
4943fi
4944
4945# Check whether --enable-doxygen was given.
4946if test "${enable_doxygen+set}" = set; then
4947 enableval=$enable_doxygen;
4948else
4949 enableval=default
4950fi
4951
4952case "$enableval" in
4953 yes) ENABLE_DOXYGEN=1
4954 ;;
4955 no) ENABLE_DOXYGEN=0
4956 ;;
4957 default) ENABLE_DOXYGEN=0
4958 ;;
4959 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4960echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4961 { (exit 1); exit 1; }; } ;;
4962esac
4963
4964# Check whether --enable-threads was given.
4965if test "${enable_threads+set}" = set; then
4966 enableval=$enable_threads;
4967else
Reid Spencer65c5d752006-11-05 17:08:18 +00004968 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004969fi
4970
4971case "$enableval" in
4972 yes) ENABLE_THREADS=1
4973 ;;
4974 no) ENABLE_THREADS=0
4975 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004976 default) ENABLE_THREADS=1
4977 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004978 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4979echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4980 { (exit 1); exit 1; }; } ;;
4981esac
4982
Owen Andersona8603702009-05-19 22:18:56 +00004983cat >>confdefs.h <<_ACEOF
4984#define ENABLE_THREADS $ENABLE_THREADS
4985_ACEOF
4986
4987
Reid Spencer89b0d992006-12-16 22:07:52 +00004988# Check whether --enable-pic was given.
4989if test "${enable_pic+set}" = set; then
4990 enableval=$enable_pic;
4991else
4992 enableval=default
4993fi
4994
4995case "$enableval" in
4996 yes) ENABLE_PIC=1
4997 ;;
4998 no) ENABLE_PIC=0
4999 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005000 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005001 ;;
5002 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5003echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5004 { (exit 1); exit 1; }; } ;;
5005esac
5006
5007cat >>confdefs.h <<_ACEOF
5008#define ENABLE_PIC $ENABLE_PIC
5009_ACEOF
5010
5011
Reid Spencera773bd52006-08-04 18:18:08 +00005012TARGETS_TO_BUILD=""
5013# Check whether --enable-targets was given.
5014if test "${enable_targets+set}" = set; then
5015 enableval=$enable_targets;
5016else
5017 enableval=all
5018fi
5019
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005020if test "$enableval" = host-only ; then
5021 enableval=host
5022fi
Reid Spencera773bd52006-08-04 18:18:08 +00005023case "$enableval" in
Jakob Stoklund Olesen73b7bb72009-08-02 17:32:37 +00005024 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 +00005025 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5026 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005027 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5028 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5029 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5030 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5031 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5032 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5033 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5034 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5035 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5036 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5037 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5038 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5039 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5040 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5041 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5042 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005043 host) case "$llvm_cv_target_arch" in
5044 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5045 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5046 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5047 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5048 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5049 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5050 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5051 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5052 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5053 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5054 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5055 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5056 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5057 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5058echo "$as_me: error: Can not set target to build" >&2;}
5059 { (exit 1); exit 1; }; } ;;
5060 esac ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005061 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5062echo "$as_me: error: Unrecognized target $a_target" >&2;}
5063 { (exit 1); exit 1; }; } ;;
5064 esac
5065 done
5066 ;;
5067esac
Reid Spencera773bd52006-08-04 18:18:08 +00005068TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5069
5070
Douglas Gregor0711c302009-06-17 00:43:20 +00005071# Determine whether we are building LLVM support for the native architecture.
5072# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5073for a_target in $TARGETS_TO_BUILD; do
5074 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00005075 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00005076
5077cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00005078#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00005079_ACEOF
5080
5081 fi
5082done
5083
Douglas Gregor1555a232009-06-16 20:12:29 +00005084# Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005085# Targets.def, AsmPrinters.def, and AsmParsers.def.
Douglas Gregor1555a232009-06-16 20:12:29 +00005086LLVM_ENUM_TARGETS=""
5087LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005088LLVM_ENUM_ASM_PARSERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005089for target_to_build in $TARGETS_TO_BUILD; do
5090 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5091 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5092 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5093 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005094 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5095 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5096 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005097done
5098
5099
5100
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005101
Reid Spencer65c5d752006-11-05 17:08:18 +00005102# Check whether --enable-cbe-printf-a was given.
5103if test "${enable_cbe_printf_a+set}" = set; then
5104 enableval=$enable_cbe_printf_a;
5105else
5106 enableval=default
5107fi
5108
5109case "$enableval" in
5110 yes) ENABLE_CBE_PRINTF_A=1
5111 ;;
5112 no) ENABLE_CBE_PRINTF_A=0
5113 ;;
5114 default) ENABLE_CBE_PRINTF_A=1
5115 ;;
5116 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5117echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5118 { (exit 1); exit 1; }; } ;;
5119esac
5120
5121cat >>confdefs.h <<_ACEOF
5122#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5123_ACEOF
5124
5125
Reid Spencera773bd52006-08-04 18:18:08 +00005126
5127# Check whether --with-llvmgccdir was given.
5128if test "${with_llvmgccdir+set}" = set; then
5129 withval=$with_llvmgccdir;
5130else
5131 withval=default
5132fi
5133
5134case "$withval" in
5135 default) WITH_LLVMGCCDIR=default ;;
5136 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5137 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5138echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5139 { (exit 1); exit 1; }; } ;;
5140esac
5141
5142
Devang Patel5d28b882007-12-04 22:54:47 +00005143# Check whether --with-llvmgcc was given.
5144if test "${with_llvmgcc+set}" = set; then
5145 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5146 WITH_LLVMGCCDIR=""
5147fi
5148
5149
5150
5151# Check whether --with-llvmgxx was given.
5152if test "${with_llvmgxx+set}" = set; then
5153 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5154 WITH_LLVMGCCDIR=""
5155fi
5156
Douglas Gregor01746742009-05-11 18:05:52 +00005157
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005158if test -n "$LLVMGCC"; then
5159 LLVMGCCCOMMAND="$LLVMGCC"
5160fi
5161
5162if test -n "$LLVMGXX"; then
5163 LLVMGXXCOMMAND="$LLVMGXX"
5164fi
Devang Patel5d28b882007-12-04 22:54:47 +00005165
5166if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5167 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5168echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5169 { (exit 1); exit 1; }; };
5170fi
5171
5172if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5173 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5174echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5175 { (exit 1); exit 1; }; };
5176fi
5177
5178
Reid Spencera773bd52006-08-04 18:18:08 +00005179# Check whether --with-extra-options was given.
5180if test "${with_extra_options+set}" = set; then
5181 withval=$with_extra_options;
5182else
5183 withval=default
5184fi
5185
5186case "$withval" in
5187 default) EXTRA_OPTIONS= ;;
5188 *) EXTRA_OPTIONS=$withval ;;
5189esac
5190EXTRA_OPTIONS=$EXTRA_OPTIONS
5191
5192
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005193# Check whether --enable-bindings was given.
5194if test "${enable_bindings+set}" = set; then
5195 enableval=$enable_bindings;
5196else
5197 enableval=default
5198fi
5199
5200BINDINGS_TO_BUILD=""
5201case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005202 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005203 all ) BINDINGS_TO_BUILD="ocaml" ;;
5204 none | no) BINDINGS_TO_BUILD="" ;;
5205 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5206 case "$a_binding" in
5207 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5208 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5209echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5210 { (exit 1); exit 1; }; } ;;
5211 esac
5212 done
5213 ;;
5214esac
5215
Reid Spencera773bd52006-08-04 18:18:08 +00005216
Gordon Henriksenf0915682007-10-02 16:42:22 +00005217# Check whether --with-ocaml-libdir was given.
5218if test "${with_ocaml_libdir+set}" = set; then
5219 withval=$with_ocaml_libdir;
5220else
5221 withval=auto
5222fi
5223
5224case "$withval" in
5225 auto) with_ocaml_libdir="$withval" ;;
5226 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5227 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5228echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5229 { (exit 1); exit 1; }; } ;;
5230esac
5231
5232
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005233# Check whether --with-binutils-include was given.
5234if test "${with_binutils_include+set}" = set; then
5235 withval=$with_binutils_include;
5236else
5237 withval=default
5238fi
5239
5240case "$withval" in
5241 default) WITH_BINUTILS_INCDIR=default ;;
5242 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5243 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5244echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5245 { (exit 1); exit 1; }; } ;;
5246esac
5247if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5248 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5249
5250 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5251 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5252 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5253echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5254 { (exit 1); exit 1; }; };
5255 fi
5256fi
5257
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005258# Check whether --enable-libffi was given.
5259if test "${enable_libffi+set}" = set; then
5260 enableval=$enable_libffi;
5261else
5262 enableval=yes
5263fi
5264
5265case "$enableval" in
5266 yes) llvm_cv_enable_libffi="yes" ;;
5267 no) llvm_cv_enable_libffi="no" ;;
5268 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5269echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5270 { (exit 1); exit 1; }; } ;;
5271esac
5272
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005273if test "$llvm_cv_os_type" = "Win32" ; then
5274 llvmc_dynamic="yes"
5275else
5276 llvmc_dynamic="no"
5277fi
5278
5279# Check whether --enable-llvmc-dynamic was given.
5280if test "${enable_llvmc_dynamic+set}" = set; then
5281 enableval=$enable_llvmc_dynamic;
5282else
5283 enableval=$llvmc_dynamic
5284fi
5285
5286if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5287 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5288
5289else
5290 ENABLE_LLVMC_DYNAMIC=
5291
5292fi
5293
5294# Check whether --enable-llvmc-dynamic-plugins was given.
5295if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5296 enableval=$enable_llvmc_dynamic_plugins;
5297else
5298 enableval=yes
5299fi
5300
5301if test ${enableval} = "yes" ; then
5302 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5303
5304else
5305 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5306
5307fi
5308
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005309
Reid Spencera773bd52006-08-04 18:18:08 +00005310ac_ext=c
5311ac_cpp='$CPP $CPPFLAGS'
5312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5314ac_compiler_gnu=$ac_cv_c_compiler_gnu
5315{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5316echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5317# On Suns, sometimes $CPP names a directory.
5318if test -n "$CPP" && test -d "$CPP"; then
5319 CPP=
5320fi
5321if test -z "$CPP"; then
5322 if test "${ac_cv_prog_CPP+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5324else
5325 # Double quotes because CPP needs to be expanded
5326 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5327 do
5328 ac_preproc_ok=false
5329for ac_c_preproc_warn_flag in '' yes
5330do
5331 # Use a header file that comes with gcc, so configuring glibc
5332 # with a fresh cross-compiler works.
5333 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5334 # <limits.h> exists even on freestanding compilers.
5335 # On the NeXT, cc -E runs the code through the compiler's parser,
5336 # not just through cpp. "Syntax error" is here to catch this case.
5337 cat >conftest.$ac_ext <<_ACEOF
5338/* confdefs.h. */
5339_ACEOF
5340cat confdefs.h >>conftest.$ac_ext
5341cat >>conftest.$ac_ext <<_ACEOF
5342/* end confdefs.h. */
5343#ifdef __STDC__
5344# include <limits.h>
5345#else
5346# include <assert.h>
5347#endif
5348 Syntax error
5349_ACEOF
5350if { (ac_try="$ac_cpp conftest.$ac_ext"
5351case "(($ac_try" in
5352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353 *) ac_try_echo=$ac_try;;
5354esac
5355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5356 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5357 ac_status=$?
5358 grep -v '^ *+' conftest.er1 >conftest.err
5359 rm -f conftest.er1
5360 cat conftest.err >&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005362 (exit $ac_status); } >/dev/null; then
5363 if test -s conftest.err; then
5364 ac_cpp_err=$ac_c_preproc_warn_flag
5365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5366 else
5367 ac_cpp_err=
5368 fi
5369else
5370 ac_cpp_err=yes
5371fi
5372if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005373 :
5374else
5375 echo "$as_me: failed program was:" >&5
5376sed 's/^/| /' conftest.$ac_ext >&5
5377
5378 # Broken: fails on valid input.
5379continue
5380fi
5381
5382rm -f conftest.err conftest.$ac_ext
5383
5384 # OK, works on sane cases. Now check whether nonexistent headers
5385 # can be detected and how.
5386 cat >conftest.$ac_ext <<_ACEOF
5387/* confdefs.h. */
5388_ACEOF
5389cat confdefs.h >>conftest.$ac_ext
5390cat >>conftest.$ac_ext <<_ACEOF
5391/* end confdefs.h. */
5392#include <ac_nonexistent.h>
5393_ACEOF
5394if { (ac_try="$ac_cpp conftest.$ac_ext"
5395case "(($ac_try" in
5396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5397 *) ac_try_echo=$ac_try;;
5398esac
5399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5400 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5401 ac_status=$?
5402 grep -v '^ *+' conftest.er1 >conftest.err
5403 rm -f conftest.er1
5404 cat conftest.err >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005406 (exit $ac_status); } >/dev/null; then
5407 if test -s conftest.err; then
5408 ac_cpp_err=$ac_c_preproc_warn_flag
5409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5410 else
5411 ac_cpp_err=
5412 fi
5413else
5414 ac_cpp_err=yes
5415fi
5416if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005417 # Broken: success on invalid input.
5418continue
5419else
5420 echo "$as_me: failed program was:" >&5
5421sed 's/^/| /' conftest.$ac_ext >&5
5422
5423 # Passes both tests.
5424ac_preproc_ok=:
5425break
5426fi
5427
5428rm -f conftest.err conftest.$ac_ext
5429
5430done
5431# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5432rm -f conftest.err conftest.$ac_ext
5433if $ac_preproc_ok; then
5434 break
5435fi
5436
5437 done
5438 ac_cv_prog_CPP=$CPP
5439
5440fi
5441 CPP=$ac_cv_prog_CPP
5442else
5443 ac_cv_prog_CPP=$CPP
5444fi
5445{ echo "$as_me:$LINENO: result: $CPP" >&5
5446echo "${ECHO_T}$CPP" >&6; }
5447ac_preproc_ok=false
5448for ac_c_preproc_warn_flag in '' yes
5449do
5450 # Use a header file that comes with gcc, so configuring glibc
5451 # with a fresh cross-compiler works.
5452 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5453 # <limits.h> exists even on freestanding compilers.
5454 # On the NeXT, cc -E runs the code through the compiler's parser,
5455 # not just through cpp. "Syntax error" is here to catch this case.
5456 cat >conftest.$ac_ext <<_ACEOF
5457/* confdefs.h. */
5458_ACEOF
5459cat confdefs.h >>conftest.$ac_ext
5460cat >>conftest.$ac_ext <<_ACEOF
5461/* end confdefs.h. */
5462#ifdef __STDC__
5463# include <limits.h>
5464#else
5465# include <assert.h>
5466#endif
5467 Syntax error
5468_ACEOF
5469if { (ac_try="$ac_cpp conftest.$ac_ext"
5470case "(($ac_try" in
5471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5472 *) ac_try_echo=$ac_try;;
5473esac
5474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5476 ac_status=$?
5477 grep -v '^ *+' conftest.er1 >conftest.err
5478 rm -f conftest.er1
5479 cat conftest.err >&5
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005481 (exit $ac_status); } >/dev/null; then
5482 if test -s conftest.err; then
5483 ac_cpp_err=$ac_c_preproc_warn_flag
5484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5485 else
5486 ac_cpp_err=
5487 fi
5488else
5489 ac_cpp_err=yes
5490fi
5491if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005492 :
5493else
5494 echo "$as_me: failed program was:" >&5
5495sed 's/^/| /' conftest.$ac_ext >&5
5496
5497 # Broken: fails on valid input.
5498continue
5499fi
5500
5501rm -f conftest.err conftest.$ac_ext
5502
5503 # OK, works on sane cases. Now check whether nonexistent headers
5504 # can be detected and how.
5505 cat >conftest.$ac_ext <<_ACEOF
5506/* confdefs.h. */
5507_ACEOF
5508cat confdefs.h >>conftest.$ac_ext
5509cat >>conftest.$ac_ext <<_ACEOF
5510/* end confdefs.h. */
5511#include <ac_nonexistent.h>
5512_ACEOF
5513if { (ac_try="$ac_cpp conftest.$ac_ext"
5514case "(($ac_try" in
5515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5516 *) ac_try_echo=$ac_try;;
5517esac
5518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5520 ac_status=$?
5521 grep -v '^ *+' conftest.er1 >conftest.err
5522 rm -f conftest.er1
5523 cat conftest.err >&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005525 (exit $ac_status); } >/dev/null; then
5526 if test -s conftest.err; then
5527 ac_cpp_err=$ac_c_preproc_warn_flag
5528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5529 else
5530 ac_cpp_err=
5531 fi
5532else
5533 ac_cpp_err=yes
5534fi
5535if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005536 # Broken: success on invalid input.
5537continue
5538else
5539 echo "$as_me: failed program was:" >&5
5540sed 's/^/| /' conftest.$ac_ext >&5
5541
5542 # Passes both tests.
5543ac_preproc_ok=:
5544break
5545fi
5546
5547rm -f conftest.err conftest.$ac_ext
5548
5549done
5550# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5551rm -f conftest.err conftest.$ac_ext
5552if $ac_preproc_ok; then
5553 :
5554else
5555 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5556See \`config.log' for more details." >&5
5557echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5558See \`config.log' for more details." >&2;}
5559 { (exit 1); exit 1; }; }
5560fi
5561
5562ac_ext=c
5563ac_cpp='$CPP $CPPFLAGS'
5564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5566ac_compiler_gnu=$ac_cv_c_compiler_gnu
5567
5568ac_ext=c
5569ac_cpp='$CPP $CPPFLAGS'
5570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5572ac_compiler_gnu=$ac_cv_c_compiler_gnu
5573if test -n "$ac_tool_prefix"; then
5574 for ac_prog in gcc
5575 do
5576 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5577set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5578{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5580if test "${ac_cv_prog_CC+set}" = set; then
5581 echo $ECHO_N "(cached) $ECHO_C" >&6
5582else
5583 if test -n "$CC"; then
5584 ac_cv_prog_CC="$CC" # Let the user override the test.
5585else
5586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587for as_dir in $PATH
5588do
5589 IFS=$as_save_IFS
5590 test -z "$as_dir" && as_dir=.
5591 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005592 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 +00005593 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5595 break 2
5596 fi
5597done
5598done
5599IFS=$as_save_IFS
5600
5601fi
5602fi
5603CC=$ac_cv_prog_CC
5604if test -n "$CC"; then
5605 { echo "$as_me:$LINENO: result: $CC" >&5
5606echo "${ECHO_T}$CC" >&6; }
5607else
5608 { echo "$as_me:$LINENO: result: no" >&5
5609echo "${ECHO_T}no" >&6; }
5610fi
5611
5612
5613 test -n "$CC" && break
5614 done
5615fi
5616if test -z "$CC"; then
5617 ac_ct_CC=$CC
5618 for ac_prog in gcc
5619do
5620 # Extract the first word of "$ac_prog", so it can be a program name with args.
5621set dummy $ac_prog; ac_word=$2
5622{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5624if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
5626else
5627 if test -n "$ac_ct_CC"; then
5628 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5629else
5630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631for as_dir in $PATH
5632do
5633 IFS=$as_save_IFS
5634 test -z "$as_dir" && as_dir=.
5635 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005636 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 +00005637 ac_cv_prog_ac_ct_CC="$ac_prog"
5638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5639 break 2
5640 fi
5641done
5642done
5643IFS=$as_save_IFS
5644
5645fi
5646fi
5647ac_ct_CC=$ac_cv_prog_ac_ct_CC
5648if test -n "$ac_ct_CC"; then
5649 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5650echo "${ECHO_T}$ac_ct_CC" >&6; }
5651else
5652 { echo "$as_me:$LINENO: result: no" >&5
5653echo "${ECHO_T}no" >&6; }
5654fi
5655
5656
5657 test -n "$ac_ct_CC" && break
5658done
5659
5660 if test "x$ac_ct_CC" = x; then
5661 CC=""
5662 else
5663 case $cross_compiling:$ac_tool_warned in
5664yes:)
5665{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5666whose name does not start with the host triplet. If you think this
5667configuration is useful to you, please write to autoconf@gnu.org." >&5
5668echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5669whose name does not start with the host triplet. If you think this
5670configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5671ac_tool_warned=yes ;;
5672esac
5673 CC=$ac_ct_CC
5674 fi
5675fi
5676
5677
5678test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5679See \`config.log' for more details." >&5
5680echo "$as_me: error: no acceptable C compiler found in \$PATH
5681See \`config.log' for more details." >&2;}
5682 { (exit 1); exit 1; }; }
5683
5684# Provide some information about the compiler.
5685echo "$as_me:$LINENO: checking for C compiler version" >&5
5686ac_compiler=`set X $ac_compile; echo $2`
5687{ (ac_try="$ac_compiler --version >&5"
5688case "(($ac_try" in
5689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5690 *) ac_try_echo=$ac_try;;
5691esac
5692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5693 (eval "$ac_compiler --version >&5") 2>&5
5694 ac_status=$?
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }
5697{ (ac_try="$ac_compiler -v >&5"
5698case "(($ac_try" in
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5701esac
5702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703 (eval "$ac_compiler -v >&5") 2>&5
5704 ac_status=$?
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }
5707{ (ac_try="$ac_compiler -V >&5"
5708case "(($ac_try" in
5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710 *) ac_try_echo=$ac_try;;
5711esac
5712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713 (eval "$ac_compiler -V >&5") 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }
5717
5718{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5719echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5720if test "${ac_cv_c_compiler_gnu+set}" = set; then
5721 echo $ECHO_N "(cached) $ECHO_C" >&6
5722else
5723 cat >conftest.$ac_ext <<_ACEOF
5724/* confdefs.h. */
5725_ACEOF
5726cat confdefs.h >>conftest.$ac_ext
5727cat >>conftest.$ac_ext <<_ACEOF
5728/* end confdefs.h. */
5729
5730int
5731main ()
5732{
5733#ifndef __GNUC__
5734 choke me
5735#endif
5736
5737 ;
5738 return 0;
5739}
5740_ACEOF
5741rm -f conftest.$ac_objext
5742if { (ac_try="$ac_compile"
5743case "(($ac_try" in
5744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5745 *) ac_try_echo=$ac_try;;
5746esac
5747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5748 (eval "$ac_compile") 2>conftest.er1
5749 ac_status=$?
5750 grep -v '^ *+' conftest.er1 >conftest.err
5751 rm -f conftest.er1
5752 cat conftest.err >&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005754 (exit $ac_status); } &&
5755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5756 { (case "(($ac_try" in
5757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5758 *) ac_try_echo=$ac_try;;
5759esac
5760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5761 (eval "$ac_try") 2>&5
5762 ac_status=$?
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }; } &&
5765 { ac_try='test -s conftest.$ac_objext'
5766 { (case "(($ac_try" in
5767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5768 *) ac_try_echo=$ac_try;;
5769esac
5770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5771 (eval "$ac_try") 2>&5
5772 ac_status=$?
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005775 ac_compiler_gnu=yes
5776else
5777 echo "$as_me: failed program was:" >&5
5778sed 's/^/| /' conftest.$ac_ext >&5
5779
5780 ac_compiler_gnu=no
5781fi
5782
5783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5784ac_cv_c_compiler_gnu=$ac_compiler_gnu
5785
5786fi
5787{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5788echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5789GCC=`test $ac_compiler_gnu = yes && echo yes`
5790ac_test_CFLAGS=${CFLAGS+set}
5791ac_save_CFLAGS=$CFLAGS
5792{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5793echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5794if test "${ac_cv_prog_cc_g+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5796else
5797 ac_save_c_werror_flag=$ac_c_werror_flag
5798 ac_c_werror_flag=yes
5799 ac_cv_prog_cc_g=no
5800 CFLAGS="-g"
5801 cat >conftest.$ac_ext <<_ACEOF
5802/* confdefs.h. */
5803_ACEOF
5804cat confdefs.h >>conftest.$ac_ext
5805cat >>conftest.$ac_ext <<_ACEOF
5806/* end confdefs.h. */
5807
5808int
5809main ()
5810{
5811
5812 ;
5813 return 0;
5814}
5815_ACEOF
5816rm -f conftest.$ac_objext
5817if { (ac_try="$ac_compile"
5818case "(($ac_try" in
5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820 *) ac_try_echo=$ac_try;;
5821esac
5822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823 (eval "$ac_compile") 2>conftest.er1
5824 ac_status=$?
5825 grep -v '^ *+' conftest.er1 >conftest.err
5826 rm -f conftest.er1
5827 cat conftest.err >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005829 (exit $ac_status); } &&
5830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5831 { (case "(($ac_try" in
5832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833 *) ac_try_echo=$ac_try;;
5834esac
5835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836 (eval "$ac_try") 2>&5
5837 ac_status=$?
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; } &&
5840 { ac_try='test -s conftest.$ac_objext'
5841 { (case "(($ac_try" in
5842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843 *) ac_try_echo=$ac_try;;
5844esac
5845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846 (eval "$ac_try") 2>&5
5847 ac_status=$?
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005850 ac_cv_prog_cc_g=yes
5851else
5852 echo "$as_me: failed program was:" >&5
5853sed 's/^/| /' conftest.$ac_ext >&5
5854
5855 CFLAGS=""
5856 cat >conftest.$ac_ext <<_ACEOF
5857/* confdefs.h. */
5858_ACEOF
5859cat confdefs.h >>conftest.$ac_ext
5860cat >>conftest.$ac_ext <<_ACEOF
5861/* end confdefs.h. */
5862
5863int
5864main ()
5865{
5866
5867 ;
5868 return 0;
5869}
5870_ACEOF
5871rm -f conftest.$ac_objext
5872if { (ac_try="$ac_compile"
5873case "(($ac_try" in
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5876esac
5877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_compile") 2>conftest.er1
5879 ac_status=$?
5880 grep -v '^ *+' conftest.er1 >conftest.err
5881 rm -f conftest.er1
5882 cat conftest.err >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005884 (exit $ac_status); } &&
5885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5886 { (case "(($ac_try" in
5887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888 *) ac_try_echo=$ac_try;;
5889esac
5890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891 (eval "$ac_try") 2>&5
5892 ac_status=$?
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; } &&
5895 { ac_try='test -s conftest.$ac_objext'
5896 { (case "(($ac_try" in
5897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898 *) ac_try_echo=$ac_try;;
5899esac
5900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5901 (eval "$ac_try") 2>&5
5902 ac_status=$?
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005905 :
5906else
5907 echo "$as_me: failed program was:" >&5
5908sed 's/^/| /' conftest.$ac_ext >&5
5909
5910 ac_c_werror_flag=$ac_save_c_werror_flag
5911 CFLAGS="-g"
5912 cat >conftest.$ac_ext <<_ACEOF
5913/* confdefs.h. */
5914_ACEOF
5915cat confdefs.h >>conftest.$ac_ext
5916cat >>conftest.$ac_ext <<_ACEOF
5917/* end confdefs.h. */
5918
5919int
5920main ()
5921{
5922
5923 ;
5924 return 0;
5925}
5926_ACEOF
5927rm -f conftest.$ac_objext
5928if { (ac_try="$ac_compile"
5929case "(($ac_try" in
5930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5931 *) ac_try_echo=$ac_try;;
5932esac
5933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5934 (eval "$ac_compile") 2>conftest.er1
5935 ac_status=$?
5936 grep -v '^ *+' conftest.er1 >conftest.err
5937 rm -f conftest.er1
5938 cat conftest.err >&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005940 (exit $ac_status); } &&
5941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5942 { (case "(($ac_try" in
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5945esac
5946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947 (eval "$ac_try") 2>&5
5948 ac_status=$?
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; } &&
5951 { ac_try='test -s conftest.$ac_objext'
5952 { (case "(($ac_try" in
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5955esac
5956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957 (eval "$ac_try") 2>&5
5958 ac_status=$?
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005961 ac_cv_prog_cc_g=yes
5962else
5963 echo "$as_me: failed program was:" >&5
5964sed 's/^/| /' conftest.$ac_ext >&5
5965
5966
5967fi
5968
5969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5970fi
5971
5972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5973fi
5974
5975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5976 ac_c_werror_flag=$ac_save_c_werror_flag
5977fi
5978{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5979echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5980if test "$ac_test_CFLAGS" = set; then
5981 CFLAGS=$ac_save_CFLAGS
5982elif test $ac_cv_prog_cc_g = yes; then
5983 if test "$GCC" = yes; then
5984 CFLAGS="-g -O2"
5985 else
5986 CFLAGS="-g"
5987 fi
5988else
5989 if test "$GCC" = yes; then
5990 CFLAGS="-O2"
5991 else
5992 CFLAGS=
5993 fi
5994fi
5995{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5996echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5997if test "${ac_cv_prog_cc_c89+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
5999else
6000 ac_cv_prog_cc_c89=no
6001ac_save_CC=$CC
6002cat >conftest.$ac_ext <<_ACEOF
6003/* confdefs.h. */
6004_ACEOF
6005cat confdefs.h >>conftest.$ac_ext
6006cat >>conftest.$ac_ext <<_ACEOF
6007/* end confdefs.h. */
6008#include <stdarg.h>
6009#include <stdio.h>
6010#include <sys/types.h>
6011#include <sys/stat.h>
6012/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6013struct buf { int x; };
6014FILE * (*rcsopen) (struct buf *, struct stat *, int);
6015static char *e (p, i)
6016 char **p;
6017 int i;
6018{
6019 return p[i];
6020}
6021static char *f (char * (*g) (char **, int), char **p, ...)
6022{
6023 char *s;
6024 va_list v;
6025 va_start (v,p);
6026 s = g (p, va_arg (v,int));
6027 va_end (v);
6028 return s;
6029}
6030
6031/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6032 function prototypes and stuff, but not '\xHH' hex character constants.
6033 These don't provoke an error unfortunately, instead are silently treated
6034 as 'x'. The following induces an error, until -std is added to get
6035 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6036 array size at least. It's necessary to write '\x00'==0 to get something
6037 that's true only with -std. */
6038int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6039
6040/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6041 inside strings and character constants. */
6042#define FOO(x) 'x'
6043int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6044
6045int test (int i, double x);
6046struct s1 {int (*f) (int a);};
6047struct s2 {int (*f) (double a);};
6048int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6049int argc;
6050char **argv;
6051int
6052main ()
6053{
6054return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6055 ;
6056 return 0;
6057}
6058_ACEOF
6059for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6060 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6061do
6062 CC="$ac_save_CC $ac_arg"
6063 rm -f conftest.$ac_objext
6064if { (ac_try="$ac_compile"
6065case "(($ac_try" in
6066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6067 *) ac_try_echo=$ac_try;;
6068esac
6069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6070 (eval "$ac_compile") 2>conftest.er1
6071 ac_status=$?
6072 grep -v '^ *+' conftest.er1 >conftest.err
6073 rm -f conftest.er1
6074 cat conftest.err >&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006076 (exit $ac_status); } &&
6077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6078 { (case "(($ac_try" in
6079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6080 *) ac_try_echo=$ac_try;;
6081esac
6082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083 (eval "$ac_try") 2>&5
6084 ac_status=$?
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; } &&
6087 { ac_try='test -s conftest.$ac_objext'
6088 { (case "(($ac_try" in
6089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090 *) ac_try_echo=$ac_try;;
6091esac
6092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6093 (eval "$ac_try") 2>&5
6094 ac_status=$?
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006097 ac_cv_prog_cc_c89=$ac_arg
6098else
6099 echo "$as_me: failed program was:" >&5
6100sed 's/^/| /' conftest.$ac_ext >&5
6101
6102
6103fi
6104
6105rm -f core conftest.err conftest.$ac_objext
6106 test "x$ac_cv_prog_cc_c89" != "xno" && break
6107done
6108rm -f conftest.$ac_ext
6109CC=$ac_save_CC
6110
6111fi
6112# AC_CACHE_VAL
6113case "x$ac_cv_prog_cc_c89" in
6114 x)
6115 { echo "$as_me:$LINENO: result: none needed" >&5
6116echo "${ECHO_T}none needed" >&6; } ;;
6117 xno)
6118 { echo "$as_me:$LINENO: result: unsupported" >&5
6119echo "${ECHO_T}unsupported" >&6; } ;;
6120 *)
6121 CC="$CC $ac_cv_prog_cc_c89"
6122 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6123echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6124esac
6125
6126
6127ac_ext=c
6128ac_cpp='$CPP $CPPFLAGS'
6129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6131ac_compiler_gnu=$ac_cv_c_compiler_gnu
6132
6133ac_ext=cpp
6134ac_cpp='$CXXCPP $CPPFLAGS'
6135ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6136ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6137ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6138if test -z "$CXX"; then
6139 if test -n "$CCC"; then
6140 CXX=$CCC
6141 else
6142 if test -n "$ac_tool_prefix"; then
6143 for ac_prog in g++
6144 do
6145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6146set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6147{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6149if test "${ac_cv_prog_CXX+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
6151else
6152 if test -n "$CXX"; then
6153 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6154else
6155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156for as_dir in $PATH
6157do
6158 IFS=$as_save_IFS
6159 test -z "$as_dir" && as_dir=.
6160 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006161 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 +00006162 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6164 break 2
6165 fi
6166done
6167done
6168IFS=$as_save_IFS
6169
6170fi
6171fi
6172CXX=$ac_cv_prog_CXX
6173if test -n "$CXX"; then
6174 { echo "$as_me:$LINENO: result: $CXX" >&5
6175echo "${ECHO_T}$CXX" >&6; }
6176else
6177 { echo "$as_me:$LINENO: result: no" >&5
6178echo "${ECHO_T}no" >&6; }
6179fi
6180
6181
6182 test -n "$CXX" && break
6183 done
6184fi
6185if test -z "$CXX"; then
6186 ac_ct_CXX=$CXX
6187 for ac_prog in g++
6188do
6189 # Extract the first word of "$ac_prog", so it can be a program name with args.
6190set dummy $ac_prog; ac_word=$2
6191{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6193if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6195else
6196 if test -n "$ac_ct_CXX"; then
6197 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6198else
6199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200for as_dir in $PATH
6201do
6202 IFS=$as_save_IFS
6203 test -z "$as_dir" && as_dir=.
6204 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006205 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 +00006206 ac_cv_prog_ac_ct_CXX="$ac_prog"
6207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6208 break 2
6209 fi
6210done
6211done
6212IFS=$as_save_IFS
6213
6214fi
6215fi
6216ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6217if test -n "$ac_ct_CXX"; then
6218 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6219echo "${ECHO_T}$ac_ct_CXX" >&6; }
6220else
6221 { echo "$as_me:$LINENO: result: no" >&5
6222echo "${ECHO_T}no" >&6; }
6223fi
6224
6225
6226 test -n "$ac_ct_CXX" && break
6227done
6228
6229 if test "x$ac_ct_CXX" = x; then
6230 CXX="g++"
6231 else
6232 case $cross_compiling:$ac_tool_warned in
6233yes:)
6234{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6235whose name does not start with the host triplet. If you think this
6236configuration is useful to you, please write to autoconf@gnu.org." >&5
6237echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6238whose name does not start with the host triplet. If you think this
6239configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6240ac_tool_warned=yes ;;
6241esac
6242 CXX=$ac_ct_CXX
6243 fi
6244fi
6245
6246 fi
6247fi
6248# Provide some information about the compiler.
6249echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6250ac_compiler=`set X $ac_compile; echo $2`
6251{ (ac_try="$ac_compiler --version >&5"
6252case "(($ac_try" in
6253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6254 *) ac_try_echo=$ac_try;;
6255esac
6256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6257 (eval "$ac_compiler --version >&5") 2>&5
6258 ac_status=$?
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }
6261{ (ac_try="$ac_compiler -v >&5"
6262case "(($ac_try" in
6263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6264 *) ac_try_echo=$ac_try;;
6265esac
6266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6267 (eval "$ac_compiler -v >&5") 2>&5
6268 ac_status=$?
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }
6271{ (ac_try="$ac_compiler -V >&5"
6272case "(($ac_try" in
6273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6274 *) ac_try_echo=$ac_try;;
6275esac
6276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6277 (eval "$ac_compiler -V >&5") 2>&5
6278 ac_status=$?
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }
6281
6282{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6283echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6284if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6286else
6287 cat >conftest.$ac_ext <<_ACEOF
6288/* confdefs.h. */
6289_ACEOF
6290cat confdefs.h >>conftest.$ac_ext
6291cat >>conftest.$ac_ext <<_ACEOF
6292/* end confdefs.h. */
6293
6294int
6295main ()
6296{
6297#ifndef __GNUC__
6298 choke me
6299#endif
6300
6301 ;
6302 return 0;
6303}
6304_ACEOF
6305rm -f conftest.$ac_objext
6306if { (ac_try="$ac_compile"
6307case "(($ac_try" in
6308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6309 *) ac_try_echo=$ac_try;;
6310esac
6311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6312 (eval "$ac_compile") 2>conftest.er1
6313 ac_status=$?
6314 grep -v '^ *+' conftest.er1 >conftest.err
6315 rm -f conftest.er1
6316 cat conftest.err >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006318 (exit $ac_status); } &&
6319 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6320 { (case "(($ac_try" in
6321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6322 *) ac_try_echo=$ac_try;;
6323esac
6324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6325 (eval "$ac_try") 2>&5
6326 ac_status=$?
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; } &&
6329 { ac_try='test -s conftest.$ac_objext'
6330 { (case "(($ac_try" in
6331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332 *) ac_try_echo=$ac_try;;
6333esac
6334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335 (eval "$ac_try") 2>&5
6336 ac_status=$?
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006339 ac_compiler_gnu=yes
6340else
6341 echo "$as_me: failed program was:" >&5
6342sed 's/^/| /' conftest.$ac_ext >&5
6343
6344 ac_compiler_gnu=no
6345fi
6346
6347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6348ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6349
6350fi
6351{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6352echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6353GXX=`test $ac_compiler_gnu = yes && echo yes`
6354ac_test_CXXFLAGS=${CXXFLAGS+set}
6355ac_save_CXXFLAGS=$CXXFLAGS
6356{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6357echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6358if test "${ac_cv_prog_cxx_g+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6360else
6361 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6362 ac_cxx_werror_flag=yes
6363 ac_cv_prog_cxx_g=no
6364 CXXFLAGS="-g"
6365 cat >conftest.$ac_ext <<_ACEOF
6366/* confdefs.h. */
6367_ACEOF
6368cat confdefs.h >>conftest.$ac_ext
6369cat >>conftest.$ac_ext <<_ACEOF
6370/* end confdefs.h. */
6371
6372int
6373main ()
6374{
6375
6376 ;
6377 return 0;
6378}
6379_ACEOF
6380rm -f conftest.$ac_objext
6381if { (ac_try="$ac_compile"
6382case "(($ac_try" in
6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6385esac
6386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387 (eval "$ac_compile") 2>conftest.er1
6388 ac_status=$?
6389 grep -v '^ *+' conftest.er1 >conftest.err
6390 rm -f conftest.er1
6391 cat conftest.err >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006393 (exit $ac_status); } &&
6394 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6395 { (case "(($ac_try" in
6396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6397 *) ac_try_echo=$ac_try;;
6398esac
6399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6400 (eval "$ac_try") 2>&5
6401 ac_status=$?
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; } &&
6404 { ac_try='test -s conftest.$ac_objext'
6405 { (case "(($ac_try" in
6406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407 *) ac_try_echo=$ac_try;;
6408esac
6409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6410 (eval "$ac_try") 2>&5
6411 ac_status=$?
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006414 ac_cv_prog_cxx_g=yes
6415else
6416 echo "$as_me: failed program was:" >&5
6417sed 's/^/| /' conftest.$ac_ext >&5
6418
6419 CXXFLAGS=""
6420 cat >conftest.$ac_ext <<_ACEOF
6421/* confdefs.h. */
6422_ACEOF
6423cat confdefs.h >>conftest.$ac_ext
6424cat >>conftest.$ac_ext <<_ACEOF
6425/* end confdefs.h. */
6426
6427int
6428main ()
6429{
6430
6431 ;
6432 return 0;
6433}
6434_ACEOF
6435rm -f conftest.$ac_objext
6436if { (ac_try="$ac_compile"
6437case "(($ac_try" in
6438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439 *) ac_try_echo=$ac_try;;
6440esac
6441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6442 (eval "$ac_compile") 2>conftest.er1
6443 ac_status=$?
6444 grep -v '^ *+' conftest.er1 >conftest.err
6445 rm -f conftest.er1
6446 cat conftest.err >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006448 (exit $ac_status); } &&
6449 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6450 { (case "(($ac_try" in
6451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6452 *) ac_try_echo=$ac_try;;
6453esac
6454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6455 (eval "$ac_try") 2>&5
6456 ac_status=$?
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); }; } &&
6459 { ac_try='test -s conftest.$ac_objext'
6460 { (case "(($ac_try" in
6461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6462 *) ac_try_echo=$ac_try;;
6463esac
6464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6465 (eval "$ac_try") 2>&5
6466 ac_status=$?
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006469 :
6470else
6471 echo "$as_me: failed program was:" >&5
6472sed 's/^/| /' conftest.$ac_ext >&5
6473
6474 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6475 CXXFLAGS="-g"
6476 cat >conftest.$ac_ext <<_ACEOF
6477/* confdefs.h. */
6478_ACEOF
6479cat confdefs.h >>conftest.$ac_ext
6480cat >>conftest.$ac_ext <<_ACEOF
6481/* end confdefs.h. */
6482
6483int
6484main ()
6485{
6486
6487 ;
6488 return 0;
6489}
6490_ACEOF
6491rm -f conftest.$ac_objext
6492if { (ac_try="$ac_compile"
6493case "(($ac_try" in
6494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6495 *) ac_try_echo=$ac_try;;
6496esac
6497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6498 (eval "$ac_compile") 2>conftest.er1
6499 ac_status=$?
6500 grep -v '^ *+' conftest.er1 >conftest.err
6501 rm -f conftest.er1
6502 cat conftest.err >&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006504 (exit $ac_status); } &&
6505 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6506 { (case "(($ac_try" in
6507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6508 *) ac_try_echo=$ac_try;;
6509esac
6510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6511 (eval "$ac_try") 2>&5
6512 ac_status=$?
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); }; } &&
6515 { ac_try='test -s conftest.$ac_objext'
6516 { (case "(($ac_try" in
6517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6518 *) ac_try_echo=$ac_try;;
6519esac
6520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6521 (eval "$ac_try") 2>&5
6522 ac_status=$?
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006525 ac_cv_prog_cxx_g=yes
6526else
6527 echo "$as_me: failed program was:" >&5
6528sed 's/^/| /' conftest.$ac_ext >&5
6529
6530
6531fi
6532
6533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6534fi
6535
6536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6537fi
6538
6539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6540 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6541fi
6542{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6543echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6544if test "$ac_test_CXXFLAGS" = set; then
6545 CXXFLAGS=$ac_save_CXXFLAGS
6546elif test $ac_cv_prog_cxx_g = yes; then
6547 if test "$GXX" = yes; then
6548 CXXFLAGS="-g -O2"
6549 else
6550 CXXFLAGS="-g"
6551 fi
6552else
6553 if test "$GXX" = yes; then
6554 CXXFLAGS="-O2"
6555 else
6556 CXXFLAGS=
6557 fi
6558fi
6559ac_ext=c
6560ac_cpp='$CPP $CPPFLAGS'
6561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6563ac_compiler_gnu=$ac_cv_c_compiler_gnu
6564
Reid Spencera773bd52006-08-04 18:18:08 +00006565
6566{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6567echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6568if test "${lt_cv_path_NM+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6570else
6571 if test -n "$NM"; then
6572 # Let the user override the test.
6573 lt_cv_path_NM="$NM"
6574else
6575 lt_nm_to_check="${ac_tool_prefix}nm"
6576 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6577 lt_nm_to_check="$lt_nm_to_check nm"
6578 fi
6579 for lt_tmp_nm in $lt_nm_to_check; do
6580 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6581 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6582 IFS="$lt_save_ifs"
6583 test -z "$ac_dir" && ac_dir=.
6584 tmp_nm="$ac_dir/$lt_tmp_nm"
6585 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6586 # Check to see if the nm accepts a BSD-compat flag.
6587 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6588 # nm: unknown option "B" ignored
6589 # Tru64's nm complains that /dev/null is an invalid object file
6590 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6591 */dev/null* | *'Invalid file or object type'*)
6592 lt_cv_path_NM="$tmp_nm -B"
6593 break
6594 ;;
6595 *)
6596 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6597 */dev/null*)
6598 lt_cv_path_NM="$tmp_nm -p"
6599 break
6600 ;;
6601 *)
6602 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6603 continue # so that we can try to find one that supports BSD flags
6604 ;;
6605 esac
6606 ;;
6607 esac
6608 fi
6609 done
6610 IFS="$lt_save_ifs"
6611 done
6612 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6613fi
6614fi
6615{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6616echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6617NM="$lt_cv_path_NM"
6618
6619
6620
6621{ echo "$as_me:$LINENO: checking for GNU make" >&5
6622echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6623if test "${llvm_cv_gnu_make_command+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6625else
6626 llvm_cv_gnu_make_command=''
6627 for a in "$MAKE" make gmake gnumake ; do
6628 if test -z "$a" ; then continue ; fi ;
6629 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6630 then
6631 llvm_cv_gnu_make_command=$a ;
6632 break;
6633 fi
6634 done
6635fi
6636{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6637echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6638 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6639 ifGNUmake='' ;
6640 else
6641 ifGNUmake='#' ;
6642 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6643echo "${ECHO_T}\"Not found\"" >&6; };
6644 fi
6645
6646
6647{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6648echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6649LN_S=$as_ln_s
6650if test "$LN_S" = "ln -s"; then
6651 { echo "$as_me:$LINENO: result: yes" >&5
6652echo "${ECHO_T}yes" >&6; }
6653else
6654 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6655echo "${ECHO_T}no, using $LN_S" >&6; }
6656fi
6657
6658# Extract the first word of "cmp", so it can be a program name with args.
6659set dummy cmp; ac_word=$2
6660{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6662if test "${ac_cv_path_CMP+set}" = set; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
6664else
6665 case $CMP in
6666 [\\/]* | ?:[\\/]*)
6667 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6668 ;;
6669 *)
6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671for as_dir in $PATH
6672do
6673 IFS=$as_save_IFS
6674 test -z "$as_dir" && as_dir=.
6675 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006676 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 +00006677 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6679 break 2
6680 fi
6681done
6682done
6683IFS=$as_save_IFS
6684
6685 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6686 ;;
6687esac
6688fi
6689CMP=$ac_cv_path_CMP
6690if test -n "$CMP"; then
6691 { echo "$as_me:$LINENO: result: $CMP" >&5
6692echo "${ECHO_T}$CMP" >&6; }
6693else
6694 { echo "$as_me:$LINENO: result: no" >&5
6695echo "${ECHO_T}no" >&6; }
6696fi
6697
6698
6699# Extract the first word of "cp", so it can be a program name with args.
6700set dummy cp; ac_word=$2
6701{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6703if test "${ac_cv_path_CP+set}" = set; then
6704 echo $ECHO_N "(cached) $ECHO_C" >&6
6705else
6706 case $CP in
6707 [\\/]* | ?:[\\/]*)
6708 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6709 ;;
6710 *)
6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712for as_dir in $PATH
6713do
6714 IFS=$as_save_IFS
6715 test -z "$as_dir" && as_dir=.
6716 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006717 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 +00006718 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6720 break 2
6721 fi
6722done
6723done
6724IFS=$as_save_IFS
6725
6726 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6727 ;;
6728esac
6729fi
6730CP=$ac_cv_path_CP
6731if test -n "$CP"; then
6732 { echo "$as_me:$LINENO: result: $CP" >&5
6733echo "${ECHO_T}$CP" >&6; }
6734else
6735 { echo "$as_me:$LINENO: result: no" >&5
6736echo "${ECHO_T}no" >&6; }
6737fi
6738
6739
6740# Extract the first word of "date", so it can be a program name with args.
6741set dummy date; ac_word=$2
6742{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6744if test "${ac_cv_path_DATE+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6746else
6747 case $DATE in
6748 [\\/]* | ?:[\\/]*)
6749 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6750 ;;
6751 *)
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753for as_dir in $PATH
6754do
6755 IFS=$as_save_IFS
6756 test -z "$as_dir" && as_dir=.
6757 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006758 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 +00006759 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 break 2
6762 fi
6763done
6764done
6765IFS=$as_save_IFS
6766
6767 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6768 ;;
6769esac
6770fi
6771DATE=$ac_cv_path_DATE
6772if test -n "$DATE"; then
6773 { echo "$as_me:$LINENO: result: $DATE" >&5
6774echo "${ECHO_T}$DATE" >&6; }
6775else
6776 { echo "$as_me:$LINENO: result: no" >&5
6777echo "${ECHO_T}no" >&6; }
6778fi
6779
6780
6781# Extract the first word of "find", so it can be a program name with args.
6782set dummy find; ac_word=$2
6783{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6785if test "${ac_cv_path_FIND+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
6787else
6788 case $FIND in
6789 [\\/]* | ?:[\\/]*)
6790 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6791 ;;
6792 *)
6793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794for as_dir in $PATH
6795do
6796 IFS=$as_save_IFS
6797 test -z "$as_dir" && as_dir=.
6798 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006799 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 +00006800 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6802 break 2
6803 fi
6804done
6805done
6806IFS=$as_save_IFS
6807
6808 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6809 ;;
6810esac
6811fi
6812FIND=$ac_cv_path_FIND
6813if test -n "$FIND"; then
6814 { echo "$as_me:$LINENO: result: $FIND" >&5
6815echo "${ECHO_T}$FIND" >&6; }
6816else
6817 { echo "$as_me:$LINENO: result: no" >&5
6818echo "${ECHO_T}no" >&6; }
6819fi
6820
6821
6822# Extract the first word of "grep", so it can be a program name with args.
6823set dummy grep; ac_word=$2
6824{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6826if test "${ac_cv_path_GREP+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6828else
6829 case $GREP in
6830 [\\/]* | ?:[\\/]*)
6831 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6832 ;;
6833 *)
6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835for as_dir in $PATH
6836do
6837 IFS=$as_save_IFS
6838 test -z "$as_dir" && as_dir=.
6839 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006840 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 +00006841 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6843 break 2
6844 fi
6845done
6846done
6847IFS=$as_save_IFS
6848
6849 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6850 ;;
6851esac
6852fi
6853GREP=$ac_cv_path_GREP
6854if test -n "$GREP"; then
6855 { echo "$as_me:$LINENO: result: $GREP" >&5
6856echo "${ECHO_T}$GREP" >&6; }
6857else
6858 { echo "$as_me:$LINENO: result: no" >&5
6859echo "${ECHO_T}no" >&6; }
6860fi
6861
6862
6863# Extract the first word of "mkdir", so it can be a program name with args.
6864set dummy mkdir; ac_word=$2
6865{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6867if test "${ac_cv_path_MKDIR+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6869else
6870 case $MKDIR in
6871 [\\/]* | ?:[\\/]*)
6872 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6873 ;;
6874 *)
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876for as_dir in $PATH
6877do
6878 IFS=$as_save_IFS
6879 test -z "$as_dir" && as_dir=.
6880 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006881 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 +00006882 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6884 break 2
6885 fi
6886done
6887done
6888IFS=$as_save_IFS
6889
6890 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6891 ;;
6892esac
6893fi
6894MKDIR=$ac_cv_path_MKDIR
6895if test -n "$MKDIR"; then
6896 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6897echo "${ECHO_T}$MKDIR" >&6; }
6898else
6899 { echo "$as_me:$LINENO: result: no" >&5
6900echo "${ECHO_T}no" >&6; }
6901fi
6902
6903
6904# Extract the first word of "mv", so it can be a program name with args.
6905set dummy mv; ac_word=$2
6906{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6908if test "${ac_cv_path_MV+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6910else
6911 case $MV in
6912 [\\/]* | ?:[\\/]*)
6913 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6914 ;;
6915 *)
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917for as_dir in $PATH
6918do
6919 IFS=$as_save_IFS
6920 test -z "$as_dir" && as_dir=.
6921 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006922 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 +00006923 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6925 break 2
6926 fi
6927done
6928done
6929IFS=$as_save_IFS
6930
6931 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6932 ;;
6933esac
6934fi
6935MV=$ac_cv_path_MV
6936if test -n "$MV"; then
6937 { echo "$as_me:$LINENO: result: $MV" >&5
6938echo "${ECHO_T}$MV" >&6; }
6939else
6940 { echo "$as_me:$LINENO: result: no" >&5
6941echo "${ECHO_T}no" >&6; }
6942fi
6943
6944
6945if test -n "$ac_tool_prefix"; then
6946 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6947set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6948{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6950if test "${ac_cv_prog_RANLIB+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6952else
6953 if test -n "$RANLIB"; then
6954 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6955else
6956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957for as_dir in $PATH
6958do
6959 IFS=$as_save_IFS
6960 test -z "$as_dir" && as_dir=.
6961 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006962 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 +00006963 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6965 break 2
6966 fi
6967done
6968done
6969IFS=$as_save_IFS
6970
6971fi
6972fi
6973RANLIB=$ac_cv_prog_RANLIB
6974if test -n "$RANLIB"; then
6975 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6976echo "${ECHO_T}$RANLIB" >&6; }
6977else
6978 { echo "$as_me:$LINENO: result: no" >&5
6979echo "${ECHO_T}no" >&6; }
6980fi
6981
6982
6983fi
6984if test -z "$ac_cv_prog_RANLIB"; then
6985 ac_ct_RANLIB=$RANLIB
6986 # Extract the first word of "ranlib", so it can be a program name with args.
6987set dummy ranlib; ac_word=$2
6988{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6990if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6992else
6993 if test -n "$ac_ct_RANLIB"; then
6994 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6995else
6996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997for as_dir in $PATH
6998do
6999 IFS=$as_save_IFS
7000 test -z "$as_dir" && as_dir=.
7001 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007002 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 +00007003 ac_cv_prog_ac_ct_RANLIB="ranlib"
7004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7005 break 2
7006 fi
7007done
7008done
7009IFS=$as_save_IFS
7010
7011fi
7012fi
7013ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7014if test -n "$ac_ct_RANLIB"; then
7015 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7016echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7017else
7018 { echo "$as_me:$LINENO: result: no" >&5
7019echo "${ECHO_T}no" >&6; }
7020fi
7021
7022 if test "x$ac_ct_RANLIB" = x; then
7023 RANLIB=":"
7024 else
7025 case $cross_compiling:$ac_tool_warned in
7026yes:)
7027{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7028whose name does not start with the host triplet. If you think this
7029configuration is useful to you, please write to autoconf@gnu.org." >&5
7030echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7031whose name does not start with the host triplet. If you think this
7032configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7033ac_tool_warned=yes ;;
7034esac
7035 RANLIB=$ac_ct_RANLIB
7036 fi
7037else
7038 RANLIB="$ac_cv_prog_RANLIB"
7039fi
7040
7041# Extract the first word of "rm", so it can be a program name with args.
7042set dummy rm; ac_word=$2
7043{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7045if test "${ac_cv_path_RM+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7047else
7048 case $RM in
7049 [\\/]* | ?:[\\/]*)
7050 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7051 ;;
7052 *)
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054for as_dir in $PATH
7055do
7056 IFS=$as_save_IFS
7057 test -z "$as_dir" && as_dir=.
7058 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007059 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 +00007060 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7062 break 2
7063 fi
7064done
7065done
7066IFS=$as_save_IFS
7067
7068 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7069 ;;
7070esac
7071fi
7072RM=$ac_cv_path_RM
7073if test -n "$RM"; then
7074 { echo "$as_me:$LINENO: result: $RM" >&5
7075echo "${ECHO_T}$RM" >&6; }
7076else
7077 { echo "$as_me:$LINENO: result: no" >&5
7078echo "${ECHO_T}no" >&6; }
7079fi
7080
7081
7082# Extract the first word of "sed", so it can be a program name with args.
7083set dummy sed; ac_word=$2
7084{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7086if test "${ac_cv_path_SED+set}" = set; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
7088else
7089 case $SED in
7090 [\\/]* | ?:[\\/]*)
7091 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7092 ;;
7093 *)
7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095for as_dir in $PATH
7096do
7097 IFS=$as_save_IFS
7098 test -z "$as_dir" && as_dir=.
7099 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007100 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 +00007101 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7103 break 2
7104 fi
7105done
7106done
7107IFS=$as_save_IFS
7108
7109 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7110 ;;
7111esac
7112fi
7113SED=$ac_cv_path_SED
7114if test -n "$SED"; then
7115 { echo "$as_me:$LINENO: result: $SED" >&5
7116echo "${ECHO_T}$SED" >&6; }
7117else
7118 { echo "$as_me:$LINENO: result: no" >&5
7119echo "${ECHO_T}no" >&6; }
7120fi
7121
7122
7123# Extract the first word of "tar", so it can be a program name with args.
7124set dummy tar; ac_word=$2
7125{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7127if test "${ac_cv_path_TAR+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7129else
7130 case $TAR in
7131 [\\/]* | ?:[\\/]*)
7132 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7133 ;;
7134 *)
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136for as_dir in $PATH
7137do
7138 IFS=$as_save_IFS
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007141 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 +00007142 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 break 2
7145 fi
7146done
7147done
7148IFS=$as_save_IFS
7149
7150 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7151 ;;
7152esac
7153fi
7154TAR=$ac_cv_path_TAR
7155if test -n "$TAR"; then
7156 { echo "$as_me:$LINENO: result: $TAR" >&5
7157echo "${ECHO_T}$TAR" >&6; }
7158else
7159 { echo "$as_me:$LINENO: result: no" >&5
7160echo "${ECHO_T}no" >&6; }
7161fi
7162
7163
7164# Extract the first word of "pwd", so it can be a program name with args.
7165set dummy pwd; ac_word=$2
7166{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7168if test "${ac_cv_path_BINPWD+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7170else
7171 case $BINPWD in
7172 [\\/]* | ?:[\\/]*)
7173 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7174 ;;
7175 *)
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177for as_dir in $PATH
7178do
7179 IFS=$as_save_IFS
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007182 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 +00007183 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7185 break 2
7186 fi
7187done
7188done
7189IFS=$as_save_IFS
7190
7191 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7192 ;;
7193esac
7194fi
7195BINPWD=$ac_cv_path_BINPWD
7196if test -n "$BINPWD"; then
7197 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7198echo "${ECHO_T}$BINPWD" >&6; }
7199else
7200 { echo "$as_me:$LINENO: result: no" >&5
7201echo "${ECHO_T}no" >&6; }
7202fi
7203
7204
7205
7206# Extract the first word of "Graphviz", so it can be a program name with args.
7207set dummy Graphviz; ac_word=$2
7208{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7210if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7212else
7213 case $GRAPHVIZ in
7214 [\\/]* | ?:[\\/]*)
7215 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7216 ;;
7217 *)
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219for as_dir in $PATH
7220do
7221 IFS=$as_save_IFS
7222 test -z "$as_dir" && as_dir=.
7223 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007224 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 +00007225 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 break 2
7228 fi
7229done
7230done
7231IFS=$as_save_IFS
7232
7233 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7234 ;;
7235esac
7236fi
7237GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7238if test -n "$GRAPHVIZ"; then
7239 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7240echo "${ECHO_T}$GRAPHVIZ" >&6; }
7241else
7242 { echo "$as_me:$LINENO: result: no" >&5
7243echo "${ECHO_T}no" >&6; }
7244fi
7245
7246
7247if test "$GRAPHVIZ" != "echo Graphviz" ; then
7248
7249cat >>confdefs.h <<\_ACEOF
7250#define HAVE_GRAPHVIZ 1
7251_ACEOF
7252
Jeff Cohen28783c32007-01-12 18:22:38 +00007253 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007254 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7255 fi
7256
7257cat >>confdefs.h <<_ACEOF
7258#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7259_ACEOF
7260
7261fi
7262# Extract the first word of "dot", so it can be a program name with args.
7263set dummy dot; ac_word=$2
7264{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7266if test "${ac_cv_path_DOT+set}" = set; then
7267 echo $ECHO_N "(cached) $ECHO_C" >&6
7268else
7269 case $DOT in
7270 [\\/]* | ?:[\\/]*)
7271 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7272 ;;
7273 *)
7274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275for as_dir in $PATH
7276do
7277 IFS=$as_save_IFS
7278 test -z "$as_dir" && as_dir=.
7279 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007280 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 +00007281 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7283 break 2
7284 fi
7285done
7286done
7287IFS=$as_save_IFS
7288
7289 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7290 ;;
7291esac
7292fi
7293DOT=$ac_cv_path_DOT
7294if test -n "$DOT"; then
7295 { echo "$as_me:$LINENO: result: $DOT" >&5
7296echo "${ECHO_T}$DOT" >&6; }
7297else
7298 { echo "$as_me:$LINENO: result: no" >&5
7299echo "${ECHO_T}no" >&6; }
7300fi
7301
7302
7303if test "$DOT" != "echo dot" ; then
7304
7305cat >>confdefs.h <<\_ACEOF
7306#define HAVE_DOT 1
7307_ACEOF
7308
Jeff Cohen28783c32007-01-12 18:22:38 +00007309 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007310 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7311 fi
7312
7313cat >>confdefs.h <<_ACEOF
7314#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7315_ACEOF
7316
7317fi
David Greenef0b9eff2009-07-09 17:16:26 +00007318# Extract the first word of "fdp", so it can be a program name with args.
7319set dummy fdp; ac_word=$2
7320{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7322if test "${ac_cv_path_FDP+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7324else
7325 case $FDP in
7326 [\\/]* | ?:[\\/]*)
7327 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7328 ;;
7329 *)
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331for as_dir in $PATH
7332do
7333 IFS=$as_save_IFS
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7337 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 break 2
7340 fi
7341done
7342done
7343IFS=$as_save_IFS
7344
7345 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7346 ;;
7347esac
7348fi
7349FDP=$ac_cv_path_FDP
7350if test -n "$FDP"; then
7351 { echo "$as_me:$LINENO: result: $FDP" >&5
7352echo "${ECHO_T}$FDP" >&6; }
7353else
7354 { echo "$as_me:$LINENO: result: no" >&5
7355echo "${ECHO_T}no" >&6; }
7356fi
7357
7358
7359if test "$FDP" != "echo fdp" ; then
7360
7361cat >>confdefs.h <<\_ACEOF
7362#define HAVE_FDP 1
7363_ACEOF
7364
7365 if test "$llvm_cv_os_type" = "MingW" ; then
7366 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7367 fi
7368
7369cat >>confdefs.h <<_ACEOF
7370#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7371_ACEOF
7372
7373fi
7374# Extract the first word of "neato", so it can be a program name with args.
7375set dummy neato; ac_word=$2
7376{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7378if test "${ac_cv_path_NEATO+set}" = set; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7380else
7381 case $NEATO in
7382 [\\/]* | ?:[\\/]*)
7383 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7384 ;;
7385 *)
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387for as_dir in $PATH
7388do
7389 IFS=$as_save_IFS
7390 test -z "$as_dir" && as_dir=.
7391 for ac_exec_ext in '' $ac_executable_extensions; do
7392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7393 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7395 break 2
7396 fi
7397done
7398done
7399IFS=$as_save_IFS
7400
7401 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7402 ;;
7403esac
7404fi
7405NEATO=$ac_cv_path_NEATO
7406if test -n "$NEATO"; then
7407 { echo "$as_me:$LINENO: result: $NEATO" >&5
7408echo "${ECHO_T}$NEATO" >&6; }
7409else
7410 { echo "$as_me:$LINENO: result: no" >&5
7411echo "${ECHO_T}no" >&6; }
7412fi
7413
7414
7415if test "$NEATO" != "echo neato" ; then
7416
7417cat >>confdefs.h <<\_ACEOF
7418#define HAVE_NEATO 1
7419_ACEOF
7420
7421 if test "$llvm_cv_os_type" = "MingW" ; then
7422 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7423 fi
7424
7425cat >>confdefs.h <<_ACEOF
7426#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7427_ACEOF
7428
7429fi
7430# Extract the first word of "twopi", so it can be a program name with args.
7431set dummy twopi; ac_word=$2
7432{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7434if test "${ac_cv_path_TWOPI+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7436else
7437 case $TWOPI in
7438 [\\/]* | ?:[\\/]*)
7439 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7440 ;;
7441 *)
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443for as_dir in $PATH
7444do
7445 IFS=$as_save_IFS
7446 test -z "$as_dir" && as_dir=.
7447 for ac_exec_ext in '' $ac_executable_extensions; do
7448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7449 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7451 break 2
7452 fi
7453done
7454done
7455IFS=$as_save_IFS
7456
7457 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7458 ;;
7459esac
7460fi
7461TWOPI=$ac_cv_path_TWOPI
7462if test -n "$TWOPI"; then
7463 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7464echo "${ECHO_T}$TWOPI" >&6; }
7465else
7466 { echo "$as_me:$LINENO: result: no" >&5
7467echo "${ECHO_T}no" >&6; }
7468fi
7469
7470
7471if test "$TWOPI" != "echo twopi" ; then
7472
7473cat >>confdefs.h <<\_ACEOF
7474#define HAVE_TWOPI 1
7475_ACEOF
7476
7477 if test "$llvm_cv_os_type" = "MingW" ; then
7478 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7479 fi
7480
7481cat >>confdefs.h <<_ACEOF
7482#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7483_ACEOF
7484
7485fi
7486# Extract the first word of "circo", so it can be a program name with args.
7487set dummy circo; ac_word=$2
7488{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7490if test "${ac_cv_path_CIRCO+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7492else
7493 case $CIRCO in
7494 [\\/]* | ?:[\\/]*)
7495 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7496 ;;
7497 *)
7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499for as_dir in $PATH
7500do
7501 IFS=$as_save_IFS
7502 test -z "$as_dir" && as_dir=.
7503 for ac_exec_ext in '' $ac_executable_extensions; do
7504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7505 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 break 2
7508 fi
7509done
7510done
7511IFS=$as_save_IFS
7512
7513 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7514 ;;
7515esac
7516fi
7517CIRCO=$ac_cv_path_CIRCO
7518if test -n "$CIRCO"; then
7519 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7520echo "${ECHO_T}$CIRCO" >&6; }
7521else
7522 { echo "$as_me:$LINENO: result: no" >&5
7523echo "${ECHO_T}no" >&6; }
7524fi
7525
7526
7527if test "$CIRCO" != "echo circo" ; then
7528
7529cat >>confdefs.h <<\_ACEOF
7530#define HAVE_CIRCO 1
7531_ACEOF
7532
7533 if test "$llvm_cv_os_type" = "MingW" ; then
7534 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7535 fi
7536
7537cat >>confdefs.h <<_ACEOF
7538#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7539_ACEOF
7540
7541fi
Reid Spencera773bd52006-08-04 18:18:08 +00007542for ac_prog in gv gsview32
7543do
7544 # Extract the first word of "$ac_prog", so it can be a program name with args.
7545set dummy $ac_prog; ac_word=$2
7546{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548if test "${ac_cv_path_GV+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7550else
7551 case $GV in
7552 [\\/]* | ?:[\\/]*)
7553 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7554 ;;
7555 *)
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557for as_dir in $PATH
7558do
7559 IFS=$as_save_IFS
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007562 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 +00007563 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 break 2
7566 fi
7567done
7568done
7569IFS=$as_save_IFS
7570
7571 ;;
7572esac
7573fi
7574GV=$ac_cv_path_GV
7575if test -n "$GV"; then
7576 { echo "$as_me:$LINENO: result: $GV" >&5
7577echo "${ECHO_T}$GV" >&6; }
7578else
7579 { echo "$as_me:$LINENO: result: no" >&5
7580echo "${ECHO_T}no" >&6; }
7581fi
7582
7583
7584 test -n "$GV" && break
7585done
7586test -n "$GV" || GV="echo gv"
7587
7588if test "$GV" != "echo gv" ; then
7589
7590cat >>confdefs.h <<\_ACEOF
7591#define HAVE_GV 1
7592_ACEOF
7593
Jeff Cohen28783c32007-01-12 18:22:38 +00007594 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007595 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7596 fi
7597
7598cat >>confdefs.h <<_ACEOF
7599#define LLVM_PATH_GV "$GV${EXEEXT}"
7600_ACEOF
7601
7602fi
7603# Extract the first word of "dotty", so it can be a program name with args.
7604set dummy dotty; ac_word=$2
7605{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7607if test "${ac_cv_path_DOTTY+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7609else
7610 case $DOTTY in
7611 [\\/]* | ?:[\\/]*)
7612 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7613 ;;
7614 *)
7615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616for as_dir in $PATH
7617do
7618 IFS=$as_save_IFS
7619 test -z "$as_dir" && as_dir=.
7620 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007621 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 +00007622 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7624 break 2
7625 fi
7626done
7627done
7628IFS=$as_save_IFS
7629
7630 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7631 ;;
7632esac
7633fi
7634DOTTY=$ac_cv_path_DOTTY
7635if test -n "$DOTTY"; then
7636 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7637echo "${ECHO_T}$DOTTY" >&6; }
7638else
7639 { echo "$as_me:$LINENO: result: no" >&5
7640echo "${ECHO_T}no" >&6; }
7641fi
7642
7643
7644if test "$DOTTY" != "echo dotty" ; then
7645
7646cat >>confdefs.h <<\_ACEOF
7647#define HAVE_DOTTY 1
7648_ACEOF
7649
Jeff Cohen28783c32007-01-12 18:22:38 +00007650 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007651 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7652 fi
7653
7654cat >>confdefs.h <<_ACEOF
7655#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7656_ACEOF
7657
7658fi
7659
7660
7661# Extract the first word of "perl", so it can be a program name with args.
7662set dummy perl; ac_word=$2
7663{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7665if test "${ac_cv_path_PERL+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7667else
7668 case $PERL in
7669 [\\/]* | ?:[\\/]*)
7670 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7671 ;;
7672 *)
7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674for as_dir in $PATH
7675do
7676 IFS=$as_save_IFS
7677 test -z "$as_dir" && as_dir=.
7678 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007679 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 +00007680 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7682 break 2
7683 fi
7684done
7685done
7686IFS=$as_save_IFS
7687
7688 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7689 ;;
7690esac
7691fi
7692PERL=$ac_cv_path_PERL
7693if test -n "$PERL"; then
7694 { echo "$as_me:$LINENO: result: $PERL" >&5
7695echo "${ECHO_T}$PERL" >&6; }
7696else
7697 { echo "$as_me:$LINENO: result: no" >&5
7698echo "${ECHO_T}no" >&6; }
7699fi
7700
7701
7702if test "$PERL" != "none"; then
7703 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7704echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7705 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7706 { echo "$as_me:$LINENO: result: yes" >&5
7707echo "${ECHO_T}yes" >&6; }
7708 else
7709 PERL=none
7710 { echo "$as_me:$LINENO: result: not found" >&5
7711echo "${ECHO_T}not found" >&6; }
7712 fi
7713fi
7714
7715
7716if test x"$PERL" = xnone; then
7717 HAVE_PERL=0
7718
Reid Spencer59807fa2007-05-17 18:11:03 +00007719 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7720echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7721 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007722else
7723 HAVE_PERL=1
7724
7725fi
7726
7727# Find a good install program. We prefer a C program (faster),
7728# so one script is as good as another. But avoid the broken or
7729# incompatible versions:
7730# SysV /etc/install, /usr/sbin/install
7731# SunOS /usr/etc/install
7732# IRIX /sbin/install
7733# AIX /bin/install
7734# AmigaOS /C/install, which installs bootblocks on floppy discs
7735# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7736# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7737# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7738# OS/2's system install, which has a completely different semantic
7739# ./install, which can be erroneously created by make from ./install.sh.
7740{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7741echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7742if test -z "$INSTALL"; then
7743if test "${ac_cv_path_install+set}" = set; then
7744 echo $ECHO_N "(cached) $ECHO_C" >&6
7745else
7746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747for as_dir in $PATH
7748do
7749 IFS=$as_save_IFS
7750 test -z "$as_dir" && as_dir=.
7751 # Account for people who put trailing slashes in PATH elements.
7752case $as_dir/ in
7753 ./ | .// | /cC/* | \
7754 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7755 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7756 /usr/ucb/* ) ;;
7757 *)
7758 # OSF1 and SCO ODT 3.0 have their own names for install.
7759 # Don't use installbsd from OSF since it installs stuff as root
7760 # by default.
7761 for ac_prog in ginstall scoinst install; do
7762 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007763 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 +00007764 if test $ac_prog = install &&
7765 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7766 # AIX install. It has an incompatible calling convention.
7767 :
7768 elif test $ac_prog = install &&
7769 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7770 # program-specific install script used by HP pwplus--don't use.
7771 :
7772 else
7773 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7774 break 3
7775 fi
7776 fi
7777 done
7778 done
7779 ;;
7780esac
7781done
7782IFS=$as_save_IFS
7783
7784
7785fi
7786 if test "${ac_cv_path_install+set}" = set; then
7787 INSTALL=$ac_cv_path_install
7788 else
7789 # As a last resort, use the slow shell script. Don't cache a
7790 # value for INSTALL within a source directory, because that will
7791 # break other packages using the cache if that directory is
7792 # removed, or if the value is a relative name.
7793 INSTALL=$ac_install_sh
7794 fi
7795fi
7796{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7797echo "${ECHO_T}$INSTALL" >&6; }
7798
7799# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7800# It thinks the first close brace ends the variable substitution.
7801test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7802
7803test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7804
7805test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7806
7807
7808# Extract the first word of "bzip2", so it can be a program name with args.
7809set dummy bzip2; ac_word=$2
7810{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7812if test "${ac_cv_path_BZIP2+set}" = set; then
7813 echo $ECHO_N "(cached) $ECHO_C" >&6
7814else
7815 case $BZIP2 in
7816 [\\/]* | ?:[\\/]*)
7817 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7818 ;;
7819 *)
7820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821for as_dir in $PATH
7822do
7823 IFS=$as_save_IFS
7824 test -z "$as_dir" && as_dir=.
7825 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007826 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 +00007827 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7829 break 2
7830 fi
7831done
7832done
7833IFS=$as_save_IFS
7834
Reid Spencera773bd52006-08-04 18:18:08 +00007835 ;;
7836esac
7837fi
7838BZIP2=$ac_cv_path_BZIP2
7839if test -n "$BZIP2"; then
7840 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7841echo "${ECHO_T}$BZIP2" >&6; }
7842else
7843 { echo "$as_me:$LINENO: result: no" >&5
7844echo "${ECHO_T}no" >&6; }
7845fi
7846
7847
7848# Extract the first word of "doxygen", so it can be a program name with args.
7849set dummy doxygen; ac_word=$2
7850{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7852if test "${ac_cv_path_DOXYGEN+set}" = set; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
7854else
7855 case $DOXYGEN in
7856 [\\/]* | ?:[\\/]*)
7857 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7858 ;;
7859 *)
7860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7861for as_dir in $PATH
7862do
7863 IFS=$as_save_IFS
7864 test -z "$as_dir" && as_dir=.
7865 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007866 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 +00007867 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7869 break 2
7870 fi
7871done
7872done
7873IFS=$as_save_IFS
7874
Reid Spencera773bd52006-08-04 18:18:08 +00007875 ;;
7876esac
7877fi
7878DOXYGEN=$ac_cv_path_DOXYGEN
7879if test -n "$DOXYGEN"; then
7880 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7881echo "${ECHO_T}$DOXYGEN" >&6; }
7882else
7883 { echo "$as_me:$LINENO: result: no" >&5
7884echo "${ECHO_T}no" >&6; }
7885fi
7886
7887
Reid Spencera773bd52006-08-04 18:18:08 +00007888# Extract the first word of "groff", so it can be a program name with args.
7889set dummy groff; ac_word=$2
7890{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7892if test "${ac_cv_path_GROFF+set}" = set; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
7894else
7895 case $GROFF in
7896 [\\/]* | ?:[\\/]*)
7897 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7898 ;;
7899 *)
7900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7901for as_dir in $PATH
7902do
7903 IFS=$as_save_IFS
7904 test -z "$as_dir" && as_dir=.
7905 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007906 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 +00007907 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7909 break 2
7910 fi
7911done
7912done
7913IFS=$as_save_IFS
7914
Reid Spencera773bd52006-08-04 18:18:08 +00007915 ;;
7916esac
7917fi
7918GROFF=$ac_cv_path_GROFF
7919if test -n "$GROFF"; then
7920 { echo "$as_me:$LINENO: result: $GROFF" >&5
7921echo "${ECHO_T}$GROFF" >&6; }
7922else
7923 { echo "$as_me:$LINENO: result: no" >&5
7924echo "${ECHO_T}no" >&6; }
7925fi
7926
7927
7928# Extract the first word of "gzip", so it can be a program name with args.
7929set dummy gzip; ac_word=$2
7930{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7932if test "${ac_cv_path_GZIP+set}" = set; then
7933 echo $ECHO_N "(cached) $ECHO_C" >&6
7934else
7935 case $GZIP in
7936 [\\/]* | ?:[\\/]*)
7937 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7938 ;;
7939 *)
7940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941for as_dir in $PATH
7942do
7943 IFS=$as_save_IFS
7944 test -z "$as_dir" && as_dir=.
7945 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007946 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 +00007947 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7949 break 2
7950 fi
7951done
7952done
7953IFS=$as_save_IFS
7954
Reid Spencera773bd52006-08-04 18:18:08 +00007955 ;;
7956esac
7957fi
7958GZIP=$ac_cv_path_GZIP
7959if test -n "$GZIP"; then
7960 { echo "$as_me:$LINENO: result: $GZIP" >&5
7961echo "${ECHO_T}$GZIP" >&6; }
7962else
7963 { echo "$as_me:$LINENO: result: no" >&5
7964echo "${ECHO_T}no" >&6; }
7965fi
7966
7967
7968# Extract the first word of "pod2html", so it can be a program name with args.
7969set dummy pod2html; ac_word=$2
7970{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7972if test "${ac_cv_path_POD2HTML+set}" = set; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
7974else
7975 case $POD2HTML in
7976 [\\/]* | ?:[\\/]*)
7977 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7978 ;;
7979 *)
7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981for as_dir in $PATH
7982do
7983 IFS=$as_save_IFS
7984 test -z "$as_dir" && as_dir=.
7985 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007987 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7989 break 2
7990 fi
7991done
7992done
7993IFS=$as_save_IFS
7994
Reid Spencera773bd52006-08-04 18:18:08 +00007995 ;;
7996esac
7997fi
7998POD2HTML=$ac_cv_path_POD2HTML
7999if test -n "$POD2HTML"; then
8000 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8001echo "${ECHO_T}$POD2HTML" >&6; }
8002else
8003 { echo "$as_me:$LINENO: result: no" >&5
8004echo "${ECHO_T}no" >&6; }
8005fi
8006
8007
8008# Extract the first word of "pod2man", so it can be a program name with args.
8009set dummy pod2man; ac_word=$2
8010{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8012if test "${ac_cv_path_POD2MAN+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8014else
8015 case $POD2MAN in
8016 [\\/]* | ?:[\\/]*)
8017 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8018 ;;
8019 *)
8020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021for as_dir in $PATH
8022do
8023 IFS=$as_save_IFS
8024 test -z "$as_dir" && as_dir=.
8025 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008026 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 +00008027 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8029 break 2
8030 fi
8031done
8032done
8033IFS=$as_save_IFS
8034
Reid Spencera773bd52006-08-04 18:18:08 +00008035 ;;
8036esac
8037fi
8038POD2MAN=$ac_cv_path_POD2MAN
8039if test -n "$POD2MAN"; then
8040 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8041echo "${ECHO_T}$POD2MAN" >&6; }
8042else
8043 { echo "$as_me:$LINENO: result: no" >&5
8044echo "${ECHO_T}no" >&6; }
8045fi
8046
8047
8048# Extract the first word of "runtest", so it can be a program name with args.
8049set dummy runtest; ac_word=$2
8050{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8052if test "${ac_cv_path_RUNTEST+set}" = set; then
8053 echo $ECHO_N "(cached) $ECHO_C" >&6
8054else
8055 case $RUNTEST in
8056 [\\/]* | ?:[\\/]*)
8057 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8058 ;;
8059 *)
8060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061for as_dir in $PATH
8062do
8063 IFS=$as_save_IFS
8064 test -z "$as_dir" && as_dir=.
8065 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008066 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 +00008067 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8069 break 2
8070 fi
8071done
8072done
8073IFS=$as_save_IFS
8074
Reid Spencera773bd52006-08-04 18:18:08 +00008075 ;;
8076esac
8077fi
8078RUNTEST=$ac_cv_path_RUNTEST
8079if test -n "$RUNTEST"; then
8080 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8081echo "${ECHO_T}$RUNTEST" >&6; }
8082else
8083 { echo "$as_me:$LINENO: result: no" >&5
8084echo "${ECHO_T}no" >&6; }
8085fi
8086
8087
8088
8089no_itcl=true
8090{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8091echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8092
8093# Check whether --with-tclinclude was given.
8094if test "${with_tclinclude+set}" = set; then
8095 withval=$with_tclinclude; with_tclinclude=${withval}
8096else
8097 with_tclinclude=''
8098fi
8099
8100if test "${ac_cv_path_tclsh+set}" = set; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
8102else
8103
8104if test x"${with_tclinclude}" != x ; then
8105 if test -f ${with_tclinclude}/tclsh ; then
8106 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8107 elif test -f ${with_tclinclude}/src/tclsh ; then
8108 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8109 else
8110 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8111echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8112 { (exit 1); exit 1; }; }
8113 fi
8114fi
8115
8116if test x"${ac_cv_path_tclsh}" = x ; then
8117 { echo "$as_me:$LINENO: result: none" >&5
8118echo "${ECHO_T}none" >&6; }
8119 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
8120do
8121 # Extract the first word of "$ac_prog", so it can be a program name with args.
8122set dummy $ac_prog; ac_word=$2
8123{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8125if test "${ac_cv_path_TCLSH+set}" = set; then
8126 echo $ECHO_N "(cached) $ECHO_C" >&6
8127else
8128 case $TCLSH in
8129 [\\/]* | ?:[\\/]*)
8130 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8131 ;;
8132 *)
8133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8134for as_dir in $PATH
8135do
8136 IFS=$as_save_IFS
8137 test -z "$as_dir" && as_dir=.
8138 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008139 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 +00008140 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8142 break 2
8143 fi
8144done
8145done
8146IFS=$as_save_IFS
8147
8148 ;;
8149esac
8150fi
8151TCLSH=$ac_cv_path_TCLSH
8152if test -n "$TCLSH"; then
8153 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8154echo "${ECHO_T}$TCLSH" >&6; }
8155else
8156 { echo "$as_me:$LINENO: result: no" >&5
8157echo "${ECHO_T}no" >&6; }
8158fi
8159
8160
8161 test -n "$TCLSH" && break
8162done
8163
8164 if test x"${TCLSH}" = x ; then
8165 ac_cv_path_tclsh='';
8166 else
8167 ac_cv_path_tclsh="${TCLSH}";
8168 fi
8169else
8170 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8171echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8172 TCLSH="${ac_cv_path_tclsh}"
8173
8174fi
8175
8176fi
8177
8178# Extract the first word of "zip", so it can be a program name with args.
8179set dummy zip; ac_word=$2
8180{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8182if test "${ac_cv_path_ZIP+set}" = set; then
8183 echo $ECHO_N "(cached) $ECHO_C" >&6
8184else
8185 case $ZIP in
8186 [\\/]* | ?:[\\/]*)
8187 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8188 ;;
8189 *)
8190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191for as_dir in $PATH
8192do
8193 IFS=$as_save_IFS
8194 test -z "$as_dir" && as_dir=.
8195 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008197 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8199 break 2
8200 fi
8201done
8202done
8203IFS=$as_save_IFS
8204
Reid Spencera773bd52006-08-04 18:18:08 +00008205 ;;
8206esac
8207fi
8208ZIP=$ac_cv_path_ZIP
8209if test -n "$ZIP"; then
8210 { echo "$as_me:$LINENO: result: $ZIP" >&5
8211echo "${ECHO_T}$ZIP" >&6; }
8212else
8213 { echo "$as_me:$LINENO: result: no" >&5
8214echo "${ECHO_T}no" >&6; }
8215fi
8216
8217
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008218for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008219do
8220 # Extract the first word of "$ac_prog", so it can be a program name with args.
8221set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008222{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8224if test "${ac_cv_path_OCAMLC+set}" = set; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
8226else
8227 case $OCAMLC in
8228 [\\/]* | ?:[\\/]*)
8229 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8230 ;;
8231 *)
8232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233for as_dir in $PATH
8234do
8235 IFS=$as_save_IFS
8236 test -z "$as_dir" && as_dir=.
8237 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008238 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 +00008239 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8241 break 2
8242 fi
8243done
8244done
8245IFS=$as_save_IFS
8246
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008247 ;;
8248esac
8249fi
8250OCAMLC=$ac_cv_path_OCAMLC
8251if test -n "$OCAMLC"; then
8252 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8253echo "${ECHO_T}$OCAMLC" >&6; }
8254else
8255 { echo "$as_me:$LINENO: result: no" >&5
8256echo "${ECHO_T}no" >&6; }
8257fi
8258
8259
Gordon Henriksene7072162008-03-07 18:20:01 +00008260 test -n "$OCAMLC" && break
8261done
8262
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008263for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008264do
8265 # Extract the first word of "$ac_prog", so it can be a program name with args.
8266set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008267{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8269if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8271else
8272 case $OCAMLOPT in
8273 [\\/]* | ?:[\\/]*)
8274 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8275 ;;
8276 *)
8277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278for as_dir in $PATH
8279do
8280 IFS=$as_save_IFS
8281 test -z "$as_dir" && as_dir=.
8282 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008283 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 +00008284 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8286 break 2
8287 fi
8288done
8289done
8290IFS=$as_save_IFS
8291
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008292 ;;
8293esac
8294fi
8295OCAMLOPT=$ac_cv_path_OCAMLOPT
8296if test -n "$OCAMLOPT"; then
8297 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8298echo "${ECHO_T}$OCAMLOPT" >&6; }
8299else
8300 { echo "$as_me:$LINENO: result: no" >&5
8301echo "${ECHO_T}no" >&6; }
8302fi
8303
8304
Gordon Henriksene7072162008-03-07 18:20:01 +00008305 test -n "$OCAMLOPT" && break
8306done
8307
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008308for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008309do
8310 # Extract the first word of "$ac_prog", so it can be a program name with args.
8311set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008312{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8314if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8315 echo $ECHO_N "(cached) $ECHO_C" >&6
8316else
8317 case $OCAMLDEP in
8318 [\\/]* | ?:[\\/]*)
8319 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8320 ;;
8321 *)
8322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323for as_dir in $PATH
8324do
8325 IFS=$as_save_IFS
8326 test -z "$as_dir" && as_dir=.
8327 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008328 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 +00008329 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8331 break 2
8332 fi
8333done
8334done
8335IFS=$as_save_IFS
8336
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008337 ;;
8338esac
8339fi
8340OCAMLDEP=$ac_cv_path_OCAMLDEP
8341if test -n "$OCAMLDEP"; then
8342 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8343echo "${ECHO_T}$OCAMLDEP" >&6; }
8344else
8345 { echo "$as_me:$LINENO: result: no" >&5
8346echo "${ECHO_T}no" >&6; }
8347fi
8348
8349
Gordon Henriksene7072162008-03-07 18:20:01 +00008350 test -n "$OCAMLDEP" && break
8351done
8352
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008353for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008354do
8355 # Extract the first word of "$ac_prog", so it can be a program name with args.
8356set dummy $ac_prog; ac_word=$2
8357{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8359if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8360 echo $ECHO_N "(cached) $ECHO_C" >&6
8361else
8362 case $OCAMLDOC in
8363 [\\/]* | ?:[\\/]*)
8364 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8365 ;;
8366 *)
8367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368for as_dir in $PATH
8369do
8370 IFS=$as_save_IFS
8371 test -z "$as_dir" && as_dir=.
8372 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008373 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 +00008374 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8376 break 2
8377 fi
8378done
8379done
8380IFS=$as_save_IFS
8381
8382 ;;
8383esac
8384fi
8385OCAMLDOC=$ac_cv_path_OCAMLDOC
8386if test -n "$OCAMLDOC"; then
8387 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8388echo "${ECHO_T}$OCAMLDOC" >&6; }
8389else
8390 { echo "$as_me:$LINENO: result: no" >&5
8391echo "${ECHO_T}no" >&6; }
8392fi
8393
8394
8395 test -n "$OCAMLDOC" && break
8396done
8397
Torok Edwincc499a42008-10-22 09:56:27 +00008398for ac_prog in gas as
8399do
8400 # Extract the first word of "$ac_prog", so it can be a program name with args.
8401set dummy $ac_prog; ac_word=$2
8402{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8404if test "${ac_cv_path_GAS+set}" = set; then
8405 echo $ECHO_N "(cached) $ECHO_C" >&6
8406else
8407 case $GAS in
8408 [\\/]* | ?:[\\/]*)
8409 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8410 ;;
8411 *)
8412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413for as_dir in $PATH
8414do
8415 IFS=$as_save_IFS
8416 test -z "$as_dir" && as_dir=.
8417 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008418 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 +00008419 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8421 break 2
8422 fi
8423done
8424done
8425IFS=$as_save_IFS
8426
8427 ;;
8428esac
8429fi
8430GAS=$ac_cv_path_GAS
8431if test -n "$GAS"; then
8432 { echo "$as_me:$LINENO: result: $GAS" >&5
8433echo "${ECHO_T}$GAS" >&6; }
8434else
8435 { echo "$as_me:$LINENO: result: no" >&5
8436echo "${ECHO_T}no" >&6; }
8437fi
8438
8439
8440 test -n "$GAS" && break
8441done
8442
Reid Spencera773bd52006-08-04 18:18:08 +00008443
8444{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8445echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8446if test "${llvm_cv_link_use_r+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8448else
8449 ac_ext=c
8450ac_cpp='$CPP $CPPFLAGS'
8451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8453ac_compiler_gnu=$ac_cv_c_compiler_gnu
8454
8455 oldcflags="$CFLAGS"
8456 CFLAGS="$CFLAGS -Wl,-R."
8457 cat >conftest.$ac_ext <<_ACEOF
8458/* confdefs.h. */
8459_ACEOF
8460cat confdefs.h >>conftest.$ac_ext
8461cat >>conftest.$ac_ext <<_ACEOF
8462/* end confdefs.h. */
8463
8464int
8465main ()
8466{
8467int main() { return 0; }
8468 ;
8469 return 0;
8470}
8471_ACEOF
8472rm -f conftest.$ac_objext conftest$ac_exeext
8473if { (ac_try="$ac_link"
8474case "(($ac_try" in
8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8477esac
8478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479 (eval "$ac_link") 2>conftest.er1
8480 ac_status=$?
8481 grep -v '^ *+' conftest.er1 >conftest.err
8482 rm -f conftest.er1
8483 cat conftest.err >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008485 (exit $ac_status); } &&
8486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8487 { (case "(($ac_try" in
8488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489 *) ac_try_echo=$ac_try;;
8490esac
8491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492 (eval "$ac_try") 2>&5
8493 ac_status=$?
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; } &&
8496 { ac_try='test -s conftest$ac_exeext'
8497 { (case "(($ac_try" in
8498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499 *) ac_try_echo=$ac_try;;
8500esac
8501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502 (eval "$ac_try") 2>&5
8503 ac_status=$?
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008506 llvm_cv_link_use_r=yes
8507else
8508 echo "$as_me: failed program was:" >&5
8509sed 's/^/| /' conftest.$ac_ext >&5
8510
8511 llvm_cv_link_use_r=no
8512fi
8513
Bill Wendlingebcceee2009-04-18 11:20:33 +00008514rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008515 conftest$ac_exeext conftest.$ac_ext
8516 CFLAGS="$oldcflags"
8517 ac_ext=c
8518ac_cpp='$CPP $CPPFLAGS'
8519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8521ac_compiler_gnu=$ac_cv_c_compiler_gnu
8522
8523
8524fi
8525{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8526echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8527if test "$llvm_cv_link_use_r" = yes ; then
8528
8529cat >>confdefs.h <<\_ACEOF
8530#define HAVE_LINK_R 1
8531_ACEOF
8532
8533 fi
8534
8535
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008536{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8537echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8538if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
8540else
8541 ac_ext=c
8542ac_cpp='$CPP $CPPFLAGS'
8543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8545ac_compiler_gnu=$ac_cv_c_compiler_gnu
8546
8547 oldcflags="$CFLAGS"
8548 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8549 cat >conftest.$ac_ext <<_ACEOF
8550/* confdefs.h. */
8551_ACEOF
8552cat confdefs.h >>conftest.$ac_ext
8553cat >>conftest.$ac_ext <<_ACEOF
8554/* end confdefs.h. */
8555
8556int
8557main ()
8558{
8559int main() { return 0; }
8560 ;
8561 return 0;
8562}
8563_ACEOF
8564rm -f conftest.$ac_objext conftest$ac_exeext
8565if { (ac_try="$ac_link"
8566case "(($ac_try" in
8567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568 *) ac_try_echo=$ac_try;;
8569esac
8570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8571 (eval "$ac_link") 2>conftest.er1
8572 ac_status=$?
8573 grep -v '^ *+' conftest.er1 >conftest.err
8574 rm -f conftest.er1
8575 cat conftest.err >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008577 (exit $ac_status); } &&
8578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8579 { (case "(($ac_try" in
8580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581 *) ac_try_echo=$ac_try;;
8582esac
8583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584 (eval "$ac_try") 2>&5
8585 ac_status=$?
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; } &&
8588 { ac_try='test -s conftest$ac_exeext'
8589 { (case "(($ac_try" in
8590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8591 *) ac_try_echo=$ac_try;;
8592esac
8593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8594 (eval "$ac_try") 2>&5
8595 ac_status=$?
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008598 llvm_cv_link_use_export_dynamic=yes
8599else
8600 echo "$as_me: failed program was:" >&5
8601sed 's/^/| /' conftest.$ac_ext >&5
8602
8603 llvm_cv_link_use_export_dynamic=no
8604fi
8605
Bill Wendlingebcceee2009-04-18 11:20:33 +00008606rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008607 conftest$ac_exeext conftest.$ac_ext
8608 CFLAGS="$oldcflags"
8609 ac_ext=c
8610ac_cpp='$CPP $CPPFLAGS'
8611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8613ac_compiler_gnu=$ac_cv_c_compiler_gnu
8614
8615
8616fi
8617{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8618echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8619if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8620
8621cat >>confdefs.h <<\_ACEOF
8622#define HAVE_LINK_EXPORT_DYNAMIC 1
8623_ACEOF
8624
8625 fi
8626
8627
Reid Spencera773bd52006-08-04 18:18:08 +00008628
8629
8630{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8631echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8632if test "${ac_cv_c_const+set}" = set; then
8633 echo $ECHO_N "(cached) $ECHO_C" >&6
8634else
8635 cat >conftest.$ac_ext <<_ACEOF
8636/* confdefs.h. */
8637_ACEOF
8638cat confdefs.h >>conftest.$ac_ext
8639cat >>conftest.$ac_ext <<_ACEOF
8640/* end confdefs.h. */
8641
8642int
8643main ()
8644{
8645/* FIXME: Include the comments suggested by Paul. */
8646#ifndef __cplusplus
8647 /* Ultrix mips cc rejects this. */
8648 typedef int charset[2];
Bill Wendlingebcceee2009-04-18 11:20:33 +00008649 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008650 /* SunOS 4.1.1 cc rejects this. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008651 char const *const *ccp;
8652 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008653 /* NEC SVR4.0.2 mips cc rejects this. */
8654 struct point {int x, y;};
8655 static struct point const zero = {0,0};
8656 /* AIX XL C 1.02.0.0 rejects this.
8657 It does not let you subtract one const X* pointer from another in
8658 an arm of an if-expression whose if-part is not a constant
8659 expression */
8660 const char *g = "string";
Bill Wendlingebcceee2009-04-18 11:20:33 +00008661 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008662 /* HPUX 7.0 cc rejects these. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008663 ++ccp;
8664 p = (char**) ccp;
8665 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008666 { /* SCO 3.2v4 cc rejects this. */
8667 char *t;
8668 char const *s = 0 ? (char *) 0 : (char const *) 0;
8669
8670 *t++ = 0;
8671 if (s) return 0;
8672 }
8673 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8674 int x[] = {25, 17};
8675 const int *foo = &x[0];
8676 ++foo;
8677 }
8678 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8679 typedef const int *iptr;
8680 iptr p = 0;
8681 ++p;
8682 }
8683 { /* AIX XL C 1.02.0.0 rejects this saying
8684 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8685 struct s { int j; const int *ap[3]; };
8686 struct s *b; b->j = 5;
8687 }
8688 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8689 const int foo = 10;
8690 if (!foo) return 0;
8691 }
Bill Wendlingebcceee2009-04-18 11:20:33 +00008692 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008693#endif
8694
8695 ;
8696 return 0;
8697}
8698_ACEOF
8699rm -f conftest.$ac_objext
8700if { (ac_try="$ac_compile"
8701case "(($ac_try" in
8702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8703 *) ac_try_echo=$ac_try;;
8704esac
8705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8706 (eval "$ac_compile") 2>conftest.er1
8707 ac_status=$?
8708 grep -v '^ *+' conftest.er1 >conftest.err
8709 rm -f conftest.er1
8710 cat conftest.err >&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008712 (exit $ac_status); } &&
8713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8714 { (case "(($ac_try" in
8715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8716 *) ac_try_echo=$ac_try;;
8717esac
8718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8719 (eval "$ac_try") 2>&5
8720 ac_status=$?
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; } &&
8723 { ac_try='test -s conftest.$ac_objext'
8724 { (case "(($ac_try" in
8725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8726 *) ac_try_echo=$ac_try;;
8727esac
8728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8729 (eval "$ac_try") 2>&5
8730 ac_status=$?
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008733 ac_cv_c_const=yes
8734else
8735 echo "$as_me: failed program was:" >&5
8736sed 's/^/| /' conftest.$ac_ext >&5
8737
8738 ac_cv_c_const=no
8739fi
8740
8741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8742fi
8743{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8744echo "${ECHO_T}$ac_cv_c_const" >&6; }
8745if test $ac_cv_c_const = no; then
8746
8747cat >>confdefs.h <<\_ACEOF
8748#define const
8749_ACEOF
8750
8751fi
8752
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008753
8754
8755
8756
8757
8758ac_header_dirent=no
8759for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8760 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008761{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8762echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008764 echo $ECHO_N "(cached) $ECHO_C" >&6
8765else
8766 cat >conftest.$ac_ext <<_ACEOF
8767/* confdefs.h. */
8768_ACEOF
8769cat confdefs.h >>conftest.$ac_ext
8770cat >>conftest.$ac_ext <<_ACEOF
8771/* end confdefs.h. */
8772#include <sys/types.h>
8773#include <$ac_hdr>
8774
8775int
8776main ()
8777{
8778if ((DIR *) 0)
8779return 0;
8780 ;
8781 return 0;
8782}
8783_ACEOF
8784rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008785if { (ac_try="$ac_compile"
8786case "(($ac_try" in
8787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8788 *) ac_try_echo=$ac_try;;
8789esac
8790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8791 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008792 ac_status=$?
8793 grep -v '^ *+' conftest.er1 >conftest.err
8794 rm -f conftest.er1
8795 cat conftest.err >&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008797 (exit $ac_status); } &&
8798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8799 { (case "(($ac_try" in
8800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8801 *) ac_try_echo=$ac_try;;
8802esac
8803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8804 (eval "$ac_try") 2>&5
8805 ac_status=$?
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); }; } &&
8808 { ac_try='test -s conftest.$ac_objext'
8809 { (case "(($ac_try" in
8810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8811 *) ac_try_echo=$ac_try;;
8812esac
8813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8814 (eval "$ac_try") 2>&5
8815 ac_status=$?
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008818 eval "$as_ac_Header=yes"
8819else
8820 echo "$as_me: failed program was:" >&5
8821sed 's/^/| /' conftest.$ac_ext >&5
8822
Reid Spencera773bd52006-08-04 18:18:08 +00008823 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008824fi
Reid Spencera773bd52006-08-04 18:18:08 +00008825
8826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008827fi
Reid Spencera773bd52006-08-04 18:18:08 +00008828ac_res=`eval echo '${'$as_ac_Header'}'`
8829 { echo "$as_me:$LINENO: result: $ac_res" >&5
8830echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008831if test `eval echo '${'$as_ac_Header'}'` = yes; then
8832 cat >>confdefs.h <<_ACEOF
8833#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8834_ACEOF
8835
8836ac_header_dirent=$ac_hdr; break
8837fi
8838
8839done
8840# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8841if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008842 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8843echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008844if test "${ac_cv_search_opendir+set}" = set; then
8845 echo $ECHO_N "(cached) $ECHO_C" >&6
8846else
8847 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008848cat >conftest.$ac_ext <<_ACEOF
8849/* confdefs.h. */
8850_ACEOF
8851cat confdefs.h >>conftest.$ac_ext
8852cat >>conftest.$ac_ext <<_ACEOF
8853/* end confdefs.h. */
8854
Reid Spencera773bd52006-08-04 18:18:08 +00008855/* Override any GCC internal prototype to avoid an error.
8856 Use char because int might match the return type of a GCC
8857 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008858#ifdef __cplusplus
8859extern "C"
8860#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008861char opendir ();
8862int
8863main ()
8864{
Reid Spencera773bd52006-08-04 18:18:08 +00008865return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008866 ;
8867 return 0;
8868}
8869_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008870for ac_lib in '' dir; do
8871 if test -z "$ac_lib"; then
8872 ac_res="none required"
8873 else
8874 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008875 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008876 fi
8877 rm -f conftest.$ac_objext conftest$ac_exeext
8878if { (ac_try="$ac_link"
8879case "(($ac_try" in
8880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8881 *) ac_try_echo=$ac_try;;
8882esac
8883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8884 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008885 ac_status=$?
8886 grep -v '^ *+' conftest.er1 >conftest.err
8887 rm -f conftest.er1
8888 cat conftest.err >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008890 (exit $ac_status); } &&
8891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8892 { (case "(($ac_try" in
8893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8894 *) ac_try_echo=$ac_try;;
8895esac
8896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8897 (eval "$ac_try") 2>&5
8898 ac_status=$?
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); }; } &&
8901 { ac_try='test -s conftest$ac_exeext'
8902 { (case "(($ac_try" in
8903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904 *) ac_try_echo=$ac_try;;
8905esac
8906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8907 (eval "$ac_try") 2>&5
8908 ac_status=$?
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008911 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008912else
8913 echo "$as_me: failed program was:" >&5
8914sed 's/^/| /' conftest.$ac_ext >&5
8915
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008916
8917fi
8918
Bill Wendlingebcceee2009-04-18 11:20:33 +00008919rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008920 conftest$ac_exeext
8921 if test "${ac_cv_search_opendir+set}" = set; then
8922 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008923fi
John Criswell7a73b802003-06-30 21:59:07 +00008924done
Reid Spencera773bd52006-08-04 18:18:08 +00008925if test "${ac_cv_search_opendir+set}" = set; then
8926 :
8927else
8928 ac_cv_search_opendir=no
8929fi
8930rm conftest.$ac_ext
8931LIBS=$ac_func_search_save_LIBS
8932fi
8933{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8934echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8935ac_res=$ac_cv_search_opendir
8936if test "$ac_res" != no; then
8937 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008938
Reid Spencera773bd52006-08-04 18:18:08 +00008939fi
8940
8941else
8942 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8943echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8944if test "${ac_cv_search_opendir+set}" = set; then
8945 echo $ECHO_N "(cached) $ECHO_C" >&6
8946else
8947 ac_func_search_save_LIBS=$LIBS
8948cat >conftest.$ac_ext <<_ACEOF
8949/* confdefs.h. */
8950_ACEOF
8951cat confdefs.h >>conftest.$ac_ext
8952cat >>conftest.$ac_ext <<_ACEOF
8953/* end confdefs.h. */
8954
8955/* Override any GCC internal prototype to avoid an error.
8956 Use char because int might match the return type of a GCC
8957 builtin and then its argument prototype would still apply. */
8958#ifdef __cplusplus
8959extern "C"
8960#endif
8961char opendir ();
8962int
8963main ()
8964{
8965return opendir ();
8966 ;
8967 return 0;
8968}
8969_ACEOF
8970for ac_lib in '' x; do
8971 if test -z "$ac_lib"; then
8972 ac_res="none required"
8973 else
8974 ac_res=-l$ac_lib
8975 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8976 fi
8977 rm -f conftest.$ac_objext conftest$ac_exeext
8978if { (ac_try="$ac_link"
8979case "(($ac_try" in
8980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8981 *) ac_try_echo=$ac_try;;
8982esac
8983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8984 (eval "$ac_link") 2>conftest.er1
8985 ac_status=$?
8986 grep -v '^ *+' conftest.er1 >conftest.err
8987 rm -f conftest.er1
8988 cat conftest.err >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008990 (exit $ac_status); } &&
8991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8992 { (case "(($ac_try" in
8993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8994 *) ac_try_echo=$ac_try;;
8995esac
8996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8997 (eval "$ac_try") 2>&5
8998 ac_status=$?
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); }; } &&
9001 { ac_try='test -s conftest$ac_exeext'
9002 { (case "(($ac_try" in
9003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9004 *) ac_try_echo=$ac_try;;
9005esac
9006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9007 (eval "$ac_try") 2>&5
9008 ac_status=$?
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009011 ac_cv_search_opendir=$ac_res
9012else
9013 echo "$as_me: failed program was:" >&5
9014sed 's/^/| /' conftest.$ac_ext >&5
9015
9016
9017fi
9018
Bill Wendlingebcceee2009-04-18 11:20:33 +00009019rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00009020 conftest$ac_exeext
9021 if test "${ac_cv_search_opendir+set}" = set; then
9022 break
9023fi
9024done
9025if test "${ac_cv_search_opendir+set}" = set; then
9026 :
9027else
9028 ac_cv_search_opendir=no
9029fi
9030rm conftest.$ac_ext
9031LIBS=$ac_func_search_save_LIBS
9032fi
9033{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9034echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9035ac_res=$ac_cv_search_opendir
9036if test "$ac_res" != no; then
9037 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9038
9039fi
9040
9041fi
John Criswell7a73b802003-06-30 21:59:07 +00009042
9043
9044for ac_header in dlfcn.h
9045do
9046as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00009047if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9049echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9050if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00009051 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00009052fi
Reid Spencera773bd52006-08-04 18:18:08 +00009053ac_res=`eval echo '${'$as_ac_Header'}'`
9054 { echo "$as_me:$LINENO: result: $ac_res" >&5
9055echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00009056else
Brian Gaeke0a621332004-09-08 20:38:05 +00009057 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00009058{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9059echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009060cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009061/* confdefs.h. */
9062_ACEOF
9063cat confdefs.h >>conftest.$ac_ext
9064cat >>conftest.$ac_ext <<_ACEOF
9065/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00009066$ac_includes_default
9067#include <$ac_header>
9068_ACEOF
9069rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00009070if { (ac_try="$ac_compile"
9071case "(($ac_try" in
9072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9073 *) ac_try_echo=$ac_try;;
9074esac
9075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9076 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00009077 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009078 grep -v '^ *+' conftest.er1 >conftest.err
9079 rm -f conftest.er1
9080 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00009081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009082 (exit $ac_status); } &&
9083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9084 { (case "(($ac_try" in
9085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9086 *) ac_try_echo=$ac_try;;
9087esac
9088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9089 (eval "$ac_try") 2>&5
9090 ac_status=$?
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); }; } &&
9093 { ac_try='test -s conftest.$ac_objext'
9094 { (case "(($ac_try" in
9095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9096 *) ac_try_echo=$ac_try;;
9097esac
9098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9099 (eval "$ac_try") 2>&5
9100 ac_status=$?
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009103 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00009104else
9105 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009106sed 's/^/| /' conftest.$ac_ext >&5
9107
Reid Spencera773bd52006-08-04 18:18:08 +00009108 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00009109fi
Reid Spencera773bd52006-08-04 18:18:08 +00009110
9111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9112{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9113echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009114
9115# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00009116{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9117echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009118cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00009119/* confdefs.h. */
9120_ACEOF
9121cat confdefs.h >>conftest.$ac_ext
9122cat >>conftest.$ac_ext <<_ACEOF
9123/* end confdefs.h. */
9124#include <$ac_header>
9125_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009126if { (ac_try="$ac_cpp conftest.$ac_ext"
9127case "(($ac_try" in
9128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9129 *) ac_try_echo=$ac_try;;
9130esac
9131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00009133 ac_status=$?
9134 grep -v '^ *+' conftest.er1 >conftest.err
9135 rm -f conftest.er1
9136 cat conftest.err >&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009138 (exit $ac_status); } >/dev/null; then
9139 if test -s conftest.err; then
9140 ac_cpp_err=$ac_c_preproc_warn_flag
9141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9142 else
9143 ac_cpp_err=
9144 fi
9145else
9146 ac_cpp_err=yes
9147fi
9148if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009149 ac_header_preproc=yes
9150else
9151 echo "$as_me: failed program was:" >&5
9152sed 's/^/| /' conftest.$ac_ext >&5
9153
9154 ac_header_preproc=no
9155fi
Reid Spencera773bd52006-08-04 18:18:08 +00009156
Brian Gaeke0a621332004-09-08 20:38:05 +00009157rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00009158{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9159echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009160
9161# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009162case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9163 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00009164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9165echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9167echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9168 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00009169 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009170 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00009171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9172echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9174echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9176echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9178echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00009179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9180echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9182echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00009183 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00009184## ----------------------------------- ##
9185## Report this to llvmbugs@cs.uiuc.edu ##
9186## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00009187_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00009188 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00009189 ;;
9190esac
Reid Spencera773bd52006-08-04 18:18:08 +00009191{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9192echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9193if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009194 echo $ECHO_N "(cached) $ECHO_C" >&6
9195else
Reid Spencer2706f8c2004-09-19 23:53:36 +00009196 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00009197fi
Reid Spencera773bd52006-08-04 18:18:08 +00009198ac_res=`eval echo '${'$as_ac_Header'}'`
9199 { echo "$as_me:$LINENO: result: $ac_res" >&5
9200echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009201
9202fi
John Criswell7a73b802003-06-30 21:59:07 +00009203if test `eval echo '${'$as_ac_Header'}'` = yes; then
9204 cat >>confdefs.h <<_ACEOF
9205#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9206_ACEOF
9207
9208fi
9209
9210done
9211
Reid Spencera773bd52006-08-04 18:18:08 +00009212# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009213if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009214 enableval=$enable_ltdl_install;
9215fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009216
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009217
Bill Wendlingebcceee2009-04-18 11:20:33 +00009218
9219
9220if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009221 INSTALL_LTDL_TRUE=
9222 INSTALL_LTDL_FALSE='#'
9223else
9224 INSTALL_LTDL_TRUE='#'
9225 INSTALL_LTDL_FALSE=
9226fi
9227
Bill Wendlingebcceee2009-04-18 11:20:33 +00009228
9229
9230if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009231 CONVENIENCE_LTDL_TRUE=
9232 CONVENIENCE_LTDL_FALSE='#'
9233else
9234 CONVENIENCE_LTDL_TRUE='#'
9235 CONVENIENCE_LTDL_FALSE=
9236fi
9237
9238
Reid Spencera773bd52006-08-04 18:18:08 +00009239{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9240echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009241library_names_spec=
9242libname_spec='lib$name'
9243soname_spec=
9244shrext_cmds=".so"
9245postinstall_cmds=
9246postuninstall_cmds=
9247finish_cmds=
9248finish_eval=
9249shlibpath_var=
9250shlibpath_overrides_runpath=unknown
9251version_type=none
9252dynamic_linker="$host_os ld.so"
9253sys_lib_dlsearch_path_spec="/lib /usr/lib"
9254if test "$GCC" = yes; then
9255 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9256 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9257 # if the path contains ";" then we assume it to be the separator
9258 # otherwise default to the standard path separator (i.e. ":") - it is
9259 # assumed that no part of a normal pathname contains ";" but that should
9260 # okay in the real world where ";" in dirpaths is itself problematic.
9261 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9262 else
9263 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9264 fi
9265else
9266 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9267fi
9268need_lib_prefix=unknown
9269hardcode_into_libs=no
9270
9271# when you set need_version to no, make sure it does not cause -set_version
9272# flags to be left without arguments
9273need_version=unknown
9274
9275case $host_os in
9276aix3*)
9277 version_type=linux
9278 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9279 shlibpath_var=LIBPATH
9280
9281 # AIX 3 has no versioning support, so we append a major version to the name.
9282 soname_spec='${libname}${release}${shared_ext}$major'
9283 ;;
9284
9285aix4* | aix5*)
9286 version_type=linux
9287 need_lib_prefix=no
9288 need_version=no
9289 hardcode_into_libs=yes
9290 if test "$host_cpu" = ia64; then
9291 # AIX 5 supports IA64
9292 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9293 shlibpath_var=LD_LIBRARY_PATH
9294 else
9295 # With GCC up to 2.95.x, collect2 would create an import file
9296 # for dependence libraries. The import file would start with
9297 # the line `#! .'. This would cause the generated library to
9298 # depend on `.', always an invalid library. This was fixed in
9299 # development snapshots of GCC prior to 3.0.
9300 case $host_os in
9301 aix4 | aix4.[01] | aix4.[01].*)
9302 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9303 echo ' yes '
9304 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9305 :
9306 else
9307 can_build_shared=no
9308 fi
9309 ;;
9310 esac
9311 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9312 # soname into executable. Probably we can add versioning support to
9313 # collect2, so additional links can be useful in future.
9314 if test "$aix_use_runtimelinking" = yes; then
9315 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9316 # instead of lib<name>.a to let people know that these are not
9317 # typical AIX shared libraries.
9318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319 else
9320 # We preserve .a as extension for shared libraries through AIX4.2
9321 # and later when we are not doing run time linking.
9322 library_names_spec='${libname}${release}.a $libname.a'
9323 soname_spec='${libname}${release}${shared_ext}$major'
9324 fi
9325 shlibpath_var=LIBPATH
9326 fi
9327 ;;
9328
9329amigaos*)
9330 library_names_spec='$libname.ixlibrary $libname.a'
9331 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9332 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'
9333 ;;
9334
9335beos*)
9336 library_names_spec='${libname}${shared_ext}'
9337 dynamic_linker="$host_os ld.so"
9338 shlibpath_var=LIBRARY_PATH
9339 ;;
9340
9341bsdi[45]*)
9342 version_type=linux
9343 need_version=no
9344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9345 soname_spec='${libname}${release}${shared_ext}$major'
9346 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9347 shlibpath_var=LD_LIBRARY_PATH
9348 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9349 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9350 # the default ld.so.conf also contains /usr/contrib/lib and
9351 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9352 # libtool to hard-code these into programs
9353 ;;
9354
9355cygwin* | mingw* | pw32*)
9356 version_type=windows
9357 shrext_cmds=".dll"
9358 need_version=no
9359 need_lib_prefix=no
9360
9361 case $GCC,$host_os in
9362 yes,cygwin* | yes,mingw* | yes,pw32*)
9363 library_names_spec='$libname.dll.a'
9364 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9365 postinstall_cmds='base_file=`basename \${file}`~
9366 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9367 dldir=$destdir/`dirname \$dlpath`~
9368 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009369 $install_prog $dir/$dlname \$dldir/$dlname~
9370 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009371 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9372 dlpath=$dir/\$dldll~
9373 $rm \$dlpath'
9374 shlibpath_overrides_runpath=yes
9375
9376 case $host_os in
9377 cygwin*)
9378 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9379 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9380 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9381 ;;
9382 mingw*)
9383 # MinGW DLLs use traditional 'lib' prefix
9384 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9385 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9386 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9387 # It is most probably a Windows format PATH printed by
9388 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9389 # path with ; separators, and with drive letters. We can handle the
9390 # drive letters (cygwin fileutils understands them), so leave them,
9391 # especially as we might pass files found there to a mingw objdump,
9392 # which wouldn't understand a cygwinified path. Ahh.
9393 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9394 else
9395 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9396 fi
9397 ;;
9398 pw32*)
9399 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009400 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 +00009401 ;;
9402 esac
9403 ;;
9404
9405 *)
9406 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9407 ;;
9408 esac
9409 dynamic_linker='Win32 ld.exe'
9410 # FIXME: first we should search . and the directory the executable is in
9411 shlibpath_var=PATH
9412 ;;
9413
9414darwin* | rhapsody*)
9415 dynamic_linker="$host_os dyld"
9416 version_type=darwin
9417 need_lib_prefix=no
9418 need_version=no
9419 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9420 soname_spec='${libname}${release}${major}$shared_ext'
9421 shlibpath_overrides_runpath=yes
9422 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009423 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009424 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9425 if test "$GCC" = yes; then
9426 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"`
9427 else
9428 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9429 fi
9430 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9431 ;;
9432
9433dgux*)
9434 version_type=linux
9435 need_lib_prefix=no
9436 need_version=no
9437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9438 soname_spec='${libname}${release}${shared_ext}$major'
9439 shlibpath_var=LD_LIBRARY_PATH
9440 ;;
9441
9442freebsd1*)
9443 dynamic_linker=no
9444 ;;
9445
9446kfreebsd*-gnu)
9447 version_type=linux
9448 need_lib_prefix=no
9449 need_version=no
9450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9451 soname_spec='${libname}${release}${shared_ext}$major'
9452 shlibpath_var=LD_LIBRARY_PATH
9453 shlibpath_overrides_runpath=no
9454 hardcode_into_libs=yes
9455 dynamic_linker='GNU ld.so'
9456 ;;
9457
Reid Spencera773bd52006-08-04 18:18:08 +00009458freebsd* | dragonfly*)
9459 # DragonFly does not have aout. When/if they implement a new
9460 # versioning mechanism, adjust this.
9461 if test -x /usr/bin/objformat; then
9462 objformat=`/usr/bin/objformat`
9463 else
9464 case $host_os in
9465 freebsd[123]*) objformat=aout ;;
9466 *) objformat=elf ;;
9467 esac
9468 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009469 version_type=freebsd-$objformat
9470 case $version_type in
9471 freebsd-elf*)
9472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9473 need_version=no
9474 need_lib_prefix=no
9475 ;;
9476 freebsd-*)
9477 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9478 need_version=yes
9479 ;;
9480 esac
9481 shlibpath_var=LD_LIBRARY_PATH
9482 case $host_os in
9483 freebsd2*)
9484 shlibpath_overrides_runpath=yes
9485 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009486 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009487 shlibpath_overrides_runpath=yes
9488 hardcode_into_libs=yes
9489 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009490 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9491 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009492 shlibpath_overrides_runpath=no
9493 hardcode_into_libs=yes
9494 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009495 freebsd*) # from 4.6 on
9496 shlibpath_overrides_runpath=yes
9497 hardcode_into_libs=yes
9498 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009499 esac
9500 ;;
9501
9502gnu*)
9503 version_type=linux
9504 need_lib_prefix=no
9505 need_version=no
9506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9507 soname_spec='${libname}${release}${shared_ext}$major'
9508 shlibpath_var=LD_LIBRARY_PATH
9509 hardcode_into_libs=yes
9510 ;;
9511
9512hpux9* | hpux10* | hpux11*)
9513 # Give a soname corresponding to the major version so that dld.sl refuses to
9514 # link against other versions.
9515 version_type=sunos
9516 need_lib_prefix=no
9517 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009518 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009519 ia64*)
9520 shrext_cmds='.so'
9521 hardcode_into_libs=yes
9522 dynamic_linker="$host_os dld.so"
9523 shlibpath_var=LD_LIBRARY_PATH
9524 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9526 soname_spec='${libname}${release}${shared_ext}$major'
9527 if test "X$HPUX_IA64_MODE" = X32; then
9528 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9529 else
9530 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9531 fi
9532 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9533 ;;
9534 hppa*64*)
9535 shrext_cmds='.sl'
9536 hardcode_into_libs=yes
9537 dynamic_linker="$host_os dld.sl"
9538 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9539 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9541 soname_spec='${libname}${release}${shared_ext}$major'
9542 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9543 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9544 ;;
9545 *)
9546 shrext_cmds='.sl'
9547 dynamic_linker="$host_os dld.sl"
9548 shlibpath_var=SHLIB_PATH
9549 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9551 soname_spec='${libname}${release}${shared_ext}$major'
9552 ;;
9553 esac
9554 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9555 postinstall_cmds='chmod 555 $lib'
9556 ;;
9557
Reid Spencera773bd52006-08-04 18:18:08 +00009558interix3*)
9559 version_type=linux
9560 need_lib_prefix=no
9561 need_version=no
9562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9563 soname_spec='${libname}${release}${shared_ext}$major'
9564 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9565 shlibpath_var=LD_LIBRARY_PATH
9566 shlibpath_overrides_runpath=no
9567 hardcode_into_libs=yes
9568 ;;
9569
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009570irix5* | irix6* | nonstopux*)
9571 case $host_os in
9572 nonstopux*) version_type=nonstopux ;;
9573 *)
9574 if test "$lt_cv_prog_gnu_ld" = yes; then
9575 version_type=linux
9576 else
9577 version_type=irix
9578 fi ;;
9579 esac
9580 need_lib_prefix=no
9581 need_version=no
9582 soname_spec='${libname}${release}${shared_ext}$major'
9583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9584 case $host_os in
9585 irix5* | nonstopux*)
9586 libsuff= shlibsuff=
9587 ;;
9588 *)
9589 case $LD in # libtool.m4 will add one of these switches to LD
9590 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9591 libsuff= shlibsuff= libmagic=32-bit;;
9592 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9593 libsuff=32 shlibsuff=N32 libmagic=N32;;
9594 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9595 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9596 *) libsuff= shlibsuff= libmagic=never-match;;
9597 esac
9598 ;;
9599 esac
9600 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9601 shlibpath_overrides_runpath=no
9602 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9603 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9604 hardcode_into_libs=yes
9605 ;;
9606
9607# No shared lib support for Linux oldld, aout, or coff.
9608linux*oldld* | linux*aout* | linux*coff*)
9609 dynamic_linker=no
9610 ;;
9611
9612# This must be Linux ELF.
9613linux*)
9614 version_type=linux
9615 need_lib_prefix=no
9616 need_version=no
9617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9618 soname_spec='${libname}${release}${shared_ext}$major'
9619 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9620 shlibpath_var=LD_LIBRARY_PATH
9621 shlibpath_overrides_runpath=no
9622 # This implies no fast_install, which is unacceptable.
9623 # Some rework will be needed to allow for fast_install
9624 # before this can be enabled.
9625 hardcode_into_libs=yes
9626
9627 # Append ld.so.conf contents to the search path
9628 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009629 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 +00009630 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9631 fi
9632
9633 # We used to test for /lib/ld.so.1 and disable shared libraries on
9634 # powerpc, because MkLinux only supported shared libraries with the
9635 # GNU dynamic linker. Since this was broken with cross compilers,
9636 # most powerpc-linux boxes support dynamic linking these days and
9637 # people can always --disable-shared, the test was removed, and we
9638 # assume the GNU/Linux dynamic linker is in use.
9639 dynamic_linker='GNU/Linux ld.so'
9640 ;;
9641
9642knetbsd*-gnu)
9643 version_type=linux
9644 need_lib_prefix=no
9645 need_version=no
9646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9647 soname_spec='${libname}${release}${shared_ext}$major'
9648 shlibpath_var=LD_LIBRARY_PATH
9649 shlibpath_overrides_runpath=no
9650 hardcode_into_libs=yes
9651 dynamic_linker='GNU ld.so'
9652 ;;
9653
9654netbsd*)
9655 version_type=sunos
9656 need_lib_prefix=no
9657 need_version=no
9658 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9660 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9661 dynamic_linker='NetBSD (a.out) ld.so'
9662 else
9663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9664 soname_spec='${libname}${release}${shared_ext}$major'
9665 dynamic_linker='NetBSD ld.elf_so'
9666 fi
9667 shlibpath_var=LD_LIBRARY_PATH
9668 shlibpath_overrides_runpath=yes
9669 hardcode_into_libs=yes
9670 ;;
9671
9672newsos6)
9673 version_type=linux
9674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9675 shlibpath_var=LD_LIBRARY_PATH
9676 shlibpath_overrides_runpath=yes
9677 ;;
9678
9679nto-qnx*)
9680 version_type=linux
9681 need_lib_prefix=no
9682 need_version=no
9683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9684 soname_spec='${libname}${release}${shared_ext}$major'
9685 shlibpath_var=LD_LIBRARY_PATH
9686 shlibpath_overrides_runpath=yes
9687 ;;
9688
9689openbsd*)
9690 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009691 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009692 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009693 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9694 case $host_os in
9695 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9696 *) need_version=no ;;
9697 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9699 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9700 shlibpath_var=LD_LIBRARY_PATH
9701 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9702 case $host_os in
9703 openbsd2.[89] | openbsd2.[89].*)
9704 shlibpath_overrides_runpath=no
9705 ;;
9706 *)
9707 shlibpath_overrides_runpath=yes
9708 ;;
9709 esac
9710 else
9711 shlibpath_overrides_runpath=yes
9712 fi
9713 ;;
9714
9715os2*)
9716 libname_spec='$name'
9717 shrext_cmds=".dll"
9718 need_lib_prefix=no
9719 library_names_spec='$libname${shared_ext} $libname.a'
9720 dynamic_linker='OS/2 ld.exe'
9721 shlibpath_var=LIBPATH
9722 ;;
9723
9724osf3* | osf4* | osf5*)
9725 version_type=osf
9726 need_lib_prefix=no
9727 need_version=no
9728 soname_spec='${libname}${release}${shared_ext}$major'
9729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9730 shlibpath_var=LD_LIBRARY_PATH
9731 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9732 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9733 ;;
9734
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009735solaris*)
9736 version_type=linux
9737 need_lib_prefix=no
9738 need_version=no
9739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9740 soname_spec='${libname}${release}${shared_ext}$major'
9741 shlibpath_var=LD_LIBRARY_PATH
9742 shlibpath_overrides_runpath=yes
9743 hardcode_into_libs=yes
9744 # ldd complains unless libraries are executable
9745 postinstall_cmds='chmod +x $lib'
9746 ;;
9747
9748sunos4*)
9749 version_type=sunos
9750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9751 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9752 shlibpath_var=LD_LIBRARY_PATH
9753 shlibpath_overrides_runpath=yes
9754 if test "$with_gnu_ld" = yes; then
9755 need_lib_prefix=no
9756 fi
9757 need_version=yes
9758 ;;
9759
Reid Spencera773bd52006-08-04 18:18:08 +00009760sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009761 version_type=linux
9762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9763 soname_spec='${libname}${release}${shared_ext}$major'
9764 shlibpath_var=LD_LIBRARY_PATH
9765 case $host_vendor in
9766 sni)
9767 shlibpath_overrides_runpath=no
9768 need_lib_prefix=no
9769 export_dynamic_flag_spec='${wl}-Blargedynsym'
9770 runpath_var=LD_RUN_PATH
9771 ;;
9772 siemens)
9773 need_lib_prefix=no
9774 ;;
9775 motorola)
9776 need_lib_prefix=no
9777 need_version=no
9778 shlibpath_overrides_runpath=no
9779 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9780 ;;
9781 esac
9782 ;;
9783
9784sysv4*MP*)
9785 if test -d /usr/nec ;then
9786 version_type=linux
9787 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9788 soname_spec='$libname${shared_ext}.$major'
9789 shlibpath_var=LD_LIBRARY_PATH
9790 fi
9791 ;;
9792
Reid Spencera773bd52006-08-04 18:18:08 +00009793sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9794 version_type=freebsd-elf
9795 need_lib_prefix=no
9796 need_version=no
9797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9798 soname_spec='${libname}${release}${shared_ext}$major'
9799 shlibpath_var=LD_LIBRARY_PATH
9800 hardcode_into_libs=yes
9801 if test "$with_gnu_ld" = yes; then
9802 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9803 shlibpath_overrides_runpath=no
9804 else
9805 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9806 shlibpath_overrides_runpath=yes
9807 case $host_os in
9808 sco3.2v5*)
9809 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9810 ;;
9811 esac
9812 fi
9813 sys_lib_dlsearch_path_spec='/usr/lib'
9814 ;;
9815
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009816uts4*)
9817 version_type=linux
9818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9819 soname_spec='${libname}${release}${shared_ext}$major'
9820 shlibpath_var=LD_LIBRARY_PATH
9821 ;;
9822
9823*)
9824 dynamic_linker=no
9825 ;;
9826esac
Reid Spencera773bd52006-08-04 18:18:08 +00009827{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9828echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009829test "$dynamic_linker" = no && can_build_shared=no
9830
Reid Spencera773bd52006-08-04 18:18:08 +00009831variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9832if test "$GCC" = yes; then
9833 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9834fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009835
Reid Spencera773bd52006-08-04 18:18:08 +00009836
9837{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9838echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009839if test "${libltdl_cv_shlibext+set}" = set; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9841else
9842
9843module=yes
9844eval libltdl_cv_shlibext=$shrext_cmds
9845
9846fi
Reid Spencera773bd52006-08-04 18:18:08 +00009847{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9848echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009849if test -n "$libltdl_cv_shlibext"; then
9850
9851cat >>confdefs.h <<_ACEOF
9852#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9853_ACEOF
9854
9855fi
9856
9857
Reid Spencera773bd52006-08-04 18:18:08 +00009858{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9859echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009860if test "${libltdl_cv_shlibpath_var+set}" = set; then
9861 echo $ECHO_N "(cached) $ECHO_C" >&6
9862else
9863 libltdl_cv_shlibpath_var="$shlibpath_var"
9864fi
Reid Spencera773bd52006-08-04 18:18:08 +00009865{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9866echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009867if test -n "$libltdl_cv_shlibpath_var"; then
9868
9869cat >>confdefs.h <<_ACEOF
9870#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9871_ACEOF
9872
9873fi
9874
9875
Reid Spencera773bd52006-08-04 18:18:08 +00009876{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9877echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009878if test "${libltdl_cv_sys_search_path+set}" = set; then
9879 echo $ECHO_N "(cached) $ECHO_C" >&6
9880else
9881 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9882fi
Reid Spencera773bd52006-08-04 18:18:08 +00009883{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9884echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009885if test -n "$libltdl_cv_sys_search_path"; then
9886 sys_search_path=
9887 for dir in $libltdl_cv_sys_search_path; do
9888 if test -z "$sys_search_path"; then
9889 sys_search_path="$dir"
9890 else
9891 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9892 fi
9893 done
9894
9895cat >>confdefs.h <<_ACEOF
9896#define LTDL_SYSSEARCHPATH "$sys_search_path"
9897_ACEOF
9898
9899fi
9900
Reid Spencera773bd52006-08-04 18:18:08 +00009901{ echo "$as_me:$LINENO: checking for objdir" >&5
9902echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009903if test "${libltdl_cv_objdir+set}" = set; then
9904 echo $ECHO_N "(cached) $ECHO_C" >&6
9905else
9906 libltdl_cv_objdir="$objdir"
9907 if test -n "$objdir"; then
9908 :
9909 else
9910 rm -f .libs 2>/dev/null
9911 mkdir .libs 2>/dev/null
9912 if test -d .libs; then
9913 libltdl_cv_objdir=.libs
9914 else
9915 # MS-DOS does not allow filenames that begin with a dot.
9916 libltdl_cv_objdir=_libs
9917 fi
9918 rmdir .libs 2>/dev/null
9919 fi
9920
9921fi
Reid Spencera773bd52006-08-04 18:18:08 +00009922{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9923echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009924
9925cat >>confdefs.h <<_ACEOF
9926#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9927_ACEOF
9928
9929
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009930
9931
9932
9933
9934# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009935{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9936echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009937if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9939else
9940
9941# These are sane defaults that work on at least a few old systems.
9942# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9943
9944# Character class describing NM global symbol codes.
9945symcode='[BCDEGRST]'
9946
9947# Regexp to match symbols that can be accessed directly from C.
9948sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9949
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009950# Transform an extracted symbol line into a proper C declaration
9951lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9952
9953# Transform an extracted symbol line into symbol name and symbol address
9954lt_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'"
9955
9956# Define system-specific variables.
9957case $host_os in
9958aix*)
9959 symcode='[BCDT]'
9960 ;;
9961cygwin* | mingw* | pw32*)
9962 symcode='[ABCDGISTW]'
9963 ;;
9964hpux*) # Its linker distinguishes data from code symbols
9965 if test "$host_cpu" = ia64; then
9966 symcode='[ABCDEGRST]'
9967 fi
9968 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9969 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'"
9970 ;;
9971linux*)
9972 if test "$host_cpu" = ia64; then
9973 symcode='[ABCDGIRSTW]'
9974 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9975 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'"
9976 fi
9977 ;;
9978irix* | nonstopux*)
9979 symcode='[BCDEGRST]'
9980 ;;
9981osf*)
9982 symcode='[BCDEGQRST]'
9983 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009984solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009985 symcode='[BDRT]'
9986 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009987sco3.2v5*)
9988 symcode='[DT]'
9989 ;;
9990sysv4.2uw2*)
9991 symcode='[DT]'
9992 ;;
9993sysv5* | sco5v6* | unixware* | OpenUNIX*)
9994 symcode='[ABDT]'
9995 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009996sysv4)
9997 symcode='[DFNSTU]'
9998 ;;
9999esac
10000
10001# Handle CRLF in mingw tool chain
10002opt_cr=
10003case $build_os in
10004mingw*)
10005 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10006 ;;
10007esac
10008
10009# If we're using GNU nm, then use its standard symbol codes.
10010case `$NM -V 2>&1` in
10011*GNU* | *'with BFD'*)
10012 symcode='[ABCDGIRSTW]' ;;
10013esac
10014
10015# Try without a prefix undercore, then with it.
10016for ac_symprfx in "" "_"; do
10017
Reid Spencera773bd52006-08-04 18:18:08 +000010018 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10019 symxfrm="\\1 $ac_symprfx\\2 \\2"
10020
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010021 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010022 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 +000010023
10024 # Check to see that the pipe works correctly.
10025 pipe_works=no
10026
10027 rm -f conftest*
10028 cat > conftest.$ac_ext <<EOF
10029#ifdef __cplusplus
10030extern "C" {
10031#endif
10032char nm_test_var;
10033void nm_test_func(){}
10034#ifdef __cplusplus
10035}
10036#endif
10037int main(){nm_test_var='a';nm_test_func();return(0);}
10038EOF
10039
10040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10041 (eval $ac_compile) 2>&5
10042 ac_status=$?
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; then
10045 # Now try to grab the symbols.
10046 nlist=conftest.nm
10047 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10048 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10049 ac_status=$?
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); } && test -s "$nlist"; then
10052 # Try sorting and uniquifying the output.
10053 if sort "$nlist" | uniq > "$nlist"T; then
10054 mv -f "$nlist"T "$nlist"
10055 else
10056 rm -f "$nlist"T
10057 fi
10058
10059 # Make sure that we snagged all the symbols we need.
10060 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10061 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10062 cat <<EOF > conftest.$ac_ext
10063#ifdef __cplusplus
10064extern "C" {
10065#endif
10066
10067EOF
10068 # Now generate the symbol file.
10069 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10070
10071 cat <<EOF >> conftest.$ac_ext
10072#if defined (__STDC__) && __STDC__
10073# define lt_ptr_t void *
10074#else
10075# define lt_ptr_t char *
10076# define const
10077#endif
10078
10079/* The mapping between symbol names and symbols. */
10080const struct {
10081 const char *name;
10082 lt_ptr_t address;
10083}
10084lt_preloaded_symbols[] =
10085{
10086EOF
10087 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10088 cat <<\EOF >> conftest.$ac_ext
10089 {0, (lt_ptr_t) 0}
10090};
10091
10092#ifdef __cplusplus
10093}
10094#endif
10095EOF
10096 # Now try linking the two files.
10097 mv conftest.$ac_objext conftstm.$ac_objext
10098 lt_save_LIBS="$LIBS"
10099 lt_save_CFLAGS="$CFLAGS"
10100 LIBS="conftstm.$ac_objext"
10101 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10103 (eval $ac_link) 2>&5
10104 ac_status=$?
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10107 pipe_works=yes
10108 fi
10109 LIBS="$lt_save_LIBS"
10110 CFLAGS="$lt_save_CFLAGS"
10111 else
10112 echo "cannot find nm_test_func in $nlist" >&5
10113 fi
10114 else
10115 echo "cannot find nm_test_var in $nlist" >&5
10116 fi
10117 else
10118 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10119 fi
10120 else
10121 echo "$progname: failed program was:" >&5
10122 cat conftest.$ac_ext >&5
10123 fi
10124 rm -f conftest* conftst*
10125
10126 # Do not use the global_symbol_pipe unless it works.
10127 if test "$pipe_works" = yes; then
10128 break
10129 else
10130 lt_cv_sys_global_symbol_pipe=
10131 fi
10132done
10133
10134fi
10135
10136if test -z "$lt_cv_sys_global_symbol_pipe"; then
10137 lt_cv_sys_global_symbol_to_cdecl=
10138fi
10139if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000010140 { echo "$as_me:$LINENO: result: failed" >&5
10141echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010142else
Reid Spencera773bd52006-08-04 18:18:08 +000010143 { echo "$as_me:$LINENO: result: ok" >&5
10144echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010145fi
10146
10147
Reid Spencera773bd52006-08-04 18:18:08 +000010148{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10149echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010150if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10151 echo $ECHO_N "(cached) $ECHO_C" >&6
10152else
10153 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10154 libltdl_cv_preloaded_symbols=yes
10155 else
10156 libltdl_cv_preloaded_symbols=no
10157 fi
10158
10159fi
Reid Spencera773bd52006-08-04 18:18:08 +000010160{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10161echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010162if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10163
10164cat >>confdefs.h <<\_ACEOF
10165#define HAVE_PRELOADED_SYMBOLS 1
10166_ACEOF
10167
10168fi
10169
10170LIBADD_DL=
10171
10172ac_ext=c
10173ac_cpp='$CPP $CPPFLAGS'
10174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10176ac_compiler_gnu=$ac_cv_c_compiler_gnu
10177
10178
Reid Spencera773bd52006-08-04 18:18:08 +000010179{ echo "$as_me:$LINENO: checking for shl_load" >&5
10180echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010181if test "${ac_cv_func_shl_load+set}" = set; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
10183else
10184 cat >conftest.$ac_ext <<_ACEOF
10185/* confdefs.h. */
10186_ACEOF
10187cat confdefs.h >>conftest.$ac_ext
10188cat >>conftest.$ac_ext <<_ACEOF
10189/* end confdefs.h. */
10190/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10192#define shl_load innocuous_shl_load
10193
10194/* System header to define __stub macros and hopefully few prototypes,
10195 which can conflict with char shl_load (); below.
10196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10197 <limits.h> exists even on freestanding compilers. */
10198
10199#ifdef __STDC__
10200# include <limits.h>
10201#else
10202# include <assert.h>
10203#endif
10204
10205#undef shl_load
10206
Reid Spencera773bd52006-08-04 18:18:08 +000010207/* Override any GCC internal prototype to avoid an error.
10208 Use char because int might match the return type of a GCC
10209 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010210#ifdef __cplusplus
10211extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010212#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010213char shl_load ();
10214/* The GNU C library defines this for functions which it implements
10215 to always fail with ENOSYS. Some functions are actually named
10216 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010217#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010218choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010219#endif
10220
10221int
10222main ()
10223{
Reid Spencera773bd52006-08-04 18:18:08 +000010224return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010225 ;
10226 return 0;
10227}
10228_ACEOF
10229rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010230if { (ac_try="$ac_link"
10231case "(($ac_try" in
10232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233 *) ac_try_echo=$ac_try;;
10234esac
10235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010237 ac_status=$?
10238 grep -v '^ *+' conftest.er1 >conftest.err
10239 rm -f conftest.er1
10240 cat conftest.err >&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010242 (exit $ac_status); } &&
10243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10244 { (case "(($ac_try" in
10245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246 *) ac_try_echo=$ac_try;;
10247esac
10248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249 (eval "$ac_try") 2>&5
10250 ac_status=$?
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); }; } &&
10253 { ac_try='test -s conftest$ac_exeext'
10254 { (case "(($ac_try" in
10255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10256 *) ac_try_echo=$ac_try;;
10257esac
10258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10259 (eval "$ac_try") 2>&5
10260 ac_status=$?
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010263 ac_cv_func_shl_load=yes
10264else
10265 echo "$as_me: failed program was:" >&5
10266sed 's/^/| /' conftest.$ac_ext >&5
10267
Reid Spencera773bd52006-08-04 18:18:08 +000010268 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010269fi
Reid Spencera773bd52006-08-04 18:18:08 +000010270
Bill Wendlingebcceee2009-04-18 11:20:33 +000010271rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010272 conftest$ac_exeext conftest.$ac_ext
10273fi
Reid Spencera773bd52006-08-04 18:18:08 +000010274{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10275echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010276if test $ac_cv_func_shl_load = yes; then
10277
10278cat >>confdefs.h <<\_ACEOF
10279#define HAVE_SHL_LOAD 1
10280_ACEOF
10281
10282else
Reid Spencera773bd52006-08-04 18:18:08 +000010283 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10284echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010285if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10286 echo $ECHO_N "(cached) $ECHO_C" >&6
10287else
10288 ac_check_lib_save_LIBS=$LIBS
10289LIBS="-ldld $LIBS"
10290cat >conftest.$ac_ext <<_ACEOF
10291/* confdefs.h. */
10292_ACEOF
10293cat confdefs.h >>conftest.$ac_ext
10294cat >>conftest.$ac_ext <<_ACEOF
10295/* end confdefs.h. */
10296
Reid Spencera773bd52006-08-04 18:18:08 +000010297/* Override any GCC internal prototype to avoid an error.
10298 Use char because int might match the return type of a GCC
10299 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010300#ifdef __cplusplus
10301extern "C"
10302#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010303char shl_load ();
10304int
10305main ()
10306{
Reid Spencera773bd52006-08-04 18:18:08 +000010307return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010308 ;
10309 return 0;
10310}
10311_ACEOF
10312rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010313if { (ac_try="$ac_link"
10314case "(($ac_try" in
10315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10316 *) ac_try_echo=$ac_try;;
10317esac
10318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10319 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010320 ac_status=$?
10321 grep -v '^ *+' conftest.er1 >conftest.err
10322 rm -f conftest.er1
10323 cat conftest.err >&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010325 (exit $ac_status); } &&
10326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10327 { (case "(($ac_try" in
10328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329 *) ac_try_echo=$ac_try;;
10330esac
10331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10332 (eval "$ac_try") 2>&5
10333 ac_status=$?
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); }; } &&
10336 { ac_try='test -s conftest$ac_exeext'
10337 { (case "(($ac_try" in
10338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10339 *) ac_try_echo=$ac_try;;
10340esac
10341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10342 (eval "$ac_try") 2>&5
10343 ac_status=$?
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010346 ac_cv_lib_dld_shl_load=yes
10347else
10348 echo "$as_me: failed program was:" >&5
10349sed 's/^/| /' conftest.$ac_ext >&5
10350
Reid Spencera773bd52006-08-04 18:18:08 +000010351 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010352fi
Reid Spencera773bd52006-08-04 18:18:08 +000010353
Bill Wendlingebcceee2009-04-18 11:20:33 +000010354rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010355 conftest$ac_exeext conftest.$ac_ext
10356LIBS=$ac_check_lib_save_LIBS
10357fi
Reid Spencera773bd52006-08-04 18:18:08 +000010358{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10359echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010360if test $ac_cv_lib_dld_shl_load = yes; then
10361
10362cat >>confdefs.h <<\_ACEOF
10363#define HAVE_SHL_LOAD 1
10364_ACEOF
10365
10366 LIBADD_DL="$LIBADD_DL -ldld"
10367else
Reid Spencera773bd52006-08-04 18:18:08 +000010368 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10369echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010370if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10371 echo $ECHO_N "(cached) $ECHO_C" >&6
10372else
10373 ac_check_lib_save_LIBS=$LIBS
10374LIBS="-ldl $LIBS"
10375cat >conftest.$ac_ext <<_ACEOF
10376/* confdefs.h. */
10377_ACEOF
10378cat confdefs.h >>conftest.$ac_ext
10379cat >>conftest.$ac_ext <<_ACEOF
10380/* end confdefs.h. */
10381
Reid Spencera773bd52006-08-04 18:18:08 +000010382/* Override any GCC internal prototype to avoid an error.
10383 Use char because int might match the return type of a GCC
10384 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010385#ifdef __cplusplus
10386extern "C"
10387#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010388char dlopen ();
10389int
10390main ()
10391{
Reid Spencera773bd52006-08-04 18:18:08 +000010392return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010393 ;
10394 return 0;
10395}
10396_ACEOF
10397rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010398if { (ac_try="$ac_link"
10399case "(($ac_try" in
10400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10401 *) ac_try_echo=$ac_try;;
10402esac
10403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10404 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010405 ac_status=$?
10406 grep -v '^ *+' conftest.er1 >conftest.err
10407 rm -f conftest.er1
10408 cat conftest.err >&5
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010410 (exit $ac_status); } &&
10411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10412 { (case "(($ac_try" in
10413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10414 *) ac_try_echo=$ac_try;;
10415esac
10416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10417 (eval "$ac_try") 2>&5
10418 ac_status=$?
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); }; } &&
10421 { ac_try='test -s conftest$ac_exeext'
10422 { (case "(($ac_try" in
10423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10424 *) ac_try_echo=$ac_try;;
10425esac
10426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10427 (eval "$ac_try") 2>&5
10428 ac_status=$?
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010431 ac_cv_lib_dl_dlopen=yes
10432else
10433 echo "$as_me: failed program was:" >&5
10434sed 's/^/| /' conftest.$ac_ext >&5
10435
Reid Spencera773bd52006-08-04 18:18:08 +000010436 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010437fi
Reid Spencera773bd52006-08-04 18:18:08 +000010438
Bill Wendlingebcceee2009-04-18 11:20:33 +000010439rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010440 conftest$ac_exeext conftest.$ac_ext
10441LIBS=$ac_check_lib_save_LIBS
10442fi
Reid Spencera773bd52006-08-04 18:18:08 +000010443{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10444echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010445if test $ac_cv_lib_dl_dlopen = yes; then
10446
10447cat >>confdefs.h <<\_ACEOF
10448#define HAVE_LIBDL 1
10449_ACEOF
10450
10451 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10452else
10453 cat >conftest.$ac_ext <<_ACEOF
10454/* confdefs.h. */
10455_ACEOF
10456cat confdefs.h >>conftest.$ac_ext
10457cat >>conftest.$ac_ext <<_ACEOF
10458/* end confdefs.h. */
10459#if HAVE_DLFCN_H
10460# include <dlfcn.h>
10461#endif
10462
10463int
10464main ()
10465{
10466dlopen(0, 0);
10467 ;
10468 return 0;
10469}
10470_ACEOF
10471rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010472if { (ac_try="$ac_link"
10473case "(($ac_try" in
10474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10475 *) ac_try_echo=$ac_try;;
10476esac
10477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10478 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010479 ac_status=$?
10480 grep -v '^ *+' conftest.er1 >conftest.err
10481 rm -f conftest.er1
10482 cat conftest.err >&5
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010484 (exit $ac_status); } &&
10485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10486 { (case "(($ac_try" in
10487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10488 *) ac_try_echo=$ac_try;;
10489esac
10490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10491 (eval "$ac_try") 2>&5
10492 ac_status=$?
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); }; } &&
10495 { ac_try='test -s conftest$ac_exeext'
10496 { (case "(($ac_try" in
10497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10498 *) ac_try_echo=$ac_try;;
10499esac
10500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10501 (eval "$ac_try") 2>&5
10502 ac_status=$?
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010505
10506cat >>confdefs.h <<\_ACEOF
10507#define HAVE_LIBDL 1
10508_ACEOF
10509 libltdl_cv_func_dlopen="yes"
10510else
10511 echo "$as_me: failed program was:" >&5
10512sed 's/^/| /' conftest.$ac_ext >&5
10513
Reid Spencera773bd52006-08-04 18:18:08 +000010514 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10515echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010516if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10517 echo $ECHO_N "(cached) $ECHO_C" >&6
10518else
10519 ac_check_lib_save_LIBS=$LIBS
10520LIBS="-lsvld $LIBS"
10521cat >conftest.$ac_ext <<_ACEOF
10522/* confdefs.h. */
10523_ACEOF
10524cat confdefs.h >>conftest.$ac_ext
10525cat >>conftest.$ac_ext <<_ACEOF
10526/* end confdefs.h. */
10527
Reid Spencera773bd52006-08-04 18:18:08 +000010528/* Override any GCC internal prototype to avoid an error.
10529 Use char because int might match the return type of a GCC
10530 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010531#ifdef __cplusplus
10532extern "C"
10533#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010534char dlopen ();
10535int
10536main ()
10537{
Reid Spencera773bd52006-08-04 18:18:08 +000010538return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010539 ;
10540 return 0;
10541}
10542_ACEOF
10543rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010544if { (ac_try="$ac_link"
10545case "(($ac_try" in
10546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10547 *) ac_try_echo=$ac_try;;
10548esac
10549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10550 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010551 ac_status=$?
10552 grep -v '^ *+' conftest.er1 >conftest.err
10553 rm -f conftest.er1
10554 cat conftest.err >&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010556 (exit $ac_status); } &&
10557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10558 { (case "(($ac_try" in
10559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10560 *) ac_try_echo=$ac_try;;
10561esac
10562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10563 (eval "$ac_try") 2>&5
10564 ac_status=$?
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); }; } &&
10567 { ac_try='test -s conftest$ac_exeext'
10568 { (case "(($ac_try" in
10569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10570 *) ac_try_echo=$ac_try;;
10571esac
10572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10573 (eval "$ac_try") 2>&5
10574 ac_status=$?
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010577 ac_cv_lib_svld_dlopen=yes
10578else
10579 echo "$as_me: failed program was:" >&5
10580sed 's/^/| /' conftest.$ac_ext >&5
10581
Reid Spencera773bd52006-08-04 18:18:08 +000010582 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010583fi
Reid Spencera773bd52006-08-04 18:18:08 +000010584
Bill Wendlingebcceee2009-04-18 11:20:33 +000010585rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010586 conftest$ac_exeext conftest.$ac_ext
10587LIBS=$ac_check_lib_save_LIBS
10588fi
Reid Spencera773bd52006-08-04 18:18:08 +000010589{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10590echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010591if test $ac_cv_lib_svld_dlopen = yes; then
10592
10593cat >>confdefs.h <<\_ACEOF
10594#define HAVE_LIBDL 1
10595_ACEOF
10596
10597 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10598else
Reid Spencera773bd52006-08-04 18:18:08 +000010599 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10600echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010601if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10602 echo $ECHO_N "(cached) $ECHO_C" >&6
10603else
10604 ac_check_lib_save_LIBS=$LIBS
10605LIBS="-ldld $LIBS"
10606cat >conftest.$ac_ext <<_ACEOF
10607/* confdefs.h. */
10608_ACEOF
10609cat confdefs.h >>conftest.$ac_ext
10610cat >>conftest.$ac_ext <<_ACEOF
10611/* end confdefs.h. */
10612
Reid Spencera773bd52006-08-04 18:18:08 +000010613/* Override any GCC internal prototype to avoid an error.
10614 Use char because int might match the return type of a GCC
10615 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010616#ifdef __cplusplus
10617extern "C"
10618#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010619char dld_link ();
10620int
10621main ()
10622{
Reid Spencera773bd52006-08-04 18:18:08 +000010623return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010624 ;
10625 return 0;
10626}
10627_ACEOF
10628rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010629if { (ac_try="$ac_link"
10630case "(($ac_try" in
10631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632 *) ac_try_echo=$ac_try;;
10633esac
10634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010636 ac_status=$?
10637 grep -v '^ *+' conftest.er1 >conftest.err
10638 rm -f conftest.er1
10639 cat conftest.err >&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010641 (exit $ac_status); } &&
10642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10643 { (case "(($ac_try" in
10644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10645 *) ac_try_echo=$ac_try;;
10646esac
10647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10648 (eval "$ac_try") 2>&5
10649 ac_status=$?
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); }; } &&
10652 { ac_try='test -s conftest$ac_exeext'
10653 { (case "(($ac_try" in
10654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655 *) ac_try_echo=$ac_try;;
10656esac
10657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10658 (eval "$ac_try") 2>&5
10659 ac_status=$?
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010662 ac_cv_lib_dld_dld_link=yes
10663else
10664 echo "$as_me: failed program was:" >&5
10665sed 's/^/| /' conftest.$ac_ext >&5
10666
Reid Spencera773bd52006-08-04 18:18:08 +000010667 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010668fi
Reid Spencera773bd52006-08-04 18:18:08 +000010669
Bill Wendlingebcceee2009-04-18 11:20:33 +000010670rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010671 conftest$ac_exeext conftest.$ac_ext
10672LIBS=$ac_check_lib_save_LIBS
10673fi
Reid Spencera773bd52006-08-04 18:18:08 +000010674{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10675echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010676if test $ac_cv_lib_dld_dld_link = yes; then
10677
10678cat >>confdefs.h <<\_ACEOF
10679#define HAVE_DLD 1
10680_ACEOF
10681
10682 LIBADD_DL="$LIBADD_DL -ldld"
10683else
Reid Spencera773bd52006-08-04 18:18:08 +000010684 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10685echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010686if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10687 echo $ECHO_N "(cached) $ECHO_C" >&6
10688else
10689 cat >conftest.$ac_ext <<_ACEOF
10690/* confdefs.h. */
10691_ACEOF
10692cat confdefs.h >>conftest.$ac_ext
10693cat >>conftest.$ac_ext <<_ACEOF
10694/* end confdefs.h. */
10695/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10697#define _dyld_func_lookup innocuous__dyld_func_lookup
10698
10699/* System header to define __stub macros and hopefully few prototypes,
10700 which can conflict with char _dyld_func_lookup (); below.
10701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10702 <limits.h> exists even on freestanding compilers. */
10703
10704#ifdef __STDC__
10705# include <limits.h>
10706#else
10707# include <assert.h>
10708#endif
10709
10710#undef _dyld_func_lookup
10711
Reid Spencera773bd52006-08-04 18:18:08 +000010712/* Override any GCC internal prototype to avoid an error.
10713 Use char because int might match the return type of a GCC
10714 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010715#ifdef __cplusplus
10716extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010717#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010718char _dyld_func_lookup ();
10719/* The GNU C library defines this for functions which it implements
10720 to always fail with ENOSYS. Some functions are actually named
10721 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010722#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010723choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010724#endif
10725
10726int
10727main ()
10728{
Reid Spencera773bd52006-08-04 18:18:08 +000010729return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010730 ;
10731 return 0;
10732}
10733_ACEOF
10734rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010735if { (ac_try="$ac_link"
10736case "(($ac_try" in
10737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10738 *) ac_try_echo=$ac_try;;
10739esac
10740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10741 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010742 ac_status=$?
10743 grep -v '^ *+' conftest.er1 >conftest.err
10744 rm -f conftest.er1
10745 cat conftest.err >&5
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010747 (exit $ac_status); } &&
10748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10749 { (case "(($ac_try" in
10750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10751 *) ac_try_echo=$ac_try;;
10752esac
10753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10754 (eval "$ac_try") 2>&5
10755 ac_status=$?
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); }; } &&
10758 { ac_try='test -s conftest$ac_exeext'
10759 { (case "(($ac_try" in
10760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10761 *) ac_try_echo=$ac_try;;
10762esac
10763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10764 (eval "$ac_try") 2>&5
10765 ac_status=$?
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010768 ac_cv_func__dyld_func_lookup=yes
10769else
10770 echo "$as_me: failed program was:" >&5
10771sed 's/^/| /' conftest.$ac_ext >&5
10772
Reid Spencera773bd52006-08-04 18:18:08 +000010773 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010774fi
Reid Spencera773bd52006-08-04 18:18:08 +000010775
Bill Wendlingebcceee2009-04-18 11:20:33 +000010776rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010777 conftest$ac_exeext conftest.$ac_ext
10778fi
Reid Spencera773bd52006-08-04 18:18:08 +000010779{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10780echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010781if test $ac_cv_func__dyld_func_lookup = yes; then
10782
10783cat >>confdefs.h <<\_ACEOF
10784#define HAVE_DYLD 1
10785_ACEOF
10786
10787fi
10788
10789
10790fi
10791
10792
10793fi
10794
10795
10796fi
Reid Spencera773bd52006-08-04 18:18:08 +000010797
Bill Wendlingebcceee2009-04-18 11:20:33 +000010798rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010799 conftest$ac_exeext conftest.$ac_ext
10800
10801fi
10802
10803
10804fi
10805
10806
10807fi
10808
10809
10810if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10811then
10812 lt_save_LIBS="$LIBS"
10813 LIBS="$LIBS $LIBADD_DL"
10814
10815for ac_func in dlerror
10816do
10817as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010818{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10819echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10820if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010821 echo $ECHO_N "(cached) $ECHO_C" >&6
10822else
10823 cat >conftest.$ac_ext <<_ACEOF
10824/* confdefs.h. */
10825_ACEOF
10826cat confdefs.h >>conftest.$ac_ext
10827cat >>conftest.$ac_ext <<_ACEOF
10828/* end confdefs.h. */
10829/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10831#define $ac_func innocuous_$ac_func
10832
10833/* System header to define __stub macros and hopefully few prototypes,
10834 which can conflict with char $ac_func (); below.
10835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10836 <limits.h> exists even on freestanding compilers. */
10837
10838#ifdef __STDC__
10839# include <limits.h>
10840#else
10841# include <assert.h>
10842#endif
10843
10844#undef $ac_func
10845
Reid Spencera773bd52006-08-04 18:18:08 +000010846/* Override any GCC internal prototype to avoid an error.
10847 Use char because int might match the return type of a GCC
10848 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010849#ifdef __cplusplus
10850extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010851#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010852char $ac_func ();
10853/* The GNU C library defines this for functions which it implements
10854 to always fail with ENOSYS. Some functions are actually named
10855 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010856#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010857choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010858#endif
10859
10860int
10861main ()
10862{
Reid Spencera773bd52006-08-04 18:18:08 +000010863return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010864 ;
10865 return 0;
10866}
10867_ACEOF
10868rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010869if { (ac_try="$ac_link"
10870case "(($ac_try" in
10871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872 *) ac_try_echo=$ac_try;;
10873esac
10874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010876 ac_status=$?
10877 grep -v '^ *+' conftest.er1 >conftest.err
10878 rm -f conftest.er1
10879 cat conftest.err >&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010881 (exit $ac_status); } &&
10882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10883 { (case "(($ac_try" in
10884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10885 *) ac_try_echo=$ac_try;;
10886esac
10887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10888 (eval "$ac_try") 2>&5
10889 ac_status=$?
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); }; } &&
10892 { ac_try='test -s conftest$ac_exeext'
10893 { (case "(($ac_try" in
10894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10895 *) ac_try_echo=$ac_try;;
10896esac
10897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10898 (eval "$ac_try") 2>&5
10899 ac_status=$?
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010902 eval "$as_ac_var=yes"
10903else
10904 echo "$as_me: failed program was:" >&5
10905sed 's/^/| /' conftest.$ac_ext >&5
10906
Reid Spencera773bd52006-08-04 18:18:08 +000010907 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010908fi
Reid Spencera773bd52006-08-04 18:18:08 +000010909
Bill Wendlingebcceee2009-04-18 11:20:33 +000010910rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010911 conftest$ac_exeext conftest.$ac_ext
10912fi
Reid Spencera773bd52006-08-04 18:18:08 +000010913ac_res=`eval echo '${'$as_ac_var'}'`
10914 { echo "$as_me:$LINENO: result: $ac_res" >&5
10915echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010916if test `eval echo '${'$as_ac_var'}'` = yes; then
10917 cat >>confdefs.h <<_ACEOF
10918#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10919_ACEOF
10920
10921fi
10922done
10923
10924 LIBS="$lt_save_LIBS"
10925fi
10926ac_ext=c
10927ac_cpp='$CPP $CPPFLAGS'
10928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10930ac_compiler_gnu=$ac_cv_c_compiler_gnu
10931
10932
10933
Reid Spencera773bd52006-08-04 18:18:08 +000010934{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10935echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010936if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10938else
10939 ac_cv_sys_symbol_underscore=no
10940 cat > conftest.$ac_ext <<EOF
10941void nm_test_func(){}
10942int main(){nm_test_func;return 0;}
10943EOF
10944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10945 (eval $ac_compile) 2>&5
10946 ac_status=$?
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); }; then
10949 # Now try to grab the symbols.
10950 ac_nlist=conftest.nm
10951 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10952 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10953 ac_status=$?
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } && test -s "$ac_nlist"; then
10956 # See whether the symbols have a leading underscore.
10957 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10958 ac_cv_sys_symbol_underscore=yes
10959 else
10960 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10961 :
10962 else
10963 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10964 fi
10965 fi
10966 else
10967 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10968 fi
10969 else
10970 echo "configure: failed program was:" >&5
10971 cat conftest.c >&5
10972 fi
10973 rm -rf conftest*
10974
10975fi
Reid Spencera773bd52006-08-04 18:18:08 +000010976{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10977echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010978
10979
10980if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10981 if test x"$libltdl_cv_func_dlopen" = xyes ||
10982 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010983 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10984echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010985if test "${libltdl_cv_need_uscore+set}" = set; then
10986 echo $ECHO_N "(cached) $ECHO_C" >&6
10987else
10988 libltdl_cv_need_uscore=unknown
10989 save_LIBS="$LIBS"
10990 LIBS="$LIBS $LIBADD_DL"
10991 if test "$cross_compiling" = yes; then :
10992 libltdl_cv_need_uscore=cross
10993else
10994 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10995 lt_status=$lt_dlunknown
10996 cat > conftest.$ac_ext <<EOF
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000010997#line 10997 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010998#include "confdefs.h"
10999
11000#if HAVE_DLFCN_H
11001#include <dlfcn.h>
11002#endif
11003
11004#include <stdio.h>
11005
11006#ifdef RTLD_GLOBAL
11007# define LT_DLGLOBAL RTLD_GLOBAL
11008#else
11009# ifdef DL_GLOBAL
11010# define LT_DLGLOBAL DL_GLOBAL
11011# else
11012# define LT_DLGLOBAL 0
11013# endif
11014#endif
11015
11016/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11017 find out it does not work in some platform. */
11018#ifndef LT_DLLAZY_OR_NOW
11019# ifdef RTLD_LAZY
11020# define LT_DLLAZY_OR_NOW RTLD_LAZY
11021# else
11022# ifdef DL_LAZY
11023# define LT_DLLAZY_OR_NOW DL_LAZY
11024# else
11025# ifdef RTLD_NOW
11026# define LT_DLLAZY_OR_NOW RTLD_NOW
11027# else
11028# ifdef DL_NOW
11029# define LT_DLLAZY_OR_NOW DL_NOW
11030# else
11031# define LT_DLLAZY_OR_NOW 0
11032# endif
11033# endif
11034# endif
11035# endif
11036#endif
11037
11038#ifdef __cplusplus
11039extern "C" void exit (int);
11040#endif
11041
11042void fnord() { int i=42;}
11043int main ()
11044{
11045 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11046 int status = $lt_dlunknown;
11047
11048 if (self)
11049 {
11050 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11051 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11052 /* dlclose (self); */
11053 }
Reid Spencera773bd52006-08-04 18:18:08 +000011054 else
11055 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011056
11057 exit (status);
11058}
11059EOF
11060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11061 (eval $ac_link) 2>&5
11062 ac_status=$?
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011065 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011066 lt_status=$?
11067 case x$lt_status in
11068 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11069 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011070 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011071 esac
11072 else :
11073 # compilation failed
11074
11075 fi
11076fi
11077rm -fr conftest*
11078
11079 LIBS="$save_LIBS"
11080
11081fi
Reid Spencera773bd52006-08-04 18:18:08 +000011082{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11083echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011084 fi
11085fi
11086
11087if test x"$libltdl_cv_need_uscore" = xyes; then
11088
11089cat >>confdefs.h <<\_ACEOF
11090#define NEED_USCORE 1
11091_ACEOF
11092
11093fi
11094
11095
Reid Spencera773bd52006-08-04 18:18:08 +000011096{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11097echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011098if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11099 echo $ECHO_N "(cached) $ECHO_C" >&6
11100else
11101 # PORTME does your system automatically load deplibs for dlopen?
11102 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11103 # For now, we just catch OSes we know something about -- in the
11104 # future, we'll try test this programmatically.
11105 libltdl_cv_sys_dlopen_deplibs=unknown
11106 case "$host_os" in
11107 aix3*|aix4.1.*|aix4.2.*)
11108 # Unknown whether this is true for these versions of AIX, but
11109 # we want this `case' here to explicitly catch those versions.
11110 libltdl_cv_sys_dlopen_deplibs=unknown
11111 ;;
11112 aix[45]*)
11113 libltdl_cv_sys_dlopen_deplibs=yes
11114 ;;
11115 darwin*)
11116 # Assuming the user has installed a libdl from somewhere, this is true
11117 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11118 libltdl_cv_sys_dlopen_deplibs=yes
11119 ;;
11120 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11121 # GNU and its variants, using gnu ld.so (Glibc)
11122 libltdl_cv_sys_dlopen_deplibs=yes
11123 ;;
11124 hpux10*|hpux11*)
11125 libltdl_cv_sys_dlopen_deplibs=yes
11126 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011127 interix*)
11128 libltdl_cv_sys_dlopen_deplibs=yes
11129 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011130 irix[12345]*|irix6.[01]*)
11131 # Catch all versions of IRIX before 6.2, and indicate that we don't
11132 # know how it worked for any of those versions.
11133 libltdl_cv_sys_dlopen_deplibs=unknown
11134 ;;
11135 irix*)
11136 # The case above catches anything before 6.2, and it's known that
11137 # at 6.2 and later dlopen does load deplibs.
11138 libltdl_cv_sys_dlopen_deplibs=yes
11139 ;;
11140 netbsd*)
11141 libltdl_cv_sys_dlopen_deplibs=yes
11142 ;;
11143 openbsd*)
11144 libltdl_cv_sys_dlopen_deplibs=yes
11145 ;;
11146 osf[1234]*)
11147 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11148 # it did *not* use an RPATH in a shared library to find objects the
11149 # library depends on, so we explictly say `no'.
11150 libltdl_cv_sys_dlopen_deplibs=no
11151 ;;
11152 osf5.0|osf5.0a|osf5.1)
11153 # dlopen *does* load deplibs and with the right loader patch applied
11154 # it even uses RPATH in a shared library to search for shared objects
11155 # that the library depends on, but there's no easy way to know if that
11156 # patch is installed. Since this is the case, all we can really
11157 # say is unknown -- it depends on the patch being installed. If
11158 # it is, this changes to `yes'. Without it, it would be `no'.
11159 libltdl_cv_sys_dlopen_deplibs=unknown
11160 ;;
11161 osf*)
11162 # the two cases above should catch all versions of osf <= 5.1. Read
11163 # the comments above for what we know about them.
11164 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11165 # is used to find them so we can finally say `yes'.
11166 libltdl_cv_sys_dlopen_deplibs=yes
11167 ;;
11168 solaris*)
11169 libltdl_cv_sys_dlopen_deplibs=yes
11170 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011171 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11172 libltdl_cv_sys_dlopen_deplibs=yes
11173 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011174 esac
11175
11176fi
Reid Spencera773bd52006-08-04 18:18:08 +000011177{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11178echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011179if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11180
11181cat >>confdefs.h <<\_ACEOF
11182#define LTDL_DLOPEN_DEPLIBS 1
11183_ACEOF
11184
11185fi
11186
11187
11188for ac_header in argz.h
11189do
11190as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011191if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11194if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011195 echo $ECHO_N "(cached) $ECHO_C" >&6
11196fi
Reid Spencera773bd52006-08-04 18:18:08 +000011197ac_res=`eval echo '${'$as_ac_Header'}'`
11198 { echo "$as_me:$LINENO: result: $ac_res" >&5
11199echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011200else
11201 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011202{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11203echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011204cat >conftest.$ac_ext <<_ACEOF
11205/* confdefs.h. */
11206_ACEOF
11207cat confdefs.h >>conftest.$ac_ext
11208cat >>conftest.$ac_ext <<_ACEOF
11209/* end confdefs.h. */
11210$ac_includes_default
11211#include <$ac_header>
11212_ACEOF
11213rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011214if { (ac_try="$ac_compile"
11215case "(($ac_try" in
11216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217 *) ac_try_echo=$ac_try;;
11218esac
11219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011221 ac_status=$?
11222 grep -v '^ *+' conftest.er1 >conftest.err
11223 rm -f conftest.er1
11224 cat conftest.err >&5
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011226 (exit $ac_status); } &&
11227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11228 { (case "(($ac_try" in
11229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11230 *) ac_try_echo=$ac_try;;
11231esac
11232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11233 (eval "$ac_try") 2>&5
11234 ac_status=$?
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; } &&
11237 { ac_try='test -s conftest.$ac_objext'
11238 { (case "(($ac_try" in
11239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11240 *) ac_try_echo=$ac_try;;
11241esac
11242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11243 (eval "$ac_try") 2>&5
11244 ac_status=$?
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011247 ac_header_compiler=yes
11248else
11249 echo "$as_me: failed program was:" >&5
11250sed 's/^/| /' conftest.$ac_ext >&5
11251
Reid Spencera773bd52006-08-04 18:18:08 +000011252 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011253fi
Reid Spencera773bd52006-08-04 18:18:08 +000011254
11255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11256{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11257echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011258
11259# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011260{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11261echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011262cat >conftest.$ac_ext <<_ACEOF
11263/* confdefs.h. */
11264_ACEOF
11265cat confdefs.h >>conftest.$ac_ext
11266cat >>conftest.$ac_ext <<_ACEOF
11267/* end confdefs.h. */
11268#include <$ac_header>
11269_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011270if { (ac_try="$ac_cpp conftest.$ac_ext"
11271case "(($ac_try" in
11272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11273 *) ac_try_echo=$ac_try;;
11274esac
11275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011277 ac_status=$?
11278 grep -v '^ *+' conftest.er1 >conftest.err
11279 rm -f conftest.er1
11280 cat conftest.err >&5
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011282 (exit $ac_status); } >/dev/null; then
11283 if test -s conftest.err; then
11284 ac_cpp_err=$ac_c_preproc_warn_flag
11285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11286 else
11287 ac_cpp_err=
11288 fi
11289else
11290 ac_cpp_err=yes
11291fi
11292if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011293 ac_header_preproc=yes
11294else
11295 echo "$as_me: failed program was:" >&5
11296sed 's/^/| /' conftest.$ac_ext >&5
11297
11298 ac_header_preproc=no
11299fi
Reid Spencera773bd52006-08-04 18:18:08 +000011300
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011301rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011302{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11303echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011304
11305# So? What about this header?
11306case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11307 yes:no: )
11308 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11309echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11311echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11312 ac_header_preproc=yes
11313 ;;
11314 no:yes:* )
11315 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11316echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11317 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11318echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11319 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11320echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11321 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11322echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11324echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11325 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11326echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011327 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011328## ----------------------------------- ##
11329## Report this to llvmbugs@cs.uiuc.edu ##
11330## ----------------------------------- ##
11331_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011332 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011333 ;;
11334esac
Reid Spencera773bd52006-08-04 18:18:08 +000011335{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11336echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11337if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011338 echo $ECHO_N "(cached) $ECHO_C" >&6
11339else
11340 eval "$as_ac_Header=\$ac_header_preproc"
11341fi
Reid Spencera773bd52006-08-04 18:18:08 +000011342ac_res=`eval echo '${'$as_ac_Header'}'`
11343 { echo "$as_me:$LINENO: result: $ac_res" >&5
11344echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011345
11346fi
11347if test `eval echo '${'$as_ac_Header'}'` = yes; then
11348 cat >>confdefs.h <<_ACEOF
11349#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11350_ACEOF
11351
11352fi
11353
11354done
11355
11356
Reid Spencera773bd52006-08-04 18:18:08 +000011357{ echo "$as_me:$LINENO: checking for error_t" >&5
11358echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011359if test "${ac_cv_type_error_t+set}" = set; then
11360 echo $ECHO_N "(cached) $ECHO_C" >&6
11361else
11362 cat >conftest.$ac_ext <<_ACEOF
11363/* confdefs.h. */
11364_ACEOF
11365cat confdefs.h >>conftest.$ac_ext
11366cat >>conftest.$ac_ext <<_ACEOF
11367/* end confdefs.h. */
11368#if HAVE_ARGZ_H
11369# include <argz.h>
11370#endif
11371
Reid Spencera773bd52006-08-04 18:18:08 +000011372typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011373int
11374main ()
11375{
Reid Spencera773bd52006-08-04 18:18:08 +000011376if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011377 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000011378if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011379 return 0;
11380 ;
11381 return 0;
11382}
11383_ACEOF
11384rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011385if { (ac_try="$ac_compile"
11386case "(($ac_try" in
11387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388 *) ac_try_echo=$ac_try;;
11389esac
11390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11391 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011392 ac_status=$?
11393 grep -v '^ *+' conftest.er1 >conftest.err
11394 rm -f conftest.er1
11395 cat conftest.err >&5
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011397 (exit $ac_status); } &&
11398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11399 { (case "(($ac_try" in
11400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11401 *) ac_try_echo=$ac_try;;
11402esac
11403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11404 (eval "$ac_try") 2>&5
11405 ac_status=$?
11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); }; } &&
11408 { ac_try='test -s conftest.$ac_objext'
11409 { (case "(($ac_try" in
11410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11411 *) ac_try_echo=$ac_try;;
11412esac
11413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11414 (eval "$ac_try") 2>&5
11415 ac_status=$?
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011418 ac_cv_type_error_t=yes
11419else
11420 echo "$as_me: failed program was:" >&5
11421sed 's/^/| /' conftest.$ac_ext >&5
11422
Reid Spencera773bd52006-08-04 18:18:08 +000011423 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011424fi
Reid Spencera773bd52006-08-04 18:18:08 +000011425
11426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011427fi
Reid Spencera773bd52006-08-04 18:18:08 +000011428{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11429echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011430if test $ac_cv_type_error_t = yes; then
11431
11432cat >>confdefs.h <<_ACEOF
11433#define HAVE_ERROR_T 1
11434_ACEOF
11435
11436
11437else
11438
11439cat >>confdefs.h <<\_ACEOF
11440#define error_t int
11441_ACEOF
11442
11443fi
11444
11445
11446
11447
11448
11449
11450
11451for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11452do
11453as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011454{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11455echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11456if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011457 echo $ECHO_N "(cached) $ECHO_C" >&6
11458else
11459 cat >conftest.$ac_ext <<_ACEOF
11460/* confdefs.h. */
11461_ACEOF
11462cat confdefs.h >>conftest.$ac_ext
11463cat >>conftest.$ac_ext <<_ACEOF
11464/* end confdefs.h. */
11465/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11467#define $ac_func innocuous_$ac_func
11468
11469/* System header to define __stub macros and hopefully few prototypes,
11470 which can conflict with char $ac_func (); below.
11471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11472 <limits.h> exists even on freestanding compilers. */
11473
11474#ifdef __STDC__
11475# include <limits.h>
11476#else
11477# include <assert.h>
11478#endif
11479
11480#undef $ac_func
11481
Reid Spencera773bd52006-08-04 18:18:08 +000011482/* Override any GCC internal prototype to avoid an error.
11483 Use char because int might match the return type of a GCC
11484 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011485#ifdef __cplusplus
11486extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011487#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011488char $ac_func ();
11489/* The GNU C library defines this for functions which it implements
11490 to always fail with ENOSYS. Some functions are actually named
11491 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011492#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011493choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011494#endif
11495
11496int
11497main ()
11498{
Reid Spencera773bd52006-08-04 18:18:08 +000011499return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011500 ;
11501 return 0;
11502}
11503_ACEOF
11504rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011505if { (ac_try="$ac_link"
11506case "(($ac_try" in
11507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508 *) ac_try_echo=$ac_try;;
11509esac
11510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011512 ac_status=$?
11513 grep -v '^ *+' conftest.er1 >conftest.err
11514 rm -f conftest.er1
11515 cat conftest.err >&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011517 (exit $ac_status); } &&
11518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11519 { (case "(($ac_try" in
11520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521 *) ac_try_echo=$ac_try;;
11522esac
11523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11524 (eval "$ac_try") 2>&5
11525 ac_status=$?
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); }; } &&
11528 { ac_try='test -s conftest$ac_exeext'
11529 { (case "(($ac_try" in
11530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11531 *) ac_try_echo=$ac_try;;
11532esac
11533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11534 (eval "$ac_try") 2>&5
11535 ac_status=$?
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011538 eval "$as_ac_var=yes"
11539else
11540 echo "$as_me: failed program was:" >&5
11541sed 's/^/| /' conftest.$ac_ext >&5
11542
Reid Spencera773bd52006-08-04 18:18:08 +000011543 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011544fi
Reid Spencera773bd52006-08-04 18:18:08 +000011545
Bill Wendlingebcceee2009-04-18 11:20:33 +000011546rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011547 conftest$ac_exeext conftest.$ac_ext
11548fi
Reid Spencera773bd52006-08-04 18:18:08 +000011549ac_res=`eval echo '${'$as_ac_var'}'`
11550 { echo "$as_me:$LINENO: result: $ac_res" >&5
11551echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011552if test `eval echo '${'$as_ac_var'}'` = yes; then
11553 cat >>confdefs.h <<_ACEOF
11554#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11555_ACEOF
11556
11557fi
11558done
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11588 stdio.h unistd.h
11589do
11590as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011591if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11593echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11594if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011595 echo $ECHO_N "(cached) $ECHO_C" >&6
11596fi
Reid Spencera773bd52006-08-04 18:18:08 +000011597ac_res=`eval echo '${'$as_ac_Header'}'`
11598 { echo "$as_me:$LINENO: result: $ac_res" >&5
11599echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011600else
11601 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011602{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11603echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011604cat >conftest.$ac_ext <<_ACEOF
11605/* confdefs.h. */
11606_ACEOF
11607cat confdefs.h >>conftest.$ac_ext
11608cat >>conftest.$ac_ext <<_ACEOF
11609/* end confdefs.h. */
11610$ac_includes_default
11611#include <$ac_header>
11612_ACEOF
11613rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011614if { (ac_try="$ac_compile"
11615case "(($ac_try" in
11616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617 *) ac_try_echo=$ac_try;;
11618esac
11619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011621 ac_status=$?
11622 grep -v '^ *+' conftest.er1 >conftest.err
11623 rm -f conftest.er1
11624 cat conftest.err >&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011626 (exit $ac_status); } &&
11627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11628 { (case "(($ac_try" in
11629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11630 *) ac_try_echo=$ac_try;;
11631esac
11632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11633 (eval "$ac_try") 2>&5
11634 ac_status=$?
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; } &&
11637 { ac_try='test -s conftest.$ac_objext'
11638 { (case "(($ac_try" in
11639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640 *) ac_try_echo=$ac_try;;
11641esac
11642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643 (eval "$ac_try") 2>&5
11644 ac_status=$?
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011647 ac_header_compiler=yes
11648else
11649 echo "$as_me: failed program was:" >&5
11650sed 's/^/| /' conftest.$ac_ext >&5
11651
Reid Spencera773bd52006-08-04 18:18:08 +000011652 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011653fi
Reid Spencera773bd52006-08-04 18:18:08 +000011654
11655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11656{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11657echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011658
11659# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011660{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11661echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011662cat >conftest.$ac_ext <<_ACEOF
11663/* confdefs.h. */
11664_ACEOF
11665cat confdefs.h >>conftest.$ac_ext
11666cat >>conftest.$ac_ext <<_ACEOF
11667/* end confdefs.h. */
11668#include <$ac_header>
11669_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011670if { (ac_try="$ac_cpp conftest.$ac_ext"
11671case "(($ac_try" in
11672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11673 *) ac_try_echo=$ac_try;;
11674esac
11675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011677 ac_status=$?
11678 grep -v '^ *+' conftest.er1 >conftest.err
11679 rm -f conftest.er1
11680 cat conftest.err >&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011682 (exit $ac_status); } >/dev/null; then
11683 if test -s conftest.err; then
11684 ac_cpp_err=$ac_c_preproc_warn_flag
11685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11686 else
11687 ac_cpp_err=
11688 fi
11689else
11690 ac_cpp_err=yes
11691fi
11692if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011693 ac_header_preproc=yes
11694else
11695 echo "$as_me: failed program was:" >&5
11696sed 's/^/| /' conftest.$ac_ext >&5
11697
11698 ac_header_preproc=no
11699fi
Reid Spencera773bd52006-08-04 18:18:08 +000011700
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011701rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011702{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11703echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011704
11705# So? What about this header?
11706case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11707 yes:no: )
11708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11709echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11711echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11712 ac_header_preproc=yes
11713 ;;
11714 no:yes:* )
11715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11716echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11718echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11719 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11720echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11721 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11722echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11724echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11725 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11726echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011727 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011728## ----------------------------------- ##
11729## Report this to llvmbugs@cs.uiuc.edu ##
11730## ----------------------------------- ##
11731_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011732 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011733 ;;
11734esac
Reid Spencera773bd52006-08-04 18:18:08 +000011735{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11737if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011738 echo $ECHO_N "(cached) $ECHO_C" >&6
11739else
11740 eval "$as_ac_Header=\$ac_header_preproc"
11741fi
Reid Spencera773bd52006-08-04 18:18:08 +000011742ac_res=`eval echo '${'$as_ac_Header'}'`
11743 { echo "$as_me:$LINENO: result: $ac_res" >&5
11744echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011745
11746fi
11747if test `eval echo '${'$as_ac_Header'}'` = yes; then
11748 cat >>confdefs.h <<_ACEOF
11749#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11750_ACEOF
11751
11752fi
11753
11754done
11755
11756
11757
11758
11759
11760for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11761do
11762as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11765echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11766if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011767 echo $ECHO_N "(cached) $ECHO_C" >&6
11768fi
Reid Spencera773bd52006-08-04 18:18:08 +000011769ac_res=`eval echo '${'$as_ac_Header'}'`
11770 { echo "$as_me:$LINENO: result: $ac_res" >&5
11771echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011772else
11773 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011774{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11775echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011776cat >conftest.$ac_ext <<_ACEOF
11777/* confdefs.h. */
11778_ACEOF
11779cat confdefs.h >>conftest.$ac_ext
11780cat >>conftest.$ac_ext <<_ACEOF
11781/* end confdefs.h. */
11782$ac_includes_default
11783#include <$ac_header>
11784_ACEOF
11785rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011786if { (ac_try="$ac_compile"
11787case "(($ac_try" in
11788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789 *) ac_try_echo=$ac_try;;
11790esac
11791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11792 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011793 ac_status=$?
11794 grep -v '^ *+' conftest.er1 >conftest.err
11795 rm -f conftest.er1
11796 cat conftest.err >&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011798 (exit $ac_status); } &&
11799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11800 { (case "(($ac_try" in
11801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802 *) ac_try_echo=$ac_try;;
11803esac
11804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805 (eval "$ac_try") 2>&5
11806 ac_status=$?
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; } &&
11809 { ac_try='test -s conftest.$ac_objext'
11810 { (case "(($ac_try" in
11811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11812 *) ac_try_echo=$ac_try;;
11813esac
11814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11815 (eval "$ac_try") 2>&5
11816 ac_status=$?
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011819 ac_header_compiler=yes
11820else
11821 echo "$as_me: failed program was:" >&5
11822sed 's/^/| /' conftest.$ac_ext >&5
11823
Reid Spencera773bd52006-08-04 18:18:08 +000011824 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011825fi
Reid Spencera773bd52006-08-04 18:18:08 +000011826
11827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11828{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11829echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011830
11831# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011832{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11833echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011834cat >conftest.$ac_ext <<_ACEOF
11835/* confdefs.h. */
11836_ACEOF
11837cat confdefs.h >>conftest.$ac_ext
11838cat >>conftest.$ac_ext <<_ACEOF
11839/* end confdefs.h. */
11840#include <$ac_header>
11841_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011842if { (ac_try="$ac_cpp conftest.$ac_ext"
11843case "(($ac_try" in
11844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845 *) ac_try_echo=$ac_try;;
11846esac
11847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011849 ac_status=$?
11850 grep -v '^ *+' conftest.er1 >conftest.err
11851 rm -f conftest.er1
11852 cat conftest.err >&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011854 (exit $ac_status); } >/dev/null; then
11855 if test -s conftest.err; then
11856 ac_cpp_err=$ac_c_preproc_warn_flag
11857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11858 else
11859 ac_cpp_err=
11860 fi
11861else
11862 ac_cpp_err=yes
11863fi
11864if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011865 ac_header_preproc=yes
11866else
11867 echo "$as_me: failed program was:" >&5
11868sed 's/^/| /' conftest.$ac_ext >&5
11869
11870 ac_header_preproc=no
11871fi
Reid Spencera773bd52006-08-04 18:18:08 +000011872
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011873rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011874{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11875echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011876
11877# So? What about this header?
11878case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11879 yes:no: )
11880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11881echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11883echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11884 ac_header_preproc=yes
11885 ;;
11886 no:yes:* )
11887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11888echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11890echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11892echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11894echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11896echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11898echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011899 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011900## ----------------------------------- ##
11901## Report this to llvmbugs@cs.uiuc.edu ##
11902## ----------------------------------- ##
11903_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011904 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011905 ;;
11906esac
Reid Spencera773bd52006-08-04 18:18:08 +000011907{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11908echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11909if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011910 echo $ECHO_N "(cached) $ECHO_C" >&6
11911else
11912 eval "$as_ac_Header=\$ac_header_preproc"
11913fi
Reid Spencera773bd52006-08-04 18:18:08 +000011914ac_res=`eval echo '${'$as_ac_Header'}'`
11915 { echo "$as_me:$LINENO: result: $ac_res" >&5
11916echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011917
11918fi
11919if test `eval echo '${'$as_ac_Header'}'` = yes; then
11920 cat >>confdefs.h <<_ACEOF
11921#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11922_ACEOF
11923
11924fi
11925
11926done
11927
11928
11929
11930for ac_header in string.h strings.h
11931do
11932as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011933if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11935echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11936if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011937 echo $ECHO_N "(cached) $ECHO_C" >&6
11938fi
Reid Spencera773bd52006-08-04 18:18:08 +000011939ac_res=`eval echo '${'$as_ac_Header'}'`
11940 { echo "$as_me:$LINENO: result: $ac_res" >&5
11941echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011942else
11943 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011944{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11945echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011946cat >conftest.$ac_ext <<_ACEOF
11947/* confdefs.h. */
11948_ACEOF
11949cat confdefs.h >>conftest.$ac_ext
11950cat >>conftest.$ac_ext <<_ACEOF
11951/* end confdefs.h. */
11952$ac_includes_default
11953#include <$ac_header>
11954_ACEOF
11955rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011956if { (ac_try="$ac_compile"
11957case "(($ac_try" in
11958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959 *) ac_try_echo=$ac_try;;
11960esac
11961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011963 ac_status=$?
11964 grep -v '^ *+' conftest.er1 >conftest.err
11965 rm -f conftest.er1
11966 cat conftest.err >&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011968 (exit $ac_status); } &&
11969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11970 { (case "(($ac_try" in
11971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11972 *) ac_try_echo=$ac_try;;
11973esac
11974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11975 (eval "$ac_try") 2>&5
11976 ac_status=$?
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); }; } &&
11979 { ac_try='test -s conftest.$ac_objext'
11980 { (case "(($ac_try" in
11981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11982 *) ac_try_echo=$ac_try;;
11983esac
11984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11985 (eval "$ac_try") 2>&5
11986 ac_status=$?
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011989 ac_header_compiler=yes
11990else
11991 echo "$as_me: failed program was:" >&5
11992sed 's/^/| /' conftest.$ac_ext >&5
11993
Reid Spencera773bd52006-08-04 18:18:08 +000011994 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011995fi
Reid Spencera773bd52006-08-04 18:18:08 +000011996
11997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11998{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11999echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012000
12001# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000012002{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12003echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012004cat >conftest.$ac_ext <<_ACEOF
12005/* confdefs.h. */
12006_ACEOF
12007cat confdefs.h >>conftest.$ac_ext
12008cat >>conftest.$ac_ext <<_ACEOF
12009/* end confdefs.h. */
12010#include <$ac_header>
12011_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012012if { (ac_try="$ac_cpp conftest.$ac_ext"
12013case "(($ac_try" in
12014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015 *) ac_try_echo=$ac_try;;
12016esac
12017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012019 ac_status=$?
12020 grep -v '^ *+' conftest.er1 >conftest.err
12021 rm -f conftest.er1
12022 cat conftest.err >&5
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012024 (exit $ac_status); } >/dev/null; then
12025 if test -s conftest.err; then
12026 ac_cpp_err=$ac_c_preproc_warn_flag
12027 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12028 else
12029 ac_cpp_err=
12030 fi
12031else
12032 ac_cpp_err=yes
12033fi
12034if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012035 ac_header_preproc=yes
12036else
12037 echo "$as_me: failed program was:" >&5
12038sed 's/^/| /' conftest.$ac_ext >&5
12039
12040 ac_header_preproc=no
12041fi
Reid Spencera773bd52006-08-04 18:18:08 +000012042
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012043rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000012044{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12045echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012046
12047# So? What about this header?
12048case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12049 yes:no: )
12050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12051echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12053echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12054 ac_header_preproc=yes
12055 ;;
12056 no:yes:* )
12057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12058echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12060echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12062echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12064echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12066echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12068echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000012069 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012070## ----------------------------------- ##
12071## Report this to llvmbugs@cs.uiuc.edu ##
12072## ----------------------------------- ##
12073_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000012074 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012075 ;;
12076esac
Reid Spencera773bd52006-08-04 18:18:08 +000012077{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12078echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12079if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012080 echo $ECHO_N "(cached) $ECHO_C" >&6
12081else
12082 eval "$as_ac_Header=\$ac_header_preproc"
12083fi
Reid Spencera773bd52006-08-04 18:18:08 +000012084ac_res=`eval echo '${'$as_ac_Header'}'`
12085 { echo "$as_me:$LINENO: result: $ac_res" >&5
12086echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012087
12088fi
12089if test `eval echo '${'$as_ac_Header'}'` = yes; then
12090 cat >>confdefs.h <<_ACEOF
12091#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12092_ACEOF
12093 break
12094fi
12095
12096done
12097
12098
12099
12100
12101for ac_func in strchr index
12102do
12103as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012104{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12105echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12106if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012107 echo $ECHO_N "(cached) $ECHO_C" >&6
12108else
12109 cat >conftest.$ac_ext <<_ACEOF
12110/* confdefs.h. */
12111_ACEOF
12112cat confdefs.h >>conftest.$ac_ext
12113cat >>conftest.$ac_ext <<_ACEOF
12114/* end confdefs.h. */
12115/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12117#define $ac_func innocuous_$ac_func
12118
12119/* System header to define __stub macros and hopefully few prototypes,
12120 which can conflict with char $ac_func (); below.
12121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12122 <limits.h> exists even on freestanding compilers. */
12123
12124#ifdef __STDC__
12125# include <limits.h>
12126#else
12127# include <assert.h>
12128#endif
12129
12130#undef $ac_func
12131
Reid Spencera773bd52006-08-04 18:18:08 +000012132/* Override any GCC internal prototype to avoid an error.
12133 Use char because int might match the return type of a GCC
12134 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012135#ifdef __cplusplus
12136extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012137#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012138char $ac_func ();
12139/* The GNU C library defines this for functions which it implements
12140 to always fail with ENOSYS. Some functions are actually named
12141 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012142#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012143choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012144#endif
12145
12146int
12147main ()
12148{
Reid Spencera773bd52006-08-04 18:18:08 +000012149return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012150 ;
12151 return 0;
12152}
12153_ACEOF
12154rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012155if { (ac_try="$ac_link"
12156case "(($ac_try" in
12157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158 *) ac_try_echo=$ac_try;;
12159esac
12160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012162 ac_status=$?
12163 grep -v '^ *+' conftest.er1 >conftest.err
12164 rm -f conftest.er1
12165 cat conftest.err >&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012167 (exit $ac_status); } &&
12168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12169 { (case "(($ac_try" in
12170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12171 *) ac_try_echo=$ac_try;;
12172esac
12173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12174 (eval "$ac_try") 2>&5
12175 ac_status=$?
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; } &&
12178 { ac_try='test -s conftest$ac_exeext'
12179 { (case "(($ac_try" in
12180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12181 *) ac_try_echo=$ac_try;;
12182esac
12183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12184 (eval "$ac_try") 2>&5
12185 ac_status=$?
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012188 eval "$as_ac_var=yes"
12189else
12190 echo "$as_me: failed program was:" >&5
12191sed 's/^/| /' conftest.$ac_ext >&5
12192
Reid Spencera773bd52006-08-04 18:18:08 +000012193 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012194fi
Reid Spencera773bd52006-08-04 18:18:08 +000012195
Bill Wendlingebcceee2009-04-18 11:20:33 +000012196rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012197 conftest$ac_exeext conftest.$ac_ext
12198fi
Reid Spencera773bd52006-08-04 18:18:08 +000012199ac_res=`eval echo '${'$as_ac_var'}'`
12200 { echo "$as_me:$LINENO: result: $ac_res" >&5
12201echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012202if test `eval echo '${'$as_ac_var'}'` = yes; then
12203 cat >>confdefs.h <<_ACEOF
12204#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12205_ACEOF
12206 break
12207fi
12208done
12209
12210
12211
12212for ac_func in strrchr rindex
12213do
12214as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012215{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12216echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12217if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012218 echo $ECHO_N "(cached) $ECHO_C" >&6
12219else
12220 cat >conftest.$ac_ext <<_ACEOF
12221/* confdefs.h. */
12222_ACEOF
12223cat confdefs.h >>conftest.$ac_ext
12224cat >>conftest.$ac_ext <<_ACEOF
12225/* end confdefs.h. */
12226/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12228#define $ac_func innocuous_$ac_func
12229
12230/* System header to define __stub macros and hopefully few prototypes,
12231 which can conflict with char $ac_func (); below.
12232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12233 <limits.h> exists even on freestanding compilers. */
12234
12235#ifdef __STDC__
12236# include <limits.h>
12237#else
12238# include <assert.h>
12239#endif
12240
12241#undef $ac_func
12242
Reid Spencera773bd52006-08-04 18:18:08 +000012243/* Override any GCC internal prototype to avoid an error.
12244 Use char because int might match the return type of a GCC
12245 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012246#ifdef __cplusplus
12247extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012248#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012249char $ac_func ();
12250/* The GNU C library defines this for functions which it implements
12251 to always fail with ENOSYS. Some functions are actually named
12252 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012253#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012254choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012255#endif
12256
12257int
12258main ()
12259{
Reid Spencera773bd52006-08-04 18:18:08 +000012260return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012261 ;
12262 return 0;
12263}
12264_ACEOF
12265rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012266if { (ac_try="$ac_link"
12267case "(($ac_try" in
12268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269 *) ac_try_echo=$ac_try;;
12270esac
12271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012273 ac_status=$?
12274 grep -v '^ *+' conftest.er1 >conftest.err
12275 rm -f conftest.er1
12276 cat conftest.err >&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012278 (exit $ac_status); } &&
12279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12280 { (case "(($ac_try" in
12281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12282 *) ac_try_echo=$ac_try;;
12283esac
12284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12285 (eval "$ac_try") 2>&5
12286 ac_status=$?
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); }; } &&
12289 { ac_try='test -s conftest$ac_exeext'
12290 { (case "(($ac_try" in
12291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12292 *) ac_try_echo=$ac_try;;
12293esac
12294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12295 (eval "$ac_try") 2>&5
12296 ac_status=$?
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012299 eval "$as_ac_var=yes"
12300else
12301 echo "$as_me: failed program was:" >&5
12302sed 's/^/| /' conftest.$ac_ext >&5
12303
Reid Spencera773bd52006-08-04 18:18:08 +000012304 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012305fi
Reid Spencera773bd52006-08-04 18:18:08 +000012306
Bill Wendlingebcceee2009-04-18 11:20:33 +000012307rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012308 conftest$ac_exeext conftest.$ac_ext
12309fi
Reid Spencera773bd52006-08-04 18:18:08 +000012310ac_res=`eval echo '${'$as_ac_var'}'`
12311 { echo "$as_me:$LINENO: result: $ac_res" >&5
12312echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012313if test `eval echo '${'$as_ac_var'}'` = yes; then
12314 cat >>confdefs.h <<_ACEOF
12315#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12316_ACEOF
12317 break
12318fi
12319done
12320
12321
12322
12323for ac_func in memcpy bcopy
12324do
12325as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012326{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12327echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12328if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012329 echo $ECHO_N "(cached) $ECHO_C" >&6
12330else
12331 cat >conftest.$ac_ext <<_ACEOF
12332/* confdefs.h. */
12333_ACEOF
12334cat confdefs.h >>conftest.$ac_ext
12335cat >>conftest.$ac_ext <<_ACEOF
12336/* end confdefs.h. */
12337/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12339#define $ac_func innocuous_$ac_func
12340
12341/* System header to define __stub macros and hopefully few prototypes,
12342 which can conflict with char $ac_func (); below.
12343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12344 <limits.h> exists even on freestanding compilers. */
12345
12346#ifdef __STDC__
12347# include <limits.h>
12348#else
12349# include <assert.h>
12350#endif
12351
12352#undef $ac_func
12353
Reid Spencera773bd52006-08-04 18:18:08 +000012354/* Override any GCC internal prototype to avoid an error.
12355 Use char because int might match the return type of a GCC
12356 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012357#ifdef __cplusplus
12358extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012359#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012360char $ac_func ();
12361/* The GNU C library defines this for functions which it implements
12362 to always fail with ENOSYS. Some functions are actually named
12363 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012364#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012365choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012366#endif
12367
12368int
12369main ()
12370{
Reid Spencera773bd52006-08-04 18:18:08 +000012371return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012372 ;
12373 return 0;
12374}
12375_ACEOF
12376rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012377if { (ac_try="$ac_link"
12378case "(($ac_try" in
12379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12380 *) ac_try_echo=$ac_try;;
12381esac
12382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12383 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012384 ac_status=$?
12385 grep -v '^ *+' conftest.er1 >conftest.err
12386 rm -f conftest.er1
12387 cat conftest.err >&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012389 (exit $ac_status); } &&
12390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12391 { (case "(($ac_try" in
12392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12393 *) ac_try_echo=$ac_try;;
12394esac
12395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12396 (eval "$ac_try") 2>&5
12397 ac_status=$?
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); }; } &&
12400 { ac_try='test -s conftest$ac_exeext'
12401 { (case "(($ac_try" in
12402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12403 *) ac_try_echo=$ac_try;;
12404esac
12405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12406 (eval "$ac_try") 2>&5
12407 ac_status=$?
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012410 eval "$as_ac_var=yes"
12411else
12412 echo "$as_me: failed program was:" >&5
12413sed 's/^/| /' conftest.$ac_ext >&5
12414
Reid Spencera773bd52006-08-04 18:18:08 +000012415 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012416fi
Reid Spencera773bd52006-08-04 18:18:08 +000012417
Bill Wendlingebcceee2009-04-18 11:20:33 +000012418rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012419 conftest$ac_exeext conftest.$ac_ext
12420fi
Reid Spencera773bd52006-08-04 18:18:08 +000012421ac_res=`eval echo '${'$as_ac_var'}'`
12422 { echo "$as_me:$LINENO: result: $ac_res" >&5
12423echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012424if test `eval echo '${'$as_ac_var'}'` = yes; then
12425 cat >>confdefs.h <<_ACEOF
12426#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12427_ACEOF
12428 break
12429fi
12430done
12431
12432
12433
12434for ac_func in memmove strcmp
12435do
12436as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012437{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12438echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12439if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012440 echo $ECHO_N "(cached) $ECHO_C" >&6
12441else
12442 cat >conftest.$ac_ext <<_ACEOF
12443/* confdefs.h. */
12444_ACEOF
12445cat confdefs.h >>conftest.$ac_ext
12446cat >>conftest.$ac_ext <<_ACEOF
12447/* end confdefs.h. */
12448/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12450#define $ac_func innocuous_$ac_func
12451
12452/* System header to define __stub macros and hopefully few prototypes,
12453 which can conflict with char $ac_func (); below.
12454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12455 <limits.h> exists even on freestanding compilers. */
12456
12457#ifdef __STDC__
12458# include <limits.h>
12459#else
12460# include <assert.h>
12461#endif
12462
12463#undef $ac_func
12464
Reid Spencera773bd52006-08-04 18:18:08 +000012465/* Override any GCC internal prototype to avoid an error.
12466 Use char because int might match the return type of a GCC
12467 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012468#ifdef __cplusplus
12469extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012470#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012471char $ac_func ();
12472/* The GNU C library defines this for functions which it implements
12473 to always fail with ENOSYS. Some functions are actually named
12474 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012475#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012476choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012477#endif
12478
12479int
12480main ()
12481{
Reid Spencera773bd52006-08-04 18:18:08 +000012482return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012483 ;
12484 return 0;
12485}
12486_ACEOF
12487rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012488if { (ac_try="$ac_link"
12489case "(($ac_try" in
12490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12491 *) ac_try_echo=$ac_try;;
12492esac
12493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12494 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012495 ac_status=$?
12496 grep -v '^ *+' conftest.er1 >conftest.err
12497 rm -f conftest.er1
12498 cat conftest.err >&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012500 (exit $ac_status); } &&
12501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12502 { (case "(($ac_try" in
12503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12504 *) ac_try_echo=$ac_try;;
12505esac
12506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12507 (eval "$ac_try") 2>&5
12508 ac_status=$?
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); }; } &&
12511 { ac_try='test -s conftest$ac_exeext'
12512 { (case "(($ac_try" in
12513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12514 *) ac_try_echo=$ac_try;;
12515esac
12516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12517 (eval "$ac_try") 2>&5
12518 ac_status=$?
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012521 eval "$as_ac_var=yes"
12522else
12523 echo "$as_me: failed program was:" >&5
12524sed 's/^/| /' conftest.$ac_ext >&5
12525
Reid Spencera773bd52006-08-04 18:18:08 +000012526 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012527fi
Reid Spencera773bd52006-08-04 18:18:08 +000012528
Bill Wendlingebcceee2009-04-18 11:20:33 +000012529rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012530 conftest$ac_exeext conftest.$ac_ext
12531fi
Reid Spencera773bd52006-08-04 18:18:08 +000012532ac_res=`eval echo '${'$as_ac_var'}'`
12533 { echo "$as_me:$LINENO: result: $ac_res" >&5
12534echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012535if test `eval echo '${'$as_ac_var'}'` = yes; then
12536 cat >>confdefs.h <<_ACEOF
12537#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12538_ACEOF
12539
12540fi
12541done
12542
12543
12544
12545
12546for ac_func in closedir opendir readdir
12547do
12548as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012549{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12550echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12551if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012552 echo $ECHO_N "(cached) $ECHO_C" >&6
12553else
12554 cat >conftest.$ac_ext <<_ACEOF
12555/* confdefs.h. */
12556_ACEOF
12557cat confdefs.h >>conftest.$ac_ext
12558cat >>conftest.$ac_ext <<_ACEOF
12559/* end confdefs.h. */
12560/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12562#define $ac_func innocuous_$ac_func
12563
12564/* System header to define __stub macros and hopefully few prototypes,
12565 which can conflict with char $ac_func (); below.
12566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12567 <limits.h> exists even on freestanding compilers. */
12568
12569#ifdef __STDC__
12570# include <limits.h>
12571#else
12572# include <assert.h>
12573#endif
12574
12575#undef $ac_func
12576
Reid Spencera773bd52006-08-04 18:18:08 +000012577/* Override any GCC internal prototype to avoid an error.
12578 Use char because int might match the return type of a GCC
12579 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012580#ifdef __cplusplus
12581extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012582#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012583char $ac_func ();
12584/* The GNU C library defines this for functions which it implements
12585 to always fail with ENOSYS. Some functions are actually named
12586 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012587#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012588choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012589#endif
12590
12591int
12592main ()
12593{
Reid Spencera773bd52006-08-04 18:18:08 +000012594return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012595 ;
12596 return 0;
12597}
12598_ACEOF
12599rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012600if { (ac_try="$ac_link"
12601case "(($ac_try" in
12602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603 *) ac_try_echo=$ac_try;;
12604esac
12605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012607 ac_status=$?
12608 grep -v '^ *+' conftest.er1 >conftest.err
12609 rm -f conftest.er1
12610 cat conftest.err >&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012612 (exit $ac_status); } &&
12613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12614 { (case "(($ac_try" in
12615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616 *) ac_try_echo=$ac_try;;
12617esac
12618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12619 (eval "$ac_try") 2>&5
12620 ac_status=$?
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; } &&
12623 { ac_try='test -s conftest$ac_exeext'
12624 { (case "(($ac_try" in
12625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12626 *) ac_try_echo=$ac_try;;
12627esac
12628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12629 (eval "$ac_try") 2>&5
12630 ac_status=$?
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012633 eval "$as_ac_var=yes"
12634else
12635 echo "$as_me: failed program was:" >&5
12636sed 's/^/| /' conftest.$ac_ext >&5
12637
Reid Spencera773bd52006-08-04 18:18:08 +000012638 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012639fi
Reid Spencera773bd52006-08-04 18:18:08 +000012640
Bill Wendlingebcceee2009-04-18 11:20:33 +000012641rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012642 conftest$ac_exeext conftest.$ac_ext
12643fi
Reid Spencera773bd52006-08-04 18:18:08 +000012644ac_res=`eval echo '${'$as_ac_var'}'`
12645 { echo "$as_me:$LINENO: result: $ac_res" >&5
12646echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012647if test `eval echo '${'$as_ac_var'}'` = yes; then
12648 cat >>confdefs.h <<_ACEOF
12649#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12650_ACEOF
12651
12652fi
12653done
12654
12655
Reid Spencera773bd52006-08-04 18:18:08 +000012656# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012657if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012658 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012659 case $enableval in
12660 yes) enable_shared=yes ;;
12661 no) enable_shared=no ;;
12662 *)
12663 enable_shared=no
12664 # Look at the argument we got. We use all the common list separators.
12665 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12666 for pkg in $enableval; do
12667 IFS="$lt_save_ifs"
12668 if test "X$pkg" = "X$p"; then
12669 enable_shared=yes
12670 fi
12671 done
12672 IFS="$lt_save_ifs"
12673 ;;
12674 esac
12675else
12676 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012677fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012678
Reid Spencera773bd52006-08-04 18:18:08 +000012679
12680# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012681if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012682 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012683 case $enableval in
12684 yes) enable_static=yes ;;
12685 no) enable_static=no ;;
12686 *)
12687 enable_static=no
12688 # Look at the argument we got. We use all the common list separators.
12689 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12690 for pkg in $enableval; do
12691 IFS="$lt_save_ifs"
12692 if test "X$pkg" = "X$p"; then
12693 enable_static=yes
12694 fi
12695 done
12696 IFS="$lt_save_ifs"
12697 ;;
12698 esac
12699else
12700 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012701fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012702
Reid Spencera773bd52006-08-04 18:18:08 +000012703
12704# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012705if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012706 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012707 case $enableval in
12708 yes) enable_fast_install=yes ;;
12709 no) enable_fast_install=no ;;
12710 *)
12711 enable_fast_install=no
12712 # Look at the argument we got. We use all the common list separators.
12713 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12714 for pkg in $enableval; do
12715 IFS="$lt_save_ifs"
12716 if test "X$pkg" = "X$p"; then
12717 enable_fast_install=yes
12718 fi
12719 done
12720 IFS="$lt_save_ifs"
12721 ;;
12722 esac
12723else
12724 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012725fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012726
Reid Spencera773bd52006-08-04 18:18:08 +000012727
12728{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12729echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012730if test "${lt_cv_path_SED+set}" = set; then
12731 echo $ECHO_N "(cached) $ECHO_C" >&6
12732else
12733 # Loop through the user's path and test for sed and gsed.
12734# Then use that list of sed's as ones to test for truncation.
12735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12736for as_dir in $PATH
12737do
12738 IFS=$as_save_IFS
12739 test -z "$as_dir" && as_dir=.
12740 for lt_ac_prog in sed gsed; do
12741 for ac_exec_ext in '' $ac_executable_extensions; do
12742 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12743 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12744 fi
12745 done
12746 done
12747done
12748lt_ac_max=0
12749lt_ac_count=0
12750# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12751# along with /bin/sed that truncates output.
12752for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012753 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012754 cat /dev/null > conftest.in
12755 lt_ac_count=0
12756 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12757 # Check for GNU sed and select it if it is found.
12758 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12759 lt_cv_path_SED=$lt_ac_sed
12760 break
12761 fi
12762 while true; do
12763 cat conftest.in conftest.in >conftest.tmp
12764 mv conftest.tmp conftest.in
12765 cp conftest.in conftest.nl
12766 echo >>conftest.nl
12767 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12768 cmp -s conftest.out conftest.nl || break
12769 # 10000 chars as input seems more than enough
12770 test $lt_ac_count -gt 10 && break
12771 lt_ac_count=`expr $lt_ac_count + 1`
12772 if test $lt_ac_count -gt $lt_ac_max; then
12773 lt_ac_max=$lt_ac_count
12774 lt_cv_path_SED=$lt_ac_sed
12775 fi
12776 done
12777done
12778
12779fi
12780
12781SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012782{ echo "$as_me:$LINENO: result: $SED" >&5
12783echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012784
12785
Reid Spencera773bd52006-08-04 18:18:08 +000012786# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012787if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012788 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012789else
12790 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012791fi
12792
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012793ac_prog=ld
12794if test "$GCC" = yes; then
12795 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012796 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12797echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012798 case $host in
12799 *-*-mingw*)
12800 # gcc leaves a trailing carriage return which upsets mingw
12801 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12802 *)
12803 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12804 esac
12805 case $ac_prog in
12806 # Accept absolute paths.
12807 [\\/]* | ?:[\\/]*)
12808 re_direlt='/[^/][^/]*/\.\./'
12809 # Canonicalize the pathname of ld
12810 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12811 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12812 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12813 done
12814 test -z "$LD" && LD="$ac_prog"
12815 ;;
12816 "")
12817 # If it fails, then pretend we aren't using GCC.
12818 ac_prog=ld
12819 ;;
12820 *)
12821 # If it is relative, then search for the first ld in PATH.
12822 with_gnu_ld=unknown
12823 ;;
12824 esac
12825elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012826 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12827echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012828else
Reid Spencera773bd52006-08-04 18:18:08 +000012829 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12830echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012831fi
12832if test "${lt_cv_path_LD+set}" = set; then
12833 echo $ECHO_N "(cached) $ECHO_C" >&6
12834else
12835 if test -z "$LD"; then
12836 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12837 for ac_dir in $PATH; do
12838 IFS="$lt_save_ifs"
12839 test -z "$ac_dir" && ac_dir=.
12840 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12841 lt_cv_path_LD="$ac_dir/$ac_prog"
12842 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012843 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012844 # Break only if it was the GNU/non-GNU ld that we prefer.
12845 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12846 *GNU* | *'with BFD'*)
12847 test "$with_gnu_ld" != no && break
12848 ;;
12849 *)
12850 test "$with_gnu_ld" != yes && break
12851 ;;
12852 esac
12853 fi
12854 done
12855 IFS="$lt_save_ifs"
12856else
12857 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12858fi
12859fi
12860
12861LD="$lt_cv_path_LD"
12862if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012863 { echo "$as_me:$LINENO: result: $LD" >&5
12864echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012865else
Reid Spencera773bd52006-08-04 18:18:08 +000012866 { echo "$as_me:$LINENO: result: no" >&5
12867echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012868fi
12869test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12870echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12871 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012872{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12873echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012874if test "${lt_cv_prog_gnu_ld+set}" = set; then
12875 echo $ECHO_N "(cached) $ECHO_C" >&6
12876else
Reid Spencera773bd52006-08-04 18:18:08 +000012877 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012878case `$LD -v 2>&1 </dev/null` in
12879*GNU* | *'with BFD'*)
12880 lt_cv_prog_gnu_ld=yes
12881 ;;
12882*)
12883 lt_cv_prog_gnu_ld=no
12884 ;;
12885esac
12886fi
Reid Spencera773bd52006-08-04 18:18:08 +000012887{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12888echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012889with_gnu_ld=$lt_cv_prog_gnu_ld
12890
12891
Reid Spencera773bd52006-08-04 18:18:08 +000012892{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12893echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012894if test "${lt_cv_ld_reload_flag+set}" = set; then
12895 echo $ECHO_N "(cached) $ECHO_C" >&6
12896else
12897 lt_cv_ld_reload_flag='-r'
12898fi
Reid Spencera773bd52006-08-04 18:18:08 +000012899{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12900echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012901reload_flag=$lt_cv_ld_reload_flag
12902case $reload_flag in
12903"" | " "*) ;;
12904*) reload_flag=" $reload_flag" ;;
12905esac
12906reload_cmds='$LD$reload_flag -o $output$reload_objs'
12907case $host_os in
12908 darwin*)
12909 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012910 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012911 else
12912 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12913 fi
12914 ;;
12915esac
12916
Reid Spencera773bd52006-08-04 18:18:08 +000012917{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12918echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012919if test "${lt_cv_deplibs_check_method+set}" = set; then
12920 echo $ECHO_N "(cached) $ECHO_C" >&6
12921else
12922 lt_cv_file_magic_cmd='$MAGIC_CMD'
12923lt_cv_file_magic_test_file=
12924lt_cv_deplibs_check_method='unknown'
12925# Need to set the preceding variable on all platforms that support
12926# interlibrary dependencies.
12927# 'none' -- dependencies not supported.
12928# `unknown' -- same as none, but documents that we really don't know.
12929# 'pass_all' -- all dependencies passed with no checks.
12930# 'test_compile' -- check by making test program.
12931# 'file_magic [[regex]]' -- check by looking for files in library path
12932# which responds to the $file_magic_cmd with a given extended regex.
12933# If you have `file' or equivalent on your system and you're not sure
12934# whether `pass_all' will *always* work, you probably want this one.
12935
12936case $host_os in
12937aix4* | aix5*)
12938 lt_cv_deplibs_check_method=pass_all
12939 ;;
12940
12941beos*)
12942 lt_cv_deplibs_check_method=pass_all
12943 ;;
12944
12945bsdi[45]*)
12946 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12947 lt_cv_file_magic_cmd='/usr/bin/file -L'
12948 lt_cv_file_magic_test_file=/shlib/libc.so
12949 ;;
12950
12951cygwin*)
12952 # func_win32_libid is a shell function defined in ltmain.sh
12953 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12954 lt_cv_file_magic_cmd='func_win32_libid'
12955 ;;
12956
12957mingw* | pw32*)
12958 # Base MSYS/MinGW do not provide the 'file' command needed by
12959 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12960 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12961 lt_cv_file_magic_cmd='$OBJDUMP -f'
12962 ;;
12963
12964darwin* | rhapsody*)
12965 lt_cv_deplibs_check_method=pass_all
12966 ;;
12967
Reid Spencera773bd52006-08-04 18:18:08 +000012968freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012969 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12970 case $host_cpu in
12971 i*86 )
12972 # Not sure whether the presence of OpenBSD here was a mistake.
12973 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012974 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 +000012975 lt_cv_file_magic_cmd=/usr/bin/file
12976 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12977 ;;
12978 esac
12979 else
12980 lt_cv_deplibs_check_method=pass_all
12981 fi
12982 ;;
12983
12984gnu*)
12985 lt_cv_deplibs_check_method=pass_all
12986 ;;
12987
12988hpux10.20* | hpux11*)
12989 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012990 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012991 ia64*)
12992 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12993 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12994 ;;
12995 hppa*64*)
12996 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]'
12997 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12998 ;;
12999 *)
13000 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
13001 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13002 ;;
13003 esac
13004 ;;
13005
Reid Spencera773bd52006-08-04 18:18:08 +000013006interix3*)
13007 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13008 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13009 ;;
13010
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013011irix5* | irix6* | nonstopux*)
13012 case $LD in
13013 *-32|*"-32 ") libmagic=32-bit;;
13014 *-n32|*"-n32 ") libmagic=N32;;
13015 *-64|*"-64 ") libmagic=64-bit;;
13016 *) libmagic=never-match;;
13017 esac
13018 lt_cv_deplibs_check_method=pass_all
13019 ;;
13020
13021# This must be Linux ELF.
13022linux*)
13023 lt_cv_deplibs_check_method=pass_all
13024 ;;
13025
13026netbsd*)
13027 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13028 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13029 else
13030 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13031 fi
13032 ;;
13033
13034newos6*)
13035 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13036 lt_cv_file_magic_cmd=/usr/bin/file
13037 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13038 ;;
13039
13040nto-qnx*)
13041 lt_cv_deplibs_check_method=unknown
13042 ;;
13043
13044openbsd*)
13045 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13046 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13047 else
13048 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13049 fi
13050 ;;
13051
13052osf3* | osf4* | osf5*)
13053 lt_cv_deplibs_check_method=pass_all
13054 ;;
13055
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013056solaris*)
13057 lt_cv_deplibs_check_method=pass_all
13058 ;;
13059
Reid Spencera773bd52006-08-04 18:18:08 +000013060sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013061 case $host_vendor in
13062 motorola)
13063 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]'
13064 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13065 ;;
13066 ncr)
13067 lt_cv_deplibs_check_method=pass_all
13068 ;;
13069 sequent)
13070 lt_cv_file_magic_cmd='/bin/file'
13071 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13072 ;;
13073 sni)
13074 lt_cv_file_magic_cmd='/bin/file'
13075 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13076 lt_cv_file_magic_test_file=/lib/libc.so
13077 ;;
13078 siemens)
13079 lt_cv_deplibs_check_method=pass_all
13080 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013081 pc)
13082 lt_cv_deplibs_check_method=pass_all
13083 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013084 esac
13085 ;;
13086
Reid Spencera773bd52006-08-04 18:18:08 +000013087sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013088 lt_cv_deplibs_check_method=pass_all
13089 ;;
13090esac
13091
13092fi
Reid Spencera773bd52006-08-04 18:18:08 +000013093{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13094echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013095file_magic_cmd=$lt_cv_file_magic_cmd
13096deplibs_check_method=$lt_cv_deplibs_check_method
13097test -z "$deplibs_check_method" && deplibs_check_method=unknown
13098
13099
13100
13101# If no C compiler was specified, use CC.
13102LTCC=${LTCC-"$CC"}
13103
Reid Spencera773bd52006-08-04 18:18:08 +000013104# If no C compiler flags were specified, use CFLAGS.
13105LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13106
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013107# Allow CC to be a program name with arguments.
13108compiler=$CC
13109
Reid Spencera773bd52006-08-04 18:18:08 +000013110# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013111if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013112 enableval=$enable_libtool_lock;
13113fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013114
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013115test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13116
13117# Some flags need to be propagated to the compiler or linker for good
13118# libtool support.
13119case $host in
13120ia64-*-hpux*)
13121 # Find out which ABI we are using.
13122 echo 'int i;' > conftest.$ac_ext
13123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13124 (eval $ac_compile) 2>&5
13125 ac_status=$?
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; then
13128 case `/usr/bin/file conftest.$ac_objext` in
13129 *ELF-32*)
13130 HPUX_IA64_MODE="32"
13131 ;;
13132 *ELF-64*)
13133 HPUX_IA64_MODE="64"
13134 ;;
13135 esac
13136 fi
13137 rm -rf conftest*
13138 ;;
13139*-*-irix6*)
13140 # Find out which ABI we are using.
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000013141 echo '#line 13141 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13143 (eval $ac_compile) 2>&5
13144 ac_status=$?
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; then
13147 if test "$lt_cv_prog_gnu_ld" = yes; then
13148 case `/usr/bin/file conftest.$ac_objext` in
13149 *32-bit*)
13150 LD="${LD-ld} -melf32bsmip"
13151 ;;
13152 *N32*)
13153 LD="${LD-ld} -melf32bmipn32"
13154 ;;
13155 *64-bit*)
13156 LD="${LD-ld} -melf64bmip"
13157 ;;
13158 esac
13159 else
13160 case `/usr/bin/file conftest.$ac_objext` in
13161 *32-bit*)
13162 LD="${LD-ld} -32"
13163 ;;
13164 *N32*)
13165 LD="${LD-ld} -n32"
13166 ;;
13167 *64-bit*)
13168 LD="${LD-ld} -64"
13169 ;;
13170 esac
13171 fi
13172 fi
13173 rm -rf conftest*
13174 ;;
13175
13176x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13177 # Find out which ABI we are using.
13178 echo 'int i;' > conftest.$ac_ext
13179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13180 (eval $ac_compile) 2>&5
13181 ac_status=$?
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013184 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013185 *32-bit*)
13186 case $host in
13187 x86_64-*linux*)
13188 LD="${LD-ld} -m elf_i386"
13189 ;;
13190 ppc64-*linux*|powerpc64-*linux*)
13191 LD="${LD-ld} -m elf32ppclinux"
13192 ;;
13193 s390x-*linux*)
13194 LD="${LD-ld} -m elf_s390"
13195 ;;
13196 sparc64-*linux*)
13197 LD="${LD-ld} -m elf32_sparc"
13198 ;;
13199 esac
13200 ;;
13201 *64-bit*)
13202 case $host in
13203 x86_64-*linux*)
13204 LD="${LD-ld} -m elf_x86_64"
13205 ;;
13206 ppc*-*linux*|powerpc*-*linux*)
13207 LD="${LD-ld} -m elf64ppc"
13208 ;;
13209 s390*-*linux*)
13210 LD="${LD-ld} -m elf64_s390"
13211 ;;
13212 sparc*-*linux*)
13213 LD="${LD-ld} -m elf64_sparc"
13214 ;;
13215 esac
13216 ;;
13217 esac
13218 fi
13219 rm -rf conftest*
13220 ;;
13221
13222*-*-sco3.2v5*)
13223 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13224 SAVE_CFLAGS="$CFLAGS"
13225 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000013226 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13227echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013228if test "${lt_cv_cc_needs_belf+set}" = set; then
13229 echo $ECHO_N "(cached) $ECHO_C" >&6
13230else
13231 ac_ext=c
13232ac_cpp='$CPP $CPPFLAGS'
13233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13235ac_compiler_gnu=$ac_cv_c_compiler_gnu
13236
13237 cat >conftest.$ac_ext <<_ACEOF
13238/* confdefs.h. */
13239_ACEOF
13240cat confdefs.h >>conftest.$ac_ext
13241cat >>conftest.$ac_ext <<_ACEOF
13242/* end confdefs.h. */
13243
Reid Spencera773bd52006-08-04 18:18:08 +000013244int
13245main ()
13246{
13247
13248 ;
13249 return 0;
13250}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013251_ACEOF
13252rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000013253if { (ac_try="$ac_link"
13254case "(($ac_try" in
13255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13256 *) ac_try_echo=$ac_try;;
13257esac
13258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13259 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013260 ac_status=$?
13261 grep -v '^ *+' conftest.er1 >conftest.err
13262 rm -f conftest.er1
13263 cat conftest.err >&5
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013265 (exit $ac_status); } &&
13266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13267 { (case "(($ac_try" in
13268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13269 *) ac_try_echo=$ac_try;;
13270esac
13271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13272 (eval "$ac_try") 2>&5
13273 ac_status=$?
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); }; } &&
13276 { ac_try='test -s conftest$ac_exeext'
13277 { (case "(($ac_try" in
13278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13279 *) ac_try_echo=$ac_try;;
13280esac
13281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13282 (eval "$ac_try") 2>&5
13283 ac_status=$?
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013286 lt_cv_cc_needs_belf=yes
13287else
13288 echo "$as_me: failed program was:" >&5
13289sed 's/^/| /' conftest.$ac_ext >&5
13290
Reid Spencera773bd52006-08-04 18:18:08 +000013291 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013292fi
Reid Spencera773bd52006-08-04 18:18:08 +000013293
Bill Wendlingebcceee2009-04-18 11:20:33 +000013294rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013295 conftest$ac_exeext conftest.$ac_ext
13296 ac_ext=c
13297ac_cpp='$CPP $CPPFLAGS'
13298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13300ac_compiler_gnu=$ac_cv_c_compiler_gnu
13301
13302fi
Reid Spencera773bd52006-08-04 18:18:08 +000013303{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13304echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013305 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13306 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13307 CFLAGS="$SAVE_CFLAGS"
13308 fi
13309 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013310sparc*-*solaris*)
13311 # Find out which ABI we are using.
13312 echo 'int i;' > conftest.$ac_ext
13313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13314 (eval $ac_compile) 2>&5
13315 ac_status=$?
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); }; then
13318 case `/usr/bin/file conftest.o` in
13319 *64-bit*)
13320 case $lt_cv_prog_gnu_ld in
13321 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13322 *) LD="${LD-ld} -64" ;;
13323 esac
13324 ;;
13325 esac
13326 fi
13327 rm -rf conftest*
13328 ;;
13329
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013330
13331esac
13332
13333need_locks="$enable_libtool_lock"
13334
13335
Reid Spencer2706f8c2004-09-19 23:53:36 +000013336
13337
13338if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13339 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13340 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013341 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013342ac_cpp='$CXXCPP $CPPFLAGS'
13343ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13344ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13345ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000013346{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13347echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013348if test -z "$CXXCPP"; then
13349 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013350 echo $ECHO_N "(cached) $ECHO_C" >&6
13351else
John Criswell47fdd832003-07-14 16:52:07 +000013352 # Double quotes because CXXCPP needs to be expanded
13353 for CXXCPP in "$CXX -E" "/lib/cpp"
13354 do
13355 ac_preproc_ok=false
13356for ac_cxx_preproc_warn_flag in '' yes
13357do
13358 # Use a header file that comes with gcc, so configuring glibc
13359 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013360 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13361 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013362 # On the NeXT, cc -E runs the code through the compiler's parser,
13363 # not just through cpp. "Syntax error" is here to catch this case.
13364 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013365/* confdefs.h. */
13366_ACEOF
13367cat confdefs.h >>conftest.$ac_ext
13368cat >>conftest.$ac_ext <<_ACEOF
13369/* end confdefs.h. */
13370#ifdef __STDC__
13371# include <limits.h>
13372#else
13373# include <assert.h>
13374#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013375 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013376_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013377if { (ac_try="$ac_cpp conftest.$ac_ext"
13378case "(($ac_try" in
13379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13380 *) ac_try_echo=$ac_try;;
13381esac
13382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013384 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013385 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013386 rm -f conftest.er1
13387 cat conftest.err >&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013389 (exit $ac_status); } >/dev/null; then
13390 if test -s conftest.err; then
13391 ac_cpp_err=$ac_cxx_preproc_warn_flag
13392 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13393 else
13394 ac_cpp_err=
13395 fi
13396else
13397 ac_cpp_err=yes
13398fi
13399if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013400 :
13401else
13402 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013403sed 's/^/| /' conftest.$ac_ext >&5
13404
John Criswell47fdd832003-07-14 16:52:07 +000013405 # Broken: fails on valid input.
13406continue
13407fi
Reid Spencera773bd52006-08-04 18:18:08 +000013408
John Criswell47fdd832003-07-14 16:52:07 +000013409rm -f conftest.err conftest.$ac_ext
13410
Reid Spencera773bd52006-08-04 18:18:08 +000013411 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013412 # can be detected and how.
13413 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013414/* confdefs.h. */
13415_ACEOF
13416cat confdefs.h >>conftest.$ac_ext
13417cat >>conftest.$ac_ext <<_ACEOF
13418/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013419#include <ac_nonexistent.h>
13420_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013421if { (ac_try="$ac_cpp conftest.$ac_ext"
13422case "(($ac_try" in
13423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13424 *) ac_try_echo=$ac_try;;
13425esac
13426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013428 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013429 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013430 rm -f conftest.er1
13431 cat conftest.err >&5
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013433 (exit $ac_status); } >/dev/null; then
13434 if test -s conftest.err; then
13435 ac_cpp_err=$ac_cxx_preproc_warn_flag
13436 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13437 else
13438 ac_cpp_err=
13439 fi
13440else
13441 ac_cpp_err=yes
13442fi
13443if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013444 # Broken: success on invalid input.
13445continue
13446else
13447 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013448sed 's/^/| /' conftest.$ac_ext >&5
13449
John Criswell47fdd832003-07-14 16:52:07 +000013450 # Passes both tests.
13451ac_preproc_ok=:
13452break
13453fi
Reid Spencera773bd52006-08-04 18:18:08 +000013454
John Criswell47fdd832003-07-14 16:52:07 +000013455rm -f conftest.err conftest.$ac_ext
13456
13457done
13458# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13459rm -f conftest.err conftest.$ac_ext
13460if $ac_preproc_ok; then
13461 break
John Criswell7a73b802003-06-30 21:59:07 +000013462fi
13463
John Criswell47fdd832003-07-14 16:52:07 +000013464 done
13465 ac_cv_prog_CXXCPP=$CXXCPP
13466
13467fi
13468 CXXCPP=$ac_cv_prog_CXXCPP
13469else
13470 ac_cv_prog_CXXCPP=$CXXCPP
13471fi
Reid Spencera773bd52006-08-04 18:18:08 +000013472{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13473echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013474ac_preproc_ok=false
13475for ac_cxx_preproc_warn_flag in '' yes
13476do
13477 # Use a header file that comes with gcc, so configuring glibc
13478 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013479 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13480 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013481 # On the NeXT, cc -E runs the code through the compiler's parser,
13482 # not just through cpp. "Syntax error" is here to catch this case.
13483 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013484/* confdefs.h. */
13485_ACEOF
13486cat confdefs.h >>conftest.$ac_ext
13487cat >>conftest.$ac_ext <<_ACEOF
13488/* end confdefs.h. */
13489#ifdef __STDC__
13490# include <limits.h>
13491#else
13492# include <assert.h>
13493#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013494 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013495_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013496if { (ac_try="$ac_cpp conftest.$ac_ext"
13497case "(($ac_try" in
13498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13499 *) ac_try_echo=$ac_try;;
13500esac
13501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013503 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013504 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013505 rm -f conftest.er1
13506 cat conftest.err >&5
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013508 (exit $ac_status); } >/dev/null; then
13509 if test -s conftest.err; then
13510 ac_cpp_err=$ac_cxx_preproc_warn_flag
13511 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13512 else
13513 ac_cpp_err=
13514 fi
13515else
13516 ac_cpp_err=yes
13517fi
13518if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013519 :
13520else
13521 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013522sed 's/^/| /' conftest.$ac_ext >&5
13523
John Criswell47fdd832003-07-14 16:52:07 +000013524 # Broken: fails on valid input.
13525continue
13526fi
Reid Spencera773bd52006-08-04 18:18:08 +000013527
John Criswell47fdd832003-07-14 16:52:07 +000013528rm -f conftest.err conftest.$ac_ext
13529
Reid Spencera773bd52006-08-04 18:18:08 +000013530 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013531 # can be detected and how.
13532 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013533/* confdefs.h. */
13534_ACEOF
13535cat confdefs.h >>conftest.$ac_ext
13536cat >>conftest.$ac_ext <<_ACEOF
13537/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013538#include <ac_nonexistent.h>
13539_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013540if { (ac_try="$ac_cpp conftest.$ac_ext"
13541case "(($ac_try" in
13542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13543 *) ac_try_echo=$ac_try;;
13544esac
13545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013547 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013548 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013549 rm -f conftest.er1
13550 cat conftest.err >&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013552 (exit $ac_status); } >/dev/null; then
13553 if test -s conftest.err; then
13554 ac_cpp_err=$ac_cxx_preproc_warn_flag
13555 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13556 else
13557 ac_cpp_err=
13558 fi
13559else
13560 ac_cpp_err=yes
13561fi
13562if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013563 # Broken: success on invalid input.
13564continue
13565else
13566 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013567sed 's/^/| /' conftest.$ac_ext >&5
13568
John Criswell47fdd832003-07-14 16:52:07 +000013569 # Passes both tests.
13570ac_preproc_ok=:
13571break
13572fi
Reid Spencera773bd52006-08-04 18:18:08 +000013573
John Criswell47fdd832003-07-14 16:52:07 +000013574rm -f conftest.err conftest.$ac_ext
13575
13576done
13577# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13578rm -f conftest.err conftest.$ac_ext
13579if $ac_preproc_ok; then
13580 :
13581else
John Criswell0c38eaf2003-09-10 15:17:25 +000013582 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13583See \`config.log' for more details." >&5
13584echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13585See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013586 { (exit 1); exit 1; }; }
13587fi
13588
Reid Spencera773bd52006-08-04 18:18:08 +000013589ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013590ac_cpp='$CXXCPP $CPPFLAGS'
13591ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13592ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13593ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13594
Reid Spencer2706f8c2004-09-19 23:53:36 +000013595fi
13596
John Criswell47fdd832003-07-14 16:52:07 +000013597
13598ac_ext=f
13599ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13600ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13601ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13602if test -n "$ac_tool_prefix"; then
Bill Wendlingebcceee2009-04-18 11:20:33 +000013603 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 +000013604 do
13605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13606set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013607{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013609if test "${ac_cv_prog_F77+set}" = set; then
13610 echo $ECHO_N "(cached) $ECHO_C" >&6
13611else
13612 if test -n "$F77"; then
13613 ac_cv_prog_F77="$F77" # Let the user override the test.
13614else
13615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13616for as_dir in $PATH
13617do
13618 IFS=$as_save_IFS
13619 test -z "$as_dir" && as_dir=.
13620 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013621 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 +000013622 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13624 break 2
13625 fi
13626done
13627done
Reid Spencera773bd52006-08-04 18:18:08 +000013628IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013629
13630fi
13631fi
13632F77=$ac_cv_prog_F77
13633if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013634 { echo "$as_me:$LINENO: result: $F77" >&5
13635echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013636else
Reid Spencera773bd52006-08-04 18:18:08 +000013637 { echo "$as_me:$LINENO: result: no" >&5
13638echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013639fi
13640
Reid Spencera773bd52006-08-04 18:18:08 +000013641
John Criswell47fdd832003-07-14 16:52:07 +000013642 test -n "$F77" && break
13643 done
13644fi
13645if test -z "$F77"; then
13646 ac_ct_F77=$F77
Bill Wendlingebcceee2009-04-18 11:20:33 +000013647 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 +000013648do
13649 # Extract the first word of "$ac_prog", so it can be a program name with args.
13650set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013651{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013653if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13654 echo $ECHO_N "(cached) $ECHO_C" >&6
13655else
13656 if test -n "$ac_ct_F77"; then
13657 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13658else
13659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13660for as_dir in $PATH
13661do
13662 IFS=$as_save_IFS
13663 test -z "$as_dir" && as_dir=.
13664 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013665 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 +000013666 ac_cv_prog_ac_ct_F77="$ac_prog"
13667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13668 break 2
13669 fi
13670done
13671done
Reid Spencera773bd52006-08-04 18:18:08 +000013672IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013673
13674fi
13675fi
13676ac_ct_F77=$ac_cv_prog_ac_ct_F77
13677if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013678 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13679echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013680else
Reid Spencera773bd52006-08-04 18:18:08 +000013681 { echo "$as_me:$LINENO: result: no" >&5
13682echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013683fi
13684
Reid Spencera773bd52006-08-04 18:18:08 +000013685
John Criswell47fdd832003-07-14 16:52:07 +000013686 test -n "$ac_ct_F77" && break
13687done
13688
Reid Spencera773bd52006-08-04 18:18:08 +000013689 if test "x$ac_ct_F77" = x; then
13690 F77=""
13691 else
13692 case $cross_compiling:$ac_tool_warned in
13693yes:)
13694{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13695whose name does not start with the host triplet. If you think this
13696configuration is useful to you, please write to autoconf@gnu.org." >&5
13697echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13698whose name does not start with the host triplet. If you think this
13699configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13700ac_tool_warned=yes ;;
13701esac
13702 F77=$ac_ct_F77
13703 fi
John Criswell47fdd832003-07-14 16:52:07 +000013704fi
13705
13706
13707# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013708echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013709ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013710{ (ac_try="$ac_compiler --version >&5"
13711case "(($ac_try" in
13712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13713 *) ac_try_echo=$ac_try;;
13714esac
13715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13716 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013717 ac_status=$?
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013720{ (ac_try="$ac_compiler -v >&5"
13721case "(($ac_try" in
13722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13723 *) ac_try_echo=$ac_try;;
13724esac
13725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13726 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013727 ac_status=$?
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013730{ (ac_try="$ac_compiler -V >&5"
13731case "(($ac_try" in
13732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13733 *) ac_try_echo=$ac_try;;
13734esac
13735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13736 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013737 ac_status=$?
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013740rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013741
13742# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013743# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013744ac_save_ext=$ac_ext
13745ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013746{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13747echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013748if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13749 echo $ECHO_N "(cached) $ECHO_C" >&6
13750else
13751 cat >conftest.$ac_ext <<_ACEOF
13752 program main
13753#ifndef __GNUC__
13754 choke me
13755#endif
13756
13757 end
13758_ACEOF
13759rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013760if { (ac_try="$ac_compile"
13761case "(($ac_try" in
13762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763 *) ac_try_echo=$ac_try;;
13764esac
13765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013767 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013768 grep -v '^ *+' conftest.er1 >conftest.err
13769 rm -f conftest.er1
13770 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013772 (exit $ac_status); } &&
13773 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13774 { (case "(($ac_try" in
13775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13776 *) ac_try_echo=$ac_try;;
13777esac
13778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13779 (eval "$ac_try") 2>&5
13780 ac_status=$?
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); }; } &&
13783 { ac_try='test -s conftest.$ac_objext'
13784 { (case "(($ac_try" in
13785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13786 *) ac_try_echo=$ac_try;;
13787esac
13788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13789 (eval "$ac_try") 2>&5
13790 ac_status=$?
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013793 ac_compiler_gnu=yes
13794else
13795 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013796sed 's/^/| /' conftest.$ac_ext >&5
13797
Reid Spencera773bd52006-08-04 18:18:08 +000013798 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013799fi
Reid Spencera773bd52006-08-04 18:18:08 +000013800
13801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013802ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13803
13804fi
Reid Spencera773bd52006-08-04 18:18:08 +000013805{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13806echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013807ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013808ac_test_FFLAGS=${FFLAGS+set}
13809ac_save_FFLAGS=$FFLAGS
13810FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013811{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13812echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013813if test "${ac_cv_prog_f77_g+set}" = set; then
13814 echo $ECHO_N "(cached) $ECHO_C" >&6
13815else
13816 FFLAGS=-g
13817cat >conftest.$ac_ext <<_ACEOF
13818 program main
13819
13820 end
13821_ACEOF
13822rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013823if { (ac_try="$ac_compile"
13824case "(($ac_try" in
13825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13826 *) ac_try_echo=$ac_try;;
13827esac
13828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13829 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013830 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013831 grep -v '^ *+' conftest.er1 >conftest.err
13832 rm -f conftest.er1
13833 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013835 (exit $ac_status); } &&
13836 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13837 { (case "(($ac_try" in
13838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13839 *) ac_try_echo=$ac_try;;
13840esac
13841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13842 (eval "$ac_try") 2>&5
13843 ac_status=$?
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); }; } &&
13846 { ac_try='test -s conftest.$ac_objext'
13847 { (case "(($ac_try" in
13848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13849 *) ac_try_echo=$ac_try;;
13850esac
13851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13852 (eval "$ac_try") 2>&5
13853 ac_status=$?
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013856 ac_cv_prog_f77_g=yes
13857else
13858 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013859sed 's/^/| /' conftest.$ac_ext >&5
13860
Reid Spencera773bd52006-08-04 18:18:08 +000013861 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013862fi
Reid Spencera773bd52006-08-04 18:18:08 +000013863
13864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013865
13866fi
Reid Spencera773bd52006-08-04 18:18:08 +000013867{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13868echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013869if test "$ac_test_FFLAGS" = set; then
13870 FFLAGS=$ac_save_FFLAGS
13871elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013872 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013873 FFLAGS="-g -O2"
13874 else
13875 FFLAGS="-g"
13876 fi
13877else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013878 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013879 FFLAGS="-O2"
13880 else
13881 FFLAGS=
13882 fi
13883fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013884
13885G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013886ac_ext=c
13887ac_cpp='$CPP $CPPFLAGS'
13888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13890ac_compiler_gnu=$ac_cv_c_compiler_gnu
13891
13892
13893
13894# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13895
13896# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013897{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13898echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013899if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
13901else
13902 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013903 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013904
13905 case $build_os in
13906 msdosdjgpp*)
13907 # On DJGPP, this test can blow up pretty badly due to problems in libc
13908 # (any single argument exceeding 2000 bytes causes a buffer overrun
13909 # during glob expansion). Even if it were fixed, the result of this
13910 # check would be larger than it should be.
13911 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13912 ;;
13913
13914 gnu*)
13915 # Under GNU Hurd, this test is not required because there is
13916 # no limit to the length of command line arguments.
13917 # Libtool will interpret -1 as no limit whatsoever
13918 lt_cv_sys_max_cmd_len=-1;
13919 ;;
13920
13921 cygwin* | mingw*)
13922 # On Win9x/ME, this test blows up -- it succeeds, but takes
13923 # about 5 minutes as the teststring grows exponentially.
13924 # Worse, since 9x/ME are not pre-emptively multitasking,
13925 # you end up with a "frozen" computer, even though with patience
13926 # the test eventually succeeds (with a max line length of 256k).
13927 # Instead, let's just punt: use the minimum linelength reported by
13928 # all of the supported platforms: 8192 (on NT/2K/XP).
13929 lt_cv_sys_max_cmd_len=8192;
13930 ;;
13931
Reid Spencer2706f8c2004-09-19 23:53:36 +000013932 amigaos*)
13933 # On AmigaOS with pdksh, this test takes hours, literally.
13934 # So we just punt and use a minimum line length of 8192.
13935 lt_cv_sys_max_cmd_len=8192;
13936 ;;
13937
Reid Spencera773bd52006-08-04 18:18:08 +000013938 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013939 # This has been around since 386BSD, at least. Likely further.
13940 if test -x /sbin/sysctl; then
13941 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13942 elif test -x /usr/sbin/sysctl; then
13943 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13944 else
Reid Spencera773bd52006-08-04 18:18:08 +000013945 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013946 fi
13947 # And add a safety zone
13948 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013949 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013950 ;;
13951
Reid Spencera773bd52006-08-04 18:18:08 +000013952 interix*)
13953 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13954 lt_cv_sys_max_cmd_len=196608
13955 ;;
13956
13957 osf*)
13958 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13959 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13960 # nice to cause kernel panics so lets avoid the loop below.
13961 # First set a reasonable default.
13962 lt_cv_sys_max_cmd_len=16384
13963 #
13964 if test -x /sbin/sysconfig; then
13965 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13966 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13967 esac
13968 fi
13969 ;;
13970 sco3.2v5*)
13971 lt_cv_sys_max_cmd_len=102400
13972 ;;
13973 sysv5* | sco5v6* | sysv4.2uw2*)
13974 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13975 if test -n "$kargmax"; then
13976 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13977 else
13978 lt_cv_sys_max_cmd_len=32768
13979 fi
13980 ;;
13981 *)
John Criswell47fdd832003-07-14 16:52:07 +000013982 # If test is not a shell built-in, we'll probably end up computing a
13983 # maximum length that is only half of the actual maximum length, but
13984 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013985 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13986 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13987 = "XX$teststring") >/dev/null 2>&1 &&
13988 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013989 lt_cv_sys_max_cmd_len=$new_result &&
13990 test $i != 17 # 1/2 MB should be enough
13991 do
13992 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013993 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013994 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013995 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013996 # Add a significant safety factor because C++ compilers can tack on massive
13997 # amounts of additional arguments before passing them to the linker.
13998 # It appears as though 1/2 is a usable value.
13999 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14000 ;;
14001 esac
14002
14003fi
14004
14005if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000014006 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14007echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014008else
Reid Spencera773bd52006-08-04 18:18:08 +000014009 { echo "$as_me:$LINENO: result: none" >&5
14010echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014011fi
14012
14013
14014
14015
14016# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000014017{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14018echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014019if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
14021else
14022
14023# These are sane defaults that work on at least a few old systems.
14024# [They come from Ultrix. What could be older than Ultrix?!! ;)]
14025
14026# Character class describing NM global symbol codes.
14027symcode='[BCDEGRST]'
14028
14029# Regexp to match symbols that can be accessed directly from C.
14030sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14031
John Criswell47fdd832003-07-14 16:52:07 +000014032# Transform an extracted symbol line into a proper C declaration
14033lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14034
14035# Transform an extracted symbol line into symbol name and symbol address
14036lt_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'"
14037
14038# Define system-specific variables.
14039case $host_os in
14040aix*)
14041 symcode='[BCDT]'
14042 ;;
14043cygwin* | mingw* | pw32*)
14044 symcode='[ABCDGISTW]'
14045 ;;
14046hpux*) # Its linker distinguishes data from code symbols
14047 if test "$host_cpu" = ia64; then
14048 symcode='[ABCDEGRST]'
14049 fi
14050 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14051 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'"
14052 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014053linux*)
14054 if test "$host_cpu" = ia64; then
14055 symcode='[ABCDGIRSTW]'
14056 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14057 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'"
14058 fi
14059 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014060irix* | nonstopux*)
14061 symcode='[BCDEGRST]'
14062 ;;
14063osf*)
14064 symcode='[BCDEGQRST]'
14065 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014066solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014067 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000014068 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014069sco3.2v5*)
14070 symcode='[DT]'
14071 ;;
14072sysv4.2uw2*)
14073 symcode='[DT]'
14074 ;;
14075sysv5* | sco5v6* | unixware* | OpenUNIX*)
14076 symcode='[ABDT]'
14077 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014078sysv4)
14079 symcode='[DFNSTU]'
14080 ;;
14081esac
14082
14083# Handle CRLF in mingw tool chain
14084opt_cr=
14085case $build_os in
14086mingw*)
14087 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14088 ;;
14089esac
14090
14091# If we're using GNU nm, then use its standard symbol codes.
14092case `$NM -V 2>&1` in
14093*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014094 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000014095esac
14096
14097# Try without a prefix undercore, then with it.
14098for ac_symprfx in "" "_"; do
14099
Reid Spencera773bd52006-08-04 18:18:08 +000014100 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14101 symxfrm="\\1 $ac_symprfx\\2 \\2"
14102
John Criswell47fdd832003-07-14 16:52:07 +000014103 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000014104 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 +000014105
14106 # Check to see that the pipe works correctly.
14107 pipe_works=no
14108
14109 rm -f conftest*
14110 cat > conftest.$ac_ext <<EOF
14111#ifdef __cplusplus
14112extern "C" {
14113#endif
14114char nm_test_var;
14115void nm_test_func(){}
14116#ifdef __cplusplus
14117}
14118#endif
14119int main(){nm_test_var='a';nm_test_func();return(0);}
14120EOF
14121
14122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14123 (eval $ac_compile) 2>&5
14124 ac_status=$?
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); }; then
14127 # Now try to grab the symbols.
14128 nlist=conftest.nm
14129 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14130 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14131 ac_status=$?
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); } && test -s "$nlist"; then
14134 # Try sorting and uniquifying the output.
14135 if sort "$nlist" | uniq > "$nlist"T; then
14136 mv -f "$nlist"T "$nlist"
14137 else
14138 rm -f "$nlist"T
14139 fi
14140
14141 # Make sure that we snagged all the symbols we need.
14142 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14143 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14144 cat <<EOF > conftest.$ac_ext
14145#ifdef __cplusplus
14146extern "C" {
14147#endif
14148
14149EOF
14150 # Now generate the symbol file.
14151 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14152
14153 cat <<EOF >> conftest.$ac_ext
14154#if defined (__STDC__) && __STDC__
14155# define lt_ptr_t void *
14156#else
14157# define lt_ptr_t char *
14158# define const
14159#endif
14160
14161/* The mapping between symbol names and symbols. */
14162const struct {
14163 const char *name;
14164 lt_ptr_t address;
14165}
14166lt_preloaded_symbols[] =
14167{
14168EOF
14169 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14170 cat <<\EOF >> conftest.$ac_ext
14171 {0, (lt_ptr_t) 0}
14172};
14173
14174#ifdef __cplusplus
14175}
14176#endif
14177EOF
14178 # Now try linking the two files.
14179 mv conftest.$ac_objext conftstm.$ac_objext
14180 lt_save_LIBS="$LIBS"
14181 lt_save_CFLAGS="$CFLAGS"
14182 LIBS="conftstm.$ac_objext"
14183 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14185 (eval $ac_link) 2>&5
14186 ac_status=$?
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14189 pipe_works=yes
14190 fi
14191 LIBS="$lt_save_LIBS"
14192 CFLAGS="$lt_save_CFLAGS"
14193 else
14194 echo "cannot find nm_test_func in $nlist" >&5
14195 fi
14196 else
14197 echo "cannot find nm_test_var in $nlist" >&5
14198 fi
14199 else
14200 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14201 fi
14202 else
14203 echo "$progname: failed program was:" >&5
14204 cat conftest.$ac_ext >&5
14205 fi
14206 rm -f conftest* conftst*
14207
14208 # Do not use the global_symbol_pipe unless it works.
14209 if test "$pipe_works" = yes; then
14210 break
14211 else
14212 lt_cv_sys_global_symbol_pipe=
14213 fi
14214done
14215
14216fi
14217
14218if test -z "$lt_cv_sys_global_symbol_pipe"; then
14219 lt_cv_sys_global_symbol_to_cdecl=
14220fi
14221if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014222 { echo "$as_me:$LINENO: result: failed" >&5
14223echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014224else
Reid Spencera773bd52006-08-04 18:18:08 +000014225 { echo "$as_me:$LINENO: result: ok" >&5
14226echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014227fi
14228
Reid Spencera773bd52006-08-04 18:18:08 +000014229{ echo "$as_me:$LINENO: checking for objdir" >&5
14230echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014231if test "${lt_cv_objdir+set}" = set; then
14232 echo $ECHO_N "(cached) $ECHO_C" >&6
14233else
14234 rm -f .libs 2>/dev/null
14235mkdir .libs 2>/dev/null
14236if test -d .libs; then
14237 lt_cv_objdir=.libs
14238else
14239 # MS-DOS does not allow filenames that begin with a dot.
14240 lt_cv_objdir=_libs
14241fi
14242rmdir .libs 2>/dev/null
14243fi
Reid Spencera773bd52006-08-04 18:18:08 +000014244{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14245echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014246objdir=$lt_cv_objdir
14247
14248
14249
14250
14251
14252case $host_os in
14253aix3*)
14254 # AIX sometimes has problems with the GCC collect2 program. For some
14255 # reason, if we set the COLLECT_NAMES environment variable, the problems
14256 # vanish in a puff of smoke.
14257 if test "X${COLLECT_NAMES+set}" != Xset; then
14258 COLLECT_NAMES=
14259 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000014260 fi
14261 ;;
14262esac
14263
John Criswell47fdd832003-07-14 16:52:07 +000014264# Sed substitution that helps us do robust quoting. It backslashifies
14265# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000014266Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000014267sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14268
14269# Same as above, but do not quote variable references.
14270double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14271
14272# Sed substitution to delay expansion of an escaped shell variable in a
14273# double_quote_subst'ed string.
14274delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14275
14276# Sed substitution to avoid accidental globbing in evaled expressions
14277no_glob_subst='s/\*/\\\*/g'
14278
14279# Constants:
14280rm="rm -f"
14281
14282# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000014283default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000014284can_build_shared=yes
14285
Reid Spencera773bd52006-08-04 18:18:08 +000014286# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000014287# which needs '.lib').
14288libext=a
14289ltmain="$ac_aux_dir/ltmain.sh"
14290ofile="$default_ofile"
14291with_gnu_ld="$lt_cv_prog_gnu_ld"
14292
14293if test -n "$ac_tool_prefix"; then
14294 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14295set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014296{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014298if test "${ac_cv_prog_AR+set}" = set; then
14299 echo $ECHO_N "(cached) $ECHO_C" >&6
14300else
14301 if test -n "$AR"; then
14302 ac_cv_prog_AR="$AR" # Let the user override the test.
14303else
14304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14305for as_dir in $PATH
14306do
14307 IFS=$as_save_IFS
14308 test -z "$as_dir" && as_dir=.
14309 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014310 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 +000014311 ac_cv_prog_AR="${ac_tool_prefix}ar"
14312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14313 break 2
14314 fi
14315done
14316done
Reid Spencera773bd52006-08-04 18:18:08 +000014317IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014318
14319fi
14320fi
14321AR=$ac_cv_prog_AR
14322if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014323 { echo "$as_me:$LINENO: result: $AR" >&5
14324echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014325else
Reid Spencera773bd52006-08-04 18:18:08 +000014326 { echo "$as_me:$LINENO: result: no" >&5
14327echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014328fi
14329
Reid Spencera773bd52006-08-04 18:18:08 +000014330
John Criswell47fdd832003-07-14 16:52:07 +000014331fi
14332if test -z "$ac_cv_prog_AR"; then
14333 ac_ct_AR=$AR
14334 # Extract the first word of "ar", so it can be a program name with args.
14335set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014336{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014338if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14339 echo $ECHO_N "(cached) $ECHO_C" >&6
14340else
14341 if test -n "$ac_ct_AR"; then
14342 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14343else
14344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14345for as_dir in $PATH
14346do
14347 IFS=$as_save_IFS
14348 test -z "$as_dir" && as_dir=.
14349 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014350 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 +000014351 ac_cv_prog_ac_ct_AR="ar"
14352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14353 break 2
14354 fi
14355done
14356done
Reid Spencera773bd52006-08-04 18:18:08 +000014357IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014358
John Criswell47fdd832003-07-14 16:52:07 +000014359fi
14360fi
14361ac_ct_AR=$ac_cv_prog_ac_ct_AR
14362if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014363 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14364echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014365else
Reid Spencera773bd52006-08-04 18:18:08 +000014366 { echo "$as_me:$LINENO: result: no" >&5
14367echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014368fi
14369
Reid Spencera773bd52006-08-04 18:18:08 +000014370 if test "x$ac_ct_AR" = x; then
14371 AR="false"
14372 else
14373 case $cross_compiling:$ac_tool_warned in
14374yes:)
14375{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14376whose name does not start with the host triplet. If you think this
14377configuration is useful to you, please write to autoconf@gnu.org." >&5
14378echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14379whose name does not start with the host triplet. If you think this
14380configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14381ac_tool_warned=yes ;;
14382esac
14383 AR=$ac_ct_AR
14384 fi
John Criswell47fdd832003-07-14 16:52:07 +000014385else
14386 AR="$ac_cv_prog_AR"
14387fi
14388
John Criswell7a73b802003-06-30 21:59:07 +000014389if test -n "$ac_tool_prefix"; then
14390 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14391set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014392{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014394if test "${ac_cv_prog_RANLIB+set}" = set; then
14395 echo $ECHO_N "(cached) $ECHO_C" >&6
14396else
14397 if test -n "$RANLIB"; then
14398 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14399else
14400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14401for as_dir in $PATH
14402do
14403 IFS=$as_save_IFS
14404 test -z "$as_dir" && as_dir=.
14405 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014406 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 +000014407 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14409 break 2
14410 fi
14411done
14412done
Reid Spencera773bd52006-08-04 18:18:08 +000014413IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014414
14415fi
14416fi
14417RANLIB=$ac_cv_prog_RANLIB
14418if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014419 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14420echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014421else
Reid Spencera773bd52006-08-04 18:18:08 +000014422 { echo "$as_me:$LINENO: result: no" >&5
14423echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014424fi
14425
Reid Spencera773bd52006-08-04 18:18:08 +000014426
John Criswell7a73b802003-06-30 21:59:07 +000014427fi
14428if test -z "$ac_cv_prog_RANLIB"; then
14429 ac_ct_RANLIB=$RANLIB
14430 # Extract the first word of "ranlib", so it can be a program name with args.
14431set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014432{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014434if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14435 echo $ECHO_N "(cached) $ECHO_C" >&6
14436else
14437 if test -n "$ac_ct_RANLIB"; then
14438 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14439else
14440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14441for as_dir in $PATH
14442do
14443 IFS=$as_save_IFS
14444 test -z "$as_dir" && as_dir=.
14445 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014446 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 +000014447 ac_cv_prog_ac_ct_RANLIB="ranlib"
14448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14449 break 2
14450 fi
14451done
14452done
Reid Spencera773bd52006-08-04 18:18:08 +000014453IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014454
John Criswell7a73b802003-06-30 21:59:07 +000014455fi
14456fi
14457ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14458if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014459 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14460echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014461else
Reid Spencera773bd52006-08-04 18:18:08 +000014462 { echo "$as_me:$LINENO: result: no" >&5
14463echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014464fi
14465
Reid Spencera773bd52006-08-04 18:18:08 +000014466 if test "x$ac_ct_RANLIB" = x; then
14467 RANLIB=":"
14468 else
14469 case $cross_compiling:$ac_tool_warned in
14470yes:)
14471{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14472whose name does not start with the host triplet. If you think this
14473configuration is useful to you, please write to autoconf@gnu.org." >&5
14474echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14475whose name does not start with the host triplet. If you think this
14476configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14477ac_tool_warned=yes ;;
14478esac
14479 RANLIB=$ac_ct_RANLIB
14480 fi
John Criswell7a73b802003-06-30 21:59:07 +000014481else
14482 RANLIB="$ac_cv_prog_RANLIB"
14483fi
14484
14485if test -n "$ac_tool_prefix"; then
14486 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14487set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014488{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014490if test "${ac_cv_prog_STRIP+set}" = set; then
14491 echo $ECHO_N "(cached) $ECHO_C" >&6
14492else
14493 if test -n "$STRIP"; then
14494 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14495else
14496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14497for as_dir in $PATH
14498do
14499 IFS=$as_save_IFS
14500 test -z "$as_dir" && as_dir=.
14501 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014502 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 +000014503 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14505 break 2
14506 fi
14507done
14508done
Reid Spencera773bd52006-08-04 18:18:08 +000014509IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014510
14511fi
14512fi
14513STRIP=$ac_cv_prog_STRIP
14514if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014515 { echo "$as_me:$LINENO: result: $STRIP" >&5
14516echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014517else
Reid Spencera773bd52006-08-04 18:18:08 +000014518 { echo "$as_me:$LINENO: result: no" >&5
14519echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014520fi
14521
Reid Spencera773bd52006-08-04 18:18:08 +000014522
John Criswell7a73b802003-06-30 21:59:07 +000014523fi
14524if test -z "$ac_cv_prog_STRIP"; then
14525 ac_ct_STRIP=$STRIP
14526 # Extract the first word of "strip", so it can be a program name with args.
14527set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014528{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014530if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14531 echo $ECHO_N "(cached) $ECHO_C" >&6
14532else
14533 if test -n "$ac_ct_STRIP"; then
14534 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14535else
14536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14537for as_dir in $PATH
14538do
14539 IFS=$as_save_IFS
14540 test -z "$as_dir" && as_dir=.
14541 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014542 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 +000014543 ac_cv_prog_ac_ct_STRIP="strip"
14544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14545 break 2
14546 fi
14547done
14548done
Reid Spencera773bd52006-08-04 18:18:08 +000014549IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014550
John Criswell7a73b802003-06-30 21:59:07 +000014551fi
14552fi
14553ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14554if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014555 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14556echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014557else
Reid Spencera773bd52006-08-04 18:18:08 +000014558 { echo "$as_me:$LINENO: result: no" >&5
14559echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014560fi
14561
Reid Spencera773bd52006-08-04 18:18:08 +000014562 if test "x$ac_ct_STRIP" = x; then
14563 STRIP=":"
14564 else
14565 case $cross_compiling:$ac_tool_warned in
14566yes:)
14567{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14568whose name does not start with the host triplet. If you think this
14569configuration is useful to you, please write to autoconf@gnu.org." >&5
14570echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14571whose name does not start with the host triplet. If you think this
14572configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14573ac_tool_warned=yes ;;
14574esac
14575 STRIP=$ac_ct_STRIP
14576 fi
John Criswell7a73b802003-06-30 21:59:07 +000014577else
14578 STRIP="$ac_cv_prog_STRIP"
14579fi
14580
14581
John Criswell7a73b802003-06-30 21:59:07 +000014582old_CC="$CC"
14583old_CFLAGS="$CFLAGS"
14584
14585# Set sane defaults for various variables
14586test -z "$AR" && AR=ar
14587test -z "$AR_FLAGS" && AR_FLAGS=cru
14588test -z "$AS" && AS=as
14589test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014590test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014591test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014592test -z "$DLLTOOL" && DLLTOOL=dlltool
14593test -z "$LD" && LD=ld
14594test -z "$LN_S" && LN_S="ln -s"
14595test -z "$MAGIC_CMD" && MAGIC_CMD=file
14596test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014597test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014598test -z "$OBJDUMP" && OBJDUMP=objdump
14599test -z "$RANLIB" && RANLIB=:
14600test -z "$STRIP" && STRIP=:
14601test -z "$ac_objext" && ac_objext=o
14602
John Criswell7a73b802003-06-30 21:59:07 +000014603# Determine commands to create old-style static archives.
14604old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14605old_postinstall_cmds='chmod 644 $oldlib'
14606old_postuninstall_cmds=
14607
14608if test -n "$RANLIB"; then
14609 case $host_os in
14610 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014611 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014612 ;;
14613 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014614 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014615 ;;
14616 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014617 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014618fi
14619
Reid Spencera773bd52006-08-04 18:18:08 +000014620for cc_temp in $compiler""; do
14621 case $cc_temp in
14622 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14623 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14624 \-*) ;;
14625 *) break;;
14626 esac
14627done
14628cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14629
Reid Spencer2706f8c2004-09-19 23:53:36 +000014630
John Criswell47fdd832003-07-14 16:52:07 +000014631# Only perform the check for file, if the check method requires it
14632case $deplibs_check_method in
14633file_magic*)
14634 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014635 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14636echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014637if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14638 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014639else
John Criswell47fdd832003-07-14 16:52:07 +000014640 case $MAGIC_CMD in
14641[\\/*] | ?:[\\/]*)
14642 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14643 ;;
14644*)
14645 lt_save_MAGIC_CMD="$MAGIC_CMD"
14646 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14647 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14648 for ac_dir in $ac_dummy; do
14649 IFS="$lt_save_ifs"
14650 test -z "$ac_dir" && ac_dir=.
14651 if test -f $ac_dir/${ac_tool_prefix}file; then
14652 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14653 if test -n "$file_magic_test_file"; then
14654 case $deplibs_check_method in
14655 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014656 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014657 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14658 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14659 $EGREP "$file_magic_regex" > /dev/null; then
14660 :
14661 else
14662 cat <<EOF 1>&2
14663
14664*** Warning: the command libtool uses to detect shared libraries,
14665*** $file_magic_cmd, produces output that libtool cannot recognize.
14666*** The result is that libtool may fail to recognize shared libraries
14667*** as such. This will affect the creation of libtool libraries that
14668*** depend on shared libraries, but programs linked with such libtool
14669*** libraries will work regardless of this problem. Nevertheless, you
14670*** may want to report the problem to your system manager and/or to
14671*** bug-libtool@gnu.org
14672
14673EOF
14674 fi ;;
14675 esac
14676 fi
14677 break
14678 fi
14679 done
14680 IFS="$lt_save_ifs"
14681 MAGIC_CMD="$lt_save_MAGIC_CMD"
14682 ;;
14683esac
John Criswell7a73b802003-06-30 21:59:07 +000014684fi
John Criswell7a73b802003-06-30 21:59:07 +000014685
John Criswell47fdd832003-07-14 16:52:07 +000014686MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14687if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014688 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14689echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014690else
Reid Spencera773bd52006-08-04 18:18:08 +000014691 { echo "$as_me:$LINENO: result: no" >&5
14692echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014693fi
John Criswell7a73b802003-06-30 21:59:07 +000014694
John Criswell47fdd832003-07-14 16:52:07 +000014695if test -z "$lt_cv_path_MAGIC_CMD"; then
14696 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014697 { echo "$as_me:$LINENO: checking for file" >&5
14698echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014699if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14700 echo $ECHO_N "(cached) $ECHO_C" >&6
14701else
14702 case $MAGIC_CMD in
14703[\\/*] | ?:[\\/]*)
14704 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14705 ;;
14706*)
14707 lt_save_MAGIC_CMD="$MAGIC_CMD"
14708 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14709 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14710 for ac_dir in $ac_dummy; do
14711 IFS="$lt_save_ifs"
14712 test -z "$ac_dir" && ac_dir=.
14713 if test -f $ac_dir/file; then
14714 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14715 if test -n "$file_magic_test_file"; then
14716 case $deplibs_check_method in
14717 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014718 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014719 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14720 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14721 $EGREP "$file_magic_regex" > /dev/null; then
14722 :
14723 else
14724 cat <<EOF 1>&2
14725
14726*** Warning: the command libtool uses to detect shared libraries,
14727*** $file_magic_cmd, produces output that libtool cannot recognize.
14728*** The result is that libtool may fail to recognize shared libraries
14729*** as such. This will affect the creation of libtool libraries that
14730*** depend on shared libraries, but programs linked with such libtool
14731*** libraries will work regardless of this problem. Nevertheless, you
14732*** may want to report the problem to your system manager and/or to
14733*** bug-libtool@gnu.org
14734
14735EOF
14736 fi ;;
14737 esac
14738 fi
14739 break
14740 fi
14741 done
14742 IFS="$lt_save_ifs"
14743 MAGIC_CMD="$lt_save_MAGIC_CMD"
14744 ;;
14745esac
14746fi
14747
14748MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14749if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014750 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14751echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014752else
Reid Spencera773bd52006-08-04 18:18:08 +000014753 { echo "$as_me:$LINENO: result: no" >&5
14754echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014755fi
14756
14757 else
14758 MAGIC_CMD=:
14759 fi
14760fi
14761
14762 fi
14763 ;;
14764esac
14765
Reid Spencer17795972004-11-18 09:47:37 +000014766enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014767enable_win32_dll=no
14768
Reid Spencera773bd52006-08-04 18:18:08 +000014769# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014770if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014771 enableval=$enable_libtool_lock;
14772fi
John Criswell47fdd832003-07-14 16:52:07 +000014773
John Criswell47fdd832003-07-14 16:52:07 +000014774test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14775
John Criswell7a73b802003-06-30 21:59:07 +000014776
Reid Spencera773bd52006-08-04 18:18:08 +000014777# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014778if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014779 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014780else
14781 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014782fi
14783
John Criswell7a73b802003-06-30 21:59:07 +000014784test -z "$pic_mode" && pic_mode=default
14785
John Criswell47fdd832003-07-14 16:52:07 +000014786# Use C for the default configuration in the libtool script
14787tagname=
14788lt_save_CC="$CC"
14789ac_ext=c
14790ac_cpp='$CPP $CPPFLAGS'
14791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14793ac_compiler_gnu=$ac_cv_c_compiler_gnu
14794
14795
14796# Source file extension for C test sources.
14797ac_ext=c
14798
14799# Object file extension for compiled C test sources.
14800objext=o
14801objext=$objext
14802
14803# Code to be used in simple compile tests
14804lt_simple_compile_test_code="int some_variable = 0;\n"
14805
14806# Code to be used in simple link tests
14807lt_simple_link_test_code='int main(){return(0);}\n'
14808
14809
14810# If no C compiler was specified, use CC.
14811LTCC=${LTCC-"$CC"}
14812
Reid Spencera773bd52006-08-04 18:18:08 +000014813# If no C compiler flags were specified, use CFLAGS.
14814LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14815
John Criswell47fdd832003-07-14 16:52:07 +000014816# Allow CC to be a program name with arguments.
14817compiler=$CC
14818
14819
Reid Spencera773bd52006-08-04 18:18:08 +000014820# save warnings/boilerplate of simple test code
14821ac_outfile=conftest.$ac_objext
14822printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14823eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14824_lt_compiler_boilerplate=`cat conftest.err`
14825$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014826
Reid Spencera773bd52006-08-04 18:18:08 +000014827ac_outfile=conftest.$ac_objext
14828printf "$lt_simple_link_test_code" >conftest.$ac_ext
14829eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14830_lt_linker_boilerplate=`cat conftest.err`
14831$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014832
14833
John Criswell47fdd832003-07-14 16:52:07 +000014834
14835lt_prog_compiler_no_builtin_flag=
14836
14837if test "$GCC" = yes; then
14838 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14839
Reid Spencer2706f8c2004-09-19 23:53:36 +000014840
Reid Spencera773bd52006-08-04 18:18:08 +000014841{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14842echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014843if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14844 echo $ECHO_N "(cached) $ECHO_C" >&6
14845else
14846 lt_cv_prog_compiler_rtti_exceptions=no
14847 ac_outfile=conftest.$ac_objext
14848 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14849 lt_compiler_flag="-fno-rtti -fno-exceptions"
14850 # Insert the option either (1) after the last *FLAGS variable, or
14851 # (2) before a word containing "conftest.", or (3) at the end.
14852 # Note that $ac_compile itself does not contain backslashes and begins
14853 # with a dollar sign (not a hyphen), so the echo should work correctly.
14854 # The option is referenced via a variable to avoid confusing sed.
14855 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14858 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000014859 (eval echo "\"\$as_me:14859: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014860 (eval "$lt_compile" 2>conftest.err)
14861 ac_status=$?
14862 cat conftest.err >&5
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000014863 echo "$as_me:14863: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014864 if (exit $ac_status) && test -s "$ac_outfile"; then
14865 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014866 # So say no if there are warnings other than the usual output.
14867 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14868 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14869 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014870 lt_cv_prog_compiler_rtti_exceptions=yes
14871 fi
14872 fi
14873 $rm conftest*
14874
14875fi
Reid Spencera773bd52006-08-04 18:18:08 +000014876{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14877echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014878
14879if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14880 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14881else
14882 :
14883fi
14884
14885fi
14886
14887lt_prog_compiler_wl=
14888lt_prog_compiler_pic=
14889lt_prog_compiler_static=
14890
Reid Spencera773bd52006-08-04 18:18:08 +000014891{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14892echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014893
14894 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014895 lt_prog_compiler_wl='-Wl,'
14896 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014897
14898 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014899 aix*)
14900 # All AIX code is PIC.
14901 if test "$host_cpu" = ia64; then
14902 # AIX 5 now supports IA64 processor
14903 lt_prog_compiler_static='-Bstatic'
14904 fi
John Criswell7a73b802003-06-30 21:59:07 +000014905 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014906
John Criswell7a73b802003-06-30 21:59:07 +000014907 amigaos*)
14908 # FIXME: we need at least 68020 code to build shared libraries, but
14909 # adding the `-m68020' flag to GCC prevents building anything better,
14910 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014911 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014912 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014913
14914 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014915 # PIC is the default for these OSes.
14916 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014917
14918 mingw* | pw32* | os2*)
14919 # This hack is so that the source file can tell whether it is being
14920 # built for inclusion in a dll (and should export symbols for example).
14921 lt_prog_compiler_pic='-DDLL_EXPORT'
14922 ;;
14923
John Criswell7a73b802003-06-30 21:59:07 +000014924 darwin* | rhapsody*)
14925 # PIC is the default on this platform
14926 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014927 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014928 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014929
Reid Spencera773bd52006-08-04 18:18:08 +000014930 interix3*)
14931 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14932 # Instead, we relocate shared libraries at runtime.
14933 ;;
14934
John Criswell47fdd832003-07-14 16:52:07 +000014935 msdosdjgpp*)
14936 # Just because we use GCC doesn't mean we suddenly get shared libraries
14937 # on systems that don't support them.
14938 lt_prog_compiler_can_build_shared=no
14939 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014940 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014941
John Criswell7a73b802003-06-30 21:59:07 +000014942 sysv4*MP*)
14943 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014944 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014945 fi
14946 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014947
14948 hpux*)
14949 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14950 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014951 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014952 hppa*64*|ia64*)
14953 # +Z the default
14954 ;;
14955 *)
14956 lt_prog_compiler_pic='-fPIC'
14957 ;;
14958 esac
14959 ;;
14960
John Criswell7a73b802003-06-30 21:59:07 +000014961 *)
John Criswell47fdd832003-07-14 16:52:07 +000014962 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014963 ;;
14964 esac
14965 else
John Criswell47fdd832003-07-14 16:52:07 +000014966 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014967 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014968 aix*)
14969 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014970 if test "$host_cpu" = ia64; then
14971 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014972 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014973 else
John Criswell47fdd832003-07-14 16:52:07 +000014974 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014975 fi
14976 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014977 darwin*)
14978 # PIC is the default on this platform
14979 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014980 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014981 xlc*)
14982 lt_prog_compiler_pic='-qnocommon'
14983 lt_prog_compiler_wl='-Wl,'
14984 ;;
14985 esac
14986 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014987
John Criswell47fdd832003-07-14 16:52:07 +000014988 mingw* | pw32* | os2*)
14989 # This hack is so that the source file can tell whether it is being
14990 # built for inclusion in a dll (and should export symbols for example).
14991 lt_prog_compiler_pic='-DDLL_EXPORT'
14992 ;;
14993
John Criswell7a73b802003-06-30 21:59:07 +000014994 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014995 lt_prog_compiler_wl='-Wl,'
14996 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14997 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014998 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014999 hppa*64*|ia64*)
15000 # +Z the default
15001 ;;
15002 *)
15003 lt_prog_compiler_pic='+Z'
15004 ;;
15005 esac
15006 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15007 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000015008 ;;
15009
John Criswell47fdd832003-07-14 16:52:07 +000015010 irix5* | irix6* | nonstopux*)
15011 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000015012 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000015013 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000015014 ;;
15015
15016 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000015017 lt_prog_compiler_pic='-KPIC'
15018 lt_prog_compiler_static='-Bstatic'
15019 ;;
15020
15021 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000015022 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015023 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000015024 lt_prog_compiler_wl='-Wl,'
15025 lt_prog_compiler_pic='-KPIC'
15026 lt_prog_compiler_static='-static'
15027 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015028 pgcc* | pgf77* | pgf90* | pgf95*)
15029 # Portland Group compilers (*not* the Pentium gcc compiler,
15030 # which looks to be a dead project)
15031 lt_prog_compiler_wl='-Wl,'
15032 lt_prog_compiler_pic='-fpic'
15033 lt_prog_compiler_static='-Bstatic'
15034 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015035 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000015036 lt_prog_compiler_wl='-Wl,'
15037 # All Alpha code is PIC.
15038 lt_prog_compiler_static='-non_shared'
15039 ;;
15040 esac
John Criswell7a73b802003-06-30 21:59:07 +000015041 ;;
15042
15043 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000015044 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000015045 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000015046 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000015047 ;;
15048
John Criswell7a73b802003-06-30 21:59:07 +000015049 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015050 lt_prog_compiler_pic='-KPIC'
15051 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000015052 case $cc_basename in
15053 f77* | f90* | f95*)
15054 lt_prog_compiler_wl='-Qoption ld ';;
15055 *)
15056 lt_prog_compiler_wl='-Wl,';;
15057 esac
John Criswell7a73b802003-06-30 21:59:07 +000015058 ;;
15059
15060 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000015061 lt_prog_compiler_wl='-Qoption ld '
15062 lt_prog_compiler_pic='-PIC'
15063 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015064 ;;
15065
Reid Spencera773bd52006-08-04 18:18:08 +000015066 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000015067 lt_prog_compiler_wl='-Wl,'
15068 lt_prog_compiler_pic='-KPIC'
15069 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015070 ;;
15071
15072 sysv4*MP*)
15073 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000015074 lt_prog_compiler_pic='-Kconform_pic'
15075 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015076 fi
15077 ;;
15078
Reid Spencera773bd52006-08-04 18:18:08 +000015079 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15080 lt_prog_compiler_wl='-Wl,'
15081 lt_prog_compiler_pic='-KPIC'
15082 lt_prog_compiler_static='-Bstatic'
15083 ;;
15084
15085 unicos*)
15086 lt_prog_compiler_wl='-Wl,'
15087 lt_prog_compiler_can_build_shared=no
15088 ;;
15089
John Criswell47fdd832003-07-14 16:52:07 +000015090 uts4*)
15091 lt_prog_compiler_pic='-pic'
15092 lt_prog_compiler_static='-Bstatic'
15093 ;;
15094
John Criswell7a73b802003-06-30 21:59:07 +000015095 *)
John Criswell47fdd832003-07-14 16:52:07 +000015096 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015097 ;;
15098 esac
15099 fi
15100
Reid Spencera773bd52006-08-04 18:18:08 +000015101{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15102echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015103
John Criswell47fdd832003-07-14 16:52:07 +000015104#
15105# Check to make sure the PIC flag actually works.
15106#
15107if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015108
Reid Spencera773bd52006-08-04 18:18:08 +000015109{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15110echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015111if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015112 echo $ECHO_N "(cached) $ECHO_C" >&6
15113else
John Criswell47fdd832003-07-14 16:52:07 +000015114 lt_prog_compiler_pic_works=no
15115 ac_outfile=conftest.$ac_objext
15116 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15117 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15118 # Insert the option either (1) after the last *FLAGS variable, or
15119 # (2) before a word containing "conftest.", or (3) at the end.
15120 # Note that $ac_compile itself does not contain backslashes and begins
15121 # with a dollar sign (not a hyphen), so the echo should work correctly.
15122 # The option is referenced via a variable to avoid confusing sed.
15123 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015124 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015125 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15126 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000015127 (eval echo "\"\$as_me:15127: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015128 (eval "$lt_compile" 2>conftest.err)
15129 ac_status=$?
15130 cat conftest.err >&5
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000015131 echo "$as_me:15131: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015132 if (exit $ac_status) && test -s "$ac_outfile"; then
15133 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000015134 # So say no if there are warnings other than the usual output.
15135 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15136 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15137 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015138 lt_prog_compiler_pic_works=yes
15139 fi
15140 fi
15141 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015142
John Criswell47fdd832003-07-14 16:52:07 +000015143fi
Reid Spencera773bd52006-08-04 18:18:08 +000015144{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15145echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015146
John Criswell47fdd832003-07-14 16:52:07 +000015147if test x"$lt_prog_compiler_pic_works" = xyes; then
15148 case $lt_prog_compiler_pic in
15149 "" | " "*) ;;
15150 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15151 esac
John Criswell7a73b802003-06-30 21:59:07 +000015152else
John Criswell47fdd832003-07-14 16:52:07 +000015153 lt_prog_compiler_pic=
15154 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015155fi
15156
John Criswell7a73b802003-06-30 21:59:07 +000015157fi
Reid Spencera773bd52006-08-04 18:18:08 +000015158case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015159 # For platforms which do not support PIC, -DPIC is meaningless:
15160 *djgpp*)
15161 lt_prog_compiler_pic=
15162 ;;
15163 *)
15164 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15165 ;;
15166esac
John Criswell7a73b802003-06-30 21:59:07 +000015167
Reid Spencera773bd52006-08-04 18:18:08 +000015168#
15169# Check to make sure the static flag actually works.
15170#
15171wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15172{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15173echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15174if test "${lt_prog_compiler_static_works+set}" = set; then
15175 echo $ECHO_N "(cached) $ECHO_C" >&6
15176else
15177 lt_prog_compiler_static_works=no
15178 save_LDFLAGS="$LDFLAGS"
15179 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15180 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15181 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15182 # The linker can only warn and ignore the option if not recognized
15183 # So say no if there are warnings
15184 if test -s conftest.err; then
15185 # Append any errors to the config.log.
15186 cat conftest.err 1>&5
15187 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15188 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15189 if diff conftest.exp conftest.er2 >/dev/null; then
15190 lt_prog_compiler_static_works=yes
15191 fi
15192 else
15193 lt_prog_compiler_static_works=yes
15194 fi
15195 fi
15196 $rm conftest*
15197 LDFLAGS="$save_LDFLAGS"
15198
15199fi
15200{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15201echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15202
15203if test x"$lt_prog_compiler_static_works" = xyes; then
15204 :
15205else
15206 lt_prog_compiler_static=
15207fi
15208
15209
15210{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15211echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015212if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015213 echo $ECHO_N "(cached) $ECHO_C" >&6
15214else
John Criswell47fdd832003-07-14 16:52:07 +000015215 lt_cv_prog_compiler_c_o=no
15216 $rm -r conftest 2>/dev/null
15217 mkdir conftest
15218 cd conftest
15219 mkdir out
15220 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015221
John Criswell47fdd832003-07-14 16:52:07 +000015222 lt_compiler_flag="-o out/conftest2.$ac_objext"
15223 # Insert the option either (1) after the last *FLAGS variable, or
15224 # (2) before a word containing "conftest.", or (3) at the end.
15225 # Note that $ac_compile itself does not contain backslashes and begins
15226 # with a dollar sign (not a hyphen), so the echo should work correctly.
15227 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015228 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015229 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15230 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000015231 (eval echo "\"\$as_me:15231: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015232 (eval "$lt_compile" 2>out/conftest.err)
15233 ac_status=$?
15234 cat out/conftest.err >&5
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000015235 echo "$as_me:15235: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015236 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15237 then
15238 # The compiler can only warn and ignore the option if not recognized
15239 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000015240 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15241 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15242 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015243 lt_cv_prog_compiler_c_o=yes
15244 fi
15245 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015246 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015247 $rm conftest*
15248 # SGI C++ compiler will create directory out/ii_files/ for
15249 # template instantiation
15250 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15251 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000015252 cd ..
15253 rmdir conftest
15254 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015255
15256fi
Reid Spencera773bd52006-08-04 18:18:08 +000015257{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15258echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015259
John Criswell7a73b802003-06-30 21:59:07 +000015260
John Criswell7a73b802003-06-30 21:59:07 +000015261hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000015262if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000015263 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000015264 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15265echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015266 hard_links=yes
15267 $rm conftest*
15268 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15269 touch conftest.a
15270 ln conftest.a conftest.b 2>&5 || hard_links=no
15271 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000015272 { echo "$as_me:$LINENO: result: $hard_links" >&5
15273echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015274 if test "$hard_links" = no; then
15275 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15276echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15277 need_locks=warn
15278 fi
15279else
15280 need_locks=no
15281fi
John Criswell7a73b802003-06-30 21:59:07 +000015282
Reid Spencera773bd52006-08-04 18:18:08 +000015283{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15284echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015285
15286 runpath_var=
15287 allow_undefined_flag=
15288 enable_shared_with_static_runtimes=no
15289 archive_cmds=
15290 archive_expsym_cmds=
15291 old_archive_From_new_cmds=
15292 old_archive_from_expsyms_cmds=
15293 export_dynamic_flag_spec=
15294 whole_archive_flag_spec=
15295 thread_safe_flag_spec=
15296 hardcode_libdir_flag_spec=
15297 hardcode_libdir_flag_spec_ld=
15298 hardcode_libdir_separator=
15299 hardcode_direct=no
15300 hardcode_minus_L=no
15301 hardcode_shlibpath_var=unsupported
15302 link_all_deplibs=unknown
15303 hardcode_automatic=no
15304 module_cmds=
15305 module_expsym_cmds=
15306 always_export_symbols=no
15307 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15308 # include_expsyms should be a list of space-separated symbols to be *always*
15309 # included in the symbol list
15310 include_expsyms=
15311 # exclude_expsyms can be an extended regexp of symbols to exclude
15312 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15313 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15314 # as well as any symbol that contains `d'.
15315 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15316 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15317 # platforms (ab)use it in PIC code, but their linkers get confused if
15318 # the symbol is explicitly referenced. Since portable code cannot
15319 # rely on this symbol name, it's probably fine to never include it in
15320 # preloaded symbol tables.
15321 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000015322 # Just being paranoid about ensuring that cc_basename is set.
15323 for cc_temp in $compiler""; do
15324 case $cc_temp in
15325 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15326 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15327 \-*) ;;
15328 *) break;;
15329 esac
15330done
15331cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000015332
15333 case $host_os in
15334 cygwin* | mingw* | pw32*)
15335 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15336 # When not using gcc, we currently assume that we are using
15337 # Microsoft Visual C++.
15338 if test "$GCC" != yes; then
15339 with_gnu_ld=no
15340 fi
15341 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015342 interix*)
15343 # we just hope/assume this is gcc and not c89 (= MSVC++)
15344 with_gnu_ld=yes
15345 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015346 openbsd*)
15347 with_gnu_ld=no
15348 ;;
15349 esac
15350
15351 ld_shlibs=yes
15352 if test "$with_gnu_ld" = yes; then
15353 # If archive_cmds runs LD, not CC, wlarc should be empty
15354 wlarc='${wl}'
15355
Reid Spencera773bd52006-08-04 18:18:08 +000015356 # Set some defaults for GNU ld with shared library support. These
15357 # are reset later if shared libraries are not supported. Putting them
15358 # here allows them to be overridden if necessary.
15359 runpath_var=LD_RUN_PATH
15360 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15361 export_dynamic_flag_spec='${wl}--export-dynamic'
15362 # ancient GNU ld didn't support --whole-archive et. al.
15363 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15364 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15365 else
15366 whole_archive_flag_spec=
15367 fi
15368 supports_anon_versioning=no
15369 case `$LD -v 2>/dev/null` in
15370 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15371 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15372 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15373 *\ 2.11.*) ;; # other 2.11 versions
15374 *) supports_anon_versioning=yes ;;
15375 esac
15376
John Criswell47fdd832003-07-14 16:52:07 +000015377 # See if GNU ld supports shared libraries.
15378 case $host_os in
15379 aix3* | aix4* | aix5*)
15380 # On AIX/PPC, the GNU linker is very broken
15381 if test "$host_cpu" != ia64; then
15382 ld_shlibs=no
15383 cat <<EOF 1>&2
15384
15385*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15386*** to be unable to reliably create shared libraries on AIX.
15387*** Therefore, libtool is disabling shared libraries support. If you
15388*** really care for shared libraries, you may want to modify your PATH
15389*** so that a non-GNU linker is found, and then restart.
15390
15391EOF
15392 fi
15393 ;;
15394
15395 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015396 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 +000015397 hardcode_libdir_flag_spec='-L$libdir'
15398 hardcode_minus_L=yes
15399
15400 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15401 # that the semantics of dynamic libraries on AmigaOS, at least up
15402 # to version 4, is to share data among multiple programs linked
15403 # with the same dynamic library. Since this doesn't match the
15404 # behavior of shared libraries on other platforms, we can't use
15405 # them.
15406 ld_shlibs=no
15407 ;;
15408
15409 beos*)
15410 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15411 allow_undefined_flag=unsupported
15412 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15413 # support --undefined. This deserves some investigation. FIXME
15414 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15415 else
15416 ld_shlibs=no
15417 fi
15418 ;;
15419
15420 cygwin* | mingw* | pw32*)
15421 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15422 # as there is no search path for DLLs.
15423 hardcode_libdir_flag_spec='-L$libdir'
15424 allow_undefined_flag=unsupported
15425 always_export_symbols=no
15426 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015427 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 +000015428
15429 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015430 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 +000015431 # If the export-symbols file already is a .def file (1st line
15432 # is EXPORTS), use it as is; otherwise, prepend...
15433 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15434 cp $export_symbols $output_objdir/$soname.def;
15435 else
15436 echo EXPORTS > $output_objdir/$soname.def;
15437 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015438 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015439 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15440 else
15441 ld_shlibs=no
15442 fi
15443 ;;
15444
15445 interix3*)
15446 hardcode_direct=no
15447 hardcode_shlibpath_var=no
15448 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15449 export_dynamic_flag_spec='${wl}-E'
15450 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15451 # Instead, shared libraries are loaded at an image base (0x10000000 by
15452 # default) and relocated if they conflict, which is a slow very memory
15453 # consuming and fragmenting process. To avoid this, we pick a random,
15454 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15455 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15456 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15457 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'
15458 ;;
15459
15460 linux*)
15461 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15462 tmp_addflag=
15463 case $cc_basename,$host_cpu in
15464 pgcc*) # Portland Group C compiler
15465 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'
15466 tmp_addflag=' $pic_flag'
15467 ;;
15468 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15469 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'
15470 tmp_addflag=' $pic_flag -Mnomain' ;;
15471 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15472 tmp_addflag=' -i_dynamic' ;;
15473 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15474 tmp_addflag=' -i_dynamic -nofor_main' ;;
15475 ifc* | ifort*) # Intel Fortran compiler
15476 tmp_addflag=' -nofor_main' ;;
15477 esac
15478 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15479
15480 if test $supports_anon_versioning = yes; then
15481 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15482 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15483 $echo "local: *; };" >> $output_objdir/$libname.ver~
15484 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15485 fi
John Criswell47fdd832003-07-14 16:52:07 +000015486 else
15487 ld_shlibs=no
15488 fi
15489 ;;
15490
15491 netbsd*)
15492 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15493 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15494 wlarc=
15495 else
15496 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15497 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15498 fi
15499 ;;
15500
Reid Spencera773bd52006-08-04 18:18:08 +000015501 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015502 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15503 ld_shlibs=no
15504 cat <<EOF 1>&2
15505
15506*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15507*** create shared libraries on Solaris systems. Therefore, libtool
15508*** is disabling shared libraries support. We urge you to upgrade GNU
15509*** binutils to release 2.9.1 or newer. Another option is to modify
15510*** your PATH or compiler configuration so that the native linker is
15511*** used, and then restart.
15512
15513EOF
15514 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15515 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15516 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15517 else
15518 ld_shlibs=no
15519 fi
15520 ;;
15521
Reid Spencera773bd52006-08-04 18:18:08 +000015522 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15523 case `$LD -v 2>&1` in
15524 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15525 ld_shlibs=no
15526 cat <<_LT_EOF 1>&2
15527
15528*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15529*** reliably create shared libraries on SCO systems. Therefore, libtool
15530*** is disabling shared libraries support. We urge you to upgrade GNU
15531*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15532*** your PATH or compiler configuration so that the native linker is
15533*** used, and then restart.
15534
15535_LT_EOF
15536 ;;
15537 *)
15538 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15539 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15540 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15541 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15542 else
15543 ld_shlibs=no
15544 fi
15545 ;;
15546 esac
15547 ;;
15548
John Criswell47fdd832003-07-14 16:52:07 +000015549 sunos4*)
15550 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15551 wlarc=
15552 hardcode_direct=yes
15553 hardcode_shlibpath_var=no
15554 ;;
15555
15556 *)
15557 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15558 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15559 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15560 else
15561 ld_shlibs=no
15562 fi
15563 ;;
15564 esac
15565
Reid Spencera773bd52006-08-04 18:18:08 +000015566 if test "$ld_shlibs" = no; then
15567 runpath_var=
15568 hardcode_libdir_flag_spec=
15569 export_dynamic_flag_spec=
15570 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015571 fi
15572 else
15573 # PORTME fill in a description of your system's linker (not GNU ld)
15574 case $host_os in
15575 aix3*)
15576 allow_undefined_flag=unsupported
15577 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015578 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 +000015579 # Note: this linker hardcodes the directories in LIBPATH if there
15580 # are no directories specified by -L.
15581 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015582 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015583 # Neither direct hardcoding nor static linking is supported with a
15584 # broken collect2.
15585 hardcode_direct=unsupported
15586 fi
15587 ;;
15588
15589 aix4* | aix5*)
15590 if test "$host_cpu" = ia64; then
15591 # On IA64, the linker does run time linking by default, so we don't
15592 # have to do anything special.
15593 aix_use_runtimelinking=no
15594 exp_sym_flag='-Bexport'
15595 no_entry_flag=""
15596 else
15597 # If we're using GNU nm, then we don't want the "-C" option.
15598 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15599 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15600 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'
15601 else
15602 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'
15603 fi
15604 aix_use_runtimelinking=no
15605
15606 # Test if we are trying to use run time linking or normal
15607 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15608 # need to do runtime linking.
15609 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15610 for ld_flag in $LDFLAGS; do
15611 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15612 aix_use_runtimelinking=yes
15613 break
15614 fi
15615 done
Reid Spencera773bd52006-08-04 18:18:08 +000015616 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015617 esac
15618
15619 exp_sym_flag='-bexport'
15620 no_entry_flag='-bnoentry'
15621 fi
15622
15623 # When large executables or shared objects are built, AIX ld can
15624 # have problems creating the table of contents. If linking a library
15625 # or program results in "error TOC overflow" add -mminimal-toc to
15626 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15627 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15628
15629 archive_cmds=''
15630 hardcode_direct=yes
15631 hardcode_libdir_separator=':'
15632 link_all_deplibs=yes
15633
15634 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015635 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015636 # We only want to do this on AIX 4.2 and lower, the check
15637 # below for broken collect2 doesn't work under 4.3+
15638 collect2name=`${CC} -print-prog-name=collect2`
15639 if test -f "$collect2name" && \
15640 strings "$collect2name" | grep resolve_lib_name >/dev/null
15641 then
15642 # We have reworked collect2
15643 hardcode_direct=yes
15644 else
15645 # We have old collect2
15646 hardcode_direct=unsupported
15647 # It fails to find uninstalled libraries when the uninstalled
15648 # path is not listed in the libpath. Setting hardcode_minus_L
15649 # to unsupported forces relinking
15650 hardcode_minus_L=yes
15651 hardcode_libdir_flag_spec='-L$libdir'
15652 hardcode_libdir_separator=
15653 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015654 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015655 esac
15656 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015657 if test "$aix_use_runtimelinking" = yes; then
15658 shared_flag="$shared_flag "'${wl}-G'
15659 fi
John Criswell47fdd832003-07-14 16:52:07 +000015660 else
15661 # not using gcc
15662 if test "$host_cpu" = ia64; then
15663 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15664 # chokes on -Wl,-G. The following line is correct:
15665 shared_flag='-G'
15666 else
Reid Spencera773bd52006-08-04 18:18:08 +000015667 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015668 shared_flag='${wl}-G'
15669 else
15670 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015671 fi
John Criswell47fdd832003-07-14 16:52:07 +000015672 fi
15673 fi
15674
15675 # It seems that -bexpall does not export symbols beginning with
15676 # underscore (_), so it is better to generate a list of symbols to export.
15677 always_export_symbols=yes
15678 if test "$aix_use_runtimelinking" = yes; then
15679 # Warning - without using the other runtime loading flags (-brtl),
15680 # -berok will link without error, but may produce a broken library.
15681 allow_undefined_flag='-berok'
15682 # Determine the default libpath from the value encoded in an empty executable.
15683 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015684/* confdefs.h. */
15685_ACEOF
15686cat confdefs.h >>conftest.$ac_ext
15687cat >>conftest.$ac_ext <<_ACEOF
15688/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015689
John Criswell7a73b802003-06-30 21:59:07 +000015690int
15691main ()
15692{
John Criswell47fdd832003-07-14 16:52:07 +000015693
John Criswell7a73b802003-06-30 21:59:07 +000015694 ;
15695 return 0;
15696}
15697_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015698rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015699if { (ac_try="$ac_link"
15700case "(($ac_try" in
15701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15702 *) ac_try_echo=$ac_try;;
15703esac
15704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15705 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015706 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015707 grep -v '^ *+' conftest.er1 >conftest.err
15708 rm -f conftest.er1
15709 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015711 (exit $ac_status); } &&
15712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15713 { (case "(($ac_try" in
15714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15715 *) ac_try_echo=$ac_try;;
15716esac
15717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15718 (eval "$ac_try") 2>&5
15719 ac_status=$?
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; } &&
15722 { ac_try='test -s conftest$ac_exeext'
15723 { (case "(($ac_try" in
15724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15725 *) ac_try_echo=$ac_try;;
15726esac
15727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15728 (eval "$ac_try") 2>&5
15729 ac_status=$?
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015732
John Criswell47fdd832003-07-14 16:52:07 +000015733aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15734}'`
15735# Check for a 64-bit object if we didn't find anything.
15736if 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; }
15737}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015738else
15739 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015740sed 's/^/| /' conftest.$ac_ext >&5
15741
Reid Spencera773bd52006-08-04 18:18:08 +000015742
John Criswell7a73b802003-06-30 21:59:07 +000015743fi
Reid Spencera773bd52006-08-04 18:18:08 +000015744
Bill Wendlingebcceee2009-04-18 11:20:33 +000015745rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015746 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015747if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015748
John Criswell47fdd832003-07-14 16:52:07 +000015749 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015750 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 +000015751 else
15752 if test "$host_cpu" = ia64; then
15753 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15754 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015755 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 +000015756 else
15757 # Determine the default libpath from the value encoded in an empty executable.
15758 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015759/* confdefs.h. */
15760_ACEOF
15761cat confdefs.h >>conftest.$ac_ext
15762cat >>conftest.$ac_ext <<_ACEOF
15763/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015764
John Criswell47fdd832003-07-14 16:52:07 +000015765int
15766main ()
15767{
John Criswell7a73b802003-06-30 21:59:07 +000015768
John Criswell47fdd832003-07-14 16:52:07 +000015769 ;
15770 return 0;
15771}
15772_ACEOF
15773rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015774if { (ac_try="$ac_link"
15775case "(($ac_try" in
15776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15777 *) ac_try_echo=$ac_try;;
15778esac
15779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15780 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015781 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015782 grep -v '^ *+' conftest.er1 >conftest.err
15783 rm -f conftest.er1
15784 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015786 (exit $ac_status); } &&
15787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15788 { (case "(($ac_try" in
15789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15790 *) ac_try_echo=$ac_try;;
15791esac
15792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15793 (eval "$ac_try") 2>&5
15794 ac_status=$?
15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); }; } &&
15797 { ac_try='test -s conftest$ac_exeext'
15798 { (case "(($ac_try" in
15799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15800 *) ac_try_echo=$ac_try;;
15801esac
15802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15803 (eval "$ac_try") 2>&5
15804 ac_status=$?
15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015807
John Criswell47fdd832003-07-14 16:52:07 +000015808aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15809}'`
15810# Check for a 64-bit object if we didn't find anything.
15811if 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; }
15812}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015813else
John Criswell47fdd832003-07-14 16:52:07 +000015814 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015815sed 's/^/| /' conftest.$ac_ext >&5
15816
Reid Spencera773bd52006-08-04 18:18:08 +000015817
John Criswell47fdd832003-07-14 16:52:07 +000015818fi
Reid Spencera773bd52006-08-04 18:18:08 +000015819
Bill Wendlingebcceee2009-04-18 11:20:33 +000015820rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015821 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015822if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015823
John Criswell47fdd832003-07-14 16:52:07 +000015824 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15825 # Warning - without using the other run time loading flags,
15826 # -berok will link without error, but may produce a broken library.
15827 no_undefined_flag=' ${wl}-bernotok'
15828 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015829 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015830 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015831 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015832 # This is similar to how AIX traditionally builds its shared libraries.
15833 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 +000015834 fi
15835 fi
John Criswell7a73b802003-06-30 21:59:07 +000015836 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015837
15838 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015839 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 +000015840 hardcode_libdir_flag_spec='-L$libdir'
15841 hardcode_minus_L=yes
15842 # see comment about different semantics on the GNU ld section
15843 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015844 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015845
Reid Spencer2706f8c2004-09-19 23:53:36 +000015846 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015847 export_dynamic_flag_spec=-rdynamic
15848 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015849
John Criswell47fdd832003-07-14 16:52:07 +000015850 cygwin* | mingw* | pw32*)
15851 # When not using gcc, we currently assume that we are using
15852 # Microsoft Visual C++.
15853 # hardcode_libdir_flag_spec is actually meaningless, as there is
15854 # no search path for DLLs.
15855 hardcode_libdir_flag_spec=' '
15856 allow_undefined_flag=unsupported
15857 # Tell ltmain to make .lib files, not .a files.
15858 libext=lib
15859 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015860 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015861 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015862 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015863 # The linker will automatically build a .lib file if we build a DLL.
15864 old_archive_From_new_cmds='true'
15865 # FIXME: Should let the user specify the lib program.
15866 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15867 fix_srcfile_path='`cygpath -w "$srcfile"`'
15868 enable_shared_with_static_runtimes=yes
15869 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015870
John Criswell47fdd832003-07-14 16:52:07 +000015871 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015872 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015873 rhapsody* | darwin1.[012])
15874 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15875 ;;
15876 *) # Darwin 1.3 on
15877 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15878 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15879 else
15880 case ${MACOSX_DEPLOYMENT_TARGET} in
15881 10.[012])
15882 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15883 ;;
15884 10.*)
15885 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15886 ;;
15887 esac
15888 fi
15889 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015890 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015891 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015892 hardcode_direct=no
15893 hardcode_automatic=yes
15894 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015895 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015896 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015897 if test "$GCC" = yes ; then
15898 output_verbose_link_cmd='echo'
15899 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15900 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015901 # 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 +000015902 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}'
15903 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 +000015904 else
Reid Spencera773bd52006-08-04 18:18:08 +000015905 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015906 xlc*)
15907 output_verbose_link_cmd='echo'
15908 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15909 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015910 # 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 +000015911 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}'
15912 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 +000015913 ;;
15914 *)
15915 ld_shlibs=no
15916 ;;
15917 esac
John Criswell7a73b802003-06-30 21:59:07 +000015918 fi
John Criswell47fdd832003-07-14 16:52:07 +000015919 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015920
John Criswell47fdd832003-07-14 16:52:07 +000015921 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015922 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015923 hardcode_libdir_flag_spec='-L$libdir'
15924 hardcode_shlibpath_var=no
15925 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015926
John Criswell47fdd832003-07-14 16:52:07 +000015927 freebsd1*)
15928 ld_shlibs=no
15929 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015930
John Criswell47fdd832003-07-14 16:52:07 +000015931 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15932 # support. Future versions do this automatically, but an explicit c++rt0.o
15933 # does not break anything, and helps significantly (at the cost of a little
15934 # extra space).
15935 freebsd2.2*)
15936 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15937 hardcode_libdir_flag_spec='-R$libdir'
15938 hardcode_direct=yes
15939 hardcode_shlibpath_var=no
15940 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015941
John Criswell47fdd832003-07-14 16:52:07 +000015942 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15943 freebsd2*)
15944 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15945 hardcode_direct=yes
15946 hardcode_minus_L=yes
15947 hardcode_shlibpath_var=no
15948 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015949
John Criswell47fdd832003-07-14 16:52:07 +000015950 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015951 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015952 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15953 hardcode_libdir_flag_spec='-R$libdir'
15954 hardcode_direct=yes
15955 hardcode_shlibpath_var=no
15956 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015957
John Criswell47fdd832003-07-14 16:52:07 +000015958 hpux9*)
15959 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015960 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 +000015961 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015962 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 +000015963 fi
15964 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15965 hardcode_libdir_separator=:
15966 hardcode_direct=yes
15967
15968 # hardcode_minus_L: Not really in the search PATH,
15969 # but as the default location of the library.
15970 hardcode_minus_L=yes
15971 export_dynamic_flag_spec='${wl}-E'
15972 ;;
15973
Reid Spencera773bd52006-08-04 18:18:08 +000015974 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015975 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015976 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15977 else
15978 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15979 fi
15980 if test "$with_gnu_ld" = no; then
15981 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15982 hardcode_libdir_separator=:
15983
15984 hardcode_direct=yes
15985 export_dynamic_flag_spec='${wl}-E'
15986
15987 # hardcode_minus_L: Not really in the search PATH,
15988 # but as the default location of the library.
15989 hardcode_minus_L=yes
15990 fi
15991 ;;
15992
15993 hpux11*)
15994 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15995 case $host_cpu in
15996 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015997 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15998 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015999 ia64*)
16000 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16001 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016002 *)
16003 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16004 ;;
16005 esac
16006 else
Reid Spencera773bd52006-08-04 18:18:08 +000016007 case $host_cpu in
16008 hppa*64*)
16009 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16010 ;;
16011 ia64*)
16012 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000016013 ;;
16014 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016015 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 +000016016 ;;
16017 esac
16018 fi
16019 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000016020 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16021 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000016022
Reid Spencera773bd52006-08-04 18:18:08 +000016023 case $host_cpu in
16024 hppa*64*|ia64*)
16025 hardcode_libdir_flag_spec_ld='+b $libdir'
16026 hardcode_direct=no
16027 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000016028 ;;
16029 *)
John Criswell47fdd832003-07-14 16:52:07 +000016030 hardcode_direct=yes
16031 export_dynamic_flag_spec='${wl}-E'
16032
16033 # hardcode_minus_L: Not really in the search PATH,
16034 # but as the default location of the library.
16035 hardcode_minus_L=yes
16036 ;;
16037 esac
16038 fi
16039 ;;
16040
16041 irix5* | irix6* | nonstopux*)
16042 if test "$GCC" = yes; then
16043 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'
16044 else
16045 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'
16046 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16047 fi
16048 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16049 hardcode_libdir_separator=:
16050 link_all_deplibs=yes
16051 ;;
16052
16053 netbsd*)
16054 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16055 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16056 else
16057 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16058 fi
16059 hardcode_libdir_flag_spec='-R$libdir'
16060 hardcode_direct=yes
16061 hardcode_shlibpath_var=no
16062 ;;
16063
16064 newsos6)
16065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16066 hardcode_direct=yes
16067 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16068 hardcode_libdir_separator=:
16069 hardcode_shlibpath_var=no
16070 ;;
16071
16072 openbsd*)
16073 hardcode_direct=yes
16074 hardcode_shlibpath_var=no
16075 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16076 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016077 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 +000016078 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16079 export_dynamic_flag_spec='${wl}-E'
16080 else
16081 case $host_os in
16082 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16083 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16084 hardcode_libdir_flag_spec='-R$libdir'
16085 ;;
16086 *)
16087 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16088 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16089 ;;
16090 esac
16091 fi
16092 ;;
16093
16094 os2*)
16095 hardcode_libdir_flag_spec='-L$libdir'
16096 hardcode_minus_L=yes
16097 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000016098 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 +000016099 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16100 ;;
16101
16102 osf3*)
16103 if test "$GCC" = yes; then
16104 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16105 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'
16106 else
16107 allow_undefined_flag=' -expect_unresolved \*'
16108 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'
16109 fi
16110 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16111 hardcode_libdir_separator=:
16112 ;;
16113
16114 osf4* | osf5*) # as osf3* with the addition of -msym flag
16115 if test "$GCC" = yes; then
16116 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16117 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'
16118 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16119 else
16120 allow_undefined_flag=' -expect_unresolved \*'
16121 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 +000016122 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 +000016123 $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 +000016124
John Criswell47fdd832003-07-14 16:52:07 +000016125 # Both c and cxx compiler support -rpath directly
16126 hardcode_libdir_flag_spec='-rpath $libdir'
16127 fi
16128 hardcode_libdir_separator=:
16129 ;;
16130
John Criswell47fdd832003-07-14 16:52:07 +000016131 solaris*)
16132 no_undefined_flag=' -z text'
16133 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016134 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000016135 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016136 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16137 $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 +000016138 else
Reid Spencera773bd52006-08-04 18:18:08 +000016139 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000016140 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016141 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16142 $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 +000016143 fi
16144 hardcode_libdir_flag_spec='-R$libdir'
16145 hardcode_shlibpath_var=no
16146 case $host_os in
16147 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016148 *)
16149 # The compiler driver will combine linker options so we
16150 # cannot just pass the convience library names through
16151 # without $wl, iff we do not link with $LD.
16152 # Luckily, gcc supports the same syntax we need for Sun Studio.
16153 # Supported since Solaris 2.6 (maybe 2.5.1?)
16154 case $wlarc in
16155 '')
16156 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16157 *)
16158 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' ;;
16159 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000016160 esac
16161 link_all_deplibs=yes
16162 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016163
John Criswell47fdd832003-07-14 16:52:07 +000016164 sunos4*)
16165 if test "x$host_vendor" = xsequent; then
16166 # Use $CC to link under sequent, because it throws in some extra .o
16167 # files that make .init and .fini sections work.
16168 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16169 else
16170 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16171 fi
16172 hardcode_libdir_flag_spec='-L$libdir'
16173 hardcode_direct=yes
16174 hardcode_minus_L=yes
16175 hardcode_shlibpath_var=no
16176 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016177
John Criswell47fdd832003-07-14 16:52:07 +000016178 sysv4)
16179 case $host_vendor in
16180 sni)
16181 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16182 hardcode_direct=yes # is this really true???
16183 ;;
16184 siemens)
16185 ## LD is ld it makes a PLAMLIB
16186 ## CC just makes a GrossModule.
16187 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16188 reload_cmds='$CC -r -o $output$reload_objs'
16189 hardcode_direct=no
16190 ;;
16191 motorola)
16192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16193 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16194 ;;
16195 esac
16196 runpath_var='LD_RUN_PATH'
16197 hardcode_shlibpath_var=no
16198 ;;
16199
16200 sysv4.3*)
16201 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16202 hardcode_shlibpath_var=no
16203 export_dynamic_flag_spec='-Bexport'
16204 ;;
16205
16206 sysv4*MP*)
16207 if test -d /usr/nec; then
16208 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16209 hardcode_shlibpath_var=no
16210 runpath_var=LD_RUN_PATH
16211 hardcode_runpath_var=yes
16212 ld_shlibs=yes
16213 fi
16214 ;;
16215
Reid Spencera773bd52006-08-04 18:18:08 +000016216 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16217 no_undefined_flag='${wl}-z,text'
16218 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016219 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016220 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000016221
John Criswell47fdd832003-07-14 16:52:07 +000016222 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016223 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16224 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 +000016225 else
Reid Spencera773bd52006-08-04 18:18:08 +000016226 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16227 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 +000016228 fi
John Criswell47fdd832003-07-14 16:52:07 +000016229 ;;
16230
Reid Spencera773bd52006-08-04 18:18:08 +000016231 sysv5* | sco3.2v5* | sco5v6*)
16232 # Note: We can NOT use -z defs as we might desire, because we do not
16233 # link with -lc, and that would cause any symbols used from libc to
16234 # always be unresolved, which means just about no library would
16235 # ever link correctly. If we're not using GNU ld we use -z text
16236 # though, which does catch some bad symbols but isn't as heavy-handed
16237 # as -z defs.
16238 no_undefined_flag='${wl}-z,text'
16239 allow_undefined_flag='${wl}-z,nodefs'
16240 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016241 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016242 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16243 hardcode_libdir_separator=':'
16244 link_all_deplibs=yes
16245 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000016246 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000016247
16248 if test "$GCC" = yes; then
16249 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16250 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16251 else
16252 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16253 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16254 fi
John Criswell47fdd832003-07-14 16:52:07 +000016255 ;;
16256
16257 uts4*)
16258 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16259 hardcode_libdir_flag_spec='-L$libdir'
16260 hardcode_shlibpath_var=no
16261 ;;
16262
16263 *)
16264 ld_shlibs=no
16265 ;;
16266 esac
16267 fi
16268
Reid Spencera773bd52006-08-04 18:18:08 +000016269{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16270echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016271test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016272
John Criswell47fdd832003-07-14 16:52:07 +000016273#
16274# Do we need to explicitly link libc?
16275#
16276case "x$archive_cmds_need_lc" in
16277x|xyes)
16278 # Assume -lc should be added
16279 archive_cmds_need_lc=yes
16280
16281 if test "$enable_shared" = yes && test "$GCC" = yes; then
16282 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016283 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016284 # FIXME: we may have to deal with multi-command sequences.
16285 ;;
16286 '$CC '*)
16287 # Test whether the compiler implicitly links with -lc since on some
16288 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16289 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000016290 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16291echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016292 $rm conftest*
16293 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16294
16295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16296 (eval $ac_compile) 2>&5
16297 ac_status=$?
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); } 2>conftest.err; then
16300 soname=conftest
16301 lib=conftest
16302 libobjs=conftest.$ac_objext
16303 deplibs=
16304 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000016305 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000016306 compiler_flags=-v
16307 linker_flags=-v
16308 verstring=
16309 output_objdir=.
16310 libname=conftest
16311 lt_save_allow_undefined_flag=$allow_undefined_flag
16312 allow_undefined_flag=
16313 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16314 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16315 ac_status=$?
16316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); }
16318 then
16319 archive_cmds_need_lc=no
16320 else
16321 archive_cmds_need_lc=yes
16322 fi
16323 allow_undefined_flag=$lt_save_allow_undefined_flag
16324 else
16325 cat conftest.err 1>&5
16326 fi
16327 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000016328 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16329echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016330 ;;
16331 esac
16332 fi
16333 ;;
16334esac
16335
Reid Spencera773bd52006-08-04 18:18:08 +000016336{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16337echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016338library_names_spec=
16339libname_spec='lib$name'
16340soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016341shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000016342postinstall_cmds=
16343postuninstall_cmds=
16344finish_cmds=
16345finish_eval=
16346shlibpath_var=
16347shlibpath_overrides_runpath=unknown
16348version_type=none
16349dynamic_linker="$host_os ld.so"
16350sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016351if test "$GCC" = yes; then
16352 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16353 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16354 # if the path contains ";" then we assume it to be the separator
16355 # otherwise default to the standard path separator (i.e. ":") - it is
16356 # assumed that no part of a normal pathname contains ";" but that should
16357 # okay in the real world where ";" in dirpaths is itself problematic.
16358 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16359 else
16360 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16361 fi
16362else
16363 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16364fi
16365need_lib_prefix=unknown
16366hardcode_into_libs=no
16367
16368# when you set need_version to no, make sure it does not cause -set_version
16369# flags to be left without arguments
16370need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000016371
16372case $host_os in
16373aix3*)
16374 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016375 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016376 shlibpath_var=LIBPATH
16377
John Criswell47fdd832003-07-14 16:52:07 +000016378 # AIX 3 has no versioning support, so we append a major version to the name.
16379 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016380 ;;
16381
16382aix4* | aix5*)
16383 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016384 need_lib_prefix=no
16385 need_version=no
16386 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016387 if test "$host_cpu" = ia64; then
16388 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000016389 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016390 shlibpath_var=LD_LIBRARY_PATH
16391 else
16392 # With GCC up to 2.95.x, collect2 would create an import file
16393 # for dependence libraries. The import file would start with
16394 # the line `#! .'. This would cause the generated library to
16395 # depend on `.', always an invalid library. This was fixed in
16396 # development snapshots of GCC prior to 3.0.
16397 case $host_os in
16398 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000016399 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16400 echo ' yes '
16401 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16402 :
16403 else
16404 can_build_shared=no
16405 fi
16406 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016407 esac
John Criswell47fdd832003-07-14 16:52:07 +000016408 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16409 # soname into executable. Probably we can add versioning support to
16410 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000016411 if test "$aix_use_runtimelinking" = yes; then
16412 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16413 # instead of lib<name>.a to let people know that these are not
16414 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016416 else
16417 # We preserve .a as extension for shared libraries through AIX4.2
16418 # and later when we are not doing run time linking.
16419 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016420 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016421 fi
16422 shlibpath_var=LIBPATH
16423 fi
16424 ;;
16425
16426amigaos*)
16427 library_names_spec='$libname.ixlibrary $libname.a'
16428 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016429 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 +000016430 ;;
16431
16432beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016433 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016434 dynamic_linker="$host_os ld.so"
16435 shlibpath_var=LIBRARY_PATH
16436 ;;
16437
Reid Spencer2706f8c2004-09-19 23:53:36 +000016438bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016439 version_type=linux
16440 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16442 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016443 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16444 shlibpath_var=LD_LIBRARY_PATH
16445 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16446 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016447 # the default ld.so.conf also contains /usr/contrib/lib and
16448 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16449 # libtool to hard-code these into programs
16450 ;;
16451
16452cygwin* | mingw* | pw32*)
16453 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016454 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016455 need_version=no
16456 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016457
John Criswell7a73b802003-06-30 21:59:07 +000016458 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016459 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016460 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016461 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016462 postinstall_cmds='base_file=`basename \${file}`~
16463 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16464 dldir=$destdir/`dirname \$dlpath`~
16465 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016466 $install_prog $dir/$dlname \$dldir/$dlname~
16467 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016468 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16469 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016470 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016471 shlibpath_overrides_runpath=yes
16472
16473 case $host_os in
16474 cygwin*)
16475 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16476 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 +000016477 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016478 ;;
16479 mingw*)
16480 # MinGW DLLs use traditional 'lib' prefix
16481 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16482 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16483 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16484 # It is most probably a Windows format PATH printed by
16485 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16486 # path with ; separators, and with drive letters. We can handle the
16487 # drive letters (cygwin fileutils understands them), so leave them,
16488 # especially as we might pass files found there to a mingw objdump,
16489 # which wouldn't understand a cygwinified path. Ahh.
16490 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16491 else
16492 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16493 fi
16494 ;;
16495 pw32*)
16496 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016497 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 +000016498 ;;
16499 esac
John Criswell7a73b802003-06-30 21:59:07 +000016500 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016501
John Criswell7a73b802003-06-30 21:59:07 +000016502 *)
John Criswell47fdd832003-07-14 16:52:07 +000016503 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016504 ;;
16505 esac
16506 dynamic_linker='Win32 ld.exe'
16507 # FIXME: first we should search . and the directory the executable is in
16508 shlibpath_var=PATH
16509 ;;
16510
16511darwin* | rhapsody*)
16512 dynamic_linker="$host_os dyld"
16513 version_type=darwin
16514 need_lib_prefix=no
16515 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016516 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016517 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016518 shlibpath_overrides_runpath=yes
16519 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016520 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016521 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016522 if test "$GCC" = yes; then
16523 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"`
16524 else
16525 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016526 fi
16527 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16528 ;;
16529
16530dgux*)
16531 version_type=linux
16532 need_lib_prefix=no
16533 need_version=no
16534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16535 soname_spec='${libname}${release}${shared_ext}$major'
16536 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016537 ;;
16538
16539freebsd1*)
16540 dynamic_linker=no
16541 ;;
16542
Reid Spencer2706f8c2004-09-19 23:53:36 +000016543kfreebsd*-gnu)
16544 version_type=linux
16545 need_lib_prefix=no
16546 need_version=no
16547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16548 soname_spec='${libname}${release}${shared_ext}$major'
16549 shlibpath_var=LD_LIBRARY_PATH
16550 shlibpath_overrides_runpath=no
16551 hardcode_into_libs=yes
16552 dynamic_linker='GNU ld.so'
16553 ;;
16554
Reid Spencera773bd52006-08-04 18:18:08 +000016555freebsd* | dragonfly*)
16556 # DragonFly does not have aout. When/if they implement a new
16557 # versioning mechanism, adjust this.
16558 if test -x /usr/bin/objformat; then
16559 objformat=`/usr/bin/objformat`
16560 else
16561 case $host_os in
16562 freebsd[123]*) objformat=aout ;;
16563 *) objformat=elf ;;
16564 esac
16565 fi
John Criswell7a73b802003-06-30 21:59:07 +000016566 version_type=freebsd-$objformat
16567 case $version_type in
16568 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016570 need_version=no
16571 need_lib_prefix=no
16572 ;;
16573 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016574 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016575 need_version=yes
16576 ;;
16577 esac
16578 shlibpath_var=LD_LIBRARY_PATH
16579 case $host_os in
16580 freebsd2*)
16581 shlibpath_overrides_runpath=yes
16582 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016583 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016584 shlibpath_overrides_runpath=yes
16585 hardcode_into_libs=yes
16586 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016587 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16588 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016589 shlibpath_overrides_runpath=no
16590 hardcode_into_libs=yes
16591 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016592 freebsd*) # from 4.6 on
16593 shlibpath_overrides_runpath=yes
16594 hardcode_into_libs=yes
16595 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016596 esac
16597 ;;
16598
16599gnu*)
16600 version_type=linux
16601 need_lib_prefix=no
16602 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16604 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016605 shlibpath_var=LD_LIBRARY_PATH
16606 hardcode_into_libs=yes
16607 ;;
16608
16609hpux9* | hpux10* | hpux11*)
16610 # Give a soname corresponding to the major version so that dld.sl refuses to
16611 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016612 version_type=sunos
16613 need_lib_prefix=no
16614 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016615 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016616 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016617 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016618 hardcode_into_libs=yes
16619 dynamic_linker="$host_os dld.so"
16620 shlibpath_var=LD_LIBRARY_PATH
16621 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16623 soname_spec='${libname}${release}${shared_ext}$major'
16624 if test "X$HPUX_IA64_MODE" = X32; then
16625 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16626 else
16627 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16628 fi
16629 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16630 ;;
16631 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016632 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016633 hardcode_into_libs=yes
16634 dynamic_linker="$host_os dld.sl"
16635 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16636 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16638 soname_spec='${libname}${release}${shared_ext}$major'
16639 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16640 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16641 ;;
16642 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016643 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016644 dynamic_linker="$host_os dld.sl"
16645 shlibpath_var=SHLIB_PATH
16646 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16648 soname_spec='${libname}${release}${shared_ext}$major'
16649 ;;
16650 esac
John Criswell7a73b802003-06-30 21:59:07 +000016651 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16652 postinstall_cmds='chmod 555 $lib'
16653 ;;
16654
Reid Spencera773bd52006-08-04 18:18:08 +000016655interix3*)
16656 version_type=linux
16657 need_lib_prefix=no
16658 need_version=no
16659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16660 soname_spec='${libname}${release}${shared_ext}$major'
16661 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16662 shlibpath_var=LD_LIBRARY_PATH
16663 shlibpath_overrides_runpath=no
16664 hardcode_into_libs=yes
16665 ;;
16666
John Criswell47fdd832003-07-14 16:52:07 +000016667irix5* | irix6* | nonstopux*)
16668 case $host_os in
16669 nonstopux*) version_type=nonstopux ;;
16670 *)
16671 if test "$lt_cv_prog_gnu_ld" = yes; then
16672 version_type=linux
16673 else
16674 version_type=irix
16675 fi ;;
16676 esac
John Criswell7a73b802003-06-30 21:59:07 +000016677 need_lib_prefix=no
16678 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016679 soname_spec='${libname}${release}${shared_ext}$major'
16680 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 +000016681 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016682 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016683 libsuff= shlibsuff=
16684 ;;
16685 *)
16686 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016687 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16688 libsuff= shlibsuff= libmagic=32-bit;;
16689 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16690 libsuff=32 shlibsuff=N32 libmagic=N32;;
16691 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16692 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016693 *) libsuff= shlibsuff= libmagic=never-match;;
16694 esac
16695 ;;
16696 esac
16697 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16698 shlibpath_overrides_runpath=no
16699 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16700 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016701 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016702 ;;
16703
16704# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016705linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016706 dynamic_linker=no
16707 ;;
16708
16709# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016710linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016711 version_type=linux
16712 need_lib_prefix=no
16713 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16715 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016716 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16717 shlibpath_var=LD_LIBRARY_PATH
16718 shlibpath_overrides_runpath=no
16719 # This implies no fast_install, which is unacceptable.
16720 # Some rework will be needed to allow for fast_install
16721 # before this can be enabled.
16722 hardcode_into_libs=yes
16723
Reid Spencer2706f8c2004-09-19 23:53:36 +000016724 # Append ld.so.conf contents to the search path
16725 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016726 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 +000016727 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16728 fi
16729
John Criswell7a73b802003-06-30 21:59:07 +000016730 # We used to test for /lib/ld.so.1 and disable shared libraries on
16731 # powerpc, because MkLinux only supported shared libraries with the
16732 # GNU dynamic linker. Since this was broken with cross compilers,
16733 # most powerpc-linux boxes support dynamic linking these days and
16734 # people can always --disable-shared, the test was removed, and we
16735 # assume the GNU/Linux dynamic linker is in use.
16736 dynamic_linker='GNU/Linux ld.so'
16737 ;;
16738
Reid Spencer2706f8c2004-09-19 23:53:36 +000016739knetbsd*-gnu)
16740 version_type=linux
16741 need_lib_prefix=no
16742 need_version=no
16743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16744 soname_spec='${libname}${release}${shared_ext}$major'
16745 shlibpath_var=LD_LIBRARY_PATH
16746 shlibpath_overrides_runpath=no
16747 hardcode_into_libs=yes
16748 dynamic_linker='GNU ld.so'
16749 ;;
16750
John Criswell7a73b802003-06-30 21:59:07 +000016751netbsd*)
16752 version_type=sunos
16753 need_lib_prefix=no
16754 need_version=no
16755 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16758 dynamic_linker='NetBSD (a.out) ld.so'
16759 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016761 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016762 dynamic_linker='NetBSD ld.elf_so'
16763 fi
16764 shlibpath_var=LD_LIBRARY_PATH
16765 shlibpath_overrides_runpath=yes
16766 hardcode_into_libs=yes
16767 ;;
16768
16769newsos6)
16770 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16772 shlibpath_var=LD_LIBRARY_PATH
16773 shlibpath_overrides_runpath=yes
16774 ;;
16775
Reid Spencer2706f8c2004-09-19 23:53:36 +000016776nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016777 version_type=linux
16778 need_lib_prefix=no
16779 need_version=no
16780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16781 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016782 shlibpath_var=LD_LIBRARY_PATH
16783 shlibpath_overrides_runpath=yes
16784 ;;
16785
16786openbsd*)
16787 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016788 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016789 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016790 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16791 case $host_os in
16792 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16793 *) need_version=no ;;
16794 esac
John Criswell47fdd832003-07-14 16:52:07 +000016795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16796 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16797 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016798 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 +000016799 case $host_os in
16800 openbsd2.[89] | openbsd2.[89].*)
16801 shlibpath_overrides_runpath=no
16802 ;;
16803 *)
16804 shlibpath_overrides_runpath=yes
16805 ;;
16806 esac
John Criswell7a73b802003-06-30 21:59:07 +000016807 else
16808 shlibpath_overrides_runpath=yes
16809 fi
John Criswell7a73b802003-06-30 21:59:07 +000016810 ;;
16811
16812os2*)
16813 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016814 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016815 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016816 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016817 dynamic_linker='OS/2 ld.exe'
16818 shlibpath_var=LIBPATH
16819 ;;
16820
16821osf3* | osf4* | osf5*)
16822 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016823 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016824 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016825 soname_spec='${libname}${release}${shared_ext}$major'
16826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016827 shlibpath_var=LD_LIBRARY_PATH
16828 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16829 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16830 ;;
16831
John Criswell7a73b802003-06-30 21:59:07 +000016832solaris*)
16833 version_type=linux
16834 need_lib_prefix=no
16835 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16837 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016838 shlibpath_var=LD_LIBRARY_PATH
16839 shlibpath_overrides_runpath=yes
16840 hardcode_into_libs=yes
16841 # ldd complains unless libraries are executable
16842 postinstall_cmds='chmod +x $lib'
16843 ;;
16844
16845sunos4*)
16846 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016848 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16849 shlibpath_var=LD_LIBRARY_PATH
16850 shlibpath_overrides_runpath=yes
16851 if test "$with_gnu_ld" = yes; then
16852 need_lib_prefix=no
16853 fi
16854 need_version=yes
16855 ;;
16856
Reid Spencera773bd52006-08-04 18:18:08 +000016857sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016858 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16860 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016861 shlibpath_var=LD_LIBRARY_PATH
16862 case $host_vendor in
16863 sni)
16864 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016865 need_lib_prefix=no
16866 export_dynamic_flag_spec='${wl}-Blargedynsym'
16867 runpath_var=LD_RUN_PATH
16868 ;;
16869 siemens)
16870 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016871 ;;
16872 motorola)
16873 need_lib_prefix=no
16874 need_version=no
16875 shlibpath_overrides_runpath=no
16876 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16877 ;;
16878 esac
16879 ;;
16880
John Criswell7a73b802003-06-30 21:59:07 +000016881sysv4*MP*)
16882 if test -d /usr/nec ;then
16883 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016884 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16885 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016886 shlibpath_var=LD_LIBRARY_PATH
16887 fi
16888 ;;
16889
Reid Spencera773bd52006-08-04 18:18:08 +000016890sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16891 version_type=freebsd-elf
16892 need_lib_prefix=no
16893 need_version=no
16894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16895 soname_spec='${libname}${release}${shared_ext}$major'
16896 shlibpath_var=LD_LIBRARY_PATH
16897 hardcode_into_libs=yes
16898 if test "$with_gnu_ld" = yes; then
16899 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16900 shlibpath_overrides_runpath=no
16901 else
16902 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16903 shlibpath_overrides_runpath=yes
16904 case $host_os in
16905 sco3.2v5*)
16906 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16907 ;;
16908 esac
16909 fi
16910 sys_lib_dlsearch_path_spec='/usr/lib'
16911 ;;
16912
John Criswell47fdd832003-07-14 16:52:07 +000016913uts4*)
16914 version_type=linux
16915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16916 soname_spec='${libname}${release}${shared_ext}$major'
16917 shlibpath_var=LD_LIBRARY_PATH
16918 ;;
16919
John Criswell7a73b802003-06-30 21:59:07 +000016920*)
16921 dynamic_linker=no
16922 ;;
16923esac
Reid Spencera773bd52006-08-04 18:18:08 +000016924{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16925echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016926test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016927
Reid Spencera773bd52006-08-04 18:18:08 +000016928variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16929if test "$GCC" = yes; then
16930 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16931fi
16932
16933{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16934echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016935hardcode_action=
16936if test -n "$hardcode_libdir_flag_spec" || \
16937 test -n "$runpath_var" || \
16938 test "X$hardcode_automatic" = "Xyes" ; then
16939
16940 # We can hardcode non-existant directories.
16941 if test "$hardcode_direct" != no &&
16942 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16943 # have to relink, otherwise we might link with an installed library
16944 # when we should be linking with a yet-to-be-installed one
16945 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16946 test "$hardcode_minus_L" != no; then
16947 # Linking always hardcodes the temporary library directory.
16948 hardcode_action=relink
16949 else
16950 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16951 hardcode_action=immediate
16952 fi
16953else
16954 # We cannot hardcode anything, or else we can only hardcode existing
16955 # directories.
16956 hardcode_action=unsupported
16957fi
Reid Spencera773bd52006-08-04 18:18:08 +000016958{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16959echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016960
16961if test "$hardcode_action" = relink; then
16962 # Fast installation is not supported
16963 enable_fast_install=no
16964elif test "$shlibpath_overrides_runpath" = yes ||
16965 test "$enable_shared" = no; then
16966 # Fast installation is not necessary
16967 enable_fast_install=needless
16968fi
16969
16970striplib=
16971old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016972{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16973echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016974if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16975 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16976 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016977 { echo "$as_me:$LINENO: result: yes" >&5
16978echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016979else
16980# FIXME - insert some real tests, host_os isn't really good enough
16981 case $host_os in
16982 darwin*)
16983 if test -n "$STRIP" ; then
16984 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016985 { echo "$as_me:$LINENO: result: yes" >&5
16986echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016987 else
Reid Spencera773bd52006-08-04 18:18:08 +000016988 { echo "$as_me:$LINENO: result: no" >&5
16989echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016990fi
16991 ;;
16992 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016993 { echo "$as_me:$LINENO: result: no" >&5
16994echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016995 ;;
16996 esac
16997fi
16998
John Criswell7a73b802003-06-30 21:59:07 +000016999if test "x$enable_dlopen" != xyes; then
17000 enable_dlopen=unknown
17001 enable_dlopen_self=unknown
17002 enable_dlopen_self_static=unknown
17003else
17004 lt_cv_dlopen=no
17005 lt_cv_dlopen_libs=
17006
17007 case $host_os in
17008 beos*)
17009 lt_cv_dlopen="load_add_on"
17010 lt_cv_dlopen_libs=
17011 lt_cv_dlopen_self=yes
17012 ;;
17013
John Criswell47fdd832003-07-14 16:52:07 +000017014 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000017015 lt_cv_dlopen="LoadLibrary"
17016 lt_cv_dlopen_libs=
17017 ;;
17018
John Criswell47fdd832003-07-14 16:52:07 +000017019 cygwin*)
17020 lt_cv_dlopen="dlopen"
17021 lt_cv_dlopen_libs=
17022 ;;
17023
17024 darwin*)
17025 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000017026 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17027echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017028if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17029 echo $ECHO_N "(cached) $ECHO_C" >&6
17030else
17031 ac_check_lib_save_LIBS=$LIBS
17032LIBS="-ldl $LIBS"
17033cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017034/* confdefs.h. */
17035_ACEOF
17036cat confdefs.h >>conftest.$ac_ext
17037cat >>conftest.$ac_ext <<_ACEOF
17038/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017039
Reid Spencera773bd52006-08-04 18:18:08 +000017040/* Override any GCC internal prototype to avoid an error.
17041 Use char because int might match the return type of a GCC
17042 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000017043#ifdef __cplusplus
17044extern "C"
17045#endif
John Criswell47fdd832003-07-14 16:52:07 +000017046char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017047int
17048main ()
17049{
Reid Spencera773bd52006-08-04 18:18:08 +000017050return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017051 ;
17052 return 0;
17053}
17054_ACEOF
17055rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017056if { (ac_try="$ac_link"
17057case "(($ac_try" in
17058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17059 *) ac_try_echo=$ac_try;;
17060esac
17061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17062 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017063 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017064 grep -v '^ *+' conftest.er1 >conftest.err
17065 rm -f conftest.er1
17066 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017068 (exit $ac_status); } &&
17069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17070 { (case "(($ac_try" in
17071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17072 *) ac_try_echo=$ac_try;;
17073esac
17074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17075 (eval "$ac_try") 2>&5
17076 ac_status=$?
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; } &&
17079 { ac_try='test -s conftest$ac_exeext'
17080 { (case "(($ac_try" in
17081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082 *) ac_try_echo=$ac_try;;
17083esac
17084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17085 (eval "$ac_try") 2>&5
17086 ac_status=$?
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000017089 ac_cv_lib_dl_dlopen=yes
17090else
17091 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017092sed 's/^/| /' conftest.$ac_ext >&5
17093
Reid Spencera773bd52006-08-04 18:18:08 +000017094 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000017095fi
Reid Spencera773bd52006-08-04 18:18:08 +000017096
Bill Wendlingebcceee2009-04-18 11:20:33 +000017097rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017098 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017099LIBS=$ac_check_lib_save_LIBS
17100fi
Reid Spencera773bd52006-08-04 18:18:08 +000017101{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17102echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017103if test $ac_cv_lib_dl_dlopen = yes; then
17104 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17105else
17106
17107 lt_cv_dlopen="dyld"
17108 lt_cv_dlopen_libs=
17109 lt_cv_dlopen_self=yes
17110
17111fi
17112
17113 ;;
17114
John Criswell7a73b802003-06-30 21:59:07 +000017115 *)
Reid Spencera773bd52006-08-04 18:18:08 +000017116 { echo "$as_me:$LINENO: checking for shl_load" >&5
17117echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017118if test "${ac_cv_func_shl_load+set}" = set; then
17119 echo $ECHO_N "(cached) $ECHO_C" >&6
17120else
17121 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017122/* confdefs.h. */
17123_ACEOF
17124cat confdefs.h >>conftest.$ac_ext
17125cat >>conftest.$ac_ext <<_ACEOF
17126/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017127/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17129#define shl_load innocuous_shl_load
17130
John Criswell7a73b802003-06-30 21:59:07 +000017131/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017132 which can conflict with char shl_load (); below.
17133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17134 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017135
John Criswell0c38eaf2003-09-10 15:17:25 +000017136#ifdef __STDC__
17137# include <limits.h>
17138#else
17139# include <assert.h>
17140#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017141
17142#undef shl_load
17143
Reid Spencera773bd52006-08-04 18:18:08 +000017144/* Override any GCC internal prototype to avoid an error.
17145 Use char because int might match the return type of a GCC
17146 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017147#ifdef __cplusplus
17148extern "C"
17149#endif
John Criswell7a73b802003-06-30 21:59:07 +000017150char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017151/* The GNU C library defines this for functions which it implements
17152 to always fail with ENOSYS. Some functions are actually named
17153 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017154#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000017155choke me
John Criswell7a73b802003-06-30 21:59:07 +000017156#endif
17157
John Criswell0c38eaf2003-09-10 15:17:25 +000017158int
17159main ()
17160{
Reid Spencera773bd52006-08-04 18:18:08 +000017161return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017162 ;
17163 return 0;
17164}
17165_ACEOF
17166rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017167if { (ac_try="$ac_link"
17168case "(($ac_try" in
17169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17170 *) ac_try_echo=$ac_try;;
17171esac
17172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17173 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017174 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017175 grep -v '^ *+' conftest.er1 >conftest.err
17176 rm -f conftest.er1
17177 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017179 (exit $ac_status); } &&
17180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17181 { (case "(($ac_try" in
17182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17183 *) ac_try_echo=$ac_try;;
17184esac
17185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17186 (eval "$ac_try") 2>&5
17187 ac_status=$?
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); }; } &&
17190 { ac_try='test -s conftest$ac_exeext'
17191 { (case "(($ac_try" in
17192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17193 *) ac_try_echo=$ac_try;;
17194esac
17195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17196 (eval "$ac_try") 2>&5
17197 ac_status=$?
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017200 ac_cv_func_shl_load=yes
17201else
17202 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017203sed 's/^/| /' conftest.$ac_ext >&5
17204
Reid Spencera773bd52006-08-04 18:18:08 +000017205 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017206fi
Reid Spencera773bd52006-08-04 18:18:08 +000017207
Bill Wendlingebcceee2009-04-18 11:20:33 +000017208rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017209 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017210fi
Reid Spencera773bd52006-08-04 18:18:08 +000017211{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17212echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017213if test $ac_cv_func_shl_load = yes; then
17214 lt_cv_dlopen="shl_load"
17215else
Reid Spencera773bd52006-08-04 18:18:08 +000017216 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17217echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017218if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17219 echo $ECHO_N "(cached) $ECHO_C" >&6
17220else
17221 ac_check_lib_save_LIBS=$LIBS
17222LIBS="-ldld $LIBS"
17223cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017224/* confdefs.h. */
17225_ACEOF
17226cat confdefs.h >>conftest.$ac_ext
17227cat >>conftest.$ac_ext <<_ACEOF
17228/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017229
Reid Spencera773bd52006-08-04 18:18:08 +000017230/* Override any GCC internal prototype to avoid an error.
17231 Use char because int might match the return type of a GCC
17232 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017233#ifdef __cplusplus
17234extern "C"
17235#endif
John Criswell7a73b802003-06-30 21:59:07 +000017236char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017237int
17238main ()
17239{
Reid Spencera773bd52006-08-04 18:18:08 +000017240return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017241 ;
17242 return 0;
17243}
17244_ACEOF
17245rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017246if { (ac_try="$ac_link"
17247case "(($ac_try" in
17248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17249 *) ac_try_echo=$ac_try;;
17250esac
17251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17252 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017253 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017254 grep -v '^ *+' conftest.er1 >conftest.err
17255 rm -f conftest.er1
17256 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017258 (exit $ac_status); } &&
17259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17260 { (case "(($ac_try" in
17261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17262 *) ac_try_echo=$ac_try;;
17263esac
17264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17265 (eval "$ac_try") 2>&5
17266 ac_status=$?
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); }; } &&
17269 { ac_try='test -s conftest$ac_exeext'
17270 { (case "(($ac_try" in
17271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17272 *) ac_try_echo=$ac_try;;
17273esac
17274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17275 (eval "$ac_try") 2>&5
17276 ac_status=$?
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017279 ac_cv_lib_dld_shl_load=yes
17280else
17281 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017282sed 's/^/| /' conftest.$ac_ext >&5
17283
Reid Spencera773bd52006-08-04 18:18:08 +000017284 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017285fi
Reid Spencera773bd52006-08-04 18:18:08 +000017286
Bill Wendlingebcceee2009-04-18 11:20:33 +000017287rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017288 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017289LIBS=$ac_check_lib_save_LIBS
17290fi
Reid Spencera773bd52006-08-04 18:18:08 +000017291{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17292echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017293if test $ac_cv_lib_dld_shl_load = yes; then
17294 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17295else
Reid Spencera773bd52006-08-04 18:18:08 +000017296 { echo "$as_me:$LINENO: checking for dlopen" >&5
17297echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017298if test "${ac_cv_func_dlopen+set}" = set; then
17299 echo $ECHO_N "(cached) $ECHO_C" >&6
17300else
17301 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017302/* confdefs.h. */
17303_ACEOF
17304cat confdefs.h >>conftest.$ac_ext
17305cat >>conftest.$ac_ext <<_ACEOF
17306/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017307/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17309#define dlopen innocuous_dlopen
17310
John Criswell7a73b802003-06-30 21:59:07 +000017311/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017312 which can conflict with char dlopen (); below.
17313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17314 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017315
John Criswell0c38eaf2003-09-10 15:17:25 +000017316#ifdef __STDC__
17317# include <limits.h>
17318#else
17319# include <assert.h>
17320#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017321
17322#undef dlopen
17323
Reid Spencera773bd52006-08-04 18:18:08 +000017324/* Override any GCC internal prototype to avoid an error.
17325 Use char because int might match the return type of a GCC
17326 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017327#ifdef __cplusplus
17328extern "C"
17329#endif
John Criswell7a73b802003-06-30 21:59:07 +000017330char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017331/* The GNU C library defines this for functions which it implements
17332 to always fail with ENOSYS. Some functions are actually named
17333 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017334#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000017335choke me
John Criswell7a73b802003-06-30 21:59:07 +000017336#endif
17337
John Criswell0c38eaf2003-09-10 15:17:25 +000017338int
17339main ()
17340{
Reid Spencera773bd52006-08-04 18:18:08 +000017341return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017342 ;
17343 return 0;
17344}
17345_ACEOF
17346rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017347if { (ac_try="$ac_link"
17348case "(($ac_try" in
17349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17350 *) ac_try_echo=$ac_try;;
17351esac
17352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17353 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017354 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017355 grep -v '^ *+' conftest.er1 >conftest.err
17356 rm -f conftest.er1
17357 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017359 (exit $ac_status); } &&
17360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17361 { (case "(($ac_try" in
17362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17363 *) ac_try_echo=$ac_try;;
17364esac
17365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17366 (eval "$ac_try") 2>&5
17367 ac_status=$?
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); }; } &&
17370 { ac_try='test -s conftest$ac_exeext'
17371 { (case "(($ac_try" in
17372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17373 *) ac_try_echo=$ac_try;;
17374esac
17375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17376 (eval "$ac_try") 2>&5
17377 ac_status=$?
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017380 ac_cv_func_dlopen=yes
17381else
17382 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017383sed 's/^/| /' conftest.$ac_ext >&5
17384
Reid Spencera773bd52006-08-04 18:18:08 +000017385 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017386fi
Reid Spencera773bd52006-08-04 18:18:08 +000017387
Bill Wendlingebcceee2009-04-18 11:20:33 +000017388rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017389 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017390fi
Reid Spencera773bd52006-08-04 18:18:08 +000017391{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17392echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017393if test $ac_cv_func_dlopen = yes; then
17394 lt_cv_dlopen="dlopen"
17395else
Reid Spencera773bd52006-08-04 18:18:08 +000017396 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17397echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017398if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17399 echo $ECHO_N "(cached) $ECHO_C" >&6
17400else
17401 ac_check_lib_save_LIBS=$LIBS
17402LIBS="-ldl $LIBS"
17403cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017404/* confdefs.h. */
17405_ACEOF
17406cat confdefs.h >>conftest.$ac_ext
17407cat >>conftest.$ac_ext <<_ACEOF
17408/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017409
Reid Spencera773bd52006-08-04 18:18:08 +000017410/* Override any GCC internal prototype to avoid an error.
17411 Use char because int might match the return type of a GCC
17412 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017413#ifdef __cplusplus
17414extern "C"
17415#endif
John Criswell7a73b802003-06-30 21:59:07 +000017416char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017417int
17418main ()
17419{
Reid Spencera773bd52006-08-04 18:18:08 +000017420return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017421 ;
17422 return 0;
17423}
17424_ACEOF
17425rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017426if { (ac_try="$ac_link"
17427case "(($ac_try" in
17428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17429 *) ac_try_echo=$ac_try;;
17430esac
17431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17432 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017433 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017434 grep -v '^ *+' conftest.er1 >conftest.err
17435 rm -f conftest.er1
17436 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017438 (exit $ac_status); } &&
17439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17440 { (case "(($ac_try" in
17441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17442 *) ac_try_echo=$ac_try;;
17443esac
17444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17445 (eval "$ac_try") 2>&5
17446 ac_status=$?
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); }; } &&
17449 { ac_try='test -s conftest$ac_exeext'
17450 { (case "(($ac_try" in
17451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17452 *) ac_try_echo=$ac_try;;
17453esac
17454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17455 (eval "$ac_try") 2>&5
17456 ac_status=$?
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017459 ac_cv_lib_dl_dlopen=yes
17460else
17461 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017462sed 's/^/| /' conftest.$ac_ext >&5
17463
Reid Spencera773bd52006-08-04 18:18:08 +000017464 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017465fi
Reid Spencera773bd52006-08-04 18:18:08 +000017466
Bill Wendlingebcceee2009-04-18 11:20:33 +000017467rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017468 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017469LIBS=$ac_check_lib_save_LIBS
17470fi
Reid Spencera773bd52006-08-04 18:18:08 +000017471{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17472echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017473if test $ac_cv_lib_dl_dlopen = yes; then
17474 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17475else
Reid Spencera773bd52006-08-04 18:18:08 +000017476 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17477echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017478if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17479 echo $ECHO_N "(cached) $ECHO_C" >&6
17480else
17481 ac_check_lib_save_LIBS=$LIBS
17482LIBS="-lsvld $LIBS"
17483cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017484/* confdefs.h. */
17485_ACEOF
17486cat confdefs.h >>conftest.$ac_ext
17487cat >>conftest.$ac_ext <<_ACEOF
17488/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017489
Reid Spencera773bd52006-08-04 18:18:08 +000017490/* Override any GCC internal prototype to avoid an error.
17491 Use char because int might match the return type of a GCC
17492 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017493#ifdef __cplusplus
17494extern "C"
17495#endif
John Criswell7a73b802003-06-30 21:59:07 +000017496char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017497int
17498main ()
17499{
Reid Spencera773bd52006-08-04 18:18:08 +000017500return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017501 ;
17502 return 0;
17503}
17504_ACEOF
17505rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017506if { (ac_try="$ac_link"
17507case "(($ac_try" in
17508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509 *) ac_try_echo=$ac_try;;
17510esac
17511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17512 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017513 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017514 grep -v '^ *+' conftest.er1 >conftest.err
17515 rm -f conftest.er1
17516 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017518 (exit $ac_status); } &&
17519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17520 { (case "(($ac_try" in
17521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17522 *) ac_try_echo=$ac_try;;
17523esac
17524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17525 (eval "$ac_try") 2>&5
17526 ac_status=$?
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); }; } &&
17529 { ac_try='test -s conftest$ac_exeext'
17530 { (case "(($ac_try" in
17531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17532 *) ac_try_echo=$ac_try;;
17533esac
17534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17535 (eval "$ac_try") 2>&5
17536 ac_status=$?
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017539 ac_cv_lib_svld_dlopen=yes
17540else
17541 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017542sed 's/^/| /' conftest.$ac_ext >&5
17543
Reid Spencera773bd52006-08-04 18:18:08 +000017544 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017545fi
Reid Spencera773bd52006-08-04 18:18:08 +000017546
Bill Wendlingebcceee2009-04-18 11:20:33 +000017547rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017548 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017549LIBS=$ac_check_lib_save_LIBS
17550fi
Reid Spencera773bd52006-08-04 18:18:08 +000017551{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17552echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017553if test $ac_cv_lib_svld_dlopen = yes; then
17554 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17555else
Reid Spencera773bd52006-08-04 18:18:08 +000017556 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17557echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017558if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17559 echo $ECHO_N "(cached) $ECHO_C" >&6
17560else
17561 ac_check_lib_save_LIBS=$LIBS
17562LIBS="-ldld $LIBS"
17563cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017564/* confdefs.h. */
17565_ACEOF
17566cat confdefs.h >>conftest.$ac_ext
17567cat >>conftest.$ac_ext <<_ACEOF
17568/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017569
Reid Spencera773bd52006-08-04 18:18:08 +000017570/* Override any GCC internal prototype to avoid an error.
17571 Use char because int might match the return type of a GCC
17572 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017573#ifdef __cplusplus
17574extern "C"
17575#endif
John Criswell7a73b802003-06-30 21:59:07 +000017576char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017577int
17578main ()
17579{
Reid Spencera773bd52006-08-04 18:18:08 +000017580return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017581 ;
17582 return 0;
17583}
17584_ACEOF
17585rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017586if { (ac_try="$ac_link"
17587case "(($ac_try" in
17588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17589 *) ac_try_echo=$ac_try;;
17590esac
17591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17592 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017593 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017594 grep -v '^ *+' conftest.er1 >conftest.err
17595 rm -f conftest.er1
17596 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017598 (exit $ac_status); } &&
17599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17600 { (case "(($ac_try" in
17601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17602 *) ac_try_echo=$ac_try;;
17603esac
17604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17605 (eval "$ac_try") 2>&5
17606 ac_status=$?
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); }; } &&
17609 { ac_try='test -s conftest$ac_exeext'
17610 { (case "(($ac_try" in
17611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17612 *) ac_try_echo=$ac_try;;
17613esac
17614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17615 (eval "$ac_try") 2>&5
17616 ac_status=$?
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017619 ac_cv_lib_dld_dld_link=yes
17620else
17621 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017622sed 's/^/| /' conftest.$ac_ext >&5
17623
Reid Spencera773bd52006-08-04 18:18:08 +000017624 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017625fi
Reid Spencera773bd52006-08-04 18:18:08 +000017626
Bill Wendlingebcceee2009-04-18 11:20:33 +000017627rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017628 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017629LIBS=$ac_check_lib_save_LIBS
17630fi
Reid Spencera773bd52006-08-04 18:18:08 +000017631{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17632echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017633if test $ac_cv_lib_dld_dld_link = yes; then
17634 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17635fi
17636
17637
17638fi
17639
17640
17641fi
17642
17643
17644fi
17645
17646
17647fi
17648
17649
17650fi
17651
17652 ;;
17653 esac
17654
17655 if test "x$lt_cv_dlopen" != xno; then
17656 enable_dlopen=yes
17657 else
17658 enable_dlopen=no
17659 fi
17660
17661 case $lt_cv_dlopen in
17662 dlopen)
17663 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017664 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017665
17666 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017667 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017668
17669 save_LIBS="$LIBS"
17670 LIBS="$lt_cv_dlopen_libs $LIBS"
17671
Reid Spencera773bd52006-08-04 18:18:08 +000017672 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17673echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017674if test "${lt_cv_dlopen_self+set}" = set; then
17675 echo $ECHO_N "(cached) $ECHO_C" >&6
17676else
17677 if test "$cross_compiling" = yes; then :
17678 lt_cv_dlopen_self=cross
17679else
John Criswell47fdd832003-07-14 16:52:07 +000017680 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017681 lt_status=$lt_dlunknown
17682 cat > conftest.$ac_ext <<EOF
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000017683#line 17683 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017684#include "confdefs.h"
17685
17686#if HAVE_DLFCN_H
17687#include <dlfcn.h>
17688#endif
17689
17690#include <stdio.h>
17691
17692#ifdef RTLD_GLOBAL
17693# define LT_DLGLOBAL RTLD_GLOBAL
17694#else
17695# ifdef DL_GLOBAL
17696# define LT_DLGLOBAL DL_GLOBAL
17697# else
17698# define LT_DLGLOBAL 0
17699# endif
17700#endif
17701
17702/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17703 find out it does not work in some platform. */
17704#ifndef LT_DLLAZY_OR_NOW
17705# ifdef RTLD_LAZY
17706# define LT_DLLAZY_OR_NOW RTLD_LAZY
17707# else
17708# ifdef DL_LAZY
17709# define LT_DLLAZY_OR_NOW DL_LAZY
17710# else
17711# ifdef RTLD_NOW
17712# define LT_DLLAZY_OR_NOW RTLD_NOW
17713# else
17714# ifdef DL_NOW
17715# define LT_DLLAZY_OR_NOW DL_NOW
17716# else
17717# define LT_DLLAZY_OR_NOW 0
17718# endif
17719# endif
17720# endif
17721# endif
17722#endif
17723
17724#ifdef __cplusplus
17725extern "C" void exit (int);
17726#endif
17727
17728void fnord() { int i=42;}
17729int main ()
17730{
17731 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17732 int status = $lt_dlunknown;
17733
17734 if (self)
17735 {
17736 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17737 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17738 /* dlclose (self); */
17739 }
Reid Spencera773bd52006-08-04 18:18:08 +000017740 else
17741 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017742
17743 exit (status);
17744}
17745EOF
17746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17747 (eval $ac_link) 2>&5
17748 ac_status=$?
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017751 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017752 lt_status=$?
17753 case x$lt_status in
17754 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17755 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017756 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017757 esac
17758 else :
17759 # compilation failed
17760 lt_cv_dlopen_self=no
17761 fi
17762fi
17763rm -fr conftest*
17764
17765
17766fi
Reid Spencera773bd52006-08-04 18:18:08 +000017767{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17768echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017769
17770 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017771 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17772 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17773echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017774if test "${lt_cv_dlopen_self_static+set}" = set; then
17775 echo $ECHO_N "(cached) $ECHO_C" >&6
17776else
17777 if test "$cross_compiling" = yes; then :
17778 lt_cv_dlopen_self_static=cross
17779else
John Criswell47fdd832003-07-14 16:52:07 +000017780 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017781 lt_status=$lt_dlunknown
17782 cat > conftest.$ac_ext <<EOF
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000017783#line 17783 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017784#include "confdefs.h"
17785
17786#if HAVE_DLFCN_H
17787#include <dlfcn.h>
17788#endif
17789
17790#include <stdio.h>
17791
17792#ifdef RTLD_GLOBAL
17793# define LT_DLGLOBAL RTLD_GLOBAL
17794#else
17795# ifdef DL_GLOBAL
17796# define LT_DLGLOBAL DL_GLOBAL
17797# else
17798# define LT_DLGLOBAL 0
17799# endif
17800#endif
17801
17802/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17803 find out it does not work in some platform. */
17804#ifndef LT_DLLAZY_OR_NOW
17805# ifdef RTLD_LAZY
17806# define LT_DLLAZY_OR_NOW RTLD_LAZY
17807# else
17808# ifdef DL_LAZY
17809# define LT_DLLAZY_OR_NOW DL_LAZY
17810# else
17811# ifdef RTLD_NOW
17812# define LT_DLLAZY_OR_NOW RTLD_NOW
17813# else
17814# ifdef DL_NOW
17815# define LT_DLLAZY_OR_NOW DL_NOW
17816# else
17817# define LT_DLLAZY_OR_NOW 0
17818# endif
17819# endif
17820# endif
17821# endif
17822#endif
17823
17824#ifdef __cplusplus
17825extern "C" void exit (int);
17826#endif
17827
17828void fnord() { int i=42;}
17829int main ()
17830{
17831 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17832 int status = $lt_dlunknown;
17833
17834 if (self)
17835 {
17836 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17837 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17838 /* dlclose (self); */
17839 }
Reid Spencera773bd52006-08-04 18:18:08 +000017840 else
17841 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017842
17843 exit (status);
17844}
17845EOF
17846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17847 (eval $ac_link) 2>&5
17848 ac_status=$?
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017851 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017852 lt_status=$?
17853 case x$lt_status in
17854 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17855 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017856 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017857 esac
17858 else :
17859 # compilation failed
17860 lt_cv_dlopen_self_static=no
17861 fi
17862fi
17863rm -fr conftest*
17864
17865
17866fi
Reid Spencera773bd52006-08-04 18:18:08 +000017867{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17868echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017869 fi
17870
17871 CPPFLAGS="$save_CPPFLAGS"
17872 LDFLAGS="$save_LDFLAGS"
17873 LIBS="$save_LIBS"
17874 ;;
17875 esac
17876
17877 case $lt_cv_dlopen_self in
17878 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17879 *) enable_dlopen_self=unknown ;;
17880 esac
17881
17882 case $lt_cv_dlopen_self_static in
17883 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17884 *) enable_dlopen_self_static=unknown ;;
17885 esac
17886fi
17887
17888
Reid Spencera773bd52006-08-04 18:18:08 +000017889# Report which library types will actually be built
17890{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17891echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17892{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17893echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017894
Reid Spencera773bd52006-08-04 18:18:08 +000017895{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17896echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017897test "$can_build_shared" = "no" && enable_shared=no
17898
17899# On AIX, shared libraries and static libraries use the same namespace, and
17900# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017901case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017902aix3*)
17903 test "$enable_shared" = yes && enable_static=no
17904 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017905 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017906 postinstall_cmds='$RANLIB $lib'
17907 fi
17908 ;;
17909
Reid Spencer2706f8c2004-09-19 23:53:36 +000017910aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017911 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17912 test "$enable_shared" = yes && enable_static=no
17913 fi
John Criswell7a73b802003-06-30 21:59:07 +000017914 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017915esac
Reid Spencera773bd52006-08-04 18:18:08 +000017916{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17917echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017918
Reid Spencera773bd52006-08-04 18:18:08 +000017919{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17920echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017921# Make sure either enable_shared or enable_static is yes.
17922test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017923{ echo "$as_me:$LINENO: result: $enable_static" >&5
17924echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017925
17926# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017927# libtool distribution, otherwise you forgot to ship ltmain.sh
17928# with your package, and you will get complaints that there are
17929# no rules to generate ltmain.sh.
17930if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017931 # See if we are running on zsh, and set the options which allow our commands through
17932 # without removal of \ escapes.
17933 if test -n "${ZSH_VERSION+set}" ; then
17934 setopt NO_GLOB_SUBST
17935 fi
John Criswell7a73b802003-06-30 21:59:07 +000017936 # Now quote all the things that may contain metacharacters while being
17937 # careful not to overquote the AC_SUBSTed values. We take copies of the
17938 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017939 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 +000017940 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017941 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17942 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17943 deplibs_check_method reload_flag reload_cmds need_locks \
17944 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17945 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017946 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017947 old_postinstall_cmds old_postuninstall_cmds \
17948 compiler \
17949 CC \
17950 LD \
17951 lt_prog_compiler_wl \
17952 lt_prog_compiler_pic \
17953 lt_prog_compiler_static \
17954 lt_prog_compiler_no_builtin_flag \
17955 export_dynamic_flag_spec \
17956 thread_safe_flag_spec \
17957 whole_archive_flag_spec \
17958 enable_shared_with_static_runtimes \
17959 old_archive_cmds \
17960 old_archive_from_new_cmds \
17961 predep_objects \
17962 postdep_objects \
17963 predeps \
17964 postdeps \
17965 compiler_lib_search_path \
17966 archive_cmds \
17967 archive_expsym_cmds \
17968 postinstall_cmds \
17969 postuninstall_cmds \
17970 old_archive_from_expsyms_cmds \
17971 allow_undefined_flag \
17972 no_undefined_flag \
17973 export_symbols_cmds \
17974 hardcode_libdir_flag_spec \
17975 hardcode_libdir_flag_spec_ld \
17976 hardcode_libdir_separator \
17977 hardcode_automatic \
17978 module_cmds \
17979 module_expsym_cmds \
17980 lt_cv_prog_compiler_c_o \
17981 exclude_expsyms \
17982 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017983
17984 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017985 old_archive_cmds | \
17986 old_archive_from_new_cmds | \
17987 archive_cmds | \
17988 archive_expsym_cmds | \
17989 module_cmds | \
17990 module_expsym_cmds | \
17991 old_archive_from_expsyms_cmds | \
17992 export_symbols_cmds | \
17993 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017994 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017995 old_postinstall_cmds | old_postuninstall_cmds | \
17996 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017997 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017998 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 +000017999 ;;
18000 *)
18001 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18002 ;;
18003 esac
18004 done
18005
John Criswell47fdd832003-07-14 16:52:07 +000018006 case $lt_echo in
18007 *'\$0 --fallback-echo"')
18008 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18009 ;;
18010 esac
18011
18012cfgfile="${ofile}T"
18013 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18014 $rm -f "$cfgfile"
18015 { echo "$as_me:$LINENO: creating $ofile" >&5
18016echo "$as_me: creating $ofile" >&6;}
18017
18018 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018019#! $SHELL
18020
John Criswell47fdd832003-07-14 16:52:07 +000018021# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000018022# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18023# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18024#
John Criswell47fdd832003-07-14 16:52:07 +000018025# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18026# Free Software Foundation, Inc.
18027#
18028# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000018029# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18030#
18031# This program is free software; you can redistribute it and/or modify
18032# it under the terms of the GNU General Public License as published by
18033# the Free Software Foundation; either version 2 of the License, or
18034# (at your option) any later version.
18035#
18036# This program is distributed in the hope that it will be useful, but
18037# WITHOUT ANY WARRANTY; without even the implied warranty of
18038# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18039# General Public License for more details.
18040#
18041# You should have received a copy of the GNU General Public License
18042# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000018043# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000018044#
18045# As a special exception to the GNU General Public License, if you
18046# distribute this file as part of a program that contains a
18047# configuration script generated by Autoconf, you may include it under
18048# the same distribution terms that you use for the rest of that program.
18049
John Criswell47fdd832003-07-14 16:52:07 +000018050# A sed program that does not truncate output.
18051SED=$lt_SED
18052
John Criswell7a73b802003-06-30 21:59:07 +000018053# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000018054Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000018055
18056# The HP-UX ksh and POSIX shell print the target directory to stdout
18057# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018058(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000018059
John Criswell47fdd832003-07-14 16:52:07 +000018060# The names of the tagged configurations supported by this script.
18061available_tags=
18062
John Criswell7a73b802003-06-30 21:59:07 +000018063# ### BEGIN LIBTOOL CONFIG
18064
18065# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18066
18067# Shell to use when invoking shell scripts.
18068SHELL=$lt_SHELL
18069
18070# Whether or not to build shared libraries.
18071build_libtool_libs=$enable_shared
18072
18073# Whether or not to build static libraries.
18074build_old_libs=$enable_static
18075
18076# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000018077build_libtool_need_lc=$archive_cmds_need_lc
18078
18079# Whether or not to disallow shared libs when runtime libs are static
18080allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000018081
18082# Whether or not to optimize for fast installation.
18083fast_install=$enable_fast_install
18084
18085# The host system.
18086host_alias=$host_alias
18087host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000018088host_os=$host_os
18089
18090# The build system.
18091build_alias=$build_alias
18092build=$build
18093build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000018094
18095# An echo program that does not interpret backslashes.
18096echo=$lt_echo
18097
18098# The archiver.
18099AR=$lt_AR
18100AR_FLAGS=$lt_AR_FLAGS
18101
John Criswell47fdd832003-07-14 16:52:07 +000018102# A C compiler.
18103LTCC=$lt_LTCC
18104
Reid Spencera773bd52006-08-04 18:18:08 +000018105# LTCC compiler flags.
18106LTCFLAGS=$lt_LTCFLAGS
18107
John Criswell47fdd832003-07-14 16:52:07 +000018108# A language-specific compiler.
18109CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000018110
18111# Is the compiler the GNU C compiler?
18112with_gcc=$GCC
18113
John Criswell47fdd832003-07-14 16:52:07 +000018114# An ERE matcher.
18115EGREP=$lt_EGREP
18116
John Criswell7a73b802003-06-30 21:59:07 +000018117# The linker used to build libraries.
18118LD=$lt_LD
18119
18120# Whether we need hard or soft links.
18121LN_S=$lt_LN_S
18122
18123# A BSD-compatible nm program.
18124NM=$lt_NM
18125
18126# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018127STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000018128
18129# Used to examine libraries when file_magic_cmd begins "file"
18130MAGIC_CMD=$MAGIC_CMD
18131
18132# Used on cygwin: DLL creation program.
18133DLLTOOL="$DLLTOOL"
18134
18135# Used on cygwin: object dumper.
18136OBJDUMP="$OBJDUMP"
18137
18138# Used on cygwin: assembler.
18139AS="$AS"
18140
18141# The name of the directory that contains temporary libtool files.
18142objdir=$objdir
18143
18144# How to create reloadable object files.
18145reload_flag=$lt_reload_flag
18146reload_cmds=$lt_reload_cmds
18147
18148# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000018149wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000018150
18151# Object file suffix (normally "o").
18152objext="$ac_objext"
18153
18154# Old archive suffix (normally "a").
18155libext="$libext"
18156
John Criswell47fdd832003-07-14 16:52:07 +000018157# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018158shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018159
John Criswell7a73b802003-06-30 21:59:07 +000018160# Executable file suffix (normally "").
18161exeext="$exeext"
18162
18163# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000018164pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000018165pic_mode=$pic_mode
18166
John Criswell47fdd832003-07-14 16:52:07 +000018167# What is the maximum length of a command?
18168max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000018169
John Criswell47fdd832003-07-14 16:52:07 +000018170# Does compiler simultaneously support -c and -o options?
18171compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000018172
Reid Spencera773bd52006-08-04 18:18:08 +000018173# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000018174need_locks=$lt_need_locks
18175
18176# Do we need the lib prefix for modules?
18177need_lib_prefix=$need_lib_prefix
18178
18179# Do we need a version for libraries?
18180need_version=$need_version
18181
18182# Whether dlopen is supported.
18183dlopen_support=$enable_dlopen
18184
18185# Whether dlopen of programs is supported.
18186dlopen_self=$enable_dlopen_self
18187
18188# Whether dlopen of statically linked programs is supported.
18189dlopen_self_static=$enable_dlopen_self_static
18190
18191# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000018192link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000018193
18194# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000018195no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000018196
18197# Compiler flag to allow reflexive dlopens.
18198export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18199
18200# Compiler flag to generate shared objects directly from archives.
18201whole_archive_flag_spec=$lt_whole_archive_flag_spec
18202
18203# Compiler flag to generate thread-safe objects.
18204thread_safe_flag_spec=$lt_thread_safe_flag_spec
18205
18206# Library versioning type.
18207version_type=$version_type
18208
18209# Format of library name prefix.
18210libname_spec=$lt_libname_spec
18211
18212# List of archive names. First name is the real one, the rest are links.
18213# The last name is the one that the linker finds with -lNAME.
18214library_names_spec=$lt_library_names_spec
18215
18216# The coded name of the library, if different from the real name.
18217soname_spec=$lt_soname_spec
18218
18219# Commands used to build and install an old-style archive.
18220RANLIB=$lt_RANLIB
18221old_archive_cmds=$lt_old_archive_cmds
18222old_postinstall_cmds=$lt_old_postinstall_cmds
18223old_postuninstall_cmds=$lt_old_postuninstall_cmds
18224
18225# Create an old-style archive from a shared archive.
18226old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18227
18228# Create a temporary old-style archive to link instead of a shared archive.
18229old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18230
18231# Commands used to build and install a shared archive.
18232archive_cmds=$lt_archive_cmds
18233archive_expsym_cmds=$lt_archive_expsym_cmds
18234postinstall_cmds=$lt_postinstall_cmds
18235postuninstall_cmds=$lt_postuninstall_cmds
18236
John Criswell47fdd832003-07-14 16:52:07 +000018237# Commands used to build a loadable module (assumed same as above if empty)
18238module_cmds=$lt_module_cmds
18239module_expsym_cmds=$lt_module_expsym_cmds
18240
John Criswell7a73b802003-06-30 21:59:07 +000018241# Commands to strip libraries.
18242old_striplib=$lt_old_striplib
18243striplib=$lt_striplib
18244
John Criswell47fdd832003-07-14 16:52:07 +000018245# Dependencies to place before the objects being linked to create a
18246# shared library.
18247predep_objects=$lt_predep_objects
18248
18249# Dependencies to place after the objects being linked to create a
18250# shared library.
18251postdep_objects=$lt_postdep_objects
18252
18253# Dependencies to place before the objects being linked to create a
18254# shared library.
18255predeps=$lt_predeps
18256
18257# Dependencies to place after the objects being linked to create a
18258# shared library.
18259postdeps=$lt_postdeps
18260
18261# The library search path used internally by the compiler when linking
18262# a shared library.
18263compiler_lib_search_path=$lt_compiler_lib_search_path
18264
John Criswell7a73b802003-06-30 21:59:07 +000018265# Method to check whether dependent libraries are shared objects.
18266deplibs_check_method=$lt_deplibs_check_method
18267
18268# Command to use when deplibs_check_method == file_magic.
18269file_magic_cmd=$lt_file_magic_cmd
18270
18271# Flag that allows shared libraries with undefined symbols to be built.
18272allow_undefined_flag=$lt_allow_undefined_flag
18273
18274# Flag that forces no undefined symbols.
18275no_undefined_flag=$lt_no_undefined_flag
18276
18277# Commands used to finish a libtool library installation in a directory.
18278finish_cmds=$lt_finish_cmds
18279
18280# Same as above, but a single script fragment to be evaled but not shown.
18281finish_eval=$lt_finish_eval
18282
18283# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000018284global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000018285
18286# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000018287global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000018288
18289# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000018290global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000018291
18292# This is the shared library runtime path variable.
18293runpath_var=$runpath_var
18294
18295# This is the shared library path variable.
18296shlibpath_var=$shlibpath_var
18297
18298# Is shlibpath searched before the hard-coded library search path?
18299shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18300
18301# How to hardcode a shared library path into an executable.
18302hardcode_action=$hardcode_action
18303
18304# Whether we should hardcode library paths into libraries.
18305hardcode_into_libs=$hardcode_into_libs
18306
18307# Flag to hardcode \$libdir into a binary during linking.
18308# This must work even if \$libdir does not exist.
18309hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18310
John Criswell47fdd832003-07-14 16:52:07 +000018311# If ld is used when linking, flag to hardcode \$libdir into
18312# a binary during linking. This must work even if \$libdir does
18313# not exist.
18314hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18315
John Criswell7a73b802003-06-30 21:59:07 +000018316# Whether we need a single -rpath flag with a separated argument.
18317hardcode_libdir_separator=$lt_hardcode_libdir_separator
18318
John Criswell47fdd832003-07-14 16:52:07 +000018319# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000018320# resulting binary.
18321hardcode_direct=$hardcode_direct
18322
18323# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18324# resulting binary.
18325hardcode_minus_L=$hardcode_minus_L
18326
18327# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18328# the resulting binary.
18329hardcode_shlibpath_var=$hardcode_shlibpath_var
18330
John Criswell47fdd832003-07-14 16:52:07 +000018331# Set to yes if building a shared library automatically hardcodes DIR into the library
18332# and all subsequent libraries and executables linked against it.
18333hardcode_automatic=$hardcode_automatic
18334
John Criswell7a73b802003-06-30 21:59:07 +000018335# Variables whose values should be saved in libtool wrapper scripts and
18336# restored at relink time.
18337variables_saved_for_relink="$variables_saved_for_relink"
18338
18339# Whether libtool must link a program against all its dependency libraries.
18340link_all_deplibs=$link_all_deplibs
18341
18342# Compile-time system search path for libraries
18343sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18344
18345# Run-time system search path for libraries
18346sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18347
18348# Fix the shell variable \$srcfile for the compiler.
18349fix_srcfile_path="$fix_srcfile_path"
18350
18351# Set to yes if exported symbols are required.
18352always_export_symbols=$always_export_symbols
18353
18354# The commands to list exported symbols.
18355export_symbols_cmds=$lt_export_symbols_cmds
18356
18357# The commands to extract the exported symbol list from a shared archive.
18358extract_expsyms_cmds=$lt_extract_expsyms_cmds
18359
18360# Symbols that should not be listed in the preloaded symbols.
18361exclude_expsyms=$lt_exclude_expsyms
18362
18363# Symbols that must always be exported.
18364include_expsyms=$lt_include_expsyms
18365
18366# ### END LIBTOOL CONFIG
18367
18368__EOF__
18369
John Criswell47fdd832003-07-14 16:52:07 +000018370
John Criswell7a73b802003-06-30 21:59:07 +000018371 case $host_os in
18372 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000018373 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018374
18375# AIX sometimes has problems with the GCC collect2 program. For some
18376# reason, if we set the COLLECT_NAMES environment variable, the problems
18377# vanish in a puff of smoke.
18378if test "X${COLLECT_NAMES+set}" != Xset; then
18379 COLLECT_NAMES=
18380 export COLLECT_NAMES
18381fi
18382EOF
18383 ;;
18384 esac
18385
John Criswell7a73b802003-06-30 21:59:07 +000018386 # We use sed instead of cat because bash on DJGPP gets confused if
18387 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18388 # text mode, it properly converts lines to CR/LF. This bash problem
18389 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000018390 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000018391
John Criswell47fdd832003-07-14 16:52:07 +000018392 mv -f "$cfgfile" "$ofile" || \
18393 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000018394 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000018395
18396else
18397 # If there is no Makefile yet, we rely on a make rule to execute
18398 # `config.status --recheck' to rerun these tests and create the
18399 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018400 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18401 if test -f "$ltmain_in"; then
18402 test -f Makefile && make "$ltmain"
18403 fi
John Criswell7a73b802003-06-30 21:59:07 +000018404fi
John Criswell7a73b802003-06-30 21:59:07 +000018405
18406
John Criswell47fdd832003-07-14 16:52:07 +000018407ac_ext=c
18408ac_cpp='$CPP $CPPFLAGS'
18409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18411ac_compiler_gnu=$ac_cv_c_compiler_gnu
18412
18413CC="$lt_save_CC"
18414
18415
Reid Spencera773bd52006-08-04 18:18:08 +000018416# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018417if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018418 withval=$with_tags; tagnames="$withval"
18419fi
18420
John Criswell47fdd832003-07-14 16:52:07 +000018421
18422if test -f "$ltmain" && test -n "$tagnames"; then
18423 if test ! -f "${ofile}"; then
18424 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18425echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18426 fi
18427
18428 if test -z "$LTCC"; then
18429 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18430 if test -z "$LTCC"; then
18431 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18432echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18433 else
18434 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18435echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18436 fi
18437 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018438 if test -z "$LTCFLAGS"; then
18439 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18440 fi
John Criswell47fdd832003-07-14 16:52:07 +000018441
18442 # Extract list of available tagged configurations in $ofile.
18443 # Note that this assumes the entire list is on one line.
18444 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18445
18446 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18447 for tagname in $tagnames; do
18448 IFS="$lt_save_ifs"
18449 # Check whether tagname contains only valid characters
18450 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18451 "") ;;
18452 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18453echo "$as_me: error: invalid tag name: $tagname" >&2;}
18454 { (exit 1); exit 1; }; }
18455 ;;
18456 esac
18457
18458 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18459 then
18460 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18461echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18462 { (exit 1); exit 1; }; }
18463 fi
18464
18465 # Update the list of available tags.
18466 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018467 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018468
18469 case $tagname in
18470 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018471 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18472 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18473 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018474 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018475ac_cpp='$CXXCPP $CPPFLAGS'
18476ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18477ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18478ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18479
18480
18481
18482
18483archive_cmds_need_lc_CXX=no
18484allow_undefined_flag_CXX=
18485always_export_symbols_CXX=no
18486archive_expsym_cmds_CXX=
18487export_dynamic_flag_spec_CXX=
18488hardcode_direct_CXX=no
18489hardcode_libdir_flag_spec_CXX=
18490hardcode_libdir_flag_spec_ld_CXX=
18491hardcode_libdir_separator_CXX=
18492hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018493hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018494hardcode_automatic_CXX=no
18495module_cmds_CXX=
18496module_expsym_cmds_CXX=
18497link_all_deplibs_CXX=unknown
18498old_archive_cmds_CXX=$old_archive_cmds
18499no_undefined_flag_CXX=
18500whole_archive_flag_spec_CXX=
18501enable_shared_with_static_runtimes_CXX=no
18502
18503# Dependencies to place before and after the object being linked:
18504predep_objects_CXX=
18505postdep_objects_CXX=
18506predeps_CXX=
18507postdeps_CXX=
18508compiler_lib_search_path_CXX=
18509
18510# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018511ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018512
18513# Object file extension for compiled C++ test sources.
18514objext=o
18515objext_CXX=$objext
18516
18517# Code to be used in simple compile tests
18518lt_simple_compile_test_code="int some_variable = 0;\n"
18519
18520# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018521lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018522
18523# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18524
18525# If no C compiler was specified, use CC.
18526LTCC=${LTCC-"$CC"}
18527
Reid Spencera773bd52006-08-04 18:18:08 +000018528# If no C compiler flags were specified, use CFLAGS.
18529LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18530
John Criswell47fdd832003-07-14 16:52:07 +000018531# Allow CC to be a program name with arguments.
18532compiler=$CC
18533
18534
Reid Spencera773bd52006-08-04 18:18:08 +000018535# save warnings/boilerplate of simple test code
18536ac_outfile=conftest.$ac_objext
18537printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18538eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18539_lt_compiler_boilerplate=`cat conftest.err`
18540$rm conftest*
18541
18542ac_outfile=conftest.$ac_objext
18543printf "$lt_simple_link_test_code" >conftest.$ac_ext
18544eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18545_lt_linker_boilerplate=`cat conftest.err`
18546$rm conftest*
18547
18548
John Criswell47fdd832003-07-14 16:52:07 +000018549# Allow CC to be a program name with arguments.
18550lt_save_CC=$CC
18551lt_save_LD=$LD
18552lt_save_GCC=$GCC
18553GCC=$GXX
18554lt_save_with_gnu_ld=$with_gnu_ld
18555lt_save_path_LD=$lt_cv_path_LD
18556if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18557 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18558else
Reid Spencera773bd52006-08-04 18:18:08 +000018559 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018560fi
18561if test -n "${lt_cv_path_LDCXX+set}"; then
18562 lt_cv_path_LD=$lt_cv_path_LDCXX
18563else
Reid Spencera773bd52006-08-04 18:18:08 +000018564 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018565fi
18566test -z "${LDCXX+set}" || LD=$LDCXX
18567CC=${CXX-"c++"}
18568compiler=$CC
18569compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018570for cc_temp in $compiler""; do
18571 case $cc_temp in
18572 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18573 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18574 \-*) ;;
18575 *) break;;
18576 esac
18577done
18578cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18579
John Criswell47fdd832003-07-14 16:52:07 +000018580
18581# We don't want -fno-exception wen compiling C++ code, so set the
18582# no_builtin_flag separately
18583if test "$GXX" = yes; then
18584 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18585else
18586 lt_prog_compiler_no_builtin_flag_CXX=
18587fi
18588
18589if test "$GXX" = yes; then
18590 # Set up default GNU C++ configuration
18591
18592
Reid Spencera773bd52006-08-04 18:18:08 +000018593# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018594if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018595 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018596else
18597 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018598fi
18599
John Criswell47fdd832003-07-14 16:52:07 +000018600ac_prog=ld
18601if test "$GCC" = yes; then
18602 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018603 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18604echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018605 case $host in
18606 *-*-mingw*)
18607 # gcc leaves a trailing carriage return which upsets mingw
18608 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18609 *)
18610 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18611 esac
18612 case $ac_prog in
18613 # Accept absolute paths.
18614 [\\/]* | ?:[\\/]*)
18615 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018616 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018617 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18618 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18619 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18620 done
18621 test -z "$LD" && LD="$ac_prog"
18622 ;;
18623 "")
18624 # If it fails, then pretend we aren't using GCC.
18625 ac_prog=ld
18626 ;;
18627 *)
18628 # If it is relative, then search for the first ld in PATH.
18629 with_gnu_ld=unknown
18630 ;;
18631 esac
18632elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018633 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18634echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018635else
Reid Spencera773bd52006-08-04 18:18:08 +000018636 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18637echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018638fi
18639if test "${lt_cv_path_LD+set}" = set; then
18640 echo $ECHO_N "(cached) $ECHO_C" >&6
18641else
18642 if test -z "$LD"; then
18643 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18644 for ac_dir in $PATH; do
18645 IFS="$lt_save_ifs"
18646 test -z "$ac_dir" && ac_dir=.
18647 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18648 lt_cv_path_LD="$ac_dir/$ac_prog"
18649 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018650 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018651 # Break only if it was the GNU/non-GNU ld that we prefer.
18652 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18653 *GNU* | *'with BFD'*)
18654 test "$with_gnu_ld" != no && break
18655 ;;
18656 *)
18657 test "$with_gnu_ld" != yes && break
18658 ;;
18659 esac
18660 fi
18661 done
18662 IFS="$lt_save_ifs"
18663else
18664 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18665fi
18666fi
18667
18668LD="$lt_cv_path_LD"
18669if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018670 { echo "$as_me:$LINENO: result: $LD" >&5
18671echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018672else
Reid Spencera773bd52006-08-04 18:18:08 +000018673 { echo "$as_me:$LINENO: result: no" >&5
18674echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018675fi
18676test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18677echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18678 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018679{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18680echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018681if test "${lt_cv_prog_gnu_ld+set}" = set; then
18682 echo $ECHO_N "(cached) $ECHO_C" >&6
18683else
Reid Spencera773bd52006-08-04 18:18:08 +000018684 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018685case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018686*GNU* | *'with BFD'*)
18687 lt_cv_prog_gnu_ld=yes
18688 ;;
18689*)
18690 lt_cv_prog_gnu_ld=no
18691 ;;
18692esac
18693fi
Reid Spencera773bd52006-08-04 18:18:08 +000018694{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18695echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018696with_gnu_ld=$lt_cv_prog_gnu_ld
18697
18698
18699
18700 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18701 # archiving commands below assume that GNU ld is being used.
18702 if test "$with_gnu_ld" = yes; then
18703 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18704 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'
18705
18706 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18707 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18708
18709 # If archive_cmds runs LD, not CC, wlarc should be empty
18710 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18711 # investigate it a little bit more. (MM)
18712 wlarc='${wl}'
18713
18714 # ancient GNU ld didn't support --whole-archive et. al.
18715 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18716 grep 'no-whole-archive' > /dev/null; then
18717 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18718 else
18719 whole_archive_flag_spec_CXX=
18720 fi
18721 else
18722 with_gnu_ld=no
18723 wlarc=
18724
18725 # A generic and very simple default shared library creation
18726 # command for GNU C++ for the case where it uses the native
18727 # linker, instead of GNU ld. If possible, this setting should
18728 # overridden to take advantage of the native linker features on
18729 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018730 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018731 fi
18732
18733 # Commands to make compiler produce verbose output that lists
18734 # what "hidden" libraries, object files and flags are used when
18735 # linking a shared library.
18736 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18737
18738else
18739 GXX=no
18740 with_gnu_ld=no
18741 wlarc=
18742fi
18743
18744# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018745{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18746echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018747ld_shlibs_CXX=yes
18748case $host_os in
18749 aix3*)
18750 # FIXME: insert proper C++ library support
18751 ld_shlibs_CXX=no
18752 ;;
18753 aix4* | aix5*)
18754 if test "$host_cpu" = ia64; then
18755 # On IA64, the linker does run time linking by default, so we don't
18756 # have to do anything special.
18757 aix_use_runtimelinking=no
18758 exp_sym_flag='-Bexport'
18759 no_entry_flag=""
18760 else
18761 aix_use_runtimelinking=no
18762
18763 # Test if we are trying to use run time linking or normal
18764 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18765 # need to do runtime linking.
18766 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18767 for ld_flag in $LDFLAGS; do
18768 case $ld_flag in
18769 *-brtl*)
18770 aix_use_runtimelinking=yes
18771 break
18772 ;;
18773 esac
18774 done
Reid Spencera773bd52006-08-04 18:18:08 +000018775 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018776 esac
18777
18778 exp_sym_flag='-bexport'
18779 no_entry_flag='-bnoentry'
18780 fi
18781
18782 # When large executables or shared objects are built, AIX ld can
18783 # have problems creating the table of contents. If linking a library
18784 # or program results in "error TOC overflow" add -mminimal-toc to
18785 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18786 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18787
18788 archive_cmds_CXX=''
18789 hardcode_direct_CXX=yes
18790 hardcode_libdir_separator_CXX=':'
18791 link_all_deplibs_CXX=yes
18792
18793 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018794 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018795 # We only want to do this on AIX 4.2 and lower, the check
18796 # below for broken collect2 doesn't work under 4.3+
18797 collect2name=`${CC} -print-prog-name=collect2`
18798 if test -f "$collect2name" && \
18799 strings "$collect2name" | grep resolve_lib_name >/dev/null
18800 then
18801 # We have reworked collect2
18802 hardcode_direct_CXX=yes
18803 else
18804 # We have old collect2
18805 hardcode_direct_CXX=unsupported
18806 # It fails to find uninstalled libraries when the uninstalled
18807 # path is not listed in the libpath. Setting hardcode_minus_L
18808 # to unsupported forces relinking
18809 hardcode_minus_L_CXX=yes
18810 hardcode_libdir_flag_spec_CXX='-L$libdir'
18811 hardcode_libdir_separator_CXX=
18812 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018813 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018814 esac
18815 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018816 if test "$aix_use_runtimelinking" = yes; then
18817 shared_flag="$shared_flag "'${wl}-G'
18818 fi
John Criswell47fdd832003-07-14 16:52:07 +000018819 else
18820 # not using gcc
18821 if test "$host_cpu" = ia64; then
18822 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18823 # chokes on -Wl,-G. The following line is correct:
18824 shared_flag='-G'
18825 else
18826 if test "$aix_use_runtimelinking" = yes; then
18827 shared_flag='${wl}-G'
18828 else
18829 shared_flag='${wl}-bM:SRE'
18830 fi
18831 fi
18832 fi
18833
18834 # It seems that -bexpall does not export symbols beginning with
18835 # underscore (_), so it is better to generate a list of symbols to export.
18836 always_export_symbols_CXX=yes
18837 if test "$aix_use_runtimelinking" = yes; then
18838 # Warning - without using the other runtime loading flags (-brtl),
18839 # -berok will link without error, but may produce a broken library.
18840 allow_undefined_flag_CXX='-berok'
18841 # Determine the default libpath from the value encoded in an empty executable.
18842 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018843/* confdefs.h. */
18844_ACEOF
18845cat confdefs.h >>conftest.$ac_ext
18846cat >>conftest.$ac_ext <<_ACEOF
18847/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018848
John Criswell47fdd832003-07-14 16:52:07 +000018849int
18850main ()
18851{
18852
18853 ;
18854 return 0;
18855}
18856_ACEOF
18857rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018858if { (ac_try="$ac_link"
18859case "(($ac_try" in
18860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18861 *) ac_try_echo=$ac_try;;
18862esac
18863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18864 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018865 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018866 grep -v '^ *+' conftest.er1 >conftest.err
18867 rm -f conftest.er1
18868 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018870 (exit $ac_status); } &&
18871 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18872 { (case "(($ac_try" in
18873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18874 *) ac_try_echo=$ac_try;;
18875esac
18876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18877 (eval "$ac_try") 2>&5
18878 ac_status=$?
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); }; } &&
18881 { ac_try='test -s conftest$ac_exeext'
18882 { (case "(($ac_try" in
18883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18884 *) ac_try_echo=$ac_try;;
18885esac
18886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18887 (eval "$ac_try") 2>&5
18888 ac_status=$?
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018891
18892aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18893}'`
18894# Check for a 64-bit object if we didn't find anything.
18895if 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; }
18896}'`; fi
18897else
18898 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018899sed 's/^/| /' conftest.$ac_ext >&5
18900
Reid Spencera773bd52006-08-04 18:18:08 +000018901
John Criswell47fdd832003-07-14 16:52:07 +000018902fi
Reid Spencera773bd52006-08-04 18:18:08 +000018903
Bill Wendlingebcceee2009-04-18 11:20:33 +000018904rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018905 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018906if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18907
18908 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18909
Reid Spencera773bd52006-08-04 18:18:08 +000018910 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 +000018911 else
18912 if test "$host_cpu" = ia64; then
18913 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18914 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018915 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 +000018916 else
18917 # Determine the default libpath from the value encoded in an empty executable.
18918 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018919/* confdefs.h. */
18920_ACEOF
18921cat confdefs.h >>conftest.$ac_ext
18922cat >>conftest.$ac_ext <<_ACEOF
18923/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018924
John Criswell47fdd832003-07-14 16:52:07 +000018925int
18926main ()
18927{
18928
18929 ;
18930 return 0;
18931}
18932_ACEOF
18933rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018934if { (ac_try="$ac_link"
18935case "(($ac_try" in
18936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18937 *) ac_try_echo=$ac_try;;
18938esac
18939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18940 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018941 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018942 grep -v '^ *+' conftest.er1 >conftest.err
18943 rm -f conftest.er1
18944 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018946 (exit $ac_status); } &&
18947 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18948 { (case "(($ac_try" in
18949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18950 *) ac_try_echo=$ac_try;;
18951esac
18952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18953 (eval "$ac_try") 2>&5
18954 ac_status=$?
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); }; } &&
18957 { ac_try='test -s conftest$ac_exeext'
18958 { (case "(($ac_try" in
18959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960 *) ac_try_echo=$ac_try;;
18961esac
18962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963 (eval "$ac_try") 2>&5
18964 ac_status=$?
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018967
18968aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18969}'`
18970# Check for a 64-bit object if we didn't find anything.
18971if 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; }
18972}'`; fi
18973else
18974 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018975sed 's/^/| /' conftest.$ac_ext >&5
18976
Reid Spencera773bd52006-08-04 18:18:08 +000018977
John Criswell47fdd832003-07-14 16:52:07 +000018978fi
Reid Spencera773bd52006-08-04 18:18:08 +000018979
Bill Wendlingebcceee2009-04-18 11:20:33 +000018980rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018981 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018982if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18983
18984 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18985 # Warning - without using the other run time loading flags,
18986 # -berok will link without error, but may produce a broken library.
18987 no_undefined_flag_CXX=' ${wl}-bernotok'
18988 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018989 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018990 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018991 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018992 # This is similar to how AIX traditionally builds its shared libraries.
18993 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 +000018994 fi
18995 fi
18996 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018997
18998 beos*)
18999 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19000 allow_undefined_flag_CXX=unsupported
19001 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19002 # support --undefined. This deserves some investigation. FIXME
19003 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19004 else
19005 ld_shlibs_CXX=no
19006 fi
19007 ;;
19008
John Criswell47fdd832003-07-14 16:52:07 +000019009 chorus*)
19010 case $cc_basename in
19011 *)
19012 # FIXME: insert proper C++ library support
19013 ld_shlibs_CXX=no
19014 ;;
19015 esac
19016 ;;
19017
19018 cygwin* | mingw* | pw32*)
19019 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19020 # as there is no search path for DLLs.
19021 hardcode_libdir_flag_spec_CXX='-L$libdir'
19022 allow_undefined_flag_CXX=unsupported
19023 always_export_symbols_CXX=no
19024 enable_shared_with_static_runtimes_CXX=yes
19025
19026 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000019027 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 +000019028 # If the export-symbols file already is a .def file (1st line
19029 # is EXPORTS), use it as is; otherwise, prepend...
19030 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19031 cp $export_symbols $output_objdir/$soname.def;
19032 else
19033 echo EXPORTS > $output_objdir/$soname.def;
19034 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019035 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000019036 $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 +000019037 else
19038 ld_shlibs_CXX=no
19039 fi
19040 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019041 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000019042 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019043 rhapsody* | darwin1.[012])
19044 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19045 ;;
19046 *) # Darwin 1.3 on
19047 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19048 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19049 else
19050 case ${MACOSX_DEPLOYMENT_TARGET} in
19051 10.[012])
19052 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19053 ;;
19054 10.*)
19055 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19056 ;;
19057 esac
19058 fi
19059 ;;
19060 esac
19061 archive_cmds_need_lc_CXX=no
19062 hardcode_direct_CXX=no
19063 hardcode_automatic_CXX=yes
19064 hardcode_shlibpath_var_CXX=unsupported
19065 whole_archive_flag_spec_CXX=''
19066 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019067
Reid Spencer2706f8c2004-09-19 23:53:36 +000019068 if test "$GXX" = yes ; then
19069 lt_int_apple_cc_single_mod=no
19070 output_verbose_link_cmd='echo'
19071 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19072 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000019073 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000019074 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019075 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 +000019076 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019077 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 +000019078 fi
19079 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000019080 # 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 +000019081 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019082 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 +000019083 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019084 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 +000019085 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000019086 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 +000019087 else
Reid Spencera773bd52006-08-04 18:18:08 +000019088 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019089 xlc*)
19090 output_verbose_link_cmd='echo'
19091 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'
19092 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000019093 # 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 +000019094 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}'
19095 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 +000019096 ;;
19097 *)
19098 ld_shlibs_CXX=no
19099 ;;
19100 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000019101 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019102 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019103
19104 dgux*)
19105 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019106 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019107 # FIXME: insert proper C++ library support
19108 ld_shlibs_CXX=no
19109 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019110 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019111 # Green Hills C++ Compiler
19112 # FIXME: insert proper C++ library support
19113 ld_shlibs_CXX=no
19114 ;;
19115 *)
19116 # FIXME: insert proper C++ library support
19117 ld_shlibs_CXX=no
19118 ;;
19119 esac
19120 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019121 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000019122 # C++ shared libraries reported to be fairly broken before switch to ELF
19123 ld_shlibs_CXX=no
19124 ;;
19125 freebsd-elf*)
19126 archive_cmds_need_lc_CXX=no
19127 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019128 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019129 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19130 # conventions
19131 ld_shlibs_CXX=yes
19132 ;;
19133 gnu*)
19134 ;;
19135 hpux9*)
19136 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19137 hardcode_libdir_separator_CXX=:
19138 export_dynamic_flag_spec_CXX='${wl}-E'
19139 hardcode_direct_CXX=yes
19140 hardcode_minus_L_CXX=yes # Not in the search PATH,
19141 # but as the default
19142 # location of the library.
19143
19144 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019145 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019146 # FIXME: insert proper C++ library support
19147 ld_shlibs_CXX=no
19148 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019149 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019150 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 +000019151 # Commands to make compiler produce verbose output that lists
19152 # what "hidden" libraries, object files and flags are used when
19153 # linking a shared library.
19154 #
19155 # There doesn't appear to be a way to prevent this compiler from
19156 # explicitly linking system object files so we need to strip them
19157 # from the output so that they don't get included in the library
19158 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000019159 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 +000019160 ;;
19161 *)
19162 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019163 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 +000019164 else
19165 # FIXME: insert proper C++ library support
19166 ld_shlibs_CXX=no
19167 fi
19168 ;;
19169 esac
19170 ;;
19171 hpux10*|hpux11*)
19172 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019173 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19174 hardcode_libdir_separator_CXX=:
19175
19176 case $host_cpu in
19177 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019178 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000019179 ;;
19180 *)
John Criswell47fdd832003-07-14 16:52:07 +000019181 export_dynamic_flag_spec_CXX='${wl}-E'
19182 ;;
19183 esac
19184 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019185 case $host_cpu in
19186 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019187 hardcode_direct_CXX=no
19188 hardcode_shlibpath_var_CXX=no
19189 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019190 *)
19191 hardcode_direct_CXX=yes
19192 hardcode_minus_L_CXX=yes # Not in the search PATH,
19193 # but as the default
19194 # location of the library.
19195 ;;
19196 esac
19197
19198 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019199 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019200 # FIXME: insert proper C++ library support
19201 ld_shlibs_CXX=no
19202 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019203 aCC*)
19204 case $host_cpu in
19205 hppa*64*)
19206 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19207 ;;
19208 ia64*)
19209 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 +000019210 ;;
19211 *)
19212 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19213 ;;
19214 esac
19215 # Commands to make compiler produce verbose output that lists
19216 # what "hidden" libraries, object files and flags are used when
19217 # linking a shared library.
19218 #
19219 # There doesn't appear to be a way to prevent this compiler from
19220 # explicitly linking system object files so we need to strip them
19221 # from the output so that they don't get included in the library
19222 # dependencies.
19223 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'
19224 ;;
19225 *)
19226 if test "$GXX" = yes; then
19227 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019228 case $host_cpu in
19229 hppa*64*)
19230 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19231 ;;
19232 ia64*)
19233 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 +000019234 ;;
19235 *)
19236 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'
19237 ;;
19238 esac
19239 fi
19240 else
19241 # FIXME: insert proper C++ library support
19242 ld_shlibs_CXX=no
19243 fi
19244 ;;
19245 esac
19246 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019247 interix3*)
19248 hardcode_direct_CXX=no
19249 hardcode_shlibpath_var_CXX=no
19250 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19251 export_dynamic_flag_spec_CXX='${wl}-E'
19252 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19253 # Instead, shared libraries are loaded at an image base (0x10000000 by
19254 # default) and relocated if they conflict, which is a slow very memory
19255 # consuming and fragmenting process. To avoid this, we pick a random,
19256 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19257 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19258 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'
19259 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'
19260 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019261 irix5* | irix6*)
19262 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019263 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019264 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000019265 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 +000019266
19267 # Archives containing C++ object files must be created using
19268 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19269 # necessary to make sure instantiated templates are included
19270 # in the archive.
19271 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19272 ;;
19273 *)
19274 if test "$GXX" = yes; then
19275 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019276 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 +000019277 else
19278 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'
19279 fi
19280 fi
19281 link_all_deplibs_CXX=yes
19282 ;;
19283 esac
19284 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19285 hardcode_libdir_separator_CXX=:
19286 ;;
19287 linux*)
19288 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019289 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019290 # Kuck and Associates, Inc. (KAI) C++ Compiler
19291
19292 # KCC will only create a shared library if the output file
19293 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19294 # to its proper name (with version) after linking.
19295 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'
19296 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'
19297 # Commands to make compiler produce verbose output that lists
19298 # what "hidden" libraries, object files and flags are used when
19299 # linking a shared library.
19300 #
19301 # There doesn't appear to be a way to prevent this compiler from
19302 # explicitly linking system object files so we need to strip them
19303 # from the output so that they don't get included in the library
19304 # dependencies.
19305 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'
19306
19307 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19308 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19309
19310 # Archives containing C++ object files must be created using
19311 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19312 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19313 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019314 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019315 # Intel C++
19316 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019317 # version 8.0 and above of icpc choke on multiply defined symbols
19318 # if we add $predep_objects and $postdep_objects, however 7.1 and
19319 # earlier do not add the objects themselves.
19320 case `$CC -V 2>&1` in
19321 *"Version 7."*)
19322 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19323 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'
19324 ;;
19325 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000019326 tmp_idyn=
19327 case $host_cpu in
19328 ia64*) tmp_idyn=' -i_dynamic';;
19329 esac
19330 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19331 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 +000019332 ;;
19333 esac
John Criswell47fdd832003-07-14 16:52:07 +000019334 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000019335 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19336 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19337 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19338 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019339 pgCC*)
19340 # Portland Group C++ compiler
19341 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19342 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'
19343
19344 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19345 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19346 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'
19347 ;;
19348 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019349 # Compaq C++
19350 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19351 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'
19352
19353 runpath_var=LD_RUN_PATH
19354 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19355 hardcode_libdir_separator_CXX=:
19356
19357 # Commands to make compiler produce verbose output that lists
19358 # what "hidden" libraries, object files and flags are used when
19359 # linking a shared library.
19360 #
19361 # There doesn't appear to be a way to prevent this compiler from
19362 # explicitly linking system object files so we need to strip them
19363 # from the output so that they don't get included in the library
19364 # dependencies.
19365 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'
19366 ;;
19367 esac
19368 ;;
19369 lynxos*)
19370 # FIXME: insert proper C++ library support
19371 ld_shlibs_CXX=no
19372 ;;
19373 m88k*)
19374 # FIXME: insert proper C++ library support
19375 ld_shlibs_CXX=no
19376 ;;
19377 mvs*)
19378 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019379 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019380 # FIXME: insert proper C++ library support
19381 ld_shlibs_CXX=no
19382 ;;
19383 *)
19384 # FIXME: insert proper C++ library support
19385 ld_shlibs_CXX=no
19386 ;;
19387 esac
19388 ;;
19389 netbsd*)
19390 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19391 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19392 wlarc=
19393 hardcode_libdir_flag_spec_CXX='-R$libdir'
19394 hardcode_direct_CXX=yes
19395 hardcode_shlibpath_var_CXX=no
19396 fi
19397 # Workaround some broken pre-1.5 toolchains
19398 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19399 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019400 openbsd2*)
19401 # C++ shared libraries are fairly broken
19402 ld_shlibs_CXX=no
19403 ;;
19404 openbsd*)
19405 hardcode_direct_CXX=yes
19406 hardcode_shlibpath_var_CXX=no
19407 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19408 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19409 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19410 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19411 export_dynamic_flag_spec_CXX='${wl}-E'
19412 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19413 fi
19414 output_verbose_link_cmd='echo'
19415 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019416 osf3*)
19417 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019418 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019419 # Kuck and Associates, Inc. (KAI) C++ Compiler
19420
19421 # KCC will only create a shared library if the output file
19422 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19423 # to its proper name (with version) after linking.
19424 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'
19425
19426 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19427 hardcode_libdir_separator_CXX=:
19428
19429 # Archives containing C++ object files must be created using
19430 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19431 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19432
19433 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019434 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019435 # Rational C++ 2.4.1
19436 # FIXME: insert proper C++ library support
19437 ld_shlibs_CXX=no
19438 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019439 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019440 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019441 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 +000019442
19443 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19444 hardcode_libdir_separator_CXX=:
19445
19446 # Commands to make compiler produce verbose output that lists
19447 # what "hidden" libraries, object files and flags are used when
19448 # linking a shared library.
19449 #
19450 # There doesn't appear to be a way to prevent this compiler from
19451 # explicitly linking system object files so we need to strip them
19452 # from the output so that they don't get included in the library
19453 # dependencies.
19454 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'
19455 ;;
19456 *)
19457 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19458 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019459 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 +000019460
19461 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19462 hardcode_libdir_separator_CXX=:
19463
19464 # Commands to make compiler produce verbose output that lists
19465 # what "hidden" libraries, object files and flags are used when
19466 # linking a shared library.
19467 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19468
19469 else
19470 # FIXME: insert proper C++ library support
19471 ld_shlibs_CXX=no
19472 fi
19473 ;;
19474 esac
19475 ;;
19476 osf4* | osf5*)
19477 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019478 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019479 # Kuck and Associates, Inc. (KAI) C++ Compiler
19480
19481 # KCC will only create a shared library if the output file
19482 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19483 # to its proper name (with version) after linking.
19484 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'
19485
19486 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19487 hardcode_libdir_separator_CXX=:
19488
19489 # Archives containing C++ object files must be created using
19490 # the KAI C++ compiler.
19491 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19492 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019493 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019494 # Rational C++ 2.4.1
19495 # FIXME: insert proper C++ library support
19496 ld_shlibs_CXX=no
19497 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019498 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019499 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019500 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 +000019501 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19502 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019503 $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 +000019504 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019505
19506 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19507 hardcode_libdir_separator_CXX=:
19508
19509 # Commands to make compiler produce verbose output that lists
19510 # what "hidden" libraries, object files and flags are used when
19511 # linking a shared library.
19512 #
19513 # There doesn't appear to be a way to prevent this compiler from
19514 # explicitly linking system object files so we need to strip them
19515 # from the output so that they don't get included in the library
19516 # dependencies.
19517 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'
19518 ;;
19519 *)
19520 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19521 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019522 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 +000019523
19524 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19525 hardcode_libdir_separator_CXX=:
19526
19527 # Commands to make compiler produce verbose output that lists
19528 # what "hidden" libraries, object files and flags are used when
19529 # linking a shared library.
19530 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19531
19532 else
19533 # FIXME: insert proper C++ library support
19534 ld_shlibs_CXX=no
19535 fi
19536 ;;
19537 esac
19538 ;;
19539 psos*)
19540 # FIXME: insert proper C++ library support
19541 ld_shlibs_CXX=no
19542 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019543 sunos4*)
19544 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019545 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019546 # Sun C++ 4.x
19547 # FIXME: insert proper C++ library support
19548 ld_shlibs_CXX=no
19549 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019550 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019551 # Lucid
19552 # FIXME: insert proper C++ library support
19553 ld_shlibs_CXX=no
19554 ;;
19555 *)
19556 # FIXME: insert proper C++ library support
19557 ld_shlibs_CXX=no
19558 ;;
19559 esac
19560 ;;
19561 solaris*)
19562 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019563 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019564 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019565 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019566 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019567 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 +000019568 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 +000019569 $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 +000019570
19571 hardcode_libdir_flag_spec_CXX='-R$libdir'
19572 hardcode_shlibpath_var_CXX=no
19573 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019574 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019575 *)
19576 # The C++ compiler is used as linker so we must use $wl
19577 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019578 # linker. We must also pass each convience library through
19579 # to the system linker between allextract/defaultextract.
19580 # The C++ compiler will combine linker options so we
19581 # cannot just pass the convience library names through
19582 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019583 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019584 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 +000019585 ;;
19586 esac
19587 link_all_deplibs_CXX=yes
19588
Reid Spencera773bd52006-08-04 18:18:08 +000019589 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019590
19591 # Archives containing C++ object files must be created using
19592 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19593 # necessary to make sure instantiated templates are included
19594 # in the archive.
19595 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19596 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019597 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019598 # Green Hills C++ Compiler
19599 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19600
19601 # The C++ compiler must be used to create the archive.
19602 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19603 ;;
19604 *)
19605 # GNU C++ compiler with Solaris linker
19606 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19607 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19608 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019609 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 +000019610 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19611 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19612
John Criswell47fdd832003-07-14 16:52:07 +000019613 # Commands to make compiler produce verbose output that lists
19614 # what "hidden" libraries, object files and flags are used when
19615 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019616 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019617 else
19618 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19619 # platform.
19620 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 +000019621 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19622 $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 +000019623
19624 # Commands to make compiler produce verbose output that lists
19625 # what "hidden" libraries, object files and flags are used when
19626 # linking a shared library.
19627 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19628 fi
19629
19630 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19631 fi
19632 ;;
19633 esac
19634 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019635 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19636 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019637 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019638 hardcode_shlibpath_var_CXX=no
19639 runpath_var='LD_RUN_PATH'
19640
19641 case $cc_basename in
19642 CC*)
19643 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19644 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19645 ;;
19646 *)
19647 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19648 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19649 ;;
19650 esac
19651 ;;
19652 sysv5* | sco3.2v5* | sco5v6*)
19653 # Note: We can NOT use -z defs as we might desire, because we do not
19654 # link with -lc, and that would cause any symbols used from libc to
19655 # always be unresolved, which means just about no library would
19656 # ever link correctly. If we're not using GNU ld we use -z text
19657 # though, which does catch some bad symbols but isn't as heavy-handed
19658 # as -z defs.
19659 # For security reasons, it is highly recommended that you always
19660 # use absolute paths for naming shared libraries, and exclude the
19661 # DT_RUNPATH tag from executables and libraries. But doing so
19662 # requires that you compile everything twice, which is a pain.
19663 # So that behaviour is only enabled if SCOABSPATH is set to a
19664 # non-empty value in the environment. Most likely only useful for
19665 # creating official distributions of packages.
19666 # This is a hack until libtool officially supports absolute path
19667 # names for shared libraries.
19668 no_undefined_flag_CXX='${wl}-z,text'
19669 allow_undefined_flag_CXX='${wl}-z,nodefs'
19670 archive_cmds_need_lc_CXX=no
19671 hardcode_shlibpath_var_CXX=no
19672 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19673 hardcode_libdir_separator_CXX=':'
19674 link_all_deplibs_CXX=yes
19675 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19676 runpath_var='LD_RUN_PATH'
19677
19678 case $cc_basename in
19679 CC*)
19680 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19681 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19682 ;;
19683 *)
19684 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19685 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19686 ;;
19687 esac
John Criswell47fdd832003-07-14 16:52:07 +000019688 ;;
19689 tandem*)
19690 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019691 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019692 # NonStop-UX NCC 3.20
19693 # FIXME: insert proper C++ library support
19694 ld_shlibs_CXX=no
19695 ;;
19696 *)
19697 # FIXME: insert proper C++ library support
19698 ld_shlibs_CXX=no
19699 ;;
19700 esac
19701 ;;
19702 vxworks*)
19703 # FIXME: insert proper C++ library support
19704 ld_shlibs_CXX=no
19705 ;;
19706 *)
19707 # FIXME: insert proper C++ library support
19708 ld_shlibs_CXX=no
19709 ;;
19710esac
Reid Spencera773bd52006-08-04 18:18:08 +000019711{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19712echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019713test "$ld_shlibs_CXX" = no && can_build_shared=no
19714
19715GCC_CXX="$GXX"
19716LD_CXX="$LD"
19717
John Criswell47fdd832003-07-14 16:52:07 +000019718
19719cat > conftest.$ac_ext <<EOF
19720class Foo
19721{
19722public:
19723 Foo (void) { a = 0; }
19724private:
19725 int a;
19726};
19727EOF
19728
19729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19730 (eval $ac_compile) 2>&5
19731 ac_status=$?
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); }; then
19734 # Parse the compiler output and extract the necessary
19735 # objects, libraries and library flags.
19736
19737 # Sentinel used to keep track of whether or not we are before
19738 # the conftest object file.
19739 pre_test_object_deps_done=no
19740
19741 # The `*' in the case matches for architectures that use `case' in
19742 # $output_verbose_cmd can trigger glob expansion during the loop
19743 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019744 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019745
19746 for p in `eval $output_verbose_link_cmd`; do
19747 case $p in
19748
19749 -L* | -R* | -l*)
19750 # Some compilers place space between "-{L,R}" and the path.
19751 # Remove the space.
19752 if test $p = "-L" \
19753 || test $p = "-R"; then
19754 prev=$p
19755 continue
19756 else
19757 prev=
19758 fi
19759
19760 if test "$pre_test_object_deps_done" = no; then
19761 case $p in
19762 -L* | -R*)
19763 # Internal compiler library paths should come after those
19764 # provided the user. The postdeps already come after the
19765 # user supplied libs so there is no need to process them.
19766 if test -z "$compiler_lib_search_path_CXX"; then
19767 compiler_lib_search_path_CXX="${prev}${p}"
19768 else
19769 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19770 fi
19771 ;;
19772 # The "-l" case would never come before the object being
19773 # linked, so don't bother handling this case.
19774 esac
19775 else
19776 if test -z "$postdeps_CXX"; then
19777 postdeps_CXX="${prev}${p}"
19778 else
19779 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19780 fi
19781 fi
19782 ;;
19783
19784 *.$objext)
19785 # This assumes that the test object file only shows up
19786 # once in the compiler output.
19787 if test "$p" = "conftest.$objext"; then
19788 pre_test_object_deps_done=yes
19789 continue
19790 fi
19791
19792 if test "$pre_test_object_deps_done" = no; then
19793 if test -z "$predep_objects_CXX"; then
19794 predep_objects_CXX="$p"
19795 else
19796 predep_objects_CXX="$predep_objects_CXX $p"
19797 fi
19798 else
19799 if test -z "$postdep_objects_CXX"; then
19800 postdep_objects_CXX="$p"
19801 else
19802 postdep_objects_CXX="$postdep_objects_CXX $p"
19803 fi
19804 fi
19805 ;;
19806
19807 *) ;; # Ignore the rest.
19808
19809 esac
19810 done
19811
19812 # Clean up.
19813 rm -f a.out a.exe
19814else
19815 echo "libtool.m4: error: problem compiling CXX test program"
19816fi
19817
19818$rm -f confest.$objext
19819
Reid Spencera773bd52006-08-04 18:18:08 +000019820# PORTME: override above test on systems where it is broken
19821case $host_os in
19822interix3*)
19823 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19824 # hack all around it, let's just trust "g++" to DTRT.
19825 predep_objects_CXX=
19826 postdep_objects_CXX=
19827 postdeps_CXX=
19828 ;;
19829
19830solaris*)
19831 case $cc_basename in
19832 CC*)
19833 # Adding this requires a known-good setup of shared libraries for
19834 # Sun compiler versions before 5.6, else PIC objects from an old
19835 # archive will be linked into the output, leading to subtle bugs.
19836 postdeps_CXX='-lCstd -lCrun'
19837 ;;
19838 esac
19839 ;;
19840esac
19841
19842
John Criswell47fdd832003-07-14 16:52:07 +000019843case " $postdeps_CXX " in
19844*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19845esac
19846
19847lt_prog_compiler_wl_CXX=
19848lt_prog_compiler_pic_CXX=
19849lt_prog_compiler_static_CXX=
19850
Reid Spencera773bd52006-08-04 18:18:08 +000019851{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19852echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019853
19854 # C++ specific cases for pic, static, wl, etc.
19855 if test "$GXX" = yes; then
19856 lt_prog_compiler_wl_CXX='-Wl,'
19857 lt_prog_compiler_static_CXX='-static'
19858
19859 case $host_os in
19860 aix*)
19861 # All AIX code is PIC.
19862 if test "$host_cpu" = ia64; then
19863 # AIX 5 now supports IA64 processor
19864 lt_prog_compiler_static_CXX='-Bstatic'
19865 fi
19866 ;;
19867 amigaos*)
19868 # FIXME: we need at least 68020 code to build shared libraries, but
19869 # adding the `-m68020' flag to GCC prevents building anything better,
19870 # like `-m68040'.
19871 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19872 ;;
19873 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19874 # PIC is the default for these OSes.
19875 ;;
19876 mingw* | os2* | pw32*)
19877 # This hack is so that the source file can tell whether it is being
19878 # built for inclusion in a dll (and should export symbols for example).
19879 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19880 ;;
19881 darwin* | rhapsody*)
19882 # PIC is the default on this platform
19883 # Common symbols not allowed in MH_DYLIB files
19884 lt_prog_compiler_pic_CXX='-fno-common'
19885 ;;
19886 *djgpp*)
19887 # DJGPP does not support shared libraries at all
19888 lt_prog_compiler_pic_CXX=
19889 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019890 interix3*)
19891 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19892 # Instead, we relocate shared libraries at runtime.
19893 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019894 sysv4*MP*)
19895 if test -d /usr/nec; then
19896 lt_prog_compiler_pic_CXX=-Kconform_pic
19897 fi
19898 ;;
19899 hpux*)
19900 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19901 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019902 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019903 hppa*64*|ia64*)
19904 ;;
19905 *)
19906 lt_prog_compiler_pic_CXX='-fPIC'
19907 ;;
19908 esac
19909 ;;
19910 *)
19911 lt_prog_compiler_pic_CXX='-fPIC'
19912 ;;
19913 esac
19914 else
19915 case $host_os in
19916 aix4* | aix5*)
19917 # All AIX code is PIC.
19918 if test "$host_cpu" = ia64; then
19919 # AIX 5 now supports IA64 processor
19920 lt_prog_compiler_static_CXX='-Bstatic'
19921 else
19922 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19923 fi
19924 ;;
19925 chorus*)
19926 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019927 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019928 # Green Hills C++ Compiler
19929 # _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"
19930 ;;
19931 esac
19932 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019933 darwin*)
19934 # PIC is the default on this platform
19935 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019936 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019937 xlc*)
19938 lt_prog_compiler_pic_CXX='-qnocommon'
19939 lt_prog_compiler_wl_CXX='-Wl,'
19940 ;;
19941 esac
19942 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019943 dgux*)
19944 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019945 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019946 lt_prog_compiler_pic_CXX='-KPIC'
19947 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019948 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019949 # Green Hills C++ Compiler
19950 lt_prog_compiler_pic_CXX='-pic'
19951 ;;
19952 *)
19953 ;;
19954 esac
19955 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019956 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019957 # FreeBSD uses GNU C++
19958 ;;
19959 hpux9* | hpux10* | hpux11*)
19960 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019961 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019962 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019963 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019964 if test "$host_cpu" != ia64; then
19965 lt_prog_compiler_pic_CXX='+Z'
19966 fi
19967 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019968 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019969 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019970 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19971 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019972 hppa*64*|ia64*)
19973 # +Z the default
19974 ;;
19975 *)
19976 lt_prog_compiler_pic_CXX='+Z'
19977 ;;
19978 esac
19979 ;;
19980 *)
19981 ;;
19982 esac
19983 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019984 interix*)
19985 # This is c89, which is MS Visual C++ (no shared libs)
19986 # Anyone wants to do a port?
19987 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019988 irix5* | irix6* | nonstopux*)
19989 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019990 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019991 lt_prog_compiler_wl_CXX='-Wl,'
19992 lt_prog_compiler_static_CXX='-non_shared'
19993 # CC pic flag -KPIC is the default.
19994 ;;
19995 *)
19996 ;;
19997 esac
19998 ;;
19999 linux*)
20000 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020001 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020002 # KAI C++ Compiler
20003 lt_prog_compiler_wl_CXX='--backend -Wl,'
20004 lt_prog_compiler_pic_CXX='-fPIC'
20005 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020006 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000020007 # Intel C++
20008 lt_prog_compiler_wl_CXX='-Wl,'
20009 lt_prog_compiler_pic_CXX='-KPIC'
20010 lt_prog_compiler_static_CXX='-static'
20011 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020012 pgCC*)
20013 # Portland Group C++ compiler.
20014 lt_prog_compiler_wl_CXX='-Wl,'
20015 lt_prog_compiler_pic_CXX='-fpic'
20016 lt_prog_compiler_static_CXX='-Bstatic'
20017 ;;
20018 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000020019 # Compaq C++
20020 # Make sure the PIC flag is empty. It appears that all Alpha
20021 # Linux and Compaq Tru64 Unix objects are PIC.
20022 lt_prog_compiler_pic_CXX=
20023 lt_prog_compiler_static_CXX='-non_shared'
20024 ;;
20025 *)
20026 ;;
20027 esac
20028 ;;
20029 lynxos*)
20030 ;;
20031 m88k*)
20032 ;;
20033 mvs*)
20034 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020035 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000020036 lt_prog_compiler_pic_CXX='-W c,exportall'
20037 ;;
20038 *)
20039 ;;
20040 esac
20041 ;;
20042 netbsd*)
20043 ;;
20044 osf3* | osf4* | osf5*)
20045 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020046 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020047 lt_prog_compiler_wl_CXX='--backend -Wl,'
20048 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020049 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020050 # Rational C++ 2.4.1
20051 lt_prog_compiler_pic_CXX='-pic'
20052 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020053 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000020054 # Digital/Compaq C++
20055 lt_prog_compiler_wl_CXX='-Wl,'
20056 # Make sure the PIC flag is empty. It appears that all Alpha
20057 # Linux and Compaq Tru64 Unix objects are PIC.
20058 lt_prog_compiler_pic_CXX=
20059 lt_prog_compiler_static_CXX='-non_shared'
20060 ;;
20061 *)
20062 ;;
20063 esac
20064 ;;
20065 psos*)
20066 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020067 solaris*)
20068 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020069 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000020070 # Sun C++ 4.2, 5.x and Centerline C++
20071 lt_prog_compiler_pic_CXX='-KPIC'
20072 lt_prog_compiler_static_CXX='-Bstatic'
20073 lt_prog_compiler_wl_CXX='-Qoption ld '
20074 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020075 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000020076 # Green Hills C++ Compiler
20077 lt_prog_compiler_pic_CXX='-PIC'
20078 ;;
20079 *)
20080 ;;
20081 esac
20082 ;;
20083 sunos4*)
20084 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020085 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000020086 # Sun C++ 4.x
20087 lt_prog_compiler_pic_CXX='-pic'
20088 lt_prog_compiler_static_CXX='-Bstatic'
20089 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020090 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000020091 # Lucid
20092 lt_prog_compiler_pic_CXX='-pic'
20093 ;;
20094 *)
20095 ;;
20096 esac
20097 ;;
20098 tandem*)
20099 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020100 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020101 # NonStop-UX NCC 3.20
20102 lt_prog_compiler_pic_CXX='-KPIC'
20103 ;;
20104 *)
20105 ;;
20106 esac
20107 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020108 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20109 case $cc_basename in
20110 CC*)
20111 lt_prog_compiler_wl_CXX='-Wl,'
20112 lt_prog_compiler_pic_CXX='-KPIC'
20113 lt_prog_compiler_static_CXX='-Bstatic'
20114 ;;
20115 esac
John Criswell47fdd832003-07-14 16:52:07 +000020116 ;;
20117 vxworks*)
20118 ;;
20119 *)
20120 lt_prog_compiler_can_build_shared_CXX=no
20121 ;;
20122 esac
20123 fi
20124
Reid Spencera773bd52006-08-04 18:18:08 +000020125{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20126echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020127
20128#
20129# Check to make sure the PIC flag actually works.
20130#
20131if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020132
Reid Spencera773bd52006-08-04 18:18:08 +000020133{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20134echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020135if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20136 echo $ECHO_N "(cached) $ECHO_C" >&6
20137else
20138 lt_prog_compiler_pic_works_CXX=no
20139 ac_outfile=conftest.$ac_objext
20140 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20141 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20142 # Insert the option either (1) after the last *FLAGS variable, or
20143 # (2) before a word containing "conftest.", or (3) at the end.
20144 # Note that $ac_compile itself does not contain backslashes and begins
20145 # with a dollar sign (not a hyphen), so the echo should work correctly.
20146 # The option is referenced via a variable to avoid confusing sed.
20147 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020148 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020149 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20150 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000020151 (eval echo "\"\$as_me:20151: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020152 (eval "$lt_compile" 2>conftest.err)
20153 ac_status=$?
20154 cat conftest.err >&5
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000020155 echo "$as_me:20155: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020156 if (exit $ac_status) && test -s "$ac_outfile"; then
20157 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000020158 # So say no if there are warnings other than the usual output.
20159 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20160 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20161 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020162 lt_prog_compiler_pic_works_CXX=yes
20163 fi
20164 fi
20165 $rm conftest*
20166
20167fi
Reid Spencera773bd52006-08-04 18:18:08 +000020168{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20169echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020170
20171if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20172 case $lt_prog_compiler_pic_CXX in
20173 "" | " "*) ;;
20174 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20175 esac
20176else
20177 lt_prog_compiler_pic_CXX=
20178 lt_prog_compiler_can_build_shared_CXX=no
20179fi
20180
20181fi
Reid Spencera773bd52006-08-04 18:18:08 +000020182case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020183 # For platforms which do not support PIC, -DPIC is meaningless:
20184 *djgpp*)
20185 lt_prog_compiler_pic_CXX=
20186 ;;
20187 *)
20188 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20189 ;;
20190esac
20191
Reid Spencera773bd52006-08-04 18:18:08 +000020192#
20193# Check to make sure the static flag actually works.
20194#
20195wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20196{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20197echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20198if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20199 echo $ECHO_N "(cached) $ECHO_C" >&6
20200else
20201 lt_prog_compiler_static_works_CXX=no
20202 save_LDFLAGS="$LDFLAGS"
20203 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20204 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20205 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20206 # The linker can only warn and ignore the option if not recognized
20207 # So say no if there are warnings
20208 if test -s conftest.err; then
20209 # Append any errors to the config.log.
20210 cat conftest.err 1>&5
20211 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20212 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20213 if diff conftest.exp conftest.er2 >/dev/null; then
20214 lt_prog_compiler_static_works_CXX=yes
20215 fi
20216 else
20217 lt_prog_compiler_static_works_CXX=yes
20218 fi
20219 fi
20220 $rm conftest*
20221 LDFLAGS="$save_LDFLAGS"
20222
20223fi
20224{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20225echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20226
20227if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20228 :
20229else
20230 lt_prog_compiler_static_CXX=
20231fi
20232
20233
20234{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20235echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020236if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20237 echo $ECHO_N "(cached) $ECHO_C" >&6
20238else
20239 lt_cv_prog_compiler_c_o_CXX=no
20240 $rm -r conftest 2>/dev/null
20241 mkdir conftest
20242 cd conftest
20243 mkdir out
20244 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20245
John Criswell47fdd832003-07-14 16:52:07 +000020246 lt_compiler_flag="-o out/conftest2.$ac_objext"
20247 # Insert the option either (1) after the last *FLAGS variable, or
20248 # (2) before a word containing "conftest.", or (3) at the end.
20249 # Note that $ac_compile itself does not contain backslashes and begins
20250 # with a dollar sign (not a hyphen), so the echo should work correctly.
20251 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020252 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020253 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20254 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000020255 (eval echo "\"\$as_me:20255: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020256 (eval "$lt_compile" 2>out/conftest.err)
20257 ac_status=$?
20258 cat out/conftest.err >&5
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000020259 echo "$as_me:20259: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020260 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20261 then
20262 # The compiler can only warn and ignore the option if not recognized
20263 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000020264 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20265 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20266 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020267 lt_cv_prog_compiler_c_o_CXX=yes
20268 fi
20269 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020270 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020271 $rm conftest*
20272 # SGI C++ compiler will create directory out/ii_files/ for
20273 # template instantiation
20274 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20275 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000020276 cd ..
20277 rmdir conftest
20278 $rm conftest*
20279
20280fi
Reid Spencera773bd52006-08-04 18:18:08 +000020281{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20282echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020283
20284
20285hard_links="nottested"
20286if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20287 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000020288 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20289echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020290 hard_links=yes
20291 $rm conftest*
20292 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20293 touch conftest.a
20294 ln conftest.a conftest.b 2>&5 || hard_links=no
20295 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000020296 { echo "$as_me:$LINENO: result: $hard_links" >&5
20297echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020298 if test "$hard_links" = no; then
20299 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20300echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20301 need_locks=warn
20302 fi
20303else
20304 need_locks=no
20305fi
20306
Reid Spencera773bd52006-08-04 18:18:08 +000020307{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20308echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020309
20310 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20311 case $host_os in
20312 aix4* | aix5*)
20313 # If we're using GNU nm, then we don't want the "-C" option.
20314 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20315 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20316 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'
20317 else
20318 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'
20319 fi
20320 ;;
20321 pw32*)
20322 export_symbols_cmds_CXX="$ltdll_cmds"
20323 ;;
20324 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000020325 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 +000020326 ;;
20327 *)
20328 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20329 ;;
20330 esac
20331
Reid Spencera773bd52006-08-04 18:18:08 +000020332{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20333echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020334test "$ld_shlibs_CXX" = no && can_build_shared=no
20335
John Criswell47fdd832003-07-14 16:52:07 +000020336#
20337# Do we need to explicitly link libc?
20338#
20339case "x$archive_cmds_need_lc_CXX" in
20340x|xyes)
20341 # Assume -lc should be added
20342 archive_cmds_need_lc_CXX=yes
20343
20344 if test "$enable_shared" = yes && test "$GCC" = yes; then
20345 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020346 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020347 # FIXME: we may have to deal with multi-command sequences.
20348 ;;
20349 '$CC '*)
20350 # Test whether the compiler implicitly links with -lc since on some
20351 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20352 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000020353 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20354echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020355 $rm conftest*
20356 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20357
20358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20359 (eval $ac_compile) 2>&5
20360 ac_status=$?
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); } 2>conftest.err; then
20363 soname=conftest
20364 lib=conftest
20365 libobjs=conftest.$ac_objext
20366 deplibs=
20367 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000020368 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000020369 compiler_flags=-v
20370 linker_flags=-v
20371 verstring=
20372 output_objdir=.
20373 libname=conftest
20374 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20375 allow_undefined_flag_CXX=
20376 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20377 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20378 ac_status=$?
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); }
20381 then
20382 archive_cmds_need_lc_CXX=no
20383 else
20384 archive_cmds_need_lc_CXX=yes
20385 fi
20386 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20387 else
20388 cat conftest.err 1>&5
20389 fi
20390 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000020391 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20392echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020393 ;;
20394 esac
20395 fi
20396 ;;
20397esac
20398
Reid Spencera773bd52006-08-04 18:18:08 +000020399{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20400echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020401library_names_spec=
20402libname_spec='lib$name'
20403soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020404shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020405postinstall_cmds=
20406postuninstall_cmds=
20407finish_cmds=
20408finish_eval=
20409shlibpath_var=
20410shlibpath_overrides_runpath=unknown
20411version_type=none
20412dynamic_linker="$host_os ld.so"
20413sys_lib_dlsearch_path_spec="/lib /usr/lib"
20414if test "$GCC" = yes; then
20415 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20416 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20417 # if the path contains ";" then we assume it to be the separator
20418 # otherwise default to the standard path separator (i.e. ":") - it is
20419 # assumed that no part of a normal pathname contains ";" but that should
20420 # okay in the real world where ";" in dirpaths is itself problematic.
20421 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20422 else
20423 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20424 fi
20425else
20426 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20427fi
20428need_lib_prefix=unknown
20429hardcode_into_libs=no
20430
20431# when you set need_version to no, make sure it does not cause -set_version
20432# flags to be left without arguments
20433need_version=unknown
20434
20435case $host_os in
20436aix3*)
20437 version_type=linux
20438 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20439 shlibpath_var=LIBPATH
20440
20441 # AIX 3 has no versioning support, so we append a major version to the name.
20442 soname_spec='${libname}${release}${shared_ext}$major'
20443 ;;
20444
20445aix4* | aix5*)
20446 version_type=linux
20447 need_lib_prefix=no
20448 need_version=no
20449 hardcode_into_libs=yes
20450 if test "$host_cpu" = ia64; then
20451 # AIX 5 supports IA64
20452 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20453 shlibpath_var=LD_LIBRARY_PATH
20454 else
20455 # With GCC up to 2.95.x, collect2 would create an import file
20456 # for dependence libraries. The import file would start with
20457 # the line `#! .'. This would cause the generated library to
20458 # depend on `.', always an invalid library. This was fixed in
20459 # development snapshots of GCC prior to 3.0.
20460 case $host_os in
20461 aix4 | aix4.[01] | aix4.[01].*)
20462 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20463 echo ' yes '
20464 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20465 :
20466 else
20467 can_build_shared=no
20468 fi
20469 ;;
20470 esac
20471 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20472 # soname into executable. Probably we can add versioning support to
20473 # collect2, so additional links can be useful in future.
20474 if test "$aix_use_runtimelinking" = yes; then
20475 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20476 # instead of lib<name>.a to let people know that these are not
20477 # typical AIX shared libraries.
20478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20479 else
20480 # We preserve .a as extension for shared libraries through AIX4.2
20481 # and later when we are not doing run time linking.
20482 library_names_spec='${libname}${release}.a $libname.a'
20483 soname_spec='${libname}${release}${shared_ext}$major'
20484 fi
20485 shlibpath_var=LIBPATH
20486 fi
20487 ;;
20488
20489amigaos*)
20490 library_names_spec='$libname.ixlibrary $libname.a'
20491 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020492 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 +000020493 ;;
20494
20495beos*)
20496 library_names_spec='${libname}${shared_ext}'
20497 dynamic_linker="$host_os ld.so"
20498 shlibpath_var=LIBRARY_PATH
20499 ;;
20500
Reid Spencer2706f8c2004-09-19 23:53:36 +000020501bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020502 version_type=linux
20503 need_version=no
20504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20505 soname_spec='${libname}${release}${shared_ext}$major'
20506 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20507 shlibpath_var=LD_LIBRARY_PATH
20508 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20509 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20510 # the default ld.so.conf also contains /usr/contrib/lib and
20511 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20512 # libtool to hard-code these into programs
20513 ;;
20514
20515cygwin* | mingw* | pw32*)
20516 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020517 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020518 need_version=no
20519 need_lib_prefix=no
20520
20521 case $GCC,$host_os in
20522 yes,cygwin* | yes,mingw* | yes,pw32*)
20523 library_names_spec='$libname.dll.a'
20524 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020525 postinstall_cmds='base_file=`basename \${file}`~
20526 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20527 dldir=$destdir/`dirname \$dlpath`~
20528 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020529 $install_prog $dir/$dlname \$dldir/$dlname~
20530 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020531 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20532 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020533 $rm \$dlpath'
20534 shlibpath_overrides_runpath=yes
20535
20536 case $host_os in
20537 cygwin*)
20538 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20539 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 +000020540 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020541 ;;
20542 mingw*)
20543 # MinGW DLLs use traditional 'lib' prefix
20544 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20545 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20546 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20547 # It is most probably a Windows format PATH printed by
20548 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20549 # path with ; separators, and with drive letters. We can handle the
20550 # drive letters (cygwin fileutils understands them), so leave them,
20551 # especially as we might pass files found there to a mingw objdump,
20552 # which wouldn't understand a cygwinified path. Ahh.
20553 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20554 else
20555 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20556 fi
20557 ;;
20558 pw32*)
20559 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020560 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 +000020561 ;;
20562 esac
20563 ;;
20564
20565 *)
20566 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20567 ;;
20568 esac
20569 dynamic_linker='Win32 ld.exe'
20570 # FIXME: first we should search . and the directory the executable is in
20571 shlibpath_var=PATH
20572 ;;
20573
20574darwin* | rhapsody*)
20575 dynamic_linker="$host_os dyld"
20576 version_type=darwin
20577 need_lib_prefix=no
20578 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020579 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020580 soname_spec='${libname}${release}${major}$shared_ext'
20581 shlibpath_overrides_runpath=yes
20582 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020583 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020584 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020585 if test "$GCC" = yes; then
20586 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"`
20587 else
20588 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020589 fi
20590 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20591 ;;
20592
20593dgux*)
20594 version_type=linux
20595 need_lib_prefix=no
20596 need_version=no
20597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20598 soname_spec='${libname}${release}${shared_ext}$major'
20599 shlibpath_var=LD_LIBRARY_PATH
20600 ;;
20601
20602freebsd1*)
20603 dynamic_linker=no
20604 ;;
20605
Reid Spencer2706f8c2004-09-19 23:53:36 +000020606kfreebsd*-gnu)
20607 version_type=linux
20608 need_lib_prefix=no
20609 need_version=no
20610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20611 soname_spec='${libname}${release}${shared_ext}$major'
20612 shlibpath_var=LD_LIBRARY_PATH
20613 shlibpath_overrides_runpath=no
20614 hardcode_into_libs=yes
20615 dynamic_linker='GNU ld.so'
20616 ;;
20617
Reid Spencera773bd52006-08-04 18:18:08 +000020618freebsd* | dragonfly*)
20619 # DragonFly does not have aout. When/if they implement a new
20620 # versioning mechanism, adjust this.
20621 if test -x /usr/bin/objformat; then
20622 objformat=`/usr/bin/objformat`
20623 else
20624 case $host_os in
20625 freebsd[123]*) objformat=aout ;;
20626 *) objformat=elf ;;
20627 esac
20628 fi
John Criswell47fdd832003-07-14 16:52:07 +000020629 version_type=freebsd-$objformat
20630 case $version_type in
20631 freebsd-elf*)
20632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20633 need_version=no
20634 need_lib_prefix=no
20635 ;;
20636 freebsd-*)
20637 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20638 need_version=yes
20639 ;;
20640 esac
20641 shlibpath_var=LD_LIBRARY_PATH
20642 case $host_os in
20643 freebsd2*)
20644 shlibpath_overrides_runpath=yes
20645 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020646 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020647 shlibpath_overrides_runpath=yes
20648 hardcode_into_libs=yes
20649 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020650 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20651 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020652 shlibpath_overrides_runpath=no
20653 hardcode_into_libs=yes
20654 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020655 freebsd*) # from 4.6 on
20656 shlibpath_overrides_runpath=yes
20657 hardcode_into_libs=yes
20658 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020659 esac
20660 ;;
20661
20662gnu*)
20663 version_type=linux
20664 need_lib_prefix=no
20665 need_version=no
20666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20667 soname_spec='${libname}${release}${shared_ext}$major'
20668 shlibpath_var=LD_LIBRARY_PATH
20669 hardcode_into_libs=yes
20670 ;;
20671
20672hpux9* | hpux10* | hpux11*)
20673 # Give a soname corresponding to the major version so that dld.sl refuses to
20674 # link against other versions.
20675 version_type=sunos
20676 need_lib_prefix=no
20677 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020678 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020679 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020680 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020681 hardcode_into_libs=yes
20682 dynamic_linker="$host_os dld.so"
20683 shlibpath_var=LD_LIBRARY_PATH
20684 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20686 soname_spec='${libname}${release}${shared_ext}$major'
20687 if test "X$HPUX_IA64_MODE" = X32; then
20688 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20689 else
20690 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20691 fi
20692 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20693 ;;
20694 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020695 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020696 hardcode_into_libs=yes
20697 dynamic_linker="$host_os dld.sl"
20698 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20699 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20701 soname_spec='${libname}${release}${shared_ext}$major'
20702 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20703 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20704 ;;
20705 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020706 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020707 dynamic_linker="$host_os dld.sl"
20708 shlibpath_var=SHLIB_PATH
20709 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20711 soname_spec='${libname}${release}${shared_ext}$major'
20712 ;;
20713 esac
20714 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20715 postinstall_cmds='chmod 555 $lib'
20716 ;;
20717
Reid Spencera773bd52006-08-04 18:18:08 +000020718interix3*)
20719 version_type=linux
20720 need_lib_prefix=no
20721 need_version=no
20722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20723 soname_spec='${libname}${release}${shared_ext}$major'
20724 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20725 shlibpath_var=LD_LIBRARY_PATH
20726 shlibpath_overrides_runpath=no
20727 hardcode_into_libs=yes
20728 ;;
20729
John Criswell47fdd832003-07-14 16:52:07 +000020730irix5* | irix6* | nonstopux*)
20731 case $host_os in
20732 nonstopux*) version_type=nonstopux ;;
20733 *)
20734 if test "$lt_cv_prog_gnu_ld" = yes; then
20735 version_type=linux
20736 else
20737 version_type=irix
20738 fi ;;
20739 esac
20740 need_lib_prefix=no
20741 need_version=no
20742 soname_spec='${libname}${release}${shared_ext}$major'
20743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20744 case $host_os in
20745 irix5* | nonstopux*)
20746 libsuff= shlibsuff=
20747 ;;
20748 *)
20749 case $LD in # libtool.m4 will add one of these switches to LD
20750 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20751 libsuff= shlibsuff= libmagic=32-bit;;
20752 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20753 libsuff=32 shlibsuff=N32 libmagic=N32;;
20754 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20755 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20756 *) libsuff= shlibsuff= libmagic=never-match;;
20757 esac
20758 ;;
20759 esac
20760 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20761 shlibpath_overrides_runpath=no
20762 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20763 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20764 hardcode_into_libs=yes
20765 ;;
20766
20767# No shared lib support for Linux oldld, aout, or coff.
20768linux*oldld* | linux*aout* | linux*coff*)
20769 dynamic_linker=no
20770 ;;
20771
20772# This must be Linux ELF.
20773linux*)
20774 version_type=linux
20775 need_lib_prefix=no
20776 need_version=no
20777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20778 soname_spec='${libname}${release}${shared_ext}$major'
20779 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20780 shlibpath_var=LD_LIBRARY_PATH
20781 shlibpath_overrides_runpath=no
20782 # This implies no fast_install, which is unacceptable.
20783 # Some rework will be needed to allow for fast_install
20784 # before this can be enabled.
20785 hardcode_into_libs=yes
20786
Reid Spencer2706f8c2004-09-19 23:53:36 +000020787 # Append ld.so.conf contents to the search path
20788 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020789 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 +000020790 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20791 fi
20792
John Criswell47fdd832003-07-14 16:52:07 +000020793 # We used to test for /lib/ld.so.1 and disable shared libraries on
20794 # powerpc, because MkLinux only supported shared libraries with the
20795 # GNU dynamic linker. Since this was broken with cross compilers,
20796 # most powerpc-linux boxes support dynamic linking these days and
20797 # people can always --disable-shared, the test was removed, and we
20798 # assume the GNU/Linux dynamic linker is in use.
20799 dynamic_linker='GNU/Linux ld.so'
20800 ;;
20801
Reid Spencer2706f8c2004-09-19 23:53:36 +000020802knetbsd*-gnu)
20803 version_type=linux
20804 need_lib_prefix=no
20805 need_version=no
20806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20807 soname_spec='${libname}${release}${shared_ext}$major'
20808 shlibpath_var=LD_LIBRARY_PATH
20809 shlibpath_overrides_runpath=no
20810 hardcode_into_libs=yes
20811 dynamic_linker='GNU ld.so'
20812 ;;
20813
John Criswell47fdd832003-07-14 16:52:07 +000020814netbsd*)
20815 version_type=sunos
20816 need_lib_prefix=no
20817 need_version=no
20818 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20820 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20821 dynamic_linker='NetBSD (a.out) ld.so'
20822 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020824 soname_spec='${libname}${release}${shared_ext}$major'
20825 dynamic_linker='NetBSD ld.elf_so'
20826 fi
20827 shlibpath_var=LD_LIBRARY_PATH
20828 shlibpath_overrides_runpath=yes
20829 hardcode_into_libs=yes
20830 ;;
20831
20832newsos6)
20833 version_type=linux
20834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20835 shlibpath_var=LD_LIBRARY_PATH
20836 shlibpath_overrides_runpath=yes
20837 ;;
20838
Reid Spencer2706f8c2004-09-19 23:53:36 +000020839nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020840 version_type=linux
20841 need_lib_prefix=no
20842 need_version=no
20843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20844 soname_spec='${libname}${release}${shared_ext}$major'
20845 shlibpath_var=LD_LIBRARY_PATH
20846 shlibpath_overrides_runpath=yes
20847 ;;
20848
20849openbsd*)
20850 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020851 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020852 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020853 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20854 case $host_os in
20855 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20856 *) need_version=no ;;
20857 esac
John Criswell47fdd832003-07-14 16:52:07 +000020858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20860 shlibpath_var=LD_LIBRARY_PATH
20861 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20862 case $host_os in
20863 openbsd2.[89] | openbsd2.[89].*)
20864 shlibpath_overrides_runpath=no
20865 ;;
20866 *)
20867 shlibpath_overrides_runpath=yes
20868 ;;
20869 esac
20870 else
20871 shlibpath_overrides_runpath=yes
20872 fi
20873 ;;
20874
20875os2*)
20876 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020877 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020878 need_lib_prefix=no
20879 library_names_spec='$libname${shared_ext} $libname.a'
20880 dynamic_linker='OS/2 ld.exe'
20881 shlibpath_var=LIBPATH
20882 ;;
20883
20884osf3* | osf4* | osf5*)
20885 version_type=osf
20886 need_lib_prefix=no
20887 need_version=no
20888 soname_spec='${libname}${release}${shared_ext}$major'
20889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20890 shlibpath_var=LD_LIBRARY_PATH
20891 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20892 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20893 ;;
20894
John Criswell47fdd832003-07-14 16:52:07 +000020895solaris*)
20896 version_type=linux
20897 need_lib_prefix=no
20898 need_version=no
20899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20900 soname_spec='${libname}${release}${shared_ext}$major'
20901 shlibpath_var=LD_LIBRARY_PATH
20902 shlibpath_overrides_runpath=yes
20903 hardcode_into_libs=yes
20904 # ldd complains unless libraries are executable
20905 postinstall_cmds='chmod +x $lib'
20906 ;;
20907
20908sunos4*)
20909 version_type=sunos
20910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20911 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20912 shlibpath_var=LD_LIBRARY_PATH
20913 shlibpath_overrides_runpath=yes
20914 if test "$with_gnu_ld" = yes; then
20915 need_lib_prefix=no
20916 fi
20917 need_version=yes
20918 ;;
20919
Reid Spencera773bd52006-08-04 18:18:08 +000020920sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020921 version_type=linux
20922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20923 soname_spec='${libname}${release}${shared_ext}$major'
20924 shlibpath_var=LD_LIBRARY_PATH
20925 case $host_vendor in
20926 sni)
20927 shlibpath_overrides_runpath=no
20928 need_lib_prefix=no
20929 export_dynamic_flag_spec='${wl}-Blargedynsym'
20930 runpath_var=LD_RUN_PATH
20931 ;;
20932 siemens)
20933 need_lib_prefix=no
20934 ;;
20935 motorola)
20936 need_lib_prefix=no
20937 need_version=no
20938 shlibpath_overrides_runpath=no
20939 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20940 ;;
20941 esac
20942 ;;
20943
20944sysv4*MP*)
20945 if test -d /usr/nec ;then
20946 version_type=linux
20947 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20948 soname_spec='$libname${shared_ext}.$major'
20949 shlibpath_var=LD_LIBRARY_PATH
20950 fi
20951 ;;
20952
Reid Spencera773bd52006-08-04 18:18:08 +000020953sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20954 version_type=freebsd-elf
20955 need_lib_prefix=no
20956 need_version=no
20957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20958 soname_spec='${libname}${release}${shared_ext}$major'
20959 shlibpath_var=LD_LIBRARY_PATH
20960 hardcode_into_libs=yes
20961 if test "$with_gnu_ld" = yes; then
20962 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20963 shlibpath_overrides_runpath=no
20964 else
20965 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20966 shlibpath_overrides_runpath=yes
20967 case $host_os in
20968 sco3.2v5*)
20969 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20970 ;;
20971 esac
20972 fi
20973 sys_lib_dlsearch_path_spec='/usr/lib'
20974 ;;
20975
John Criswell47fdd832003-07-14 16:52:07 +000020976uts4*)
20977 version_type=linux
20978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20979 soname_spec='${libname}${release}${shared_ext}$major'
20980 shlibpath_var=LD_LIBRARY_PATH
20981 ;;
20982
20983*)
20984 dynamic_linker=no
20985 ;;
20986esac
Reid Spencera773bd52006-08-04 18:18:08 +000020987{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20988echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020989test "$dynamic_linker" = no && can_build_shared=no
20990
Reid Spencera773bd52006-08-04 18:18:08 +000020991variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20992if test "$GCC" = yes; then
20993 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20994fi
20995
20996{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20997echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020998hardcode_action_CXX=
20999if test -n "$hardcode_libdir_flag_spec_CXX" || \
21000 test -n "$runpath_var_CXX" || \
21001 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21002
21003 # We can hardcode non-existant directories.
21004 if test "$hardcode_direct_CXX" != no &&
21005 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21006 # have to relink, otherwise we might link with an installed library
21007 # when we should be linking with a yet-to-be-installed one
21008 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21009 test "$hardcode_minus_L_CXX" != no; then
21010 # Linking always hardcodes the temporary library directory.
21011 hardcode_action_CXX=relink
21012 else
21013 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21014 hardcode_action_CXX=immediate
21015 fi
21016else
21017 # We cannot hardcode anything, or else we can only hardcode existing
21018 # directories.
21019 hardcode_action_CXX=unsupported
21020fi
Reid Spencera773bd52006-08-04 18:18:08 +000021021{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21022echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000021023
21024if test "$hardcode_action_CXX" = relink; then
21025 # Fast installation is not supported
21026 enable_fast_install=no
21027elif test "$shlibpath_overrides_runpath" = yes ||
21028 test "$enable_shared" = no; then
21029 # Fast installation is not necessary
21030 enable_fast_install=needless
21031fi
21032
John Criswell47fdd832003-07-14 16:52:07 +000021033
21034# The else clause should only fire when bootstrapping the
21035# libtool distribution, otherwise you forgot to ship ltmain.sh
21036# with your package, and you will get complaints that there are
21037# no rules to generate ltmain.sh.
21038if test -f "$ltmain"; then
21039 # See if we are running on zsh, and set the options which allow our commands through
21040 # without removal of \ escapes.
21041 if test -n "${ZSH_VERSION+set}" ; then
21042 setopt NO_GLOB_SUBST
21043 fi
21044 # Now quote all the things that may contain metacharacters while being
21045 # careful not to overquote the AC_SUBSTed values. We take copies of the
21046 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000021047 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 +000021048 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000021049 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21050 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21051 deplibs_check_method reload_flag reload_cmds need_locks \
21052 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21053 lt_cv_sys_global_symbol_to_c_name_address \
21054 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21055 old_postinstall_cmds old_postuninstall_cmds \
21056 compiler_CXX \
21057 CC_CXX \
21058 LD_CXX \
21059 lt_prog_compiler_wl_CXX \
21060 lt_prog_compiler_pic_CXX \
21061 lt_prog_compiler_static_CXX \
21062 lt_prog_compiler_no_builtin_flag_CXX \
21063 export_dynamic_flag_spec_CXX \
21064 thread_safe_flag_spec_CXX \
21065 whole_archive_flag_spec_CXX \
21066 enable_shared_with_static_runtimes_CXX \
21067 old_archive_cmds_CXX \
21068 old_archive_from_new_cmds_CXX \
21069 predep_objects_CXX \
21070 postdep_objects_CXX \
21071 predeps_CXX \
21072 postdeps_CXX \
21073 compiler_lib_search_path_CXX \
21074 archive_cmds_CXX \
21075 archive_expsym_cmds_CXX \
21076 postinstall_cmds_CXX \
21077 postuninstall_cmds_CXX \
21078 old_archive_from_expsyms_cmds_CXX \
21079 allow_undefined_flag_CXX \
21080 no_undefined_flag_CXX \
21081 export_symbols_cmds_CXX \
21082 hardcode_libdir_flag_spec_CXX \
21083 hardcode_libdir_flag_spec_ld_CXX \
21084 hardcode_libdir_separator_CXX \
21085 hardcode_automatic_CXX \
21086 module_cmds_CXX \
21087 module_expsym_cmds_CXX \
21088 lt_cv_prog_compiler_c_o_CXX \
21089 exclude_expsyms_CXX \
21090 include_expsyms_CXX; do
21091
21092 case $var in
21093 old_archive_cmds_CXX | \
21094 old_archive_from_new_cmds_CXX | \
21095 archive_cmds_CXX | \
21096 archive_expsym_cmds_CXX | \
21097 module_cmds_CXX | \
21098 module_expsym_cmds_CXX | \
21099 old_archive_from_expsyms_cmds_CXX | \
21100 export_symbols_cmds_CXX | \
21101 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21102 postinstall_cmds | postuninstall_cmds | \
21103 old_postinstall_cmds | old_postuninstall_cmds | \
21104 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21105 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021106 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 +000021107 ;;
21108 *)
21109 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21110 ;;
21111 esac
21112 done
21113
21114 case $lt_echo in
21115 *'\$0 --fallback-echo"')
21116 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21117 ;;
21118 esac
21119
21120cfgfile="$ofile"
21121
21122 cat <<__EOF__ >> "$cfgfile"
21123# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21124
21125# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21126
21127# Shell to use when invoking shell scripts.
21128SHELL=$lt_SHELL
21129
21130# Whether or not to build shared libraries.
21131build_libtool_libs=$enable_shared
21132
21133# Whether or not to build static libraries.
21134build_old_libs=$enable_static
21135
21136# Whether or not to add -lc for building shared libraries.
21137build_libtool_need_lc=$archive_cmds_need_lc_CXX
21138
21139# Whether or not to disallow shared libs when runtime libs are static
21140allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21141
21142# Whether or not to optimize for fast installation.
21143fast_install=$enable_fast_install
21144
21145# The host system.
21146host_alias=$host_alias
21147host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000021148host_os=$host_os
21149
21150# The build system.
21151build_alias=$build_alias
21152build=$build
21153build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000021154
21155# An echo program that does not interpret backslashes.
21156echo=$lt_echo
21157
21158# The archiver.
21159AR=$lt_AR
21160AR_FLAGS=$lt_AR_FLAGS
21161
21162# A C compiler.
21163LTCC=$lt_LTCC
21164
Reid Spencera773bd52006-08-04 18:18:08 +000021165# LTCC compiler flags.
21166LTCFLAGS=$lt_LTCFLAGS
21167
John Criswell47fdd832003-07-14 16:52:07 +000021168# A language-specific compiler.
21169CC=$lt_compiler_CXX
21170
21171# Is the compiler the GNU C compiler?
21172with_gcc=$GCC_CXX
21173
21174# An ERE matcher.
21175EGREP=$lt_EGREP
21176
21177# The linker used to build libraries.
21178LD=$lt_LD_CXX
21179
21180# Whether we need hard or soft links.
21181LN_S=$lt_LN_S
21182
21183# A BSD-compatible nm program.
21184NM=$lt_NM
21185
21186# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000021187STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000021188
21189# Used to examine libraries when file_magic_cmd begins "file"
21190MAGIC_CMD=$MAGIC_CMD
21191
21192# Used on cygwin: DLL creation program.
21193DLLTOOL="$DLLTOOL"
21194
21195# Used on cygwin: object dumper.
21196OBJDUMP="$OBJDUMP"
21197
21198# Used on cygwin: assembler.
21199AS="$AS"
21200
21201# The name of the directory that contains temporary libtool files.
21202objdir=$objdir
21203
21204# How to create reloadable object files.
21205reload_flag=$lt_reload_flag
21206reload_cmds=$lt_reload_cmds
21207
21208# How to pass a linker flag through the compiler.
21209wl=$lt_lt_prog_compiler_wl_CXX
21210
21211# Object file suffix (normally "o").
21212objext="$ac_objext"
21213
21214# Old archive suffix (normally "a").
21215libext="$libext"
21216
21217# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000021218shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000021219
21220# Executable file suffix (normally "").
21221exeext="$exeext"
21222
21223# Additional compiler flags for building library objects.
21224pic_flag=$lt_lt_prog_compiler_pic_CXX
21225pic_mode=$pic_mode
21226
21227# What is the maximum length of a command?
21228max_cmd_len=$lt_cv_sys_max_cmd_len
21229
21230# Does compiler simultaneously support -c and -o options?
21231compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21232
Reid Spencera773bd52006-08-04 18:18:08 +000021233# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000021234need_locks=$lt_need_locks
21235
21236# Do we need the lib prefix for modules?
21237need_lib_prefix=$need_lib_prefix
21238
21239# Do we need a version for libraries?
21240need_version=$need_version
21241
21242# Whether dlopen is supported.
21243dlopen_support=$enable_dlopen
21244
21245# Whether dlopen of programs is supported.
21246dlopen_self=$enable_dlopen_self
21247
21248# Whether dlopen of statically linked programs is supported.
21249dlopen_self_static=$enable_dlopen_self_static
21250
21251# Compiler flag to prevent dynamic linking.
21252link_static_flag=$lt_lt_prog_compiler_static_CXX
21253
21254# Compiler flag to turn off builtin functions.
21255no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21256
21257# Compiler flag to allow reflexive dlopens.
21258export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21259
21260# Compiler flag to generate shared objects directly from archives.
21261whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21262
21263# Compiler flag to generate thread-safe objects.
21264thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21265
21266# Library versioning type.
21267version_type=$version_type
21268
21269# Format of library name prefix.
21270libname_spec=$lt_libname_spec
21271
21272# List of archive names. First name is the real one, the rest are links.
21273# The last name is the one that the linker finds with -lNAME.
21274library_names_spec=$lt_library_names_spec
21275
21276# The coded name of the library, if different from the real name.
21277soname_spec=$lt_soname_spec
21278
21279# Commands used to build and install an old-style archive.
21280RANLIB=$lt_RANLIB
21281old_archive_cmds=$lt_old_archive_cmds_CXX
21282old_postinstall_cmds=$lt_old_postinstall_cmds
21283old_postuninstall_cmds=$lt_old_postuninstall_cmds
21284
21285# Create an old-style archive from a shared archive.
21286old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21287
21288# Create a temporary old-style archive to link instead of a shared archive.
21289old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21290
21291# Commands used to build and install a shared archive.
21292archive_cmds=$lt_archive_cmds_CXX
21293archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21294postinstall_cmds=$lt_postinstall_cmds
21295postuninstall_cmds=$lt_postuninstall_cmds
21296
21297# Commands used to build a loadable module (assumed same as above if empty)
21298module_cmds=$lt_module_cmds_CXX
21299module_expsym_cmds=$lt_module_expsym_cmds_CXX
21300
21301# Commands to strip libraries.
21302old_striplib=$lt_old_striplib
21303striplib=$lt_striplib
21304
21305# Dependencies to place before the objects being linked to create a
21306# shared library.
21307predep_objects=$lt_predep_objects_CXX
21308
21309# Dependencies to place after the objects being linked to create a
21310# shared library.
21311postdep_objects=$lt_postdep_objects_CXX
21312
21313# Dependencies to place before the objects being linked to create a
21314# shared library.
21315predeps=$lt_predeps_CXX
21316
21317# Dependencies to place after the objects being linked to create a
21318# shared library.
21319postdeps=$lt_postdeps_CXX
21320
21321# The library search path used internally by the compiler when linking
21322# a shared library.
21323compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21324
21325# Method to check whether dependent libraries are shared objects.
21326deplibs_check_method=$lt_deplibs_check_method
21327
21328# Command to use when deplibs_check_method == file_magic.
21329file_magic_cmd=$lt_file_magic_cmd
21330
21331# Flag that allows shared libraries with undefined symbols to be built.
21332allow_undefined_flag=$lt_allow_undefined_flag_CXX
21333
21334# Flag that forces no undefined symbols.
21335no_undefined_flag=$lt_no_undefined_flag_CXX
21336
21337# Commands used to finish a libtool library installation in a directory.
21338finish_cmds=$lt_finish_cmds
21339
21340# Same as above, but a single script fragment to be evaled but not shown.
21341finish_eval=$lt_finish_eval
21342
21343# Take the output of nm and produce a listing of raw symbols and C names.
21344global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21345
21346# Transform the output of nm in a proper C declaration
21347global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21348
21349# Transform the output of nm in a C name address pair
21350global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21351
21352# This is the shared library runtime path variable.
21353runpath_var=$runpath_var
21354
21355# This is the shared library path variable.
21356shlibpath_var=$shlibpath_var
21357
21358# Is shlibpath searched before the hard-coded library search path?
21359shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21360
21361# How to hardcode a shared library path into an executable.
21362hardcode_action=$hardcode_action_CXX
21363
21364# Whether we should hardcode library paths into libraries.
21365hardcode_into_libs=$hardcode_into_libs
21366
21367# Flag to hardcode \$libdir into a binary during linking.
21368# This must work even if \$libdir does not exist.
21369hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21370
21371# If ld is used when linking, flag to hardcode \$libdir into
21372# a binary during linking. This must work even if \$libdir does
21373# not exist.
21374hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21375
21376# Whether we need a single -rpath flag with a separated argument.
21377hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21378
21379# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21380# resulting binary.
21381hardcode_direct=$hardcode_direct_CXX
21382
21383# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21384# resulting binary.
21385hardcode_minus_L=$hardcode_minus_L_CXX
21386
21387# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21388# the resulting binary.
21389hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21390
21391# Set to yes if building a shared library automatically hardcodes DIR into the library
21392# and all subsequent libraries and executables linked against it.
21393hardcode_automatic=$hardcode_automatic_CXX
21394
21395# Variables whose values should be saved in libtool wrapper scripts and
21396# restored at relink time.
21397variables_saved_for_relink="$variables_saved_for_relink"
21398
21399# Whether libtool must link a program against all its dependency libraries.
21400link_all_deplibs=$link_all_deplibs_CXX
21401
21402# Compile-time system search path for libraries
21403sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21404
21405# Run-time system search path for libraries
21406sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21407
21408# Fix the shell variable \$srcfile for the compiler.
21409fix_srcfile_path="$fix_srcfile_path_CXX"
21410
21411# Set to yes if exported symbols are required.
21412always_export_symbols=$always_export_symbols_CXX
21413
21414# The commands to list exported symbols.
21415export_symbols_cmds=$lt_export_symbols_cmds_CXX
21416
21417# The commands to extract the exported symbol list from a shared archive.
21418extract_expsyms_cmds=$lt_extract_expsyms_cmds
21419
21420# Symbols that should not be listed in the preloaded symbols.
21421exclude_expsyms=$lt_exclude_expsyms_CXX
21422
21423# Symbols that must always be exported.
21424include_expsyms=$lt_include_expsyms_CXX
21425
21426# ### END LIBTOOL TAG CONFIG: $tagname
21427
21428__EOF__
21429
21430
21431else
21432 # If there is no Makefile yet, we rely on a make rule to execute
21433 # `config.status --recheck' to rerun these tests and create the
21434 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021435 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21436 if test -f "$ltmain_in"; then
21437 test -f Makefile && make "$ltmain"
21438 fi
John Criswell47fdd832003-07-14 16:52:07 +000021439fi
21440
21441
21442ac_ext=c
21443ac_cpp='$CPP $CPPFLAGS'
21444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21446ac_compiler_gnu=$ac_cv_c_compiler_gnu
21447
21448CC=$lt_save_CC
21449LDCXX=$LD
21450LD=$lt_save_LD
21451GCC=$lt_save_GCC
21452with_gnu_ldcxx=$with_gnu_ld
21453with_gnu_ld=$lt_save_with_gnu_ld
21454lt_cv_path_LDCXX=$lt_cv_path_LD
21455lt_cv_path_LD=$lt_save_path_LD
21456lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21457lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21458
21459 else
21460 tagname=""
21461 fi
21462 ;;
21463
21464 F77)
21465 if test -n "$F77" && test "X$F77" != "Xno"; then
21466
21467ac_ext=f
21468ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21469ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21470ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21471
21472
21473archive_cmds_need_lc_F77=no
21474allow_undefined_flag_F77=
21475always_export_symbols_F77=no
21476archive_expsym_cmds_F77=
21477export_dynamic_flag_spec_F77=
21478hardcode_direct_F77=no
21479hardcode_libdir_flag_spec_F77=
21480hardcode_libdir_flag_spec_ld_F77=
21481hardcode_libdir_separator_F77=
21482hardcode_minus_L_F77=no
21483hardcode_automatic_F77=no
21484module_cmds_F77=
21485module_expsym_cmds_F77=
21486link_all_deplibs_F77=unknown
21487old_archive_cmds_F77=$old_archive_cmds
21488no_undefined_flag_F77=
21489whole_archive_flag_spec_F77=
21490enable_shared_with_static_runtimes_F77=no
21491
21492# Source file extension for f77 test sources.
21493ac_ext=f
21494
21495# Object file extension for compiled f77 test sources.
21496objext=o
21497objext_F77=$objext
21498
21499# Code to be used in simple compile tests
21500lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21501
21502# Code to be used in simple link tests
21503lt_simple_link_test_code=" program t\n end\n"
21504
21505# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21506
21507# If no C compiler was specified, use CC.
21508LTCC=${LTCC-"$CC"}
21509
Reid Spencera773bd52006-08-04 18:18:08 +000021510# If no C compiler flags were specified, use CFLAGS.
21511LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21512
John Criswell47fdd832003-07-14 16:52:07 +000021513# Allow CC to be a program name with arguments.
21514compiler=$CC
21515
21516
Reid Spencera773bd52006-08-04 18:18:08 +000021517# save warnings/boilerplate of simple test code
21518ac_outfile=conftest.$ac_objext
21519printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21520eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21521_lt_compiler_boilerplate=`cat conftest.err`
21522$rm conftest*
21523
21524ac_outfile=conftest.$ac_objext
21525printf "$lt_simple_link_test_code" >conftest.$ac_ext
21526eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21527_lt_linker_boilerplate=`cat conftest.err`
21528$rm conftest*
21529
21530
John Criswell47fdd832003-07-14 16:52:07 +000021531# Allow CC to be a program name with arguments.
21532lt_save_CC="$CC"
21533CC=${F77-"f77"}
21534compiler=$CC
21535compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021536for cc_temp in $compiler""; do
21537 case $cc_temp in
21538 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21539 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21540 \-*) ;;
21541 *) break;;
21542 esac
21543done
21544cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021545
John Criswell47fdd832003-07-14 16:52:07 +000021546
Reid Spencera773bd52006-08-04 18:18:08 +000021547{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21548echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21549{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21550echo "${ECHO_T}$can_build_shared" >&6; }
21551
21552{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21553echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021554test "$can_build_shared" = "no" && enable_shared=no
21555
21556# On AIX, shared libraries and static libraries use the same namespace, and
21557# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021558case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021559aix3*)
21560 test "$enable_shared" = yes && enable_static=no
21561 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021562 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021563 postinstall_cmds='$RANLIB $lib'
21564 fi
21565 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021566aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021567 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21568 test "$enable_shared" = yes && enable_static=no
21569 fi
John Criswell47fdd832003-07-14 16:52:07 +000021570 ;;
21571esac
Reid Spencera773bd52006-08-04 18:18:08 +000021572{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21573echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021574
Reid Spencera773bd52006-08-04 18:18:08 +000021575{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21576echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021577# Make sure either enable_shared or enable_static is yes.
21578test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021579{ echo "$as_me:$LINENO: result: $enable_static" >&5
21580echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021581
21582GCC_F77="$G77"
21583LD_F77="$LD"
21584
21585lt_prog_compiler_wl_F77=
21586lt_prog_compiler_pic_F77=
21587lt_prog_compiler_static_F77=
21588
Reid Spencera773bd52006-08-04 18:18:08 +000021589{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21590echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021591
21592 if test "$GCC" = yes; then
21593 lt_prog_compiler_wl_F77='-Wl,'
21594 lt_prog_compiler_static_F77='-static'
21595
21596 case $host_os in
21597 aix*)
21598 # All AIX code is PIC.
21599 if test "$host_cpu" = ia64; then
21600 # AIX 5 now supports IA64 processor
21601 lt_prog_compiler_static_F77='-Bstatic'
21602 fi
21603 ;;
21604
21605 amigaos*)
21606 # FIXME: we need at least 68020 code to build shared libraries, but
21607 # adding the `-m68020' flag to GCC prevents building anything better,
21608 # like `-m68040'.
21609 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21610 ;;
21611
21612 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21613 # PIC is the default for these OSes.
21614 ;;
21615
21616 mingw* | pw32* | os2*)
21617 # This hack is so that the source file can tell whether it is being
21618 # built for inclusion in a dll (and should export symbols for example).
21619 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21620 ;;
21621
21622 darwin* | rhapsody*)
21623 # PIC is the default on this platform
21624 # Common symbols not allowed in MH_DYLIB files
21625 lt_prog_compiler_pic_F77='-fno-common'
21626 ;;
21627
Reid Spencera773bd52006-08-04 18:18:08 +000021628 interix3*)
21629 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21630 # Instead, we relocate shared libraries at runtime.
21631 ;;
21632
John Criswell47fdd832003-07-14 16:52:07 +000021633 msdosdjgpp*)
21634 # Just because we use GCC doesn't mean we suddenly get shared libraries
21635 # on systems that don't support them.
21636 lt_prog_compiler_can_build_shared_F77=no
21637 enable_shared=no
21638 ;;
21639
21640 sysv4*MP*)
21641 if test -d /usr/nec; then
21642 lt_prog_compiler_pic_F77=-Kconform_pic
21643 fi
21644 ;;
21645
21646 hpux*)
21647 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21648 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021649 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021650 hppa*64*|ia64*)
21651 # +Z the default
21652 ;;
21653 *)
21654 lt_prog_compiler_pic_F77='-fPIC'
21655 ;;
21656 esac
21657 ;;
21658
21659 *)
21660 lt_prog_compiler_pic_F77='-fPIC'
21661 ;;
21662 esac
21663 else
21664 # PORTME Check for flag to pass linker flags through the system compiler.
21665 case $host_os in
21666 aix*)
21667 lt_prog_compiler_wl_F77='-Wl,'
21668 if test "$host_cpu" = ia64; then
21669 # AIX 5 now supports IA64 processor
21670 lt_prog_compiler_static_F77='-Bstatic'
21671 else
21672 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21673 fi
21674 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021675 darwin*)
21676 # PIC is the default on this platform
21677 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021678 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021679 xlc*)
21680 lt_prog_compiler_pic_F77='-qnocommon'
21681 lt_prog_compiler_wl_F77='-Wl,'
21682 ;;
21683 esac
21684 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021685
21686 mingw* | pw32* | os2*)
21687 # This hack is so that the source file can tell whether it is being
21688 # built for inclusion in a dll (and should export symbols for example).
21689 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21690 ;;
21691
21692 hpux9* | hpux10* | hpux11*)
21693 lt_prog_compiler_wl_F77='-Wl,'
21694 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21695 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021696 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021697 hppa*64*|ia64*)
21698 # +Z the default
21699 ;;
21700 *)
21701 lt_prog_compiler_pic_F77='+Z'
21702 ;;
21703 esac
21704 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21705 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21706 ;;
21707
21708 irix5* | irix6* | nonstopux*)
21709 lt_prog_compiler_wl_F77='-Wl,'
21710 # PIC (with -KPIC) is the default.
21711 lt_prog_compiler_static_F77='-non_shared'
21712 ;;
21713
21714 newsos6)
21715 lt_prog_compiler_pic_F77='-KPIC'
21716 lt_prog_compiler_static_F77='-Bstatic'
21717 ;;
21718
21719 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021720 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021721 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021722 lt_prog_compiler_wl_F77='-Wl,'
21723 lt_prog_compiler_pic_F77='-KPIC'
21724 lt_prog_compiler_static_F77='-static'
21725 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021726 pgcc* | pgf77* | pgf90* | pgf95*)
21727 # Portland Group compilers (*not* the Pentium gcc compiler,
21728 # which looks to be a dead project)
21729 lt_prog_compiler_wl_F77='-Wl,'
21730 lt_prog_compiler_pic_F77='-fpic'
21731 lt_prog_compiler_static_F77='-Bstatic'
21732 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021733 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021734 lt_prog_compiler_wl_F77='-Wl,'
21735 # All Alpha code is PIC.
21736 lt_prog_compiler_static_F77='-non_shared'
21737 ;;
21738 esac
21739 ;;
21740
21741 osf3* | osf4* | osf5*)
21742 lt_prog_compiler_wl_F77='-Wl,'
21743 # All OSF/1 code is PIC.
21744 lt_prog_compiler_static_F77='-non_shared'
21745 ;;
21746
John Criswell47fdd832003-07-14 16:52:07 +000021747 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021748 lt_prog_compiler_pic_F77='-KPIC'
21749 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021750 case $cc_basename in
21751 f77* | f90* | f95*)
21752 lt_prog_compiler_wl_F77='-Qoption ld ';;
21753 *)
21754 lt_prog_compiler_wl_F77='-Wl,';;
21755 esac
John Criswell47fdd832003-07-14 16:52:07 +000021756 ;;
21757
21758 sunos4*)
21759 lt_prog_compiler_wl_F77='-Qoption ld '
21760 lt_prog_compiler_pic_F77='-PIC'
21761 lt_prog_compiler_static_F77='-Bstatic'
21762 ;;
21763
Reid Spencera773bd52006-08-04 18:18:08 +000021764 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021765 lt_prog_compiler_wl_F77='-Wl,'
21766 lt_prog_compiler_pic_F77='-KPIC'
21767 lt_prog_compiler_static_F77='-Bstatic'
21768 ;;
21769
21770 sysv4*MP*)
21771 if test -d /usr/nec ;then
21772 lt_prog_compiler_pic_F77='-Kconform_pic'
21773 lt_prog_compiler_static_F77='-Bstatic'
21774 fi
21775 ;;
21776
Reid Spencera773bd52006-08-04 18:18:08 +000021777 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21778 lt_prog_compiler_wl_F77='-Wl,'
21779 lt_prog_compiler_pic_F77='-KPIC'
21780 lt_prog_compiler_static_F77='-Bstatic'
21781 ;;
21782
21783 unicos*)
21784 lt_prog_compiler_wl_F77='-Wl,'
21785 lt_prog_compiler_can_build_shared_F77=no
21786 ;;
21787
John Criswell47fdd832003-07-14 16:52:07 +000021788 uts4*)
21789 lt_prog_compiler_pic_F77='-pic'
21790 lt_prog_compiler_static_F77='-Bstatic'
21791 ;;
21792
21793 *)
21794 lt_prog_compiler_can_build_shared_F77=no
21795 ;;
21796 esac
21797 fi
21798
Reid Spencera773bd52006-08-04 18:18:08 +000021799{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21800echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021801
21802#
21803# Check to make sure the PIC flag actually works.
21804#
21805if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021806
Reid Spencera773bd52006-08-04 18:18:08 +000021807{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21808echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021809if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21810 echo $ECHO_N "(cached) $ECHO_C" >&6
21811else
21812 lt_prog_compiler_pic_works_F77=no
21813 ac_outfile=conftest.$ac_objext
21814 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21815 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21816 # Insert the option either (1) after the last *FLAGS variable, or
21817 # (2) before a word containing "conftest.", or (3) at the end.
21818 # Note that $ac_compile itself does not contain backslashes and begins
21819 # with a dollar sign (not a hyphen), so the echo should work correctly.
21820 # The option is referenced via a variable to avoid confusing sed.
21821 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021822 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021823 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21824 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000021825 (eval echo "\"\$as_me:21825: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021826 (eval "$lt_compile" 2>conftest.err)
21827 ac_status=$?
21828 cat conftest.err >&5
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000021829 echo "$as_me:21829: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021830 if (exit $ac_status) && test -s "$ac_outfile"; then
21831 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021832 # So say no if there are warnings other than the usual output.
21833 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21834 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21835 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021836 lt_prog_compiler_pic_works_F77=yes
21837 fi
21838 fi
21839 $rm conftest*
21840
21841fi
Reid Spencera773bd52006-08-04 18:18:08 +000021842{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21843echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021844
21845if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21846 case $lt_prog_compiler_pic_F77 in
21847 "" | " "*) ;;
21848 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21849 esac
21850else
21851 lt_prog_compiler_pic_F77=
21852 lt_prog_compiler_can_build_shared_F77=no
21853fi
21854
21855fi
Reid Spencera773bd52006-08-04 18:18:08 +000021856case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021857 # For platforms which do not support PIC, -DPIC is meaningless:
21858 *djgpp*)
21859 lt_prog_compiler_pic_F77=
21860 ;;
21861 *)
21862 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21863 ;;
21864esac
21865
Reid Spencera773bd52006-08-04 18:18:08 +000021866#
21867# Check to make sure the static flag actually works.
21868#
21869wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21870{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21871echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21872if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21873 echo $ECHO_N "(cached) $ECHO_C" >&6
21874else
21875 lt_prog_compiler_static_works_F77=no
21876 save_LDFLAGS="$LDFLAGS"
21877 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21878 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21879 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21880 # The linker can only warn and ignore the option if not recognized
21881 # So say no if there are warnings
21882 if test -s conftest.err; then
21883 # Append any errors to the config.log.
21884 cat conftest.err 1>&5
21885 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21886 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21887 if diff conftest.exp conftest.er2 >/dev/null; then
21888 lt_prog_compiler_static_works_F77=yes
21889 fi
21890 else
21891 lt_prog_compiler_static_works_F77=yes
21892 fi
21893 fi
21894 $rm conftest*
21895 LDFLAGS="$save_LDFLAGS"
21896
21897fi
21898{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21899echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21900
21901if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21902 :
21903else
21904 lt_prog_compiler_static_F77=
21905fi
21906
21907
21908{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21909echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021910if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21911 echo $ECHO_N "(cached) $ECHO_C" >&6
21912else
21913 lt_cv_prog_compiler_c_o_F77=no
21914 $rm -r conftest 2>/dev/null
21915 mkdir conftest
21916 cd conftest
21917 mkdir out
21918 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21919
John Criswell47fdd832003-07-14 16:52:07 +000021920 lt_compiler_flag="-o out/conftest2.$ac_objext"
21921 # Insert the option either (1) after the last *FLAGS variable, or
21922 # (2) before a word containing "conftest.", or (3) at the end.
21923 # Note that $ac_compile itself does not contain backslashes and begins
21924 # with a dollar sign (not a hyphen), so the echo should work correctly.
21925 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021926 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021927 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21928 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000021929 (eval echo "\"\$as_me:21929: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021930 (eval "$lt_compile" 2>out/conftest.err)
21931 ac_status=$?
21932 cat out/conftest.err >&5
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000021933 echo "$as_me:21933: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021934 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21935 then
21936 # The compiler can only warn and ignore the option if not recognized
21937 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021938 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21939 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21940 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021941 lt_cv_prog_compiler_c_o_F77=yes
21942 fi
21943 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021944 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021945 $rm conftest*
21946 # SGI C++ compiler will create directory out/ii_files/ for
21947 # template instantiation
21948 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21949 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021950 cd ..
21951 rmdir conftest
21952 $rm conftest*
21953
21954fi
Reid Spencera773bd52006-08-04 18:18:08 +000021955{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21956echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021957
21958
21959hard_links="nottested"
21960if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21961 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021962 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21963echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021964 hard_links=yes
21965 $rm conftest*
21966 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21967 touch conftest.a
21968 ln conftest.a conftest.b 2>&5 || hard_links=no
21969 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021970 { echo "$as_me:$LINENO: result: $hard_links" >&5
21971echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021972 if test "$hard_links" = no; then
21973 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21974echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21975 need_locks=warn
21976 fi
21977else
21978 need_locks=no
21979fi
21980
Reid Spencera773bd52006-08-04 18:18:08 +000021981{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21982echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021983
21984 runpath_var=
21985 allow_undefined_flag_F77=
21986 enable_shared_with_static_runtimes_F77=no
21987 archive_cmds_F77=
21988 archive_expsym_cmds_F77=
21989 old_archive_From_new_cmds_F77=
21990 old_archive_from_expsyms_cmds_F77=
21991 export_dynamic_flag_spec_F77=
21992 whole_archive_flag_spec_F77=
21993 thread_safe_flag_spec_F77=
21994 hardcode_libdir_flag_spec_F77=
21995 hardcode_libdir_flag_spec_ld_F77=
21996 hardcode_libdir_separator_F77=
21997 hardcode_direct_F77=no
21998 hardcode_minus_L_F77=no
21999 hardcode_shlibpath_var_F77=unsupported
22000 link_all_deplibs_F77=unknown
22001 hardcode_automatic_F77=no
22002 module_cmds_F77=
22003 module_expsym_cmds_F77=
22004 always_export_symbols_F77=no
22005 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22006 # include_expsyms should be a list of space-separated symbols to be *always*
22007 # included in the symbol list
22008 include_expsyms_F77=
22009 # exclude_expsyms can be an extended regexp of symbols to exclude
22010 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22011 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22012 # as well as any symbol that contains `d'.
22013 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
22014 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22015 # platforms (ab)use it in PIC code, but their linkers get confused if
22016 # the symbol is explicitly referenced. Since portable code cannot
22017 # rely on this symbol name, it's probably fine to never include it in
22018 # preloaded symbol tables.
22019 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000022020 # Just being paranoid about ensuring that cc_basename is set.
22021 for cc_temp in $compiler""; do
22022 case $cc_temp in
22023 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22024 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22025 \-*) ;;
22026 *) break;;
22027 esac
22028done
22029cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000022030
22031 case $host_os in
22032 cygwin* | mingw* | pw32*)
22033 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22034 # When not using gcc, we currently assume that we are using
22035 # Microsoft Visual C++.
22036 if test "$GCC" != yes; then
22037 with_gnu_ld=no
22038 fi
22039 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022040 interix*)
22041 # we just hope/assume this is gcc and not c89 (= MSVC++)
22042 with_gnu_ld=yes
22043 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022044 openbsd*)
22045 with_gnu_ld=no
22046 ;;
22047 esac
22048
22049 ld_shlibs_F77=yes
22050 if test "$with_gnu_ld" = yes; then
22051 # If archive_cmds runs LD, not CC, wlarc should be empty
22052 wlarc='${wl}'
22053
Reid Spencera773bd52006-08-04 18:18:08 +000022054 # Set some defaults for GNU ld with shared library support. These
22055 # are reset later if shared libraries are not supported. Putting them
22056 # here allows them to be overridden if necessary.
22057 runpath_var=LD_RUN_PATH
22058 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22059 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22060 # ancient GNU ld didn't support --whole-archive et. al.
22061 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22062 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22063 else
22064 whole_archive_flag_spec_F77=
22065 fi
22066 supports_anon_versioning=no
22067 case `$LD -v 2>/dev/null` in
22068 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22069 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22070 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22071 *\ 2.11.*) ;; # other 2.11 versions
22072 *) supports_anon_versioning=yes ;;
22073 esac
22074
John Criswell47fdd832003-07-14 16:52:07 +000022075 # See if GNU ld supports shared libraries.
22076 case $host_os in
22077 aix3* | aix4* | aix5*)
22078 # On AIX/PPC, the GNU linker is very broken
22079 if test "$host_cpu" != ia64; then
22080 ld_shlibs_F77=no
22081 cat <<EOF 1>&2
22082
22083*** Warning: the GNU linker, at least up to release 2.9.1, is reported
22084*** to be unable to reliably create shared libraries on AIX.
22085*** Therefore, libtool is disabling shared libraries support. If you
22086*** really care for shared libraries, you may want to modify your PATH
22087*** so that a non-GNU linker is found, and then restart.
22088
22089EOF
22090 fi
22091 ;;
22092
22093 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022094 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 +000022095 hardcode_libdir_flag_spec_F77='-L$libdir'
22096 hardcode_minus_L_F77=yes
22097
22098 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22099 # that the semantics of dynamic libraries on AmigaOS, at least up
22100 # to version 4, is to share data among multiple programs linked
22101 # with the same dynamic library. Since this doesn't match the
22102 # behavior of shared libraries on other platforms, we can't use
22103 # them.
22104 ld_shlibs_F77=no
22105 ;;
22106
22107 beos*)
22108 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22109 allow_undefined_flag_F77=unsupported
22110 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22111 # support --undefined. This deserves some investigation. FIXME
22112 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22113 else
22114 ld_shlibs_F77=no
22115 fi
22116 ;;
22117
22118 cygwin* | mingw* | pw32*)
22119 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22120 # as there is no search path for DLLs.
22121 hardcode_libdir_flag_spec_F77='-L$libdir'
22122 allow_undefined_flag_F77=unsupported
22123 always_export_symbols_F77=no
22124 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022125 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 +000022126
22127 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000022128 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 +000022129 # If the export-symbols file already is a .def file (1st line
22130 # is EXPORTS), use it as is; otherwise, prepend...
22131 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22132 cp $export_symbols $output_objdir/$soname.def;
22133 else
22134 echo EXPORTS > $output_objdir/$soname.def;
22135 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000022136 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000022137 $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 +000022138 else
Reid Spencera773bd52006-08-04 18:18:08 +000022139 ld_shlibs_F77=no
22140 fi
22141 ;;
22142
22143 interix3*)
22144 hardcode_direct_F77=no
22145 hardcode_shlibpath_var_F77=no
22146 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22147 export_dynamic_flag_spec_F77='${wl}-E'
22148 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22149 # Instead, shared libraries are loaded at an image base (0x10000000 by
22150 # default) and relocated if they conflict, which is a slow very memory
22151 # consuming and fragmenting process. To avoid this, we pick a random,
22152 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22153 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22154 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'
22155 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'
22156 ;;
22157
22158 linux*)
22159 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22160 tmp_addflag=
22161 case $cc_basename,$host_cpu in
22162 pgcc*) # Portland Group C compiler
22163 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'
22164 tmp_addflag=' $pic_flag'
22165 ;;
22166 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22167 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'
22168 tmp_addflag=' $pic_flag -Mnomain' ;;
22169 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22170 tmp_addflag=' -i_dynamic' ;;
22171 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22172 tmp_addflag=' -i_dynamic -nofor_main' ;;
22173 ifc* | ifort*) # Intel Fortran compiler
22174 tmp_addflag=' -nofor_main' ;;
22175 esac
22176 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22177
22178 if test $supports_anon_versioning = yes; then
22179 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22180 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22181 $echo "local: *; };" >> $output_objdir/$libname.ver~
22182 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22183 fi
22184 else
22185 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022186 fi
22187 ;;
22188
22189 netbsd*)
22190 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22191 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22192 wlarc=
22193 else
22194 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22195 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22196 fi
22197 ;;
22198
Reid Spencera773bd52006-08-04 18:18:08 +000022199 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000022200 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22201 ld_shlibs_F77=no
22202 cat <<EOF 1>&2
22203
22204*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22205*** create shared libraries on Solaris systems. Therefore, libtool
22206*** is disabling shared libraries support. We urge you to upgrade GNU
22207*** binutils to release 2.9.1 or newer. Another option is to modify
22208*** your PATH or compiler configuration so that the native linker is
22209*** used, and then restart.
22210
22211EOF
22212 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22213 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22214 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22215 else
22216 ld_shlibs_F77=no
22217 fi
22218 ;;
22219
Reid Spencera773bd52006-08-04 18:18:08 +000022220 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22221 case `$LD -v 2>&1` in
22222 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22223 ld_shlibs_F77=no
22224 cat <<_LT_EOF 1>&2
22225
22226*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22227*** reliably create shared libraries on SCO systems. Therefore, libtool
22228*** is disabling shared libraries support. We urge you to upgrade GNU
22229*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22230*** your PATH or compiler configuration so that the native linker is
22231*** used, and then restart.
22232
22233_LT_EOF
22234 ;;
22235 *)
22236 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22237 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22238 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22239 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22240 else
22241 ld_shlibs_F77=no
22242 fi
22243 ;;
22244 esac
22245 ;;
22246
John Criswell47fdd832003-07-14 16:52:07 +000022247 sunos4*)
22248 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22249 wlarc=
22250 hardcode_direct_F77=yes
22251 hardcode_shlibpath_var_F77=no
22252 ;;
22253
22254 *)
22255 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22256 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22257 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22258 else
22259 ld_shlibs_F77=no
22260 fi
22261 ;;
22262 esac
22263
Reid Spencera773bd52006-08-04 18:18:08 +000022264 if test "$ld_shlibs_F77" = no; then
22265 runpath_var=
22266 hardcode_libdir_flag_spec_F77=
22267 export_dynamic_flag_spec_F77=
22268 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000022269 fi
22270 else
22271 # PORTME fill in a description of your system's linker (not GNU ld)
22272 case $host_os in
22273 aix3*)
22274 allow_undefined_flag_F77=unsupported
22275 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000022276 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 +000022277 # Note: this linker hardcodes the directories in LIBPATH if there
22278 # are no directories specified by -L.
22279 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022280 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000022281 # Neither direct hardcoding nor static linking is supported with a
22282 # broken collect2.
22283 hardcode_direct_F77=unsupported
22284 fi
22285 ;;
22286
22287 aix4* | aix5*)
22288 if test "$host_cpu" = ia64; then
22289 # On IA64, the linker does run time linking by default, so we don't
22290 # have to do anything special.
22291 aix_use_runtimelinking=no
22292 exp_sym_flag='-Bexport'
22293 no_entry_flag=""
22294 else
22295 # If we're using GNU nm, then we don't want the "-C" option.
22296 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22297 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22298 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'
22299 else
22300 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'
22301 fi
22302 aix_use_runtimelinking=no
22303
22304 # Test if we are trying to use run time linking or normal
22305 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22306 # need to do runtime linking.
22307 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22308 for ld_flag in $LDFLAGS; do
22309 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22310 aix_use_runtimelinking=yes
22311 break
22312 fi
22313 done
Reid Spencera773bd52006-08-04 18:18:08 +000022314 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022315 esac
22316
22317 exp_sym_flag='-bexport'
22318 no_entry_flag='-bnoentry'
22319 fi
22320
22321 # When large executables or shared objects are built, AIX ld can
22322 # have problems creating the table of contents. If linking a library
22323 # or program results in "error TOC overflow" add -mminimal-toc to
22324 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22325 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22326
22327 archive_cmds_F77=''
22328 hardcode_direct_F77=yes
22329 hardcode_libdir_separator_F77=':'
22330 link_all_deplibs_F77=yes
22331
22332 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022333 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000022334 # We only want to do this on AIX 4.2 and lower, the check
22335 # below for broken collect2 doesn't work under 4.3+
22336 collect2name=`${CC} -print-prog-name=collect2`
22337 if test -f "$collect2name" && \
22338 strings "$collect2name" | grep resolve_lib_name >/dev/null
22339 then
22340 # We have reworked collect2
22341 hardcode_direct_F77=yes
22342 else
22343 # We have old collect2
22344 hardcode_direct_F77=unsupported
22345 # It fails to find uninstalled libraries when the uninstalled
22346 # path is not listed in the libpath. Setting hardcode_minus_L
22347 # to unsupported forces relinking
22348 hardcode_minus_L_F77=yes
22349 hardcode_libdir_flag_spec_F77='-L$libdir'
22350 hardcode_libdir_separator_F77=
22351 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022352 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022353 esac
22354 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000022355 if test "$aix_use_runtimelinking" = yes; then
22356 shared_flag="$shared_flag "'${wl}-G'
22357 fi
John Criswell47fdd832003-07-14 16:52:07 +000022358 else
22359 # not using gcc
22360 if test "$host_cpu" = ia64; then
22361 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22362 # chokes on -Wl,-G. The following line is correct:
22363 shared_flag='-G'
22364 else
Reid Spencera773bd52006-08-04 18:18:08 +000022365 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000022366 shared_flag='${wl}-G'
22367 else
22368 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000022369 fi
John Criswell47fdd832003-07-14 16:52:07 +000022370 fi
22371 fi
22372
22373 # It seems that -bexpall does not export symbols beginning with
22374 # underscore (_), so it is better to generate a list of symbols to export.
22375 always_export_symbols_F77=yes
22376 if test "$aix_use_runtimelinking" = yes; then
22377 # Warning - without using the other runtime loading flags (-brtl),
22378 # -berok will link without error, but may produce a broken library.
22379 allow_undefined_flag_F77='-berok'
22380 # Determine the default libpath from the value encoded in an empty executable.
22381 cat >conftest.$ac_ext <<_ACEOF
22382 program main
22383
22384 end
22385_ACEOF
22386rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022387if { (ac_try="$ac_link"
22388case "(($ac_try" in
22389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22390 *) ac_try_echo=$ac_try;;
22391esac
22392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22393 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022394 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022395 grep -v '^ *+' conftest.er1 >conftest.err
22396 rm -f conftest.er1
22397 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022399 (exit $ac_status); } &&
22400 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22401 { (case "(($ac_try" in
22402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22403 *) ac_try_echo=$ac_try;;
22404esac
22405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22406 (eval "$ac_try") 2>&5
22407 ac_status=$?
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); }; } &&
22410 { ac_try='test -s conftest$ac_exeext'
22411 { (case "(($ac_try" in
22412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22413 *) ac_try_echo=$ac_try;;
22414esac
22415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22416 (eval "$ac_try") 2>&5
22417 ac_status=$?
22418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022420
22421aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22422}'`
22423# Check for a 64-bit object if we didn't find anything.
22424if 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; }
22425}'`; fi
22426else
22427 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022428sed 's/^/| /' conftest.$ac_ext >&5
22429
Reid Spencera773bd52006-08-04 18:18:08 +000022430
John Criswell47fdd832003-07-14 16:52:07 +000022431fi
Reid Spencera773bd52006-08-04 18:18:08 +000022432
Bill Wendlingebcceee2009-04-18 11:20:33 +000022433rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022434 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022435if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22436
22437 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022438 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 +000022439 else
22440 if test "$host_cpu" = ia64; then
22441 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22442 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022443 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 +000022444 else
22445 # Determine the default libpath from the value encoded in an empty executable.
22446 cat >conftest.$ac_ext <<_ACEOF
22447 program main
22448
22449 end
22450_ACEOF
22451rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022452if { (ac_try="$ac_link"
22453case "(($ac_try" in
22454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22455 *) ac_try_echo=$ac_try;;
22456esac
22457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22458 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022459 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022460 grep -v '^ *+' conftest.er1 >conftest.err
22461 rm -f conftest.er1
22462 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022464 (exit $ac_status); } &&
22465 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22466 { (case "(($ac_try" in
22467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22468 *) ac_try_echo=$ac_try;;
22469esac
22470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22471 (eval "$ac_try") 2>&5
22472 ac_status=$?
22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); }; } &&
22475 { ac_try='test -s conftest$ac_exeext'
22476 { (case "(($ac_try" in
22477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22478 *) ac_try_echo=$ac_try;;
22479esac
22480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22481 (eval "$ac_try") 2>&5
22482 ac_status=$?
22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022485
22486aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22487}'`
22488# Check for a 64-bit object if we didn't find anything.
22489if 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; }
22490}'`; fi
22491else
22492 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022493sed 's/^/| /' conftest.$ac_ext >&5
22494
Reid Spencera773bd52006-08-04 18:18:08 +000022495
John Criswell47fdd832003-07-14 16:52:07 +000022496fi
Reid Spencera773bd52006-08-04 18:18:08 +000022497
Bill Wendlingebcceee2009-04-18 11:20:33 +000022498rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022499 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022500if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22501
22502 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22503 # Warning - without using the other run time loading flags,
22504 # -berok will link without error, but may produce a broken library.
22505 no_undefined_flag_F77=' ${wl}-bernotok'
22506 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022507 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022508 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022509 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022510 # This is similar to how AIX traditionally builds its shared libraries.
22511 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 +000022512 fi
22513 fi
22514 ;;
22515
22516 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022517 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 +000022518 hardcode_libdir_flag_spec_F77='-L$libdir'
22519 hardcode_minus_L_F77=yes
22520 # see comment about different semantics on the GNU ld section
22521 ld_shlibs_F77=no
22522 ;;
22523
Reid Spencer2706f8c2004-09-19 23:53:36 +000022524 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022525 export_dynamic_flag_spec_F77=-rdynamic
22526 ;;
22527
22528 cygwin* | mingw* | pw32*)
22529 # When not using gcc, we currently assume that we are using
22530 # Microsoft Visual C++.
22531 # hardcode_libdir_flag_spec is actually meaningless, as there is
22532 # no search path for DLLs.
22533 hardcode_libdir_flag_spec_F77=' '
22534 allow_undefined_flag_F77=unsupported
22535 # Tell ltmain to make .lib files, not .a files.
22536 libext=lib
22537 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022538 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022539 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022540 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 +000022541 # The linker will automatically build a .lib file if we build a DLL.
22542 old_archive_From_new_cmds_F77='true'
22543 # FIXME: Should let the user specify the lib program.
22544 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022545 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022546 enable_shared_with_static_runtimes_F77=yes
22547 ;;
22548
22549 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022550 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022551 rhapsody* | darwin1.[012])
22552 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22553 ;;
22554 *) # Darwin 1.3 on
22555 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22556 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22557 else
22558 case ${MACOSX_DEPLOYMENT_TARGET} in
22559 10.[012])
22560 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22561 ;;
22562 10.*)
22563 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22564 ;;
22565 esac
22566 fi
22567 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022568 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022569 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022570 hardcode_direct_F77=no
22571 hardcode_automatic_F77=yes
22572 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022573 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022574 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022575 if test "$GCC" = yes ; then
22576 output_verbose_link_cmd='echo'
22577 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22578 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022579 # 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 +000022580 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}'
22581 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 +000022582 else
Reid Spencera773bd52006-08-04 18:18:08 +000022583 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022584 xlc*)
22585 output_verbose_link_cmd='echo'
22586 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22587 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022588 # 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 +000022589 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}'
22590 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 +000022591 ;;
22592 *)
22593 ld_shlibs_F77=no
22594 ;;
22595 esac
John Criswell47fdd832003-07-14 16:52:07 +000022596 fi
22597 ;;
22598
22599 dgux*)
22600 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22601 hardcode_libdir_flag_spec_F77='-L$libdir'
22602 hardcode_shlibpath_var_F77=no
22603 ;;
22604
22605 freebsd1*)
22606 ld_shlibs_F77=no
22607 ;;
22608
22609 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22610 # support. Future versions do this automatically, but an explicit c++rt0.o
22611 # does not break anything, and helps significantly (at the cost of a little
22612 # extra space).
22613 freebsd2.2*)
22614 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22615 hardcode_libdir_flag_spec_F77='-R$libdir'
22616 hardcode_direct_F77=yes
22617 hardcode_shlibpath_var_F77=no
22618 ;;
22619
22620 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22621 freebsd2*)
22622 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22623 hardcode_direct_F77=yes
22624 hardcode_minus_L_F77=yes
22625 hardcode_shlibpath_var_F77=no
22626 ;;
22627
22628 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022629 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022630 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22631 hardcode_libdir_flag_spec_F77='-R$libdir'
22632 hardcode_direct_F77=yes
22633 hardcode_shlibpath_var_F77=no
22634 ;;
22635
22636 hpux9*)
22637 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022638 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 +000022639 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022640 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 +000022641 fi
22642 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22643 hardcode_libdir_separator_F77=:
22644 hardcode_direct_F77=yes
22645
22646 # hardcode_minus_L: Not really in the search PATH,
22647 # but as the default location of the library.
22648 hardcode_minus_L_F77=yes
22649 export_dynamic_flag_spec_F77='${wl}-E'
22650 ;;
22651
Reid Spencera773bd52006-08-04 18:18:08 +000022652 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022653 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022654 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22655 else
22656 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22657 fi
22658 if test "$with_gnu_ld" = no; then
22659 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22660 hardcode_libdir_separator_F77=:
22661
22662 hardcode_direct_F77=yes
22663 export_dynamic_flag_spec_F77='${wl}-E'
22664
22665 # hardcode_minus_L: Not really in the search PATH,
22666 # but as the default location of the library.
22667 hardcode_minus_L_F77=yes
22668 fi
22669 ;;
22670
22671 hpux11*)
22672 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22673 case $host_cpu in
22674 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022675 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22676 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022677 ia64*)
22678 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22679 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022680 *)
22681 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22682 ;;
22683 esac
22684 else
Reid Spencera773bd52006-08-04 18:18:08 +000022685 case $host_cpu in
22686 hppa*64*)
22687 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22688 ;;
22689 ia64*)
22690 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022691 ;;
22692 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022693 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 +000022694 ;;
22695 esac
22696 fi
22697 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022698 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22699 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022700
Reid Spencera773bd52006-08-04 18:18:08 +000022701 case $host_cpu in
22702 hppa*64*|ia64*)
22703 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22704 hardcode_direct_F77=no
22705 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022706 ;;
22707 *)
John Criswell47fdd832003-07-14 16:52:07 +000022708 hardcode_direct_F77=yes
22709 export_dynamic_flag_spec_F77='${wl}-E'
22710
22711 # hardcode_minus_L: Not really in the search PATH,
22712 # but as the default location of the library.
22713 hardcode_minus_L_F77=yes
22714 ;;
22715 esac
22716 fi
22717 ;;
22718
22719 irix5* | irix6* | nonstopux*)
22720 if test "$GCC" = yes; then
22721 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'
22722 else
22723 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'
22724 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22725 fi
22726 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22727 hardcode_libdir_separator_F77=:
22728 link_all_deplibs_F77=yes
22729 ;;
22730
22731 netbsd*)
22732 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22733 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22734 else
22735 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22736 fi
22737 hardcode_libdir_flag_spec_F77='-R$libdir'
22738 hardcode_direct_F77=yes
22739 hardcode_shlibpath_var_F77=no
22740 ;;
22741
22742 newsos6)
22743 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22744 hardcode_direct_F77=yes
22745 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22746 hardcode_libdir_separator_F77=:
22747 hardcode_shlibpath_var_F77=no
22748 ;;
22749
22750 openbsd*)
22751 hardcode_direct_F77=yes
22752 hardcode_shlibpath_var_F77=no
22753 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22754 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022755 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 +000022756 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22757 export_dynamic_flag_spec_F77='${wl}-E'
22758 else
22759 case $host_os in
22760 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22761 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22762 hardcode_libdir_flag_spec_F77='-R$libdir'
22763 ;;
22764 *)
22765 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22766 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22767 ;;
22768 esac
22769 fi
22770 ;;
22771
22772 os2*)
22773 hardcode_libdir_flag_spec_F77='-L$libdir'
22774 hardcode_minus_L_F77=yes
22775 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022776 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 +000022777 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22778 ;;
22779
22780 osf3*)
22781 if test "$GCC" = yes; then
22782 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22783 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'
22784 else
22785 allow_undefined_flag_F77=' -expect_unresolved \*'
22786 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'
22787 fi
22788 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22789 hardcode_libdir_separator_F77=:
22790 ;;
22791
22792 osf4* | osf5*) # as osf3* with the addition of -msym flag
22793 if test "$GCC" = yes; then
22794 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22795 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'
22796 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22797 else
22798 allow_undefined_flag_F77=' -expect_unresolved \*'
22799 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 +000022800 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 +000022801 $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 +000022802
John Criswell47fdd832003-07-14 16:52:07 +000022803 # Both c and cxx compiler support -rpath directly
22804 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22805 fi
22806 hardcode_libdir_separator_F77=:
22807 ;;
22808
John Criswell47fdd832003-07-14 16:52:07 +000022809 solaris*)
22810 no_undefined_flag_F77=' -z text'
22811 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022812 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022813 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022814 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22815 $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 +000022816 else
Reid Spencera773bd52006-08-04 18:18:08 +000022817 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022818 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022819 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22820 $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 +000022821 fi
22822 hardcode_libdir_flag_spec_F77='-R$libdir'
22823 hardcode_shlibpath_var_F77=no
22824 case $host_os in
22825 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022826 *)
22827 # The compiler driver will combine linker options so we
22828 # cannot just pass the convience library names through
22829 # without $wl, iff we do not link with $LD.
22830 # Luckily, gcc supports the same syntax we need for Sun Studio.
22831 # Supported since Solaris 2.6 (maybe 2.5.1?)
22832 case $wlarc in
22833 '')
22834 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22835 *)
22836 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' ;;
22837 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022838 esac
22839 link_all_deplibs_F77=yes
22840 ;;
22841
22842 sunos4*)
22843 if test "x$host_vendor" = xsequent; then
22844 # Use $CC to link under sequent, because it throws in some extra .o
22845 # files that make .init and .fini sections work.
22846 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22847 else
22848 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22849 fi
22850 hardcode_libdir_flag_spec_F77='-L$libdir'
22851 hardcode_direct_F77=yes
22852 hardcode_minus_L_F77=yes
22853 hardcode_shlibpath_var_F77=no
22854 ;;
22855
22856 sysv4)
22857 case $host_vendor in
22858 sni)
22859 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22860 hardcode_direct_F77=yes # is this really true???
22861 ;;
22862 siemens)
22863 ## LD is ld it makes a PLAMLIB
22864 ## CC just makes a GrossModule.
22865 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22866 reload_cmds_F77='$CC -r -o $output$reload_objs'
22867 hardcode_direct_F77=no
22868 ;;
22869 motorola)
22870 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22871 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22872 ;;
22873 esac
22874 runpath_var='LD_RUN_PATH'
22875 hardcode_shlibpath_var_F77=no
22876 ;;
22877
22878 sysv4.3*)
22879 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22880 hardcode_shlibpath_var_F77=no
22881 export_dynamic_flag_spec_F77='-Bexport'
22882 ;;
22883
22884 sysv4*MP*)
22885 if test -d /usr/nec; then
22886 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22887 hardcode_shlibpath_var_F77=no
22888 runpath_var=LD_RUN_PATH
22889 hardcode_runpath_var=yes
22890 ld_shlibs_F77=yes
22891 fi
22892 ;;
22893
Reid Spencera773bd52006-08-04 18:18:08 +000022894 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22895 no_undefined_flag_F77='${wl}-z,text'
22896 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022897 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022898 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022899
John Criswell47fdd832003-07-14 16:52:07 +000022900 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022901 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22902 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 +000022903 else
Reid Spencera773bd52006-08-04 18:18:08 +000022904 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22905 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 +000022906 fi
John Criswell47fdd832003-07-14 16:52:07 +000022907 ;;
22908
Reid Spencera773bd52006-08-04 18:18:08 +000022909 sysv5* | sco3.2v5* | sco5v6*)
22910 # Note: We can NOT use -z defs as we might desire, because we do not
22911 # link with -lc, and that would cause any symbols used from libc to
22912 # always be unresolved, which means just about no library would
22913 # ever link correctly. If we're not using GNU ld we use -z text
22914 # though, which does catch some bad symbols but isn't as heavy-handed
22915 # as -z defs.
22916 no_undefined_flag_F77='${wl}-z,text'
22917 allow_undefined_flag_F77='${wl}-z,nodefs'
22918 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022919 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022920 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22921 hardcode_libdir_separator_F77=':'
22922 link_all_deplibs_F77=yes
22923 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022924 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022925
22926 if test "$GCC" = yes; then
22927 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22928 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22929 else
22930 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22931 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22932 fi
John Criswell47fdd832003-07-14 16:52:07 +000022933 ;;
22934
22935 uts4*)
22936 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22937 hardcode_libdir_flag_spec_F77='-L$libdir'
22938 hardcode_shlibpath_var_F77=no
22939 ;;
22940
22941 *)
22942 ld_shlibs_F77=no
22943 ;;
22944 esac
22945 fi
22946
Reid Spencera773bd52006-08-04 18:18:08 +000022947{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22948echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022949test "$ld_shlibs_F77" = no && can_build_shared=no
22950
John Criswell47fdd832003-07-14 16:52:07 +000022951#
22952# Do we need to explicitly link libc?
22953#
22954case "x$archive_cmds_need_lc_F77" in
22955x|xyes)
22956 # Assume -lc should be added
22957 archive_cmds_need_lc_F77=yes
22958
22959 if test "$enable_shared" = yes && test "$GCC" = yes; then
22960 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022961 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022962 # FIXME: we may have to deal with multi-command sequences.
22963 ;;
22964 '$CC '*)
22965 # Test whether the compiler implicitly links with -lc since on some
22966 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22967 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022968 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22969echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022970 $rm conftest*
22971 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22972
22973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22974 (eval $ac_compile) 2>&5
22975 ac_status=$?
22976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); } 2>conftest.err; then
22978 soname=conftest
22979 lib=conftest
22980 libobjs=conftest.$ac_objext
22981 deplibs=
22982 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022983 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022984 compiler_flags=-v
22985 linker_flags=-v
22986 verstring=
22987 output_objdir=.
22988 libname=conftest
22989 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22990 allow_undefined_flag_F77=
22991 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22992 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22993 ac_status=$?
22994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995 (exit $ac_status); }
22996 then
22997 archive_cmds_need_lc_F77=no
22998 else
22999 archive_cmds_need_lc_F77=yes
23000 fi
23001 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23002 else
23003 cat conftest.err 1>&5
23004 fi
23005 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000023006 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23007echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023008 ;;
23009 esac
23010 fi
23011 ;;
23012esac
23013
Reid Spencera773bd52006-08-04 18:18:08 +000023014{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23015echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023016library_names_spec=
23017libname_spec='lib$name'
23018soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000023019shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000023020postinstall_cmds=
23021postuninstall_cmds=
23022finish_cmds=
23023finish_eval=
23024shlibpath_var=
23025shlibpath_overrides_runpath=unknown
23026version_type=none
23027dynamic_linker="$host_os ld.so"
23028sys_lib_dlsearch_path_spec="/lib /usr/lib"
23029if test "$GCC" = yes; then
23030 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23031 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23032 # if the path contains ";" then we assume it to be the separator
23033 # otherwise default to the standard path separator (i.e. ":") - it is
23034 # assumed that no part of a normal pathname contains ";" but that should
23035 # okay in the real world where ";" in dirpaths is itself problematic.
23036 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23037 else
23038 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23039 fi
23040else
23041 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23042fi
23043need_lib_prefix=unknown
23044hardcode_into_libs=no
23045
23046# when you set need_version to no, make sure it does not cause -set_version
23047# flags to be left without arguments
23048need_version=unknown
23049
23050case $host_os in
23051aix3*)
23052 version_type=linux
23053 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23054 shlibpath_var=LIBPATH
23055
23056 # AIX 3 has no versioning support, so we append a major version to the name.
23057 soname_spec='${libname}${release}${shared_ext}$major'
23058 ;;
23059
23060aix4* | aix5*)
23061 version_type=linux
23062 need_lib_prefix=no
23063 need_version=no
23064 hardcode_into_libs=yes
23065 if test "$host_cpu" = ia64; then
23066 # AIX 5 supports IA64
23067 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23068 shlibpath_var=LD_LIBRARY_PATH
23069 else
23070 # With GCC up to 2.95.x, collect2 would create an import file
23071 # for dependence libraries. The import file would start with
23072 # the line `#! .'. This would cause the generated library to
23073 # depend on `.', always an invalid library. This was fixed in
23074 # development snapshots of GCC prior to 3.0.
23075 case $host_os in
23076 aix4 | aix4.[01] | aix4.[01].*)
23077 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23078 echo ' yes '
23079 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23080 :
23081 else
23082 can_build_shared=no
23083 fi
23084 ;;
23085 esac
23086 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23087 # soname into executable. Probably we can add versioning support to
23088 # collect2, so additional links can be useful in future.
23089 if test "$aix_use_runtimelinking" = yes; then
23090 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23091 # instead of lib<name>.a to let people know that these are not
23092 # typical AIX shared libraries.
23093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23094 else
23095 # We preserve .a as extension for shared libraries through AIX4.2
23096 # and later when we are not doing run time linking.
23097 library_names_spec='${libname}${release}.a $libname.a'
23098 soname_spec='${libname}${release}${shared_ext}$major'
23099 fi
23100 shlibpath_var=LIBPATH
23101 fi
23102 ;;
23103
23104amigaos*)
23105 library_names_spec='$libname.ixlibrary $libname.a'
23106 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023107 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 +000023108 ;;
23109
23110beos*)
23111 library_names_spec='${libname}${shared_ext}'
23112 dynamic_linker="$host_os ld.so"
23113 shlibpath_var=LIBRARY_PATH
23114 ;;
23115
Reid Spencer2706f8c2004-09-19 23:53:36 +000023116bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000023117 version_type=linux
23118 need_version=no
23119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23120 soname_spec='${libname}${release}${shared_ext}$major'
23121 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23122 shlibpath_var=LD_LIBRARY_PATH
23123 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23124 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23125 # the default ld.so.conf also contains /usr/contrib/lib and
23126 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23127 # libtool to hard-code these into programs
23128 ;;
23129
23130cygwin* | mingw* | pw32*)
23131 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000023132 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023133 need_version=no
23134 need_lib_prefix=no
23135
23136 case $GCC,$host_os in
23137 yes,cygwin* | yes,mingw* | yes,pw32*)
23138 library_names_spec='$libname.dll.a'
23139 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000023140 postinstall_cmds='base_file=`basename \${file}`~
23141 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23142 dldir=$destdir/`dirname \$dlpath`~
23143 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000023144 $install_prog $dir/$dlname \$dldir/$dlname~
23145 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000023146 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23147 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000023148 $rm \$dlpath'
23149 shlibpath_overrides_runpath=yes
23150
23151 case $host_os in
23152 cygwin*)
23153 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23154 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 +000023155 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023156 ;;
23157 mingw*)
23158 # MinGW DLLs use traditional 'lib' prefix
23159 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23160 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23161 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23162 # It is most probably a Windows format PATH printed by
23163 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23164 # path with ; separators, and with drive letters. We can handle the
23165 # drive letters (cygwin fileutils understands them), so leave them,
23166 # especially as we might pass files found there to a mingw objdump,
23167 # which wouldn't understand a cygwinified path. Ahh.
23168 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23169 else
23170 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23171 fi
23172 ;;
23173 pw32*)
23174 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000023175 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 +000023176 ;;
23177 esac
23178 ;;
23179
23180 *)
23181 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23182 ;;
23183 esac
23184 dynamic_linker='Win32 ld.exe'
23185 # FIXME: first we should search . and the directory the executable is in
23186 shlibpath_var=PATH
23187 ;;
23188
23189darwin* | rhapsody*)
23190 dynamic_linker="$host_os dyld"
23191 version_type=darwin
23192 need_lib_prefix=no
23193 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000023194 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000023195 soname_spec='${libname}${release}${major}$shared_ext'
23196 shlibpath_overrides_runpath=yes
23197 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000023198 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000023199 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023200 if test "$GCC" = yes; then
23201 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"`
23202 else
23203 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000023204 fi
23205 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23206 ;;
23207
23208dgux*)
23209 version_type=linux
23210 need_lib_prefix=no
23211 need_version=no
23212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23213 soname_spec='${libname}${release}${shared_ext}$major'
23214 shlibpath_var=LD_LIBRARY_PATH
23215 ;;
23216
23217freebsd1*)
23218 dynamic_linker=no
23219 ;;
23220
Reid Spencer2706f8c2004-09-19 23:53:36 +000023221kfreebsd*-gnu)
23222 version_type=linux
23223 need_lib_prefix=no
23224 need_version=no
23225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23226 soname_spec='${libname}${release}${shared_ext}$major'
23227 shlibpath_var=LD_LIBRARY_PATH
23228 shlibpath_overrides_runpath=no
23229 hardcode_into_libs=yes
23230 dynamic_linker='GNU ld.so'
23231 ;;
23232
Reid Spencera773bd52006-08-04 18:18:08 +000023233freebsd* | dragonfly*)
23234 # DragonFly does not have aout. When/if they implement a new
23235 # versioning mechanism, adjust this.
23236 if test -x /usr/bin/objformat; then
23237 objformat=`/usr/bin/objformat`
23238 else
23239 case $host_os in
23240 freebsd[123]*) objformat=aout ;;
23241 *) objformat=elf ;;
23242 esac
23243 fi
John Criswell47fdd832003-07-14 16:52:07 +000023244 version_type=freebsd-$objformat
23245 case $version_type in
23246 freebsd-elf*)
23247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23248 need_version=no
23249 need_lib_prefix=no
23250 ;;
23251 freebsd-*)
23252 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23253 need_version=yes
23254 ;;
23255 esac
23256 shlibpath_var=LD_LIBRARY_PATH
23257 case $host_os in
23258 freebsd2*)
23259 shlibpath_overrides_runpath=yes
23260 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023261 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000023262 shlibpath_overrides_runpath=yes
23263 hardcode_into_libs=yes
23264 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023265 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23266 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000023267 shlibpath_overrides_runpath=no
23268 hardcode_into_libs=yes
23269 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023270 freebsd*) # from 4.6 on
23271 shlibpath_overrides_runpath=yes
23272 hardcode_into_libs=yes
23273 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023274 esac
23275 ;;
23276
23277gnu*)
23278 version_type=linux
23279 need_lib_prefix=no
23280 need_version=no
23281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23282 soname_spec='${libname}${release}${shared_ext}$major'
23283 shlibpath_var=LD_LIBRARY_PATH
23284 hardcode_into_libs=yes
23285 ;;
23286
23287hpux9* | hpux10* | hpux11*)
23288 # Give a soname corresponding to the major version so that dld.sl refuses to
23289 # link against other versions.
23290 version_type=sunos
23291 need_lib_prefix=no
23292 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000023293 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023294 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023295 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000023296 hardcode_into_libs=yes
23297 dynamic_linker="$host_os dld.so"
23298 shlibpath_var=LD_LIBRARY_PATH
23299 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23301 soname_spec='${libname}${release}${shared_ext}$major'
23302 if test "X$HPUX_IA64_MODE" = X32; then
23303 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23304 else
23305 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23306 fi
23307 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23308 ;;
23309 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023310 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023311 hardcode_into_libs=yes
23312 dynamic_linker="$host_os dld.sl"
23313 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23314 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23316 soname_spec='${libname}${release}${shared_ext}$major'
23317 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23318 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23319 ;;
23320 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023321 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023322 dynamic_linker="$host_os dld.sl"
23323 shlibpath_var=SHLIB_PATH
23324 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23326 soname_spec='${libname}${release}${shared_ext}$major'
23327 ;;
23328 esac
23329 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23330 postinstall_cmds='chmod 555 $lib'
23331 ;;
23332
Reid Spencera773bd52006-08-04 18:18:08 +000023333interix3*)
23334 version_type=linux
23335 need_lib_prefix=no
23336 need_version=no
23337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23338 soname_spec='${libname}${release}${shared_ext}$major'
23339 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23340 shlibpath_var=LD_LIBRARY_PATH
23341 shlibpath_overrides_runpath=no
23342 hardcode_into_libs=yes
23343 ;;
23344
John Criswell47fdd832003-07-14 16:52:07 +000023345irix5* | irix6* | nonstopux*)
23346 case $host_os in
23347 nonstopux*) version_type=nonstopux ;;
23348 *)
23349 if test "$lt_cv_prog_gnu_ld" = yes; then
23350 version_type=linux
23351 else
23352 version_type=irix
23353 fi ;;
23354 esac
23355 need_lib_prefix=no
23356 need_version=no
23357 soname_spec='${libname}${release}${shared_ext}$major'
23358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23359 case $host_os in
23360 irix5* | nonstopux*)
23361 libsuff= shlibsuff=
23362 ;;
23363 *)
23364 case $LD in # libtool.m4 will add one of these switches to LD
23365 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23366 libsuff= shlibsuff= libmagic=32-bit;;
23367 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23368 libsuff=32 shlibsuff=N32 libmagic=N32;;
23369 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23370 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23371 *) libsuff= shlibsuff= libmagic=never-match;;
23372 esac
23373 ;;
23374 esac
23375 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23376 shlibpath_overrides_runpath=no
23377 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23378 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23379 hardcode_into_libs=yes
23380 ;;
23381
23382# No shared lib support for Linux oldld, aout, or coff.
23383linux*oldld* | linux*aout* | linux*coff*)
23384 dynamic_linker=no
23385 ;;
23386
23387# This must be Linux ELF.
23388linux*)
23389 version_type=linux
23390 need_lib_prefix=no
23391 need_version=no
23392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23393 soname_spec='${libname}${release}${shared_ext}$major'
23394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23395 shlibpath_var=LD_LIBRARY_PATH
23396 shlibpath_overrides_runpath=no
23397 # This implies no fast_install, which is unacceptable.
23398 # Some rework will be needed to allow for fast_install
23399 # before this can be enabled.
23400 hardcode_into_libs=yes
23401
Reid Spencer2706f8c2004-09-19 23:53:36 +000023402 # Append ld.so.conf contents to the search path
23403 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000023404 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 +000023405 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23406 fi
23407
John Criswell47fdd832003-07-14 16:52:07 +000023408 # We used to test for /lib/ld.so.1 and disable shared libraries on
23409 # powerpc, because MkLinux only supported shared libraries with the
23410 # GNU dynamic linker. Since this was broken with cross compilers,
23411 # most powerpc-linux boxes support dynamic linking these days and
23412 # people can always --disable-shared, the test was removed, and we
23413 # assume the GNU/Linux dynamic linker is in use.
23414 dynamic_linker='GNU/Linux ld.so'
23415 ;;
23416
Reid Spencer2706f8c2004-09-19 23:53:36 +000023417knetbsd*-gnu)
23418 version_type=linux
23419 need_lib_prefix=no
23420 need_version=no
23421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23422 soname_spec='${libname}${release}${shared_ext}$major'
23423 shlibpath_var=LD_LIBRARY_PATH
23424 shlibpath_overrides_runpath=no
23425 hardcode_into_libs=yes
23426 dynamic_linker='GNU ld.so'
23427 ;;
23428
John Criswell47fdd832003-07-14 16:52:07 +000023429netbsd*)
23430 version_type=sunos
23431 need_lib_prefix=no
23432 need_version=no
23433 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23436 dynamic_linker='NetBSD (a.out) ld.so'
23437 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023439 soname_spec='${libname}${release}${shared_ext}$major'
23440 dynamic_linker='NetBSD ld.elf_so'
23441 fi
23442 shlibpath_var=LD_LIBRARY_PATH
23443 shlibpath_overrides_runpath=yes
23444 hardcode_into_libs=yes
23445 ;;
23446
23447newsos6)
23448 version_type=linux
23449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23450 shlibpath_var=LD_LIBRARY_PATH
23451 shlibpath_overrides_runpath=yes
23452 ;;
23453
Reid Spencer2706f8c2004-09-19 23:53:36 +000023454nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023455 version_type=linux
23456 need_lib_prefix=no
23457 need_version=no
23458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23459 soname_spec='${libname}${release}${shared_ext}$major'
23460 shlibpath_var=LD_LIBRARY_PATH
23461 shlibpath_overrides_runpath=yes
23462 ;;
23463
23464openbsd*)
23465 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023466 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023467 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023468 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23469 case $host_os in
23470 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23471 *) need_version=no ;;
23472 esac
John Criswell47fdd832003-07-14 16:52:07 +000023473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23475 shlibpath_var=LD_LIBRARY_PATH
23476 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23477 case $host_os in
23478 openbsd2.[89] | openbsd2.[89].*)
23479 shlibpath_overrides_runpath=no
23480 ;;
23481 *)
23482 shlibpath_overrides_runpath=yes
23483 ;;
23484 esac
23485 else
23486 shlibpath_overrides_runpath=yes
23487 fi
23488 ;;
23489
23490os2*)
23491 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023492 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023493 need_lib_prefix=no
23494 library_names_spec='$libname${shared_ext} $libname.a'
23495 dynamic_linker='OS/2 ld.exe'
23496 shlibpath_var=LIBPATH
23497 ;;
23498
23499osf3* | osf4* | osf5*)
23500 version_type=osf
23501 need_lib_prefix=no
23502 need_version=no
23503 soname_spec='${libname}${release}${shared_ext}$major'
23504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23505 shlibpath_var=LD_LIBRARY_PATH
23506 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23507 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23508 ;;
23509
John Criswell47fdd832003-07-14 16:52:07 +000023510solaris*)
23511 version_type=linux
23512 need_lib_prefix=no
23513 need_version=no
23514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23515 soname_spec='${libname}${release}${shared_ext}$major'
23516 shlibpath_var=LD_LIBRARY_PATH
23517 shlibpath_overrides_runpath=yes
23518 hardcode_into_libs=yes
23519 # ldd complains unless libraries are executable
23520 postinstall_cmds='chmod +x $lib'
23521 ;;
23522
23523sunos4*)
23524 version_type=sunos
23525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23526 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23527 shlibpath_var=LD_LIBRARY_PATH
23528 shlibpath_overrides_runpath=yes
23529 if test "$with_gnu_ld" = yes; then
23530 need_lib_prefix=no
23531 fi
23532 need_version=yes
23533 ;;
23534
Reid Spencera773bd52006-08-04 18:18:08 +000023535sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023536 version_type=linux
23537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23538 soname_spec='${libname}${release}${shared_ext}$major'
23539 shlibpath_var=LD_LIBRARY_PATH
23540 case $host_vendor in
23541 sni)
23542 shlibpath_overrides_runpath=no
23543 need_lib_prefix=no
23544 export_dynamic_flag_spec='${wl}-Blargedynsym'
23545 runpath_var=LD_RUN_PATH
23546 ;;
23547 siemens)
23548 need_lib_prefix=no
23549 ;;
23550 motorola)
23551 need_lib_prefix=no
23552 need_version=no
23553 shlibpath_overrides_runpath=no
23554 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23555 ;;
23556 esac
23557 ;;
23558
23559sysv4*MP*)
23560 if test -d /usr/nec ;then
23561 version_type=linux
23562 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23563 soname_spec='$libname${shared_ext}.$major'
23564 shlibpath_var=LD_LIBRARY_PATH
23565 fi
23566 ;;
23567
Reid Spencera773bd52006-08-04 18:18:08 +000023568sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23569 version_type=freebsd-elf
23570 need_lib_prefix=no
23571 need_version=no
23572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23573 soname_spec='${libname}${release}${shared_ext}$major'
23574 shlibpath_var=LD_LIBRARY_PATH
23575 hardcode_into_libs=yes
23576 if test "$with_gnu_ld" = yes; then
23577 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23578 shlibpath_overrides_runpath=no
23579 else
23580 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23581 shlibpath_overrides_runpath=yes
23582 case $host_os in
23583 sco3.2v5*)
23584 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23585 ;;
23586 esac
23587 fi
23588 sys_lib_dlsearch_path_spec='/usr/lib'
23589 ;;
23590
John Criswell47fdd832003-07-14 16:52:07 +000023591uts4*)
23592 version_type=linux
23593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23594 soname_spec='${libname}${release}${shared_ext}$major'
23595 shlibpath_var=LD_LIBRARY_PATH
23596 ;;
23597
23598*)
23599 dynamic_linker=no
23600 ;;
23601esac
Reid Spencera773bd52006-08-04 18:18:08 +000023602{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23603echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023604test "$dynamic_linker" = no && can_build_shared=no
23605
Reid Spencera773bd52006-08-04 18:18:08 +000023606variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23607if test "$GCC" = yes; then
23608 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23609fi
23610
23611{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23612echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023613hardcode_action_F77=
23614if test -n "$hardcode_libdir_flag_spec_F77" || \
23615 test -n "$runpath_var_F77" || \
23616 test "X$hardcode_automatic_F77" = "Xyes" ; then
23617
23618 # We can hardcode non-existant directories.
23619 if test "$hardcode_direct_F77" != no &&
23620 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23621 # have to relink, otherwise we might link with an installed library
23622 # when we should be linking with a yet-to-be-installed one
23623 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23624 test "$hardcode_minus_L_F77" != no; then
23625 # Linking always hardcodes the temporary library directory.
23626 hardcode_action_F77=relink
23627 else
23628 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23629 hardcode_action_F77=immediate
23630 fi
23631else
23632 # We cannot hardcode anything, or else we can only hardcode existing
23633 # directories.
23634 hardcode_action_F77=unsupported
23635fi
Reid Spencera773bd52006-08-04 18:18:08 +000023636{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23637echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023638
23639if test "$hardcode_action_F77" = relink; then
23640 # Fast installation is not supported
23641 enable_fast_install=no
23642elif test "$shlibpath_overrides_runpath" = yes ||
23643 test "$enable_shared" = no; then
23644 # Fast installation is not necessary
23645 enable_fast_install=needless
23646fi
23647
John Criswell47fdd832003-07-14 16:52:07 +000023648
23649# The else clause should only fire when bootstrapping the
23650# libtool distribution, otherwise you forgot to ship ltmain.sh
23651# with your package, and you will get complaints that there are
23652# no rules to generate ltmain.sh.
23653if test -f "$ltmain"; then
23654 # See if we are running on zsh, and set the options which allow our commands through
23655 # without removal of \ escapes.
23656 if test -n "${ZSH_VERSION+set}" ; then
23657 setopt NO_GLOB_SUBST
23658 fi
23659 # Now quote all the things that may contain metacharacters while being
23660 # careful not to overquote the AC_SUBSTed values. We take copies of the
23661 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023662 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 +000023663 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023664 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23665 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23666 deplibs_check_method reload_flag reload_cmds need_locks \
23667 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23668 lt_cv_sys_global_symbol_to_c_name_address \
23669 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23670 old_postinstall_cmds old_postuninstall_cmds \
23671 compiler_F77 \
23672 CC_F77 \
23673 LD_F77 \
23674 lt_prog_compiler_wl_F77 \
23675 lt_prog_compiler_pic_F77 \
23676 lt_prog_compiler_static_F77 \
23677 lt_prog_compiler_no_builtin_flag_F77 \
23678 export_dynamic_flag_spec_F77 \
23679 thread_safe_flag_spec_F77 \
23680 whole_archive_flag_spec_F77 \
23681 enable_shared_with_static_runtimes_F77 \
23682 old_archive_cmds_F77 \
23683 old_archive_from_new_cmds_F77 \
23684 predep_objects_F77 \
23685 postdep_objects_F77 \
23686 predeps_F77 \
23687 postdeps_F77 \
23688 compiler_lib_search_path_F77 \
23689 archive_cmds_F77 \
23690 archive_expsym_cmds_F77 \
23691 postinstall_cmds_F77 \
23692 postuninstall_cmds_F77 \
23693 old_archive_from_expsyms_cmds_F77 \
23694 allow_undefined_flag_F77 \
23695 no_undefined_flag_F77 \
23696 export_symbols_cmds_F77 \
23697 hardcode_libdir_flag_spec_F77 \
23698 hardcode_libdir_flag_spec_ld_F77 \
23699 hardcode_libdir_separator_F77 \
23700 hardcode_automatic_F77 \
23701 module_cmds_F77 \
23702 module_expsym_cmds_F77 \
23703 lt_cv_prog_compiler_c_o_F77 \
23704 exclude_expsyms_F77 \
23705 include_expsyms_F77; do
23706
23707 case $var in
23708 old_archive_cmds_F77 | \
23709 old_archive_from_new_cmds_F77 | \
23710 archive_cmds_F77 | \
23711 archive_expsym_cmds_F77 | \
23712 module_cmds_F77 | \
23713 module_expsym_cmds_F77 | \
23714 old_archive_from_expsyms_cmds_F77 | \
23715 export_symbols_cmds_F77 | \
23716 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23717 postinstall_cmds | postuninstall_cmds | \
23718 old_postinstall_cmds | old_postuninstall_cmds | \
23719 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23720 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023721 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 +000023722 ;;
23723 *)
23724 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23725 ;;
23726 esac
23727 done
23728
23729 case $lt_echo in
23730 *'\$0 --fallback-echo"')
23731 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23732 ;;
23733 esac
23734
23735cfgfile="$ofile"
23736
23737 cat <<__EOF__ >> "$cfgfile"
23738# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23739
23740# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23741
23742# Shell to use when invoking shell scripts.
23743SHELL=$lt_SHELL
23744
23745# Whether or not to build shared libraries.
23746build_libtool_libs=$enable_shared
23747
23748# Whether or not to build static libraries.
23749build_old_libs=$enable_static
23750
23751# Whether or not to add -lc for building shared libraries.
23752build_libtool_need_lc=$archive_cmds_need_lc_F77
23753
23754# Whether or not to disallow shared libs when runtime libs are static
23755allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23756
23757# Whether or not to optimize for fast installation.
23758fast_install=$enable_fast_install
23759
23760# The host system.
23761host_alias=$host_alias
23762host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023763host_os=$host_os
23764
23765# The build system.
23766build_alias=$build_alias
23767build=$build
23768build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023769
23770# An echo program that does not interpret backslashes.
23771echo=$lt_echo
23772
23773# The archiver.
23774AR=$lt_AR
23775AR_FLAGS=$lt_AR_FLAGS
23776
23777# A C compiler.
23778LTCC=$lt_LTCC
23779
Reid Spencera773bd52006-08-04 18:18:08 +000023780# LTCC compiler flags.
23781LTCFLAGS=$lt_LTCFLAGS
23782
John Criswell47fdd832003-07-14 16:52:07 +000023783# A language-specific compiler.
23784CC=$lt_compiler_F77
23785
23786# Is the compiler the GNU C compiler?
23787with_gcc=$GCC_F77
23788
23789# An ERE matcher.
23790EGREP=$lt_EGREP
23791
23792# The linker used to build libraries.
23793LD=$lt_LD_F77
23794
23795# Whether we need hard or soft links.
23796LN_S=$lt_LN_S
23797
23798# A BSD-compatible nm program.
23799NM=$lt_NM
23800
23801# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023802STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023803
23804# Used to examine libraries when file_magic_cmd begins "file"
23805MAGIC_CMD=$MAGIC_CMD
23806
23807# Used on cygwin: DLL creation program.
23808DLLTOOL="$DLLTOOL"
23809
23810# Used on cygwin: object dumper.
23811OBJDUMP="$OBJDUMP"
23812
23813# Used on cygwin: assembler.
23814AS="$AS"
23815
23816# The name of the directory that contains temporary libtool files.
23817objdir=$objdir
23818
23819# How to create reloadable object files.
23820reload_flag=$lt_reload_flag
23821reload_cmds=$lt_reload_cmds
23822
23823# How to pass a linker flag through the compiler.
23824wl=$lt_lt_prog_compiler_wl_F77
23825
23826# Object file suffix (normally "o").
23827objext="$ac_objext"
23828
23829# Old archive suffix (normally "a").
23830libext="$libext"
23831
23832# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023833shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023834
23835# Executable file suffix (normally "").
23836exeext="$exeext"
23837
23838# Additional compiler flags for building library objects.
23839pic_flag=$lt_lt_prog_compiler_pic_F77
23840pic_mode=$pic_mode
23841
23842# What is the maximum length of a command?
23843max_cmd_len=$lt_cv_sys_max_cmd_len
23844
23845# Does compiler simultaneously support -c and -o options?
23846compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23847
Reid Spencera773bd52006-08-04 18:18:08 +000023848# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023849need_locks=$lt_need_locks
23850
23851# Do we need the lib prefix for modules?
23852need_lib_prefix=$need_lib_prefix
23853
23854# Do we need a version for libraries?
23855need_version=$need_version
23856
23857# Whether dlopen is supported.
23858dlopen_support=$enable_dlopen
23859
23860# Whether dlopen of programs is supported.
23861dlopen_self=$enable_dlopen_self
23862
23863# Whether dlopen of statically linked programs is supported.
23864dlopen_self_static=$enable_dlopen_self_static
23865
23866# Compiler flag to prevent dynamic linking.
23867link_static_flag=$lt_lt_prog_compiler_static_F77
23868
23869# Compiler flag to turn off builtin functions.
23870no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23871
23872# Compiler flag to allow reflexive dlopens.
23873export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23874
23875# Compiler flag to generate shared objects directly from archives.
23876whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23877
23878# Compiler flag to generate thread-safe objects.
23879thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23880
23881# Library versioning type.
23882version_type=$version_type
23883
23884# Format of library name prefix.
23885libname_spec=$lt_libname_spec
23886
23887# List of archive names. First name is the real one, the rest are links.
23888# The last name is the one that the linker finds with -lNAME.
23889library_names_spec=$lt_library_names_spec
23890
23891# The coded name of the library, if different from the real name.
23892soname_spec=$lt_soname_spec
23893
23894# Commands used to build and install an old-style archive.
23895RANLIB=$lt_RANLIB
23896old_archive_cmds=$lt_old_archive_cmds_F77
23897old_postinstall_cmds=$lt_old_postinstall_cmds
23898old_postuninstall_cmds=$lt_old_postuninstall_cmds
23899
23900# Create an old-style archive from a shared archive.
23901old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23902
23903# Create a temporary old-style archive to link instead of a shared archive.
23904old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23905
23906# Commands used to build and install a shared archive.
23907archive_cmds=$lt_archive_cmds_F77
23908archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23909postinstall_cmds=$lt_postinstall_cmds
23910postuninstall_cmds=$lt_postuninstall_cmds
23911
23912# Commands used to build a loadable module (assumed same as above if empty)
23913module_cmds=$lt_module_cmds_F77
23914module_expsym_cmds=$lt_module_expsym_cmds_F77
23915
23916# Commands to strip libraries.
23917old_striplib=$lt_old_striplib
23918striplib=$lt_striplib
23919
23920# Dependencies to place before the objects being linked to create a
23921# shared library.
23922predep_objects=$lt_predep_objects_F77
23923
23924# Dependencies to place after the objects being linked to create a
23925# shared library.
23926postdep_objects=$lt_postdep_objects_F77
23927
23928# Dependencies to place before the objects being linked to create a
23929# shared library.
23930predeps=$lt_predeps_F77
23931
23932# Dependencies to place after the objects being linked to create a
23933# shared library.
23934postdeps=$lt_postdeps_F77
23935
23936# The library search path used internally by the compiler when linking
23937# a shared library.
23938compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23939
23940# Method to check whether dependent libraries are shared objects.
23941deplibs_check_method=$lt_deplibs_check_method
23942
23943# Command to use when deplibs_check_method == file_magic.
23944file_magic_cmd=$lt_file_magic_cmd
23945
23946# Flag that allows shared libraries with undefined symbols to be built.
23947allow_undefined_flag=$lt_allow_undefined_flag_F77
23948
23949# Flag that forces no undefined symbols.
23950no_undefined_flag=$lt_no_undefined_flag_F77
23951
23952# Commands used to finish a libtool library installation in a directory.
23953finish_cmds=$lt_finish_cmds
23954
23955# Same as above, but a single script fragment to be evaled but not shown.
23956finish_eval=$lt_finish_eval
23957
23958# Take the output of nm and produce a listing of raw symbols and C names.
23959global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23960
23961# Transform the output of nm in a proper C declaration
23962global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23963
23964# Transform the output of nm in a C name address pair
23965global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23966
23967# This is the shared library runtime path variable.
23968runpath_var=$runpath_var
23969
23970# This is the shared library path variable.
23971shlibpath_var=$shlibpath_var
23972
23973# Is shlibpath searched before the hard-coded library search path?
23974shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23975
23976# How to hardcode a shared library path into an executable.
23977hardcode_action=$hardcode_action_F77
23978
23979# Whether we should hardcode library paths into libraries.
23980hardcode_into_libs=$hardcode_into_libs
23981
23982# Flag to hardcode \$libdir into a binary during linking.
23983# This must work even if \$libdir does not exist.
23984hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23985
23986# If ld is used when linking, flag to hardcode \$libdir into
23987# a binary during linking. This must work even if \$libdir does
23988# not exist.
23989hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23990
23991# Whether we need a single -rpath flag with a separated argument.
23992hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23993
23994# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23995# resulting binary.
23996hardcode_direct=$hardcode_direct_F77
23997
23998# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23999# resulting binary.
24000hardcode_minus_L=$hardcode_minus_L_F77
24001
24002# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24003# the resulting binary.
24004hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24005
24006# Set to yes if building a shared library automatically hardcodes DIR into the library
24007# and all subsequent libraries and executables linked against it.
24008hardcode_automatic=$hardcode_automatic_F77
24009
24010# Variables whose values should be saved in libtool wrapper scripts and
24011# restored at relink time.
24012variables_saved_for_relink="$variables_saved_for_relink"
24013
24014# Whether libtool must link a program against all its dependency libraries.
24015link_all_deplibs=$link_all_deplibs_F77
24016
24017# Compile-time system search path for libraries
24018sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24019
24020# Run-time system search path for libraries
24021sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24022
24023# Fix the shell variable \$srcfile for the compiler.
24024fix_srcfile_path="$fix_srcfile_path_F77"
24025
24026# Set to yes if exported symbols are required.
24027always_export_symbols=$always_export_symbols_F77
24028
24029# The commands to list exported symbols.
24030export_symbols_cmds=$lt_export_symbols_cmds_F77
24031
24032# The commands to extract the exported symbol list from a shared archive.
24033extract_expsyms_cmds=$lt_extract_expsyms_cmds
24034
24035# Symbols that should not be listed in the preloaded symbols.
24036exclude_expsyms=$lt_exclude_expsyms_F77
24037
24038# Symbols that must always be exported.
24039include_expsyms=$lt_include_expsyms_F77
24040
24041# ### END LIBTOOL TAG CONFIG: $tagname
24042
24043__EOF__
24044
24045
24046else
24047 # If there is no Makefile yet, we rely on a make rule to execute
24048 # `config.status --recheck' to rerun these tests and create the
24049 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024050 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24051 if test -f "$ltmain_in"; then
24052 test -f Makefile && make "$ltmain"
24053 fi
John Criswell47fdd832003-07-14 16:52:07 +000024054fi
24055
24056
24057ac_ext=c
24058ac_cpp='$CPP $CPPFLAGS'
24059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24061ac_compiler_gnu=$ac_cv_c_compiler_gnu
24062
24063CC="$lt_save_CC"
24064
24065 else
24066 tagname=""
24067 fi
24068 ;;
24069
24070 GCJ)
24071 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024072 ac_ext=c
24073ac_cpp='$CPP $CPPFLAGS'
24074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24076ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024077
24078
24079# Source file extension for Java test sources.
24080ac_ext=java
24081
24082# Object file extension for compiled Java test sources.
24083objext=o
24084objext_GCJ=$objext
24085
24086# Code to be used in simple compile tests
24087lt_simple_compile_test_code="class foo {}\n"
24088
24089# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000024090lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000024091
24092# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24093
24094# If no C compiler was specified, use CC.
24095LTCC=${LTCC-"$CC"}
24096
Reid Spencera773bd52006-08-04 18:18:08 +000024097# If no C compiler flags were specified, use CFLAGS.
24098LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24099
John Criswell47fdd832003-07-14 16:52:07 +000024100# Allow CC to be a program name with arguments.
24101compiler=$CC
24102
24103
Reid Spencera773bd52006-08-04 18:18:08 +000024104# save warnings/boilerplate of simple test code
24105ac_outfile=conftest.$ac_objext
24106printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24107eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24108_lt_compiler_boilerplate=`cat conftest.err`
24109$rm conftest*
24110
24111ac_outfile=conftest.$ac_objext
24112printf "$lt_simple_link_test_code" >conftest.$ac_ext
24113eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24114_lt_linker_boilerplate=`cat conftest.err`
24115$rm conftest*
24116
24117
John Criswell47fdd832003-07-14 16:52:07 +000024118# Allow CC to be a program name with arguments.
24119lt_save_CC="$CC"
24120CC=${GCJ-"gcj"}
24121compiler=$CC
24122compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000024123for cc_temp in $compiler""; do
24124 case $cc_temp in
24125 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24126 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24127 \-*) ;;
24128 *) break;;
24129 esac
24130done
24131cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24132
John Criswell47fdd832003-07-14 16:52:07 +000024133
24134# GCJ did not exist at the time GCC didn't implicitly link libc in.
24135archive_cmds_need_lc_GCJ=no
24136
Reid Spencera773bd52006-08-04 18:18:08 +000024137old_archive_cmds_GCJ=$old_archive_cmds
24138
John Criswell47fdd832003-07-14 16:52:07 +000024139
24140lt_prog_compiler_no_builtin_flag_GCJ=
24141
24142if test "$GCC" = yes; then
24143 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24144
Reid Spencer2706f8c2004-09-19 23:53:36 +000024145
Reid Spencera773bd52006-08-04 18:18:08 +000024146{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24147echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024148if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24149 echo $ECHO_N "(cached) $ECHO_C" >&6
24150else
24151 lt_cv_prog_compiler_rtti_exceptions=no
24152 ac_outfile=conftest.$ac_objext
24153 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24154 lt_compiler_flag="-fno-rtti -fno-exceptions"
24155 # Insert the option either (1) after the last *FLAGS variable, or
24156 # (2) before a word containing "conftest.", or (3) at the end.
24157 # Note that $ac_compile itself does not contain backslashes and begins
24158 # with a dollar sign (not a hyphen), so the echo should work correctly.
24159 # The option is referenced via a variable to avoid confusing sed.
24160 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024161 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024162 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24163 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000024164 (eval echo "\"\$as_me:24164: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024165 (eval "$lt_compile" 2>conftest.err)
24166 ac_status=$?
24167 cat conftest.err >&5
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000024168 echo "$as_me:24168: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024169 if (exit $ac_status) && test -s "$ac_outfile"; then
24170 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024171 # So say no if there are warnings other than the usual output.
24172 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24173 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24174 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024175 lt_cv_prog_compiler_rtti_exceptions=yes
24176 fi
24177 fi
24178 $rm conftest*
24179
24180fi
Reid Spencera773bd52006-08-04 18:18:08 +000024181{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24182echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024183
24184if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24185 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24186else
24187 :
24188fi
24189
24190fi
24191
24192lt_prog_compiler_wl_GCJ=
24193lt_prog_compiler_pic_GCJ=
24194lt_prog_compiler_static_GCJ=
24195
Reid Spencera773bd52006-08-04 18:18:08 +000024196{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24197echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024198
24199 if test "$GCC" = yes; then
24200 lt_prog_compiler_wl_GCJ='-Wl,'
24201 lt_prog_compiler_static_GCJ='-static'
24202
24203 case $host_os in
24204 aix*)
24205 # All AIX code is PIC.
24206 if test "$host_cpu" = ia64; then
24207 # AIX 5 now supports IA64 processor
24208 lt_prog_compiler_static_GCJ='-Bstatic'
24209 fi
24210 ;;
24211
24212 amigaos*)
24213 # FIXME: we need at least 68020 code to build shared libraries, but
24214 # adding the `-m68020' flag to GCC prevents building anything better,
24215 # like `-m68040'.
24216 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24217 ;;
24218
24219 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24220 # PIC is the default for these OSes.
24221 ;;
24222
24223 mingw* | pw32* | os2*)
24224 # This hack is so that the source file can tell whether it is being
24225 # built for inclusion in a dll (and should export symbols for example).
24226 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24227 ;;
24228
24229 darwin* | rhapsody*)
24230 # PIC is the default on this platform
24231 # Common symbols not allowed in MH_DYLIB files
24232 lt_prog_compiler_pic_GCJ='-fno-common'
24233 ;;
24234
Reid Spencera773bd52006-08-04 18:18:08 +000024235 interix3*)
24236 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24237 # Instead, we relocate shared libraries at runtime.
24238 ;;
24239
John Criswell47fdd832003-07-14 16:52:07 +000024240 msdosdjgpp*)
24241 # Just because we use GCC doesn't mean we suddenly get shared libraries
24242 # on systems that don't support them.
24243 lt_prog_compiler_can_build_shared_GCJ=no
24244 enable_shared=no
24245 ;;
24246
24247 sysv4*MP*)
24248 if test -d /usr/nec; then
24249 lt_prog_compiler_pic_GCJ=-Kconform_pic
24250 fi
24251 ;;
24252
24253 hpux*)
24254 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24255 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024256 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024257 hppa*64*|ia64*)
24258 # +Z the default
24259 ;;
24260 *)
24261 lt_prog_compiler_pic_GCJ='-fPIC'
24262 ;;
24263 esac
24264 ;;
24265
24266 *)
24267 lt_prog_compiler_pic_GCJ='-fPIC'
24268 ;;
24269 esac
24270 else
24271 # PORTME Check for flag to pass linker flags through the system compiler.
24272 case $host_os in
24273 aix*)
24274 lt_prog_compiler_wl_GCJ='-Wl,'
24275 if test "$host_cpu" = ia64; then
24276 # AIX 5 now supports IA64 processor
24277 lt_prog_compiler_static_GCJ='-Bstatic'
24278 else
24279 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24280 fi
24281 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024282 darwin*)
24283 # PIC is the default on this platform
24284 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000024285 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024286 xlc*)
24287 lt_prog_compiler_pic_GCJ='-qnocommon'
24288 lt_prog_compiler_wl_GCJ='-Wl,'
24289 ;;
24290 esac
24291 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024292
24293 mingw* | pw32* | os2*)
24294 # This hack is so that the source file can tell whether it is being
24295 # built for inclusion in a dll (and should export symbols for example).
24296 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24297 ;;
24298
24299 hpux9* | hpux10* | hpux11*)
24300 lt_prog_compiler_wl_GCJ='-Wl,'
24301 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24302 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024303 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024304 hppa*64*|ia64*)
24305 # +Z the default
24306 ;;
24307 *)
24308 lt_prog_compiler_pic_GCJ='+Z'
24309 ;;
24310 esac
24311 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24312 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24313 ;;
24314
24315 irix5* | irix6* | nonstopux*)
24316 lt_prog_compiler_wl_GCJ='-Wl,'
24317 # PIC (with -KPIC) is the default.
24318 lt_prog_compiler_static_GCJ='-non_shared'
24319 ;;
24320
24321 newsos6)
24322 lt_prog_compiler_pic_GCJ='-KPIC'
24323 lt_prog_compiler_static_GCJ='-Bstatic'
24324 ;;
24325
24326 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000024327 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024328 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000024329 lt_prog_compiler_wl_GCJ='-Wl,'
24330 lt_prog_compiler_pic_GCJ='-KPIC'
24331 lt_prog_compiler_static_GCJ='-static'
24332 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024333 pgcc* | pgf77* | pgf90* | pgf95*)
24334 # Portland Group compilers (*not* the Pentium gcc compiler,
24335 # which looks to be a dead project)
24336 lt_prog_compiler_wl_GCJ='-Wl,'
24337 lt_prog_compiler_pic_GCJ='-fpic'
24338 lt_prog_compiler_static_GCJ='-Bstatic'
24339 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024340 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000024341 lt_prog_compiler_wl_GCJ='-Wl,'
24342 # All Alpha code is PIC.
24343 lt_prog_compiler_static_GCJ='-non_shared'
24344 ;;
24345 esac
24346 ;;
24347
24348 osf3* | osf4* | osf5*)
24349 lt_prog_compiler_wl_GCJ='-Wl,'
24350 # All OSF/1 code is PIC.
24351 lt_prog_compiler_static_GCJ='-non_shared'
24352 ;;
24353
John Criswell47fdd832003-07-14 16:52:07 +000024354 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024355 lt_prog_compiler_pic_GCJ='-KPIC'
24356 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000024357 case $cc_basename in
24358 f77* | f90* | f95*)
24359 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24360 *)
24361 lt_prog_compiler_wl_GCJ='-Wl,';;
24362 esac
John Criswell47fdd832003-07-14 16:52:07 +000024363 ;;
24364
24365 sunos4*)
24366 lt_prog_compiler_wl_GCJ='-Qoption ld '
24367 lt_prog_compiler_pic_GCJ='-PIC'
24368 lt_prog_compiler_static_GCJ='-Bstatic'
24369 ;;
24370
Reid Spencera773bd52006-08-04 18:18:08 +000024371 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024372 lt_prog_compiler_wl_GCJ='-Wl,'
24373 lt_prog_compiler_pic_GCJ='-KPIC'
24374 lt_prog_compiler_static_GCJ='-Bstatic'
24375 ;;
24376
24377 sysv4*MP*)
24378 if test -d /usr/nec ;then
24379 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24380 lt_prog_compiler_static_GCJ='-Bstatic'
24381 fi
24382 ;;
24383
Reid Spencera773bd52006-08-04 18:18:08 +000024384 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24385 lt_prog_compiler_wl_GCJ='-Wl,'
24386 lt_prog_compiler_pic_GCJ='-KPIC'
24387 lt_prog_compiler_static_GCJ='-Bstatic'
24388 ;;
24389
24390 unicos*)
24391 lt_prog_compiler_wl_GCJ='-Wl,'
24392 lt_prog_compiler_can_build_shared_GCJ=no
24393 ;;
24394
John Criswell47fdd832003-07-14 16:52:07 +000024395 uts4*)
24396 lt_prog_compiler_pic_GCJ='-pic'
24397 lt_prog_compiler_static_GCJ='-Bstatic'
24398 ;;
24399
24400 *)
24401 lt_prog_compiler_can_build_shared_GCJ=no
24402 ;;
24403 esac
24404 fi
24405
Reid Spencera773bd52006-08-04 18:18:08 +000024406{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24407echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024408
24409#
24410# Check to make sure the PIC flag actually works.
24411#
24412if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024413
Reid Spencera773bd52006-08-04 18:18:08 +000024414{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24415echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024416if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24417 echo $ECHO_N "(cached) $ECHO_C" >&6
24418else
24419 lt_prog_compiler_pic_works_GCJ=no
24420 ac_outfile=conftest.$ac_objext
24421 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24422 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24423 # Insert the option either (1) after the last *FLAGS variable, or
24424 # (2) before a word containing "conftest.", or (3) at the end.
24425 # Note that $ac_compile itself does not contain backslashes and begins
24426 # with a dollar sign (not a hyphen), so the echo should work correctly.
24427 # The option is referenced via a variable to avoid confusing sed.
24428 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24431 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000024432 (eval echo "\"\$as_me:24432: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024433 (eval "$lt_compile" 2>conftest.err)
24434 ac_status=$?
24435 cat conftest.err >&5
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000024436 echo "$as_me:24436: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024437 if (exit $ac_status) && test -s "$ac_outfile"; then
24438 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024439 # So say no if there are warnings other than the usual output.
24440 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24442 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024443 lt_prog_compiler_pic_works_GCJ=yes
24444 fi
24445 fi
24446 $rm conftest*
24447
24448fi
Reid Spencera773bd52006-08-04 18:18:08 +000024449{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24450echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024451
24452if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24453 case $lt_prog_compiler_pic_GCJ in
24454 "" | " "*) ;;
24455 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24456 esac
24457else
24458 lt_prog_compiler_pic_GCJ=
24459 lt_prog_compiler_can_build_shared_GCJ=no
24460fi
24461
24462fi
Reid Spencera773bd52006-08-04 18:18:08 +000024463case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024464 # For platforms which do not support PIC, -DPIC is meaningless:
24465 *djgpp*)
24466 lt_prog_compiler_pic_GCJ=
24467 ;;
24468 *)
24469 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24470 ;;
24471esac
24472
Reid Spencera773bd52006-08-04 18:18:08 +000024473#
24474# Check to make sure the static flag actually works.
24475#
24476wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24477{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24478echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24479if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24480 echo $ECHO_N "(cached) $ECHO_C" >&6
24481else
24482 lt_prog_compiler_static_works_GCJ=no
24483 save_LDFLAGS="$LDFLAGS"
24484 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24485 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24486 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24487 # The linker can only warn and ignore the option if not recognized
24488 # So say no if there are warnings
24489 if test -s conftest.err; then
24490 # Append any errors to the config.log.
24491 cat conftest.err 1>&5
24492 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24494 if diff conftest.exp conftest.er2 >/dev/null; then
24495 lt_prog_compiler_static_works_GCJ=yes
24496 fi
24497 else
24498 lt_prog_compiler_static_works_GCJ=yes
24499 fi
24500 fi
24501 $rm conftest*
24502 LDFLAGS="$save_LDFLAGS"
24503
24504fi
24505{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24506echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24507
24508if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24509 :
24510else
24511 lt_prog_compiler_static_GCJ=
24512fi
24513
24514
24515{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24516echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024517if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24518 echo $ECHO_N "(cached) $ECHO_C" >&6
24519else
24520 lt_cv_prog_compiler_c_o_GCJ=no
24521 $rm -r conftest 2>/dev/null
24522 mkdir conftest
24523 cd conftest
24524 mkdir out
24525 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24526
John Criswell47fdd832003-07-14 16:52:07 +000024527 lt_compiler_flag="-o out/conftest2.$ac_objext"
24528 # Insert the option either (1) after the last *FLAGS variable, or
24529 # (2) before a word containing "conftest.", or (3) at the end.
24530 # Note that $ac_compile itself does not contain backslashes and begins
24531 # with a dollar sign (not a hyphen), so the echo should work correctly.
24532 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024533 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24535 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000024536 (eval echo "\"\$as_me:24536: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024537 (eval "$lt_compile" 2>out/conftest.err)
24538 ac_status=$?
24539 cat out/conftest.err >&5
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000024540 echo "$as_me:24540: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024541 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24542 then
24543 # The compiler can only warn and ignore the option if not recognized
24544 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024545 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24546 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24547 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024548 lt_cv_prog_compiler_c_o_GCJ=yes
24549 fi
24550 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024551 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024552 $rm conftest*
24553 # SGI C++ compiler will create directory out/ii_files/ for
24554 # template instantiation
24555 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24556 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024557 cd ..
24558 rmdir conftest
24559 $rm conftest*
24560
24561fi
Reid Spencera773bd52006-08-04 18:18:08 +000024562{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24563echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024564
24565
24566hard_links="nottested"
24567if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24568 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024569 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24570echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024571 hard_links=yes
24572 $rm conftest*
24573 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24574 touch conftest.a
24575 ln conftest.a conftest.b 2>&5 || hard_links=no
24576 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024577 { echo "$as_me:$LINENO: result: $hard_links" >&5
24578echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024579 if test "$hard_links" = no; then
24580 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24581echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24582 need_locks=warn
24583 fi
24584else
24585 need_locks=no
24586fi
24587
Reid Spencera773bd52006-08-04 18:18:08 +000024588{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24589echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024590
24591 runpath_var=
24592 allow_undefined_flag_GCJ=
24593 enable_shared_with_static_runtimes_GCJ=no
24594 archive_cmds_GCJ=
24595 archive_expsym_cmds_GCJ=
24596 old_archive_From_new_cmds_GCJ=
24597 old_archive_from_expsyms_cmds_GCJ=
24598 export_dynamic_flag_spec_GCJ=
24599 whole_archive_flag_spec_GCJ=
24600 thread_safe_flag_spec_GCJ=
24601 hardcode_libdir_flag_spec_GCJ=
24602 hardcode_libdir_flag_spec_ld_GCJ=
24603 hardcode_libdir_separator_GCJ=
24604 hardcode_direct_GCJ=no
24605 hardcode_minus_L_GCJ=no
24606 hardcode_shlibpath_var_GCJ=unsupported
24607 link_all_deplibs_GCJ=unknown
24608 hardcode_automatic_GCJ=no
24609 module_cmds_GCJ=
24610 module_expsym_cmds_GCJ=
24611 always_export_symbols_GCJ=no
24612 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24613 # include_expsyms should be a list of space-separated symbols to be *always*
24614 # included in the symbol list
24615 include_expsyms_GCJ=
24616 # exclude_expsyms can be an extended regexp of symbols to exclude
24617 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24618 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24619 # as well as any symbol that contains `d'.
24620 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24621 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24622 # platforms (ab)use it in PIC code, but their linkers get confused if
24623 # the symbol is explicitly referenced. Since portable code cannot
24624 # rely on this symbol name, it's probably fine to never include it in
24625 # preloaded symbol tables.
24626 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024627 # Just being paranoid about ensuring that cc_basename is set.
24628 for cc_temp in $compiler""; do
24629 case $cc_temp in
24630 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24631 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24632 \-*) ;;
24633 *) break;;
24634 esac
24635done
24636cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024637
24638 case $host_os in
24639 cygwin* | mingw* | pw32*)
24640 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24641 # When not using gcc, we currently assume that we are using
24642 # Microsoft Visual C++.
24643 if test "$GCC" != yes; then
24644 with_gnu_ld=no
24645 fi
24646 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024647 interix*)
24648 # we just hope/assume this is gcc and not c89 (= MSVC++)
24649 with_gnu_ld=yes
24650 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024651 openbsd*)
24652 with_gnu_ld=no
24653 ;;
24654 esac
24655
24656 ld_shlibs_GCJ=yes
24657 if test "$with_gnu_ld" = yes; then
24658 # If archive_cmds runs LD, not CC, wlarc should be empty
24659 wlarc='${wl}'
24660
Reid Spencera773bd52006-08-04 18:18:08 +000024661 # Set some defaults for GNU ld with shared library support. These
24662 # are reset later if shared libraries are not supported. Putting them
24663 # here allows them to be overridden if necessary.
24664 runpath_var=LD_RUN_PATH
24665 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24666 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24667 # ancient GNU ld didn't support --whole-archive et. al.
24668 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24669 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24670 else
24671 whole_archive_flag_spec_GCJ=
24672 fi
24673 supports_anon_versioning=no
24674 case `$LD -v 2>/dev/null` in
24675 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24676 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24677 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24678 *\ 2.11.*) ;; # other 2.11 versions
24679 *) supports_anon_versioning=yes ;;
24680 esac
24681
John Criswell47fdd832003-07-14 16:52:07 +000024682 # See if GNU ld supports shared libraries.
24683 case $host_os in
24684 aix3* | aix4* | aix5*)
24685 # On AIX/PPC, the GNU linker is very broken
24686 if test "$host_cpu" != ia64; then
24687 ld_shlibs_GCJ=no
24688 cat <<EOF 1>&2
24689
24690*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24691*** to be unable to reliably create shared libraries on AIX.
24692*** Therefore, libtool is disabling shared libraries support. If you
24693*** really care for shared libraries, you may want to modify your PATH
24694*** so that a non-GNU linker is found, and then restart.
24695
24696EOF
24697 fi
24698 ;;
24699
24700 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024701 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 +000024702 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24703 hardcode_minus_L_GCJ=yes
24704
24705 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24706 # that the semantics of dynamic libraries on AmigaOS, at least up
24707 # to version 4, is to share data among multiple programs linked
24708 # with the same dynamic library. Since this doesn't match the
24709 # behavior of shared libraries on other platforms, we can't use
24710 # them.
24711 ld_shlibs_GCJ=no
24712 ;;
24713
24714 beos*)
24715 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24716 allow_undefined_flag_GCJ=unsupported
24717 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24718 # support --undefined. This deserves some investigation. FIXME
24719 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24720 else
24721 ld_shlibs_GCJ=no
24722 fi
24723 ;;
24724
24725 cygwin* | mingw* | pw32*)
24726 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24727 # as there is no search path for DLLs.
24728 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24729 allow_undefined_flag_GCJ=unsupported
24730 always_export_symbols_GCJ=no
24731 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024732 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 +000024733
24734 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024735 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 +000024736 # If the export-symbols file already is a .def file (1st line
24737 # is EXPORTS), use it as is; otherwise, prepend...
24738 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24739 cp $export_symbols $output_objdir/$soname.def;
24740 else
24741 echo EXPORTS > $output_objdir/$soname.def;
24742 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024743 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024744 $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 +000024745 else
Reid Spencera773bd52006-08-04 18:18:08 +000024746 ld_shlibs_GCJ=no
24747 fi
24748 ;;
24749
24750 interix3*)
24751 hardcode_direct_GCJ=no
24752 hardcode_shlibpath_var_GCJ=no
24753 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24754 export_dynamic_flag_spec_GCJ='${wl}-E'
24755 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24756 # Instead, shared libraries are loaded at an image base (0x10000000 by
24757 # default) and relocated if they conflict, which is a slow very memory
24758 # consuming and fragmenting process. To avoid this, we pick a random,
24759 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24760 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24761 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'
24762 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'
24763 ;;
24764
24765 linux*)
24766 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24767 tmp_addflag=
24768 case $cc_basename,$host_cpu in
24769 pgcc*) # Portland Group C compiler
24770 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'
24771 tmp_addflag=' $pic_flag'
24772 ;;
24773 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24774 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'
24775 tmp_addflag=' $pic_flag -Mnomain' ;;
24776 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24777 tmp_addflag=' -i_dynamic' ;;
24778 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24779 tmp_addflag=' -i_dynamic -nofor_main' ;;
24780 ifc* | ifort*) # Intel Fortran compiler
24781 tmp_addflag=' -nofor_main' ;;
24782 esac
24783 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24784
24785 if test $supports_anon_versioning = yes; then
24786 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24787 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24788 $echo "local: *; };" >> $output_objdir/$libname.ver~
24789 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24790 fi
24791 else
24792 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024793 fi
24794 ;;
24795
24796 netbsd*)
24797 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24798 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24799 wlarc=
24800 else
24801 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24802 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24803 fi
24804 ;;
24805
Reid Spencera773bd52006-08-04 18:18:08 +000024806 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024807 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24808 ld_shlibs_GCJ=no
24809 cat <<EOF 1>&2
24810
24811*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24812*** create shared libraries on Solaris systems. Therefore, libtool
24813*** is disabling shared libraries support. We urge you to upgrade GNU
24814*** binutils to release 2.9.1 or newer. Another option is to modify
24815*** your PATH or compiler configuration so that the native linker is
24816*** used, and then restart.
24817
24818EOF
24819 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24820 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24821 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24822 else
24823 ld_shlibs_GCJ=no
24824 fi
24825 ;;
24826
Reid Spencera773bd52006-08-04 18:18:08 +000024827 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24828 case `$LD -v 2>&1` in
24829 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24830 ld_shlibs_GCJ=no
24831 cat <<_LT_EOF 1>&2
24832
24833*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24834*** reliably create shared libraries on SCO systems. Therefore, libtool
24835*** is disabling shared libraries support. We urge you to upgrade GNU
24836*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24837*** your PATH or compiler configuration so that the native linker is
24838*** used, and then restart.
24839
24840_LT_EOF
24841 ;;
24842 *)
24843 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24844 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24845 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24846 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24847 else
24848 ld_shlibs_GCJ=no
24849 fi
24850 ;;
24851 esac
24852 ;;
24853
John Criswell47fdd832003-07-14 16:52:07 +000024854 sunos4*)
24855 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24856 wlarc=
24857 hardcode_direct_GCJ=yes
24858 hardcode_shlibpath_var_GCJ=no
24859 ;;
24860
24861 *)
24862 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24863 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24864 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24865 else
24866 ld_shlibs_GCJ=no
24867 fi
24868 ;;
24869 esac
24870
Reid Spencera773bd52006-08-04 18:18:08 +000024871 if test "$ld_shlibs_GCJ" = no; then
24872 runpath_var=
24873 hardcode_libdir_flag_spec_GCJ=
24874 export_dynamic_flag_spec_GCJ=
24875 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024876 fi
24877 else
24878 # PORTME fill in a description of your system's linker (not GNU ld)
24879 case $host_os in
24880 aix3*)
24881 allow_undefined_flag_GCJ=unsupported
24882 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024883 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 +000024884 # Note: this linker hardcodes the directories in LIBPATH if there
24885 # are no directories specified by -L.
24886 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024887 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024888 # Neither direct hardcoding nor static linking is supported with a
24889 # broken collect2.
24890 hardcode_direct_GCJ=unsupported
24891 fi
24892 ;;
24893
24894 aix4* | aix5*)
24895 if test "$host_cpu" = ia64; then
24896 # On IA64, the linker does run time linking by default, so we don't
24897 # have to do anything special.
24898 aix_use_runtimelinking=no
24899 exp_sym_flag='-Bexport'
24900 no_entry_flag=""
24901 else
24902 # If we're using GNU nm, then we don't want the "-C" option.
24903 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24904 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24905 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'
24906 else
24907 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'
24908 fi
24909 aix_use_runtimelinking=no
24910
24911 # Test if we are trying to use run time linking or normal
24912 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24913 # need to do runtime linking.
24914 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24915 for ld_flag in $LDFLAGS; do
24916 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24917 aix_use_runtimelinking=yes
24918 break
24919 fi
24920 done
Reid Spencera773bd52006-08-04 18:18:08 +000024921 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024922 esac
24923
24924 exp_sym_flag='-bexport'
24925 no_entry_flag='-bnoentry'
24926 fi
24927
24928 # When large executables or shared objects are built, AIX ld can
24929 # have problems creating the table of contents. If linking a library
24930 # or program results in "error TOC overflow" add -mminimal-toc to
24931 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24932 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24933
24934 archive_cmds_GCJ=''
24935 hardcode_direct_GCJ=yes
24936 hardcode_libdir_separator_GCJ=':'
24937 link_all_deplibs_GCJ=yes
24938
24939 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024940 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024941 # We only want to do this on AIX 4.2 and lower, the check
24942 # below for broken collect2 doesn't work under 4.3+
24943 collect2name=`${CC} -print-prog-name=collect2`
24944 if test -f "$collect2name" && \
24945 strings "$collect2name" | grep resolve_lib_name >/dev/null
24946 then
24947 # We have reworked collect2
24948 hardcode_direct_GCJ=yes
24949 else
24950 # We have old collect2
24951 hardcode_direct_GCJ=unsupported
24952 # It fails to find uninstalled libraries when the uninstalled
24953 # path is not listed in the libpath. Setting hardcode_minus_L
24954 # to unsupported forces relinking
24955 hardcode_minus_L_GCJ=yes
24956 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24957 hardcode_libdir_separator_GCJ=
24958 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024959 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024960 esac
24961 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024962 if test "$aix_use_runtimelinking" = yes; then
24963 shared_flag="$shared_flag "'${wl}-G'
24964 fi
John Criswell47fdd832003-07-14 16:52:07 +000024965 else
24966 # not using gcc
24967 if test "$host_cpu" = ia64; then
24968 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24969 # chokes on -Wl,-G. The following line is correct:
24970 shared_flag='-G'
24971 else
Reid Spencera773bd52006-08-04 18:18:08 +000024972 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024973 shared_flag='${wl}-G'
24974 else
24975 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024976 fi
John Criswell47fdd832003-07-14 16:52:07 +000024977 fi
24978 fi
24979
24980 # It seems that -bexpall does not export symbols beginning with
24981 # underscore (_), so it is better to generate a list of symbols to export.
24982 always_export_symbols_GCJ=yes
24983 if test "$aix_use_runtimelinking" = yes; then
24984 # Warning - without using the other runtime loading flags (-brtl),
24985 # -berok will link without error, but may produce a broken library.
24986 allow_undefined_flag_GCJ='-berok'
24987 # Determine the default libpath from the value encoded in an empty executable.
24988 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024989/* confdefs.h. */
24990_ACEOF
24991cat confdefs.h >>conftest.$ac_ext
24992cat >>conftest.$ac_ext <<_ACEOF
24993/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024994
John Criswell47fdd832003-07-14 16:52:07 +000024995int
24996main ()
24997{
24998
24999 ;
25000 return 0;
25001}
25002_ACEOF
25003rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025004if { (ac_try="$ac_link"
25005case "(($ac_try" in
25006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25007 *) ac_try_echo=$ac_try;;
25008esac
25009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25010 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000025011 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025012 grep -v '^ *+' conftest.er1 >conftest.err
25013 rm -f conftest.er1
25014 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000025015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000025016 (exit $ac_status); } &&
25017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25018 { (case "(($ac_try" in
25019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25020 *) ac_try_echo=$ac_try;;
25021esac
25022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25023 (eval "$ac_try") 2>&5
25024 ac_status=$?
25025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25026 (exit $ac_status); }; } &&
25027 { ac_try='test -s conftest$ac_exeext'
25028 { (case "(($ac_try" in
25029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25030 *) ac_try_echo=$ac_try;;
25031esac
25032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25033 (eval "$ac_try") 2>&5
25034 ac_status=$?
25035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000025037
25038aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25039}'`
25040# Check for a 64-bit object if we didn't find anything.
25041if 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; }
25042}'`; fi
25043else
25044 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025045sed 's/^/| /' conftest.$ac_ext >&5
25046
Reid Spencera773bd52006-08-04 18:18:08 +000025047
John Criswell47fdd832003-07-14 16:52:07 +000025048fi
Reid Spencera773bd52006-08-04 18:18:08 +000025049
Bill Wendlingebcceee2009-04-18 11:20:33 +000025050rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025051 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000025052if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25053
25054 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000025055 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 +000025056 else
25057 if test "$host_cpu" = ia64; then
25058 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25059 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000025060 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 +000025061 else
25062 # Determine the default libpath from the value encoded in an empty executable.
25063 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025064/* confdefs.h. */
25065_ACEOF
25066cat confdefs.h >>conftest.$ac_ext
25067cat >>conftest.$ac_ext <<_ACEOF
25068/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000025069
John Criswell47fdd832003-07-14 16:52:07 +000025070int
25071main ()
25072{
25073
25074 ;
25075 return 0;
25076}
25077_ACEOF
25078rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025079if { (ac_try="$ac_link"
25080case "(($ac_try" in
25081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25082 *) ac_try_echo=$ac_try;;
25083esac
25084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25085 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000025086 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025087 grep -v '^ *+' conftest.er1 >conftest.err
25088 rm -f conftest.er1
25089 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000025090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000025091 (exit $ac_status); } &&
25092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25093 { (case "(($ac_try" in
25094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25095 *) ac_try_echo=$ac_try;;
25096esac
25097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25098 (eval "$ac_try") 2>&5
25099 ac_status=$?
25100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101 (exit $ac_status); }; } &&
25102 { ac_try='test -s conftest$ac_exeext'
25103 { (case "(($ac_try" in
25104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25105 *) ac_try_echo=$ac_try;;
25106esac
25107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25108 (eval "$ac_try") 2>&5
25109 ac_status=$?
25110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000025112
25113aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25114}'`
25115# Check for a 64-bit object if we didn't find anything.
25116if 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; }
25117}'`; fi
25118else
25119 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025120sed 's/^/| /' conftest.$ac_ext >&5
25121
Reid Spencera773bd52006-08-04 18:18:08 +000025122
John Criswell47fdd832003-07-14 16:52:07 +000025123fi
Reid Spencera773bd52006-08-04 18:18:08 +000025124
Bill Wendlingebcceee2009-04-18 11:20:33 +000025125rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025126 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000025127if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25128
25129 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25130 # Warning - without using the other run time loading flags,
25131 # -berok will link without error, but may produce a broken library.
25132 no_undefined_flag_GCJ=' ${wl}-bernotok'
25133 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000025134 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000025135 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000025136 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000025137 # This is similar to how AIX traditionally builds its shared libraries.
25138 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 +000025139 fi
25140 fi
25141 ;;
25142
25143 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000025144 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 +000025145 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25146 hardcode_minus_L_GCJ=yes
25147 # see comment about different semantics on the GNU ld section
25148 ld_shlibs_GCJ=no
25149 ;;
25150
Reid Spencer2706f8c2004-09-19 23:53:36 +000025151 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025152 export_dynamic_flag_spec_GCJ=-rdynamic
25153 ;;
25154
25155 cygwin* | mingw* | pw32*)
25156 # When not using gcc, we currently assume that we are using
25157 # Microsoft Visual C++.
25158 # hardcode_libdir_flag_spec is actually meaningless, as there is
25159 # no search path for DLLs.
25160 hardcode_libdir_flag_spec_GCJ=' '
25161 allow_undefined_flag_GCJ=unsupported
25162 # Tell ltmain to make .lib files, not .a files.
25163 libext=lib
25164 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025165 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025166 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000025167 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 +000025168 # The linker will automatically build a .lib file if we build a DLL.
25169 old_archive_From_new_cmds_GCJ='true'
25170 # FIXME: Should let the user specify the lib program.
25171 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000025172 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000025173 enable_shared_with_static_runtimes_GCJ=yes
25174 ;;
25175
25176 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000025177 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025178 rhapsody* | darwin1.[012])
25179 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25180 ;;
25181 *) # Darwin 1.3 on
25182 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25183 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25184 else
25185 case ${MACOSX_DEPLOYMENT_TARGET} in
25186 10.[012])
25187 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25188 ;;
25189 10.*)
25190 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25191 ;;
25192 esac
25193 fi
25194 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025195 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025196 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025197 hardcode_direct_GCJ=no
25198 hardcode_automatic_GCJ=yes
25199 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000025200 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000025201 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000025202 if test "$GCC" = yes ; then
25203 output_verbose_link_cmd='echo'
25204 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25205 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025206 # 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 +000025207 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}'
25208 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 +000025209 else
Reid Spencera773bd52006-08-04 18:18:08 +000025210 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025211 xlc*)
25212 output_verbose_link_cmd='echo'
25213 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25214 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025215 # 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 +000025216 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}'
25217 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 +000025218 ;;
25219 *)
25220 ld_shlibs_GCJ=no
25221 ;;
25222 esac
John Criswell47fdd832003-07-14 16:52:07 +000025223 fi
25224 ;;
25225
25226 dgux*)
25227 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25228 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25229 hardcode_shlibpath_var_GCJ=no
25230 ;;
25231
25232 freebsd1*)
25233 ld_shlibs_GCJ=no
25234 ;;
25235
25236 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25237 # support. Future versions do this automatically, but an explicit c++rt0.o
25238 # does not break anything, and helps significantly (at the cost of a little
25239 # extra space).
25240 freebsd2.2*)
25241 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25242 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25243 hardcode_direct_GCJ=yes
25244 hardcode_shlibpath_var_GCJ=no
25245 ;;
25246
25247 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25248 freebsd2*)
25249 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25250 hardcode_direct_GCJ=yes
25251 hardcode_minus_L_GCJ=yes
25252 hardcode_shlibpath_var_GCJ=no
25253 ;;
25254
25255 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000025256 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000025257 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25258 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25259 hardcode_direct_GCJ=yes
25260 hardcode_shlibpath_var_GCJ=no
25261 ;;
25262
25263 hpux9*)
25264 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000025265 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 +000025266 else
Reid Spencer177dbe22004-10-13 01:01:03 +000025267 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 +000025268 fi
25269 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25270 hardcode_libdir_separator_GCJ=:
25271 hardcode_direct_GCJ=yes
25272
25273 # hardcode_minus_L: Not really in the search PATH,
25274 # but as the default location of the library.
25275 hardcode_minus_L_GCJ=yes
25276 export_dynamic_flag_spec_GCJ='${wl}-E'
25277 ;;
25278
Reid Spencera773bd52006-08-04 18:18:08 +000025279 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000025280 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025281 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25282 else
25283 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25284 fi
25285 if test "$with_gnu_ld" = no; then
25286 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25287 hardcode_libdir_separator_GCJ=:
25288
25289 hardcode_direct_GCJ=yes
25290 export_dynamic_flag_spec_GCJ='${wl}-E'
25291
25292 # hardcode_minus_L: Not really in the search PATH,
25293 # but as the default location of the library.
25294 hardcode_minus_L_GCJ=yes
25295 fi
25296 ;;
25297
25298 hpux11*)
25299 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25300 case $host_cpu in
25301 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000025302 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25303 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025304 ia64*)
25305 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25306 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025307 *)
25308 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25309 ;;
25310 esac
25311 else
Reid Spencera773bd52006-08-04 18:18:08 +000025312 case $host_cpu in
25313 hppa*64*)
25314 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25315 ;;
25316 ia64*)
25317 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000025318 ;;
25319 *)
Reid Spencera773bd52006-08-04 18:18:08 +000025320 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 +000025321 ;;
25322 esac
25323 fi
25324 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025325 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25326 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000025327
Reid Spencera773bd52006-08-04 18:18:08 +000025328 case $host_cpu in
25329 hppa*64*|ia64*)
25330 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25331 hardcode_direct_GCJ=no
25332 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025333 ;;
25334 *)
John Criswell47fdd832003-07-14 16:52:07 +000025335 hardcode_direct_GCJ=yes
25336 export_dynamic_flag_spec_GCJ='${wl}-E'
25337
25338 # hardcode_minus_L: Not really in the search PATH,
25339 # but as the default location of the library.
25340 hardcode_minus_L_GCJ=yes
25341 ;;
25342 esac
25343 fi
25344 ;;
25345
25346 irix5* | irix6* | nonstopux*)
25347 if test "$GCC" = yes; then
25348 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'
25349 else
25350 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'
25351 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25352 fi
25353 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25354 hardcode_libdir_separator_GCJ=:
25355 link_all_deplibs_GCJ=yes
25356 ;;
25357
25358 netbsd*)
25359 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25360 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25361 else
25362 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25363 fi
25364 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25365 hardcode_direct_GCJ=yes
25366 hardcode_shlibpath_var_GCJ=no
25367 ;;
25368
25369 newsos6)
25370 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25371 hardcode_direct_GCJ=yes
25372 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25373 hardcode_libdir_separator_GCJ=:
25374 hardcode_shlibpath_var_GCJ=no
25375 ;;
25376
25377 openbsd*)
25378 hardcode_direct_GCJ=yes
25379 hardcode_shlibpath_var_GCJ=no
25380 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25381 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025382 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 +000025383 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25384 export_dynamic_flag_spec_GCJ='${wl}-E'
25385 else
25386 case $host_os in
25387 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25388 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25389 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25390 ;;
25391 *)
25392 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25393 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25394 ;;
25395 esac
25396 fi
25397 ;;
25398
25399 os2*)
25400 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25401 hardcode_minus_L_GCJ=yes
25402 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000025403 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 +000025404 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25405 ;;
25406
25407 osf3*)
25408 if test "$GCC" = yes; then
25409 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25410 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'
25411 else
25412 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25413 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'
25414 fi
25415 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25416 hardcode_libdir_separator_GCJ=:
25417 ;;
25418
25419 osf4* | osf5*) # as osf3* with the addition of -msym flag
25420 if test "$GCC" = yes; then
25421 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25422 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'
25423 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25424 else
25425 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25426 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 +000025427 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 +000025428 $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 +000025429
John Criswell47fdd832003-07-14 16:52:07 +000025430 # Both c and cxx compiler support -rpath directly
25431 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25432 fi
25433 hardcode_libdir_separator_GCJ=:
25434 ;;
25435
John Criswell47fdd832003-07-14 16:52:07 +000025436 solaris*)
25437 no_undefined_flag_GCJ=' -z text'
25438 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025439 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025440 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025441 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25442 $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 +000025443 else
Reid Spencera773bd52006-08-04 18:18:08 +000025444 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025445 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025446 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25447 $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 +000025448 fi
25449 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25450 hardcode_shlibpath_var_GCJ=no
25451 case $host_os in
25452 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025453 *)
25454 # The compiler driver will combine linker options so we
25455 # cannot just pass the convience library names through
25456 # without $wl, iff we do not link with $LD.
25457 # Luckily, gcc supports the same syntax we need for Sun Studio.
25458 # Supported since Solaris 2.6 (maybe 2.5.1?)
25459 case $wlarc in
25460 '')
25461 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25462 *)
25463 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' ;;
25464 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025465 esac
25466 link_all_deplibs_GCJ=yes
25467 ;;
25468
25469 sunos4*)
25470 if test "x$host_vendor" = xsequent; then
25471 # Use $CC to link under sequent, because it throws in some extra .o
25472 # files that make .init and .fini sections work.
25473 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25474 else
25475 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25476 fi
25477 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25478 hardcode_direct_GCJ=yes
25479 hardcode_minus_L_GCJ=yes
25480 hardcode_shlibpath_var_GCJ=no
25481 ;;
25482
25483 sysv4)
25484 case $host_vendor in
25485 sni)
25486 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25487 hardcode_direct_GCJ=yes # is this really true???
25488 ;;
25489 siemens)
25490 ## LD is ld it makes a PLAMLIB
25491 ## CC just makes a GrossModule.
25492 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25493 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25494 hardcode_direct_GCJ=no
25495 ;;
25496 motorola)
25497 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25498 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25499 ;;
25500 esac
25501 runpath_var='LD_RUN_PATH'
25502 hardcode_shlibpath_var_GCJ=no
25503 ;;
25504
25505 sysv4.3*)
25506 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25507 hardcode_shlibpath_var_GCJ=no
25508 export_dynamic_flag_spec_GCJ='-Bexport'
25509 ;;
25510
25511 sysv4*MP*)
25512 if test -d /usr/nec; then
25513 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25514 hardcode_shlibpath_var_GCJ=no
25515 runpath_var=LD_RUN_PATH
25516 hardcode_runpath_var=yes
25517 ld_shlibs_GCJ=yes
25518 fi
25519 ;;
25520
Reid Spencera773bd52006-08-04 18:18:08 +000025521 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25522 no_undefined_flag_GCJ='${wl}-z,text'
25523 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025524 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025525 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025526
John Criswell47fdd832003-07-14 16:52:07 +000025527 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025528 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25529 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 +000025530 else
Reid Spencera773bd52006-08-04 18:18:08 +000025531 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25532 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 +000025533 fi
John Criswell47fdd832003-07-14 16:52:07 +000025534 ;;
25535
Reid Spencera773bd52006-08-04 18:18:08 +000025536 sysv5* | sco3.2v5* | sco5v6*)
25537 # Note: We can NOT use -z defs as we might desire, because we do not
25538 # link with -lc, and that would cause any symbols used from libc to
25539 # always be unresolved, which means just about no library would
25540 # ever link correctly. If we're not using GNU ld we use -z text
25541 # though, which does catch some bad symbols but isn't as heavy-handed
25542 # as -z defs.
25543 no_undefined_flag_GCJ='${wl}-z,text'
25544 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25545 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025546 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025547 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25548 hardcode_libdir_separator_GCJ=':'
25549 link_all_deplibs_GCJ=yes
25550 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025551 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025552
25553 if test "$GCC" = yes; then
25554 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25555 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25556 else
25557 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25558 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25559 fi
John Criswell47fdd832003-07-14 16:52:07 +000025560 ;;
25561
25562 uts4*)
25563 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25564 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25565 hardcode_shlibpath_var_GCJ=no
25566 ;;
25567
25568 *)
25569 ld_shlibs_GCJ=no
25570 ;;
25571 esac
25572 fi
25573
Reid Spencera773bd52006-08-04 18:18:08 +000025574{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25575echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025576test "$ld_shlibs_GCJ" = no && can_build_shared=no
25577
John Criswell47fdd832003-07-14 16:52:07 +000025578#
25579# Do we need to explicitly link libc?
25580#
25581case "x$archive_cmds_need_lc_GCJ" in
25582x|xyes)
25583 # Assume -lc should be added
25584 archive_cmds_need_lc_GCJ=yes
25585
25586 if test "$enable_shared" = yes && test "$GCC" = yes; then
25587 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025588 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025589 # FIXME: we may have to deal with multi-command sequences.
25590 ;;
25591 '$CC '*)
25592 # Test whether the compiler implicitly links with -lc since on some
25593 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25594 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025595 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25596echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025597 $rm conftest*
25598 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25599
25600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25601 (eval $ac_compile) 2>&5
25602 ac_status=$?
25603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604 (exit $ac_status); } 2>conftest.err; then
25605 soname=conftest
25606 lib=conftest
25607 libobjs=conftest.$ac_objext
25608 deplibs=
25609 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025610 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025611 compiler_flags=-v
25612 linker_flags=-v
25613 verstring=
25614 output_objdir=.
25615 libname=conftest
25616 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25617 allow_undefined_flag_GCJ=
25618 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25619 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25620 ac_status=$?
25621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25622 (exit $ac_status); }
25623 then
25624 archive_cmds_need_lc_GCJ=no
25625 else
25626 archive_cmds_need_lc_GCJ=yes
25627 fi
25628 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25629 else
25630 cat conftest.err 1>&5
25631 fi
25632 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025633 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25634echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025635 ;;
25636 esac
25637 fi
25638 ;;
25639esac
25640
Reid Spencera773bd52006-08-04 18:18:08 +000025641{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25642echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025643library_names_spec=
25644libname_spec='lib$name'
25645soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025646shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025647postinstall_cmds=
25648postuninstall_cmds=
25649finish_cmds=
25650finish_eval=
25651shlibpath_var=
25652shlibpath_overrides_runpath=unknown
25653version_type=none
25654dynamic_linker="$host_os ld.so"
25655sys_lib_dlsearch_path_spec="/lib /usr/lib"
25656if test "$GCC" = yes; then
25657 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25658 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25659 # if the path contains ";" then we assume it to be the separator
25660 # otherwise default to the standard path separator (i.e. ":") - it is
25661 # assumed that no part of a normal pathname contains ";" but that should
25662 # okay in the real world where ";" in dirpaths is itself problematic.
25663 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25664 else
25665 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25666 fi
25667else
25668 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25669fi
25670need_lib_prefix=unknown
25671hardcode_into_libs=no
25672
25673# when you set need_version to no, make sure it does not cause -set_version
25674# flags to be left without arguments
25675need_version=unknown
25676
25677case $host_os in
25678aix3*)
25679 version_type=linux
25680 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25681 shlibpath_var=LIBPATH
25682
25683 # AIX 3 has no versioning support, so we append a major version to the name.
25684 soname_spec='${libname}${release}${shared_ext}$major'
25685 ;;
25686
25687aix4* | aix5*)
25688 version_type=linux
25689 need_lib_prefix=no
25690 need_version=no
25691 hardcode_into_libs=yes
25692 if test "$host_cpu" = ia64; then
25693 # AIX 5 supports IA64
25694 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25695 shlibpath_var=LD_LIBRARY_PATH
25696 else
25697 # With GCC up to 2.95.x, collect2 would create an import file
25698 # for dependence libraries. The import file would start with
25699 # the line `#! .'. This would cause the generated library to
25700 # depend on `.', always an invalid library. This was fixed in
25701 # development snapshots of GCC prior to 3.0.
25702 case $host_os in
25703 aix4 | aix4.[01] | aix4.[01].*)
25704 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25705 echo ' yes '
25706 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25707 :
25708 else
25709 can_build_shared=no
25710 fi
25711 ;;
25712 esac
25713 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25714 # soname into executable. Probably we can add versioning support to
25715 # collect2, so additional links can be useful in future.
25716 if test "$aix_use_runtimelinking" = yes; then
25717 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25718 # instead of lib<name>.a to let people know that these are not
25719 # typical AIX shared libraries.
25720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25721 else
25722 # We preserve .a as extension for shared libraries through AIX4.2
25723 # and later when we are not doing run time linking.
25724 library_names_spec='${libname}${release}.a $libname.a'
25725 soname_spec='${libname}${release}${shared_ext}$major'
25726 fi
25727 shlibpath_var=LIBPATH
25728 fi
25729 ;;
25730
25731amigaos*)
25732 library_names_spec='$libname.ixlibrary $libname.a'
25733 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025734 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 +000025735 ;;
25736
25737beos*)
25738 library_names_spec='${libname}${shared_ext}'
25739 dynamic_linker="$host_os ld.so"
25740 shlibpath_var=LIBRARY_PATH
25741 ;;
25742
Reid Spencer2706f8c2004-09-19 23:53:36 +000025743bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025744 version_type=linux
25745 need_version=no
25746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25747 soname_spec='${libname}${release}${shared_ext}$major'
25748 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25749 shlibpath_var=LD_LIBRARY_PATH
25750 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25751 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25752 # the default ld.so.conf also contains /usr/contrib/lib and
25753 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25754 # libtool to hard-code these into programs
25755 ;;
25756
25757cygwin* | mingw* | pw32*)
25758 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025759 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025760 need_version=no
25761 need_lib_prefix=no
25762
25763 case $GCC,$host_os in
25764 yes,cygwin* | yes,mingw* | yes,pw32*)
25765 library_names_spec='$libname.dll.a'
25766 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025767 postinstall_cmds='base_file=`basename \${file}`~
25768 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25769 dldir=$destdir/`dirname \$dlpath`~
25770 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025771 $install_prog $dir/$dlname \$dldir/$dlname~
25772 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025773 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25774 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025775 $rm \$dlpath'
25776 shlibpath_overrides_runpath=yes
25777
25778 case $host_os in
25779 cygwin*)
25780 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25781 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 +000025782 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025783 ;;
25784 mingw*)
25785 # MinGW DLLs use traditional 'lib' prefix
25786 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25787 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25788 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25789 # It is most probably a Windows format PATH printed by
25790 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25791 # path with ; separators, and with drive letters. We can handle the
25792 # drive letters (cygwin fileutils understands them), so leave them,
25793 # especially as we might pass files found there to a mingw objdump,
25794 # which wouldn't understand a cygwinified path. Ahh.
25795 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25796 else
25797 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25798 fi
25799 ;;
25800 pw32*)
25801 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025802 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 +000025803 ;;
25804 esac
25805 ;;
25806
25807 *)
25808 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25809 ;;
25810 esac
25811 dynamic_linker='Win32 ld.exe'
25812 # FIXME: first we should search . and the directory the executable is in
25813 shlibpath_var=PATH
25814 ;;
25815
25816darwin* | rhapsody*)
25817 dynamic_linker="$host_os dyld"
25818 version_type=darwin
25819 need_lib_prefix=no
25820 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025821 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025822 soname_spec='${libname}${release}${major}$shared_ext'
25823 shlibpath_overrides_runpath=yes
25824 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025825 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025826 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025827 if test "$GCC" = yes; then
25828 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"`
25829 else
25830 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025831 fi
25832 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25833 ;;
25834
25835dgux*)
25836 version_type=linux
25837 need_lib_prefix=no
25838 need_version=no
25839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25840 soname_spec='${libname}${release}${shared_ext}$major'
25841 shlibpath_var=LD_LIBRARY_PATH
25842 ;;
25843
25844freebsd1*)
25845 dynamic_linker=no
25846 ;;
25847
Reid Spencer2706f8c2004-09-19 23:53:36 +000025848kfreebsd*-gnu)
25849 version_type=linux
25850 need_lib_prefix=no
25851 need_version=no
25852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25853 soname_spec='${libname}${release}${shared_ext}$major'
25854 shlibpath_var=LD_LIBRARY_PATH
25855 shlibpath_overrides_runpath=no
25856 hardcode_into_libs=yes
25857 dynamic_linker='GNU ld.so'
25858 ;;
25859
Reid Spencera773bd52006-08-04 18:18:08 +000025860freebsd* | dragonfly*)
25861 # DragonFly does not have aout. When/if they implement a new
25862 # versioning mechanism, adjust this.
25863 if test -x /usr/bin/objformat; then
25864 objformat=`/usr/bin/objformat`
25865 else
25866 case $host_os in
25867 freebsd[123]*) objformat=aout ;;
25868 *) objformat=elf ;;
25869 esac
25870 fi
John Criswell47fdd832003-07-14 16:52:07 +000025871 version_type=freebsd-$objformat
25872 case $version_type in
25873 freebsd-elf*)
25874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25875 need_version=no
25876 need_lib_prefix=no
25877 ;;
25878 freebsd-*)
25879 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25880 need_version=yes
25881 ;;
25882 esac
25883 shlibpath_var=LD_LIBRARY_PATH
25884 case $host_os in
25885 freebsd2*)
25886 shlibpath_overrides_runpath=yes
25887 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025888 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025889 shlibpath_overrides_runpath=yes
25890 hardcode_into_libs=yes
25891 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025892 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25893 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025894 shlibpath_overrides_runpath=no
25895 hardcode_into_libs=yes
25896 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025897 freebsd*) # from 4.6 on
25898 shlibpath_overrides_runpath=yes
25899 hardcode_into_libs=yes
25900 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025901 esac
25902 ;;
25903
25904gnu*)
25905 version_type=linux
25906 need_lib_prefix=no
25907 need_version=no
25908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25909 soname_spec='${libname}${release}${shared_ext}$major'
25910 shlibpath_var=LD_LIBRARY_PATH
25911 hardcode_into_libs=yes
25912 ;;
25913
25914hpux9* | hpux10* | hpux11*)
25915 # Give a soname corresponding to the major version so that dld.sl refuses to
25916 # link against other versions.
25917 version_type=sunos
25918 need_lib_prefix=no
25919 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025920 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025921 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025922 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025923 hardcode_into_libs=yes
25924 dynamic_linker="$host_os dld.so"
25925 shlibpath_var=LD_LIBRARY_PATH
25926 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25928 soname_spec='${libname}${release}${shared_ext}$major'
25929 if test "X$HPUX_IA64_MODE" = X32; then
25930 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25931 else
25932 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25933 fi
25934 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25935 ;;
25936 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025937 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025938 hardcode_into_libs=yes
25939 dynamic_linker="$host_os dld.sl"
25940 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25941 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25943 soname_spec='${libname}${release}${shared_ext}$major'
25944 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25945 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25946 ;;
25947 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025948 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025949 dynamic_linker="$host_os dld.sl"
25950 shlibpath_var=SHLIB_PATH
25951 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25953 soname_spec='${libname}${release}${shared_ext}$major'
25954 ;;
25955 esac
25956 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25957 postinstall_cmds='chmod 555 $lib'
25958 ;;
25959
Reid Spencera773bd52006-08-04 18:18:08 +000025960interix3*)
25961 version_type=linux
25962 need_lib_prefix=no
25963 need_version=no
25964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25965 soname_spec='${libname}${release}${shared_ext}$major'
25966 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25967 shlibpath_var=LD_LIBRARY_PATH
25968 shlibpath_overrides_runpath=no
25969 hardcode_into_libs=yes
25970 ;;
25971
John Criswell47fdd832003-07-14 16:52:07 +000025972irix5* | irix6* | nonstopux*)
25973 case $host_os in
25974 nonstopux*) version_type=nonstopux ;;
25975 *)
25976 if test "$lt_cv_prog_gnu_ld" = yes; then
25977 version_type=linux
25978 else
25979 version_type=irix
25980 fi ;;
25981 esac
25982 need_lib_prefix=no
25983 need_version=no
25984 soname_spec='${libname}${release}${shared_ext}$major'
25985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25986 case $host_os in
25987 irix5* | nonstopux*)
25988 libsuff= shlibsuff=
25989 ;;
25990 *)
25991 case $LD in # libtool.m4 will add one of these switches to LD
25992 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25993 libsuff= shlibsuff= libmagic=32-bit;;
25994 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25995 libsuff=32 shlibsuff=N32 libmagic=N32;;
25996 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25997 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25998 *) libsuff= shlibsuff= libmagic=never-match;;
25999 esac
26000 ;;
26001 esac
26002 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26003 shlibpath_overrides_runpath=no
26004 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26005 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26006 hardcode_into_libs=yes
26007 ;;
26008
26009# No shared lib support for Linux oldld, aout, or coff.
26010linux*oldld* | linux*aout* | linux*coff*)
26011 dynamic_linker=no
26012 ;;
26013
26014# This must be Linux ELF.
26015linux*)
26016 version_type=linux
26017 need_lib_prefix=no
26018 need_version=no
26019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26020 soname_spec='${libname}${release}${shared_ext}$major'
26021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26022 shlibpath_var=LD_LIBRARY_PATH
26023 shlibpath_overrides_runpath=no
26024 # This implies no fast_install, which is unacceptable.
26025 # Some rework will be needed to allow for fast_install
26026 # before this can be enabled.
26027 hardcode_into_libs=yes
26028
Reid Spencer2706f8c2004-09-19 23:53:36 +000026029 # Append ld.so.conf contents to the search path
26030 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000026031 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 +000026032 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26033 fi
26034
John Criswell47fdd832003-07-14 16:52:07 +000026035 # We used to test for /lib/ld.so.1 and disable shared libraries on
26036 # powerpc, because MkLinux only supported shared libraries with the
26037 # GNU dynamic linker. Since this was broken with cross compilers,
26038 # most powerpc-linux boxes support dynamic linking these days and
26039 # people can always --disable-shared, the test was removed, and we
26040 # assume the GNU/Linux dynamic linker is in use.
26041 dynamic_linker='GNU/Linux ld.so'
26042 ;;
26043
Reid Spencer2706f8c2004-09-19 23:53:36 +000026044knetbsd*-gnu)
26045 version_type=linux
26046 need_lib_prefix=no
26047 need_version=no
26048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26049 soname_spec='${libname}${release}${shared_ext}$major'
26050 shlibpath_var=LD_LIBRARY_PATH
26051 shlibpath_overrides_runpath=no
26052 hardcode_into_libs=yes
26053 dynamic_linker='GNU ld.so'
26054 ;;
26055
John Criswell47fdd832003-07-14 16:52:07 +000026056netbsd*)
26057 version_type=sunos
26058 need_lib_prefix=no
26059 need_version=no
26060 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26062 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26063 dynamic_linker='NetBSD (a.out) ld.so'
26064 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000026065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000026066 soname_spec='${libname}${release}${shared_ext}$major'
26067 dynamic_linker='NetBSD ld.elf_so'
26068 fi
26069 shlibpath_var=LD_LIBRARY_PATH
26070 shlibpath_overrides_runpath=yes
26071 hardcode_into_libs=yes
26072 ;;
26073
26074newsos6)
26075 version_type=linux
26076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26077 shlibpath_var=LD_LIBRARY_PATH
26078 shlibpath_overrides_runpath=yes
26079 ;;
26080
Reid Spencer2706f8c2004-09-19 23:53:36 +000026081nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000026082 version_type=linux
26083 need_lib_prefix=no
26084 need_version=no
26085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26086 soname_spec='${libname}${release}${shared_ext}$major'
26087 shlibpath_var=LD_LIBRARY_PATH
26088 shlibpath_overrides_runpath=yes
26089 ;;
26090
26091openbsd*)
26092 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000026093 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000026094 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000026095 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26096 case $host_os in
26097 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26098 *) need_version=no ;;
26099 esac
John Criswell47fdd832003-07-14 16:52:07 +000026100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26101 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26102 shlibpath_var=LD_LIBRARY_PATH
26103 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26104 case $host_os in
26105 openbsd2.[89] | openbsd2.[89].*)
26106 shlibpath_overrides_runpath=no
26107 ;;
26108 *)
26109 shlibpath_overrides_runpath=yes
26110 ;;
26111 esac
26112 else
26113 shlibpath_overrides_runpath=yes
26114 fi
26115 ;;
26116
26117os2*)
26118 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000026119 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000026120 need_lib_prefix=no
26121 library_names_spec='$libname${shared_ext} $libname.a'
26122 dynamic_linker='OS/2 ld.exe'
26123 shlibpath_var=LIBPATH
26124 ;;
26125
26126osf3* | osf4* | osf5*)
26127 version_type=osf
26128 need_lib_prefix=no
26129 need_version=no
26130 soname_spec='${libname}${release}${shared_ext}$major'
26131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26132 shlibpath_var=LD_LIBRARY_PATH
26133 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26134 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26135 ;;
26136
John Criswell47fdd832003-07-14 16:52:07 +000026137solaris*)
26138 version_type=linux
26139 need_lib_prefix=no
26140 need_version=no
26141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26142 soname_spec='${libname}${release}${shared_ext}$major'
26143 shlibpath_var=LD_LIBRARY_PATH
26144 shlibpath_overrides_runpath=yes
26145 hardcode_into_libs=yes
26146 # ldd complains unless libraries are executable
26147 postinstall_cmds='chmod +x $lib'
26148 ;;
26149
26150sunos4*)
26151 version_type=sunos
26152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26153 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26154 shlibpath_var=LD_LIBRARY_PATH
26155 shlibpath_overrides_runpath=yes
26156 if test "$with_gnu_ld" = yes; then
26157 need_lib_prefix=no
26158 fi
26159 need_version=yes
26160 ;;
26161
Reid Spencera773bd52006-08-04 18:18:08 +000026162sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000026163 version_type=linux
26164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26165 soname_spec='${libname}${release}${shared_ext}$major'
26166 shlibpath_var=LD_LIBRARY_PATH
26167 case $host_vendor in
26168 sni)
26169 shlibpath_overrides_runpath=no
26170 need_lib_prefix=no
26171 export_dynamic_flag_spec='${wl}-Blargedynsym'
26172 runpath_var=LD_RUN_PATH
26173 ;;
26174 siemens)
26175 need_lib_prefix=no
26176 ;;
26177 motorola)
26178 need_lib_prefix=no
26179 need_version=no
26180 shlibpath_overrides_runpath=no
26181 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26182 ;;
26183 esac
26184 ;;
26185
26186sysv4*MP*)
26187 if test -d /usr/nec ;then
26188 version_type=linux
26189 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26190 soname_spec='$libname${shared_ext}.$major'
26191 shlibpath_var=LD_LIBRARY_PATH
26192 fi
26193 ;;
26194
Reid Spencera773bd52006-08-04 18:18:08 +000026195sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26196 version_type=freebsd-elf
26197 need_lib_prefix=no
26198 need_version=no
26199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26200 soname_spec='${libname}${release}${shared_ext}$major'
26201 shlibpath_var=LD_LIBRARY_PATH
26202 hardcode_into_libs=yes
26203 if test "$with_gnu_ld" = yes; then
26204 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26205 shlibpath_overrides_runpath=no
26206 else
26207 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26208 shlibpath_overrides_runpath=yes
26209 case $host_os in
26210 sco3.2v5*)
26211 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26212 ;;
26213 esac
26214 fi
26215 sys_lib_dlsearch_path_spec='/usr/lib'
26216 ;;
26217
John Criswell47fdd832003-07-14 16:52:07 +000026218uts4*)
26219 version_type=linux
26220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26221 soname_spec='${libname}${release}${shared_ext}$major'
26222 shlibpath_var=LD_LIBRARY_PATH
26223 ;;
26224
26225*)
26226 dynamic_linker=no
26227 ;;
26228esac
Reid Spencera773bd52006-08-04 18:18:08 +000026229{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26230echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000026231test "$dynamic_linker" = no && can_build_shared=no
26232
Reid Spencera773bd52006-08-04 18:18:08 +000026233variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26234if test "$GCC" = yes; then
26235 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26236fi
26237
26238{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26239echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026240hardcode_action_GCJ=
26241if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26242 test -n "$runpath_var_GCJ" || \
26243 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26244
26245 # We can hardcode non-existant directories.
26246 if test "$hardcode_direct_GCJ" != no &&
26247 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26248 # have to relink, otherwise we might link with an installed library
26249 # when we should be linking with a yet-to-be-installed one
26250 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26251 test "$hardcode_minus_L_GCJ" != no; then
26252 # Linking always hardcodes the temporary library directory.
26253 hardcode_action_GCJ=relink
26254 else
26255 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26256 hardcode_action_GCJ=immediate
26257 fi
26258else
26259 # We cannot hardcode anything, or else we can only hardcode existing
26260 # directories.
26261 hardcode_action_GCJ=unsupported
26262fi
Reid Spencera773bd52006-08-04 18:18:08 +000026263{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26264echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026265
26266if test "$hardcode_action_GCJ" = relink; then
26267 # Fast installation is not supported
26268 enable_fast_install=no
26269elif test "$shlibpath_overrides_runpath" = yes ||
26270 test "$enable_shared" = no; then
26271 # Fast installation is not necessary
26272 enable_fast_install=needless
26273fi
26274
John Criswell47fdd832003-07-14 16:52:07 +000026275
26276# The else clause should only fire when bootstrapping the
26277# libtool distribution, otherwise you forgot to ship ltmain.sh
26278# with your package, and you will get complaints that there are
26279# no rules to generate ltmain.sh.
26280if test -f "$ltmain"; then
26281 # See if we are running on zsh, and set the options which allow our commands through
26282 # without removal of \ escapes.
26283 if test -n "${ZSH_VERSION+set}" ; then
26284 setopt NO_GLOB_SUBST
26285 fi
26286 # Now quote all the things that may contain metacharacters while being
26287 # careful not to overquote the AC_SUBSTed values. We take copies of the
26288 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026289 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 +000026290 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026291 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26292 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26293 deplibs_check_method reload_flag reload_cmds need_locks \
26294 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26295 lt_cv_sys_global_symbol_to_c_name_address \
26296 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26297 old_postinstall_cmds old_postuninstall_cmds \
26298 compiler_GCJ \
26299 CC_GCJ \
26300 LD_GCJ \
26301 lt_prog_compiler_wl_GCJ \
26302 lt_prog_compiler_pic_GCJ \
26303 lt_prog_compiler_static_GCJ \
26304 lt_prog_compiler_no_builtin_flag_GCJ \
26305 export_dynamic_flag_spec_GCJ \
26306 thread_safe_flag_spec_GCJ \
26307 whole_archive_flag_spec_GCJ \
26308 enable_shared_with_static_runtimes_GCJ \
26309 old_archive_cmds_GCJ \
26310 old_archive_from_new_cmds_GCJ \
26311 predep_objects_GCJ \
26312 postdep_objects_GCJ \
26313 predeps_GCJ \
26314 postdeps_GCJ \
26315 compiler_lib_search_path_GCJ \
26316 archive_cmds_GCJ \
26317 archive_expsym_cmds_GCJ \
26318 postinstall_cmds_GCJ \
26319 postuninstall_cmds_GCJ \
26320 old_archive_from_expsyms_cmds_GCJ \
26321 allow_undefined_flag_GCJ \
26322 no_undefined_flag_GCJ \
26323 export_symbols_cmds_GCJ \
26324 hardcode_libdir_flag_spec_GCJ \
26325 hardcode_libdir_flag_spec_ld_GCJ \
26326 hardcode_libdir_separator_GCJ \
26327 hardcode_automatic_GCJ \
26328 module_cmds_GCJ \
26329 module_expsym_cmds_GCJ \
26330 lt_cv_prog_compiler_c_o_GCJ \
26331 exclude_expsyms_GCJ \
26332 include_expsyms_GCJ; do
26333
26334 case $var in
26335 old_archive_cmds_GCJ | \
26336 old_archive_from_new_cmds_GCJ | \
26337 archive_cmds_GCJ | \
26338 archive_expsym_cmds_GCJ | \
26339 module_cmds_GCJ | \
26340 module_expsym_cmds_GCJ | \
26341 old_archive_from_expsyms_cmds_GCJ | \
26342 export_symbols_cmds_GCJ | \
26343 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26344 postinstall_cmds | postuninstall_cmds | \
26345 old_postinstall_cmds | old_postuninstall_cmds | \
26346 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26347 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026348 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 +000026349 ;;
26350 *)
26351 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26352 ;;
26353 esac
26354 done
26355
26356 case $lt_echo in
26357 *'\$0 --fallback-echo"')
26358 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26359 ;;
26360 esac
26361
26362cfgfile="$ofile"
26363
26364 cat <<__EOF__ >> "$cfgfile"
26365# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26366
26367# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26368
26369# Shell to use when invoking shell scripts.
26370SHELL=$lt_SHELL
26371
26372# Whether or not to build shared libraries.
26373build_libtool_libs=$enable_shared
26374
26375# Whether or not to build static libraries.
26376build_old_libs=$enable_static
26377
26378# Whether or not to add -lc for building shared libraries.
26379build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26380
26381# Whether or not to disallow shared libs when runtime libs are static
26382allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26383
26384# Whether or not to optimize for fast installation.
26385fast_install=$enable_fast_install
26386
26387# The host system.
26388host_alias=$host_alias
26389host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026390host_os=$host_os
26391
26392# The build system.
26393build_alias=$build_alias
26394build=$build
26395build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026396
26397# An echo program that does not interpret backslashes.
26398echo=$lt_echo
26399
26400# The archiver.
26401AR=$lt_AR
26402AR_FLAGS=$lt_AR_FLAGS
26403
26404# A C compiler.
26405LTCC=$lt_LTCC
26406
Reid Spencera773bd52006-08-04 18:18:08 +000026407# LTCC compiler flags.
26408LTCFLAGS=$lt_LTCFLAGS
26409
John Criswell47fdd832003-07-14 16:52:07 +000026410# A language-specific compiler.
26411CC=$lt_compiler_GCJ
26412
26413# Is the compiler the GNU C compiler?
26414with_gcc=$GCC_GCJ
26415
26416# An ERE matcher.
26417EGREP=$lt_EGREP
26418
26419# The linker used to build libraries.
26420LD=$lt_LD_GCJ
26421
26422# Whether we need hard or soft links.
26423LN_S=$lt_LN_S
26424
26425# A BSD-compatible nm program.
26426NM=$lt_NM
26427
26428# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026429STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026430
26431# Used to examine libraries when file_magic_cmd begins "file"
26432MAGIC_CMD=$MAGIC_CMD
26433
26434# Used on cygwin: DLL creation program.
26435DLLTOOL="$DLLTOOL"
26436
26437# Used on cygwin: object dumper.
26438OBJDUMP="$OBJDUMP"
26439
26440# Used on cygwin: assembler.
26441AS="$AS"
26442
26443# The name of the directory that contains temporary libtool files.
26444objdir=$objdir
26445
26446# How to create reloadable object files.
26447reload_flag=$lt_reload_flag
26448reload_cmds=$lt_reload_cmds
26449
26450# How to pass a linker flag through the compiler.
26451wl=$lt_lt_prog_compiler_wl_GCJ
26452
26453# Object file suffix (normally "o").
26454objext="$ac_objext"
26455
26456# Old archive suffix (normally "a").
26457libext="$libext"
26458
26459# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026460shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026461
26462# Executable file suffix (normally "").
26463exeext="$exeext"
26464
26465# Additional compiler flags for building library objects.
26466pic_flag=$lt_lt_prog_compiler_pic_GCJ
26467pic_mode=$pic_mode
26468
26469# What is the maximum length of a command?
26470max_cmd_len=$lt_cv_sys_max_cmd_len
26471
26472# Does compiler simultaneously support -c and -o options?
26473compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26474
Reid Spencera773bd52006-08-04 18:18:08 +000026475# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026476need_locks=$lt_need_locks
26477
26478# Do we need the lib prefix for modules?
26479need_lib_prefix=$need_lib_prefix
26480
26481# Do we need a version for libraries?
26482need_version=$need_version
26483
26484# Whether dlopen is supported.
26485dlopen_support=$enable_dlopen
26486
26487# Whether dlopen of programs is supported.
26488dlopen_self=$enable_dlopen_self
26489
26490# Whether dlopen of statically linked programs is supported.
26491dlopen_self_static=$enable_dlopen_self_static
26492
26493# Compiler flag to prevent dynamic linking.
26494link_static_flag=$lt_lt_prog_compiler_static_GCJ
26495
26496# Compiler flag to turn off builtin functions.
26497no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26498
26499# Compiler flag to allow reflexive dlopens.
26500export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26501
26502# Compiler flag to generate shared objects directly from archives.
26503whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26504
26505# Compiler flag to generate thread-safe objects.
26506thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26507
26508# Library versioning type.
26509version_type=$version_type
26510
26511# Format of library name prefix.
26512libname_spec=$lt_libname_spec
26513
26514# List of archive names. First name is the real one, the rest are links.
26515# The last name is the one that the linker finds with -lNAME.
26516library_names_spec=$lt_library_names_spec
26517
26518# The coded name of the library, if different from the real name.
26519soname_spec=$lt_soname_spec
26520
26521# Commands used to build and install an old-style archive.
26522RANLIB=$lt_RANLIB
26523old_archive_cmds=$lt_old_archive_cmds_GCJ
26524old_postinstall_cmds=$lt_old_postinstall_cmds
26525old_postuninstall_cmds=$lt_old_postuninstall_cmds
26526
26527# Create an old-style archive from a shared archive.
26528old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26529
26530# Create a temporary old-style archive to link instead of a shared archive.
26531old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26532
26533# Commands used to build and install a shared archive.
26534archive_cmds=$lt_archive_cmds_GCJ
26535archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26536postinstall_cmds=$lt_postinstall_cmds
26537postuninstall_cmds=$lt_postuninstall_cmds
26538
26539# Commands used to build a loadable module (assumed same as above if empty)
26540module_cmds=$lt_module_cmds_GCJ
26541module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26542
26543# Commands to strip libraries.
26544old_striplib=$lt_old_striplib
26545striplib=$lt_striplib
26546
26547# Dependencies to place before the objects being linked to create a
26548# shared library.
26549predep_objects=$lt_predep_objects_GCJ
26550
26551# Dependencies to place after the objects being linked to create a
26552# shared library.
26553postdep_objects=$lt_postdep_objects_GCJ
26554
26555# Dependencies to place before the objects being linked to create a
26556# shared library.
26557predeps=$lt_predeps_GCJ
26558
26559# Dependencies to place after the objects being linked to create a
26560# shared library.
26561postdeps=$lt_postdeps_GCJ
26562
26563# The library search path used internally by the compiler when linking
26564# a shared library.
26565compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26566
26567# Method to check whether dependent libraries are shared objects.
26568deplibs_check_method=$lt_deplibs_check_method
26569
26570# Command to use when deplibs_check_method == file_magic.
26571file_magic_cmd=$lt_file_magic_cmd
26572
26573# Flag that allows shared libraries with undefined symbols to be built.
26574allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26575
26576# Flag that forces no undefined symbols.
26577no_undefined_flag=$lt_no_undefined_flag_GCJ
26578
26579# Commands used to finish a libtool library installation in a directory.
26580finish_cmds=$lt_finish_cmds
26581
26582# Same as above, but a single script fragment to be evaled but not shown.
26583finish_eval=$lt_finish_eval
26584
26585# Take the output of nm and produce a listing of raw symbols and C names.
26586global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26587
26588# Transform the output of nm in a proper C declaration
26589global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26590
26591# Transform the output of nm in a C name address pair
26592global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26593
26594# This is the shared library runtime path variable.
26595runpath_var=$runpath_var
26596
26597# This is the shared library path variable.
26598shlibpath_var=$shlibpath_var
26599
26600# Is shlibpath searched before the hard-coded library search path?
26601shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26602
26603# How to hardcode a shared library path into an executable.
26604hardcode_action=$hardcode_action_GCJ
26605
26606# Whether we should hardcode library paths into libraries.
26607hardcode_into_libs=$hardcode_into_libs
26608
26609# Flag to hardcode \$libdir into a binary during linking.
26610# This must work even if \$libdir does not exist.
26611hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26612
26613# If ld is used when linking, flag to hardcode \$libdir into
26614# a binary during linking. This must work even if \$libdir does
26615# not exist.
26616hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26617
26618# Whether we need a single -rpath flag with a separated argument.
26619hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26620
26621# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26622# resulting binary.
26623hardcode_direct=$hardcode_direct_GCJ
26624
26625# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26626# resulting binary.
26627hardcode_minus_L=$hardcode_minus_L_GCJ
26628
26629# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26630# the resulting binary.
26631hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26632
26633# Set to yes if building a shared library automatically hardcodes DIR into the library
26634# and all subsequent libraries and executables linked against it.
26635hardcode_automatic=$hardcode_automatic_GCJ
26636
26637# Variables whose values should be saved in libtool wrapper scripts and
26638# restored at relink time.
26639variables_saved_for_relink="$variables_saved_for_relink"
26640
26641# Whether libtool must link a program against all its dependency libraries.
26642link_all_deplibs=$link_all_deplibs_GCJ
26643
26644# Compile-time system search path for libraries
26645sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26646
26647# Run-time system search path for libraries
26648sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26649
26650# Fix the shell variable \$srcfile for the compiler.
26651fix_srcfile_path="$fix_srcfile_path_GCJ"
26652
26653# Set to yes if exported symbols are required.
26654always_export_symbols=$always_export_symbols_GCJ
26655
26656# The commands to list exported symbols.
26657export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26658
26659# The commands to extract the exported symbol list from a shared archive.
26660extract_expsyms_cmds=$lt_extract_expsyms_cmds
26661
26662# Symbols that should not be listed in the preloaded symbols.
26663exclude_expsyms=$lt_exclude_expsyms_GCJ
26664
26665# Symbols that must always be exported.
26666include_expsyms=$lt_include_expsyms_GCJ
26667
26668# ### END LIBTOOL TAG CONFIG: $tagname
26669
26670__EOF__
26671
26672
26673else
26674 # If there is no Makefile yet, we rely on a make rule to execute
26675 # `config.status --recheck' to rerun these tests and create the
26676 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026677 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26678 if test -f "$ltmain_in"; then
26679 test -f Makefile && make "$ltmain"
26680 fi
John Criswell47fdd832003-07-14 16:52:07 +000026681fi
26682
26683
26684ac_ext=c
26685ac_cpp='$CPP $CPPFLAGS'
26686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26688ac_compiler_gnu=$ac_cv_c_compiler_gnu
26689
26690CC="$lt_save_CC"
26691
26692 else
26693 tagname=""
26694 fi
26695 ;;
26696
26697 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026698 ac_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
John Criswell47fdd832003-07-14 16:52:07 +000026703
26704
26705# Source file extension for RC test sources.
26706ac_ext=rc
26707
26708# Object file extension for compiled RC test sources.
26709objext=o
26710objext_RC=$objext
26711
26712# Code to be used in simple compile tests
26713lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26714
26715# Code to be used in simple link tests
26716lt_simple_link_test_code="$lt_simple_compile_test_code"
26717
26718# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26719
26720# If no C compiler was specified, use CC.
26721LTCC=${LTCC-"$CC"}
26722
Reid Spencera773bd52006-08-04 18:18:08 +000026723# If no C compiler flags were specified, use CFLAGS.
26724LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26725
John Criswell47fdd832003-07-14 16:52:07 +000026726# Allow CC to be a program name with arguments.
26727compiler=$CC
26728
26729
Reid Spencera773bd52006-08-04 18:18:08 +000026730# save warnings/boilerplate of simple test code
26731ac_outfile=conftest.$ac_objext
26732printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26733eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26734_lt_compiler_boilerplate=`cat conftest.err`
26735$rm conftest*
26736
26737ac_outfile=conftest.$ac_objext
26738printf "$lt_simple_link_test_code" >conftest.$ac_ext
26739eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26740_lt_linker_boilerplate=`cat conftest.err`
26741$rm conftest*
26742
26743
John Criswell47fdd832003-07-14 16:52:07 +000026744# Allow CC to be a program name with arguments.
26745lt_save_CC="$CC"
26746CC=${RC-"windres"}
26747compiler=$CC
26748compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026749for cc_temp in $compiler""; do
26750 case $cc_temp in
26751 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26752 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26753 \-*) ;;
26754 *) break;;
26755 esac
26756done
26757cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26758
John Criswell47fdd832003-07-14 16:52:07 +000026759lt_cv_prog_compiler_c_o_RC=yes
26760
26761# The else clause should only fire when bootstrapping the
26762# libtool distribution, otherwise you forgot to ship ltmain.sh
26763# with your package, and you will get complaints that there are
26764# no rules to generate ltmain.sh.
26765if test -f "$ltmain"; then
26766 # See if we are running on zsh, and set the options which allow our commands through
26767 # without removal of \ escapes.
26768 if test -n "${ZSH_VERSION+set}" ; then
26769 setopt NO_GLOB_SUBST
26770 fi
26771 # Now quote all the things that may contain metacharacters while being
26772 # careful not to overquote the AC_SUBSTed values. We take copies of the
26773 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026774 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 +000026775 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026776 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26777 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26778 deplibs_check_method reload_flag reload_cmds need_locks \
26779 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26780 lt_cv_sys_global_symbol_to_c_name_address \
26781 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26782 old_postinstall_cmds old_postuninstall_cmds \
26783 compiler_RC \
26784 CC_RC \
26785 LD_RC \
26786 lt_prog_compiler_wl_RC \
26787 lt_prog_compiler_pic_RC \
26788 lt_prog_compiler_static_RC \
26789 lt_prog_compiler_no_builtin_flag_RC \
26790 export_dynamic_flag_spec_RC \
26791 thread_safe_flag_spec_RC \
26792 whole_archive_flag_spec_RC \
26793 enable_shared_with_static_runtimes_RC \
26794 old_archive_cmds_RC \
26795 old_archive_from_new_cmds_RC \
26796 predep_objects_RC \
26797 postdep_objects_RC \
26798 predeps_RC \
26799 postdeps_RC \
26800 compiler_lib_search_path_RC \
26801 archive_cmds_RC \
26802 archive_expsym_cmds_RC \
26803 postinstall_cmds_RC \
26804 postuninstall_cmds_RC \
26805 old_archive_from_expsyms_cmds_RC \
26806 allow_undefined_flag_RC \
26807 no_undefined_flag_RC \
26808 export_symbols_cmds_RC \
26809 hardcode_libdir_flag_spec_RC \
26810 hardcode_libdir_flag_spec_ld_RC \
26811 hardcode_libdir_separator_RC \
26812 hardcode_automatic_RC \
26813 module_cmds_RC \
26814 module_expsym_cmds_RC \
26815 lt_cv_prog_compiler_c_o_RC \
26816 exclude_expsyms_RC \
26817 include_expsyms_RC; do
26818
26819 case $var in
26820 old_archive_cmds_RC | \
26821 old_archive_from_new_cmds_RC | \
26822 archive_cmds_RC | \
26823 archive_expsym_cmds_RC | \
26824 module_cmds_RC | \
26825 module_expsym_cmds_RC | \
26826 old_archive_from_expsyms_cmds_RC | \
26827 export_symbols_cmds_RC | \
26828 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26829 postinstall_cmds | postuninstall_cmds | \
26830 old_postinstall_cmds | old_postuninstall_cmds | \
26831 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26832 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026833 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 +000026834 ;;
26835 *)
26836 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26837 ;;
26838 esac
26839 done
26840
26841 case $lt_echo in
26842 *'\$0 --fallback-echo"')
26843 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26844 ;;
26845 esac
26846
26847cfgfile="$ofile"
26848
26849 cat <<__EOF__ >> "$cfgfile"
26850# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26851
26852# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26853
26854# Shell to use when invoking shell scripts.
26855SHELL=$lt_SHELL
26856
26857# Whether or not to build shared libraries.
26858build_libtool_libs=$enable_shared
26859
26860# Whether or not to build static libraries.
26861build_old_libs=$enable_static
26862
26863# Whether or not to add -lc for building shared libraries.
26864build_libtool_need_lc=$archive_cmds_need_lc_RC
26865
26866# Whether or not to disallow shared libs when runtime libs are static
26867allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26868
26869# Whether or not to optimize for fast installation.
26870fast_install=$enable_fast_install
26871
26872# The host system.
26873host_alias=$host_alias
26874host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026875host_os=$host_os
26876
26877# The build system.
26878build_alias=$build_alias
26879build=$build
26880build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026881
26882# An echo program that does not interpret backslashes.
26883echo=$lt_echo
26884
26885# The archiver.
26886AR=$lt_AR
26887AR_FLAGS=$lt_AR_FLAGS
26888
26889# A C compiler.
26890LTCC=$lt_LTCC
26891
Reid Spencera773bd52006-08-04 18:18:08 +000026892# LTCC compiler flags.
26893LTCFLAGS=$lt_LTCFLAGS
26894
John Criswell47fdd832003-07-14 16:52:07 +000026895# A language-specific compiler.
26896CC=$lt_compiler_RC
26897
26898# Is the compiler the GNU C compiler?
26899with_gcc=$GCC_RC
26900
26901# An ERE matcher.
26902EGREP=$lt_EGREP
26903
26904# The linker used to build libraries.
26905LD=$lt_LD_RC
26906
26907# Whether we need hard or soft links.
26908LN_S=$lt_LN_S
26909
26910# A BSD-compatible nm program.
26911NM=$lt_NM
26912
26913# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026914STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026915
26916# Used to examine libraries when file_magic_cmd begins "file"
26917MAGIC_CMD=$MAGIC_CMD
26918
26919# Used on cygwin: DLL creation program.
26920DLLTOOL="$DLLTOOL"
26921
26922# Used on cygwin: object dumper.
26923OBJDUMP="$OBJDUMP"
26924
26925# Used on cygwin: assembler.
26926AS="$AS"
26927
26928# The name of the directory that contains temporary libtool files.
26929objdir=$objdir
26930
26931# How to create reloadable object files.
26932reload_flag=$lt_reload_flag
26933reload_cmds=$lt_reload_cmds
26934
26935# How to pass a linker flag through the compiler.
26936wl=$lt_lt_prog_compiler_wl_RC
26937
26938# Object file suffix (normally "o").
26939objext="$ac_objext"
26940
26941# Old archive suffix (normally "a").
26942libext="$libext"
26943
26944# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026945shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026946
26947# Executable file suffix (normally "").
26948exeext="$exeext"
26949
26950# Additional compiler flags for building library objects.
26951pic_flag=$lt_lt_prog_compiler_pic_RC
26952pic_mode=$pic_mode
26953
26954# What is the maximum length of a command?
26955max_cmd_len=$lt_cv_sys_max_cmd_len
26956
26957# Does compiler simultaneously support -c and -o options?
26958compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26959
Reid Spencera773bd52006-08-04 18:18:08 +000026960# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026961need_locks=$lt_need_locks
26962
26963# Do we need the lib prefix for modules?
26964need_lib_prefix=$need_lib_prefix
26965
26966# Do we need a version for libraries?
26967need_version=$need_version
26968
26969# Whether dlopen is supported.
26970dlopen_support=$enable_dlopen
26971
26972# Whether dlopen of programs is supported.
26973dlopen_self=$enable_dlopen_self
26974
26975# Whether dlopen of statically linked programs is supported.
26976dlopen_self_static=$enable_dlopen_self_static
26977
26978# Compiler flag to prevent dynamic linking.
26979link_static_flag=$lt_lt_prog_compiler_static_RC
26980
26981# Compiler flag to turn off builtin functions.
26982no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26983
26984# Compiler flag to allow reflexive dlopens.
26985export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26986
26987# Compiler flag to generate shared objects directly from archives.
26988whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26989
26990# Compiler flag to generate thread-safe objects.
26991thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26992
26993# Library versioning type.
26994version_type=$version_type
26995
26996# Format of library name prefix.
26997libname_spec=$lt_libname_spec
26998
26999# List of archive names. First name is the real one, the rest are links.
27000# The last name is the one that the linker finds with -lNAME.
27001library_names_spec=$lt_library_names_spec
27002
27003# The coded name of the library, if different from the real name.
27004soname_spec=$lt_soname_spec
27005
27006# Commands used to build and install an old-style archive.
27007RANLIB=$lt_RANLIB
27008old_archive_cmds=$lt_old_archive_cmds_RC
27009old_postinstall_cmds=$lt_old_postinstall_cmds
27010old_postuninstall_cmds=$lt_old_postuninstall_cmds
27011
27012# Create an old-style archive from a shared archive.
27013old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27014
27015# Create a temporary old-style archive to link instead of a shared archive.
27016old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27017
27018# Commands used to build and install a shared archive.
27019archive_cmds=$lt_archive_cmds_RC
27020archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27021postinstall_cmds=$lt_postinstall_cmds
27022postuninstall_cmds=$lt_postuninstall_cmds
27023
27024# Commands used to build a loadable module (assumed same as above if empty)
27025module_cmds=$lt_module_cmds_RC
27026module_expsym_cmds=$lt_module_expsym_cmds_RC
27027
27028# Commands to strip libraries.
27029old_striplib=$lt_old_striplib
27030striplib=$lt_striplib
27031
27032# Dependencies to place before the objects being linked to create a
27033# shared library.
27034predep_objects=$lt_predep_objects_RC
27035
27036# Dependencies to place after the objects being linked to create a
27037# shared library.
27038postdep_objects=$lt_postdep_objects_RC
27039
27040# Dependencies to place before the objects being linked to create a
27041# shared library.
27042predeps=$lt_predeps_RC
27043
27044# Dependencies to place after the objects being linked to create a
27045# shared library.
27046postdeps=$lt_postdeps_RC
27047
27048# The library search path used internally by the compiler when linking
27049# a shared library.
27050compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27051
27052# Method to check whether dependent libraries are shared objects.
27053deplibs_check_method=$lt_deplibs_check_method
27054
27055# Command to use when deplibs_check_method == file_magic.
27056file_magic_cmd=$lt_file_magic_cmd
27057
27058# Flag that allows shared libraries with undefined symbols to be built.
27059allow_undefined_flag=$lt_allow_undefined_flag_RC
27060
27061# Flag that forces no undefined symbols.
27062no_undefined_flag=$lt_no_undefined_flag_RC
27063
27064# Commands used to finish a libtool library installation in a directory.
27065finish_cmds=$lt_finish_cmds
27066
27067# Same as above, but a single script fragment to be evaled but not shown.
27068finish_eval=$lt_finish_eval
27069
27070# Take the output of nm and produce a listing of raw symbols and C names.
27071global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27072
27073# Transform the output of nm in a proper C declaration
27074global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27075
27076# Transform the output of nm in a C name address pair
27077global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27078
27079# This is the shared library runtime path variable.
27080runpath_var=$runpath_var
27081
27082# This is the shared library path variable.
27083shlibpath_var=$shlibpath_var
27084
27085# Is shlibpath searched before the hard-coded library search path?
27086shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27087
27088# How to hardcode a shared library path into an executable.
27089hardcode_action=$hardcode_action_RC
27090
27091# Whether we should hardcode library paths into libraries.
27092hardcode_into_libs=$hardcode_into_libs
27093
27094# Flag to hardcode \$libdir into a binary during linking.
27095# This must work even if \$libdir does not exist.
27096hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27097
27098# If ld is used when linking, flag to hardcode \$libdir into
27099# a binary during linking. This must work even if \$libdir does
27100# not exist.
27101hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27102
27103# Whether we need a single -rpath flag with a separated argument.
27104hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27105
27106# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27107# resulting binary.
27108hardcode_direct=$hardcode_direct_RC
27109
27110# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27111# resulting binary.
27112hardcode_minus_L=$hardcode_minus_L_RC
27113
27114# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27115# the resulting binary.
27116hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27117
27118# Set to yes if building a shared library automatically hardcodes DIR into the library
27119# and all subsequent libraries and executables linked against it.
27120hardcode_automatic=$hardcode_automatic_RC
27121
27122# Variables whose values should be saved in libtool wrapper scripts and
27123# restored at relink time.
27124variables_saved_for_relink="$variables_saved_for_relink"
27125
27126# Whether libtool must link a program against all its dependency libraries.
27127link_all_deplibs=$link_all_deplibs_RC
27128
27129# Compile-time system search path for libraries
27130sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27131
27132# Run-time system search path for libraries
27133sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27134
27135# Fix the shell variable \$srcfile for the compiler.
27136fix_srcfile_path="$fix_srcfile_path_RC"
27137
27138# Set to yes if exported symbols are required.
27139always_export_symbols=$always_export_symbols_RC
27140
27141# The commands to list exported symbols.
27142export_symbols_cmds=$lt_export_symbols_cmds_RC
27143
27144# The commands to extract the exported symbol list from a shared archive.
27145extract_expsyms_cmds=$lt_extract_expsyms_cmds
27146
27147# Symbols that should not be listed in the preloaded symbols.
27148exclude_expsyms=$lt_exclude_expsyms_RC
27149
27150# Symbols that must always be exported.
27151include_expsyms=$lt_include_expsyms_RC
27152
27153# ### END LIBTOOL TAG CONFIG: $tagname
27154
27155__EOF__
27156
27157
27158else
27159 # If there is no Makefile yet, we rely on a make rule to execute
27160 # `config.status --recheck' to rerun these tests and create the
27161 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027162 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27163 if test -f "$ltmain_in"; then
27164 test -f Makefile && make "$ltmain"
27165 fi
John Criswell47fdd832003-07-14 16:52:07 +000027166fi
27167
27168
27169ac_ext=c
27170ac_cpp='$CPP $CPPFLAGS'
27171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27173ac_compiler_gnu=$ac_cv_c_compiler_gnu
27174
27175CC="$lt_save_CC"
27176
27177 ;;
27178
27179 *)
27180 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27181echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27182 { (exit 1); exit 1; }; }
27183 ;;
27184 esac
27185
27186 # Append the new tag name to the list of available tags.
27187 if test -n "$tagname" ; then
27188 available_tags="$available_tags $tagname"
27189 fi
27190 fi
27191 done
27192 IFS="$lt_save_ifs"
27193
27194 # Now substitute the updated list of available tags.
27195 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27196 mv "${ofile}T" "$ofile"
27197 chmod +x "$ofile"
27198 else
27199 rm -f "${ofile}T"
27200 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27201echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27202 { (exit 1); exit 1; }; }
27203 fi
27204fi
John Criswell7a73b802003-06-30 21:59:07 +000027205
27206
27207
27208# This can be used to rebuild libtool when needed
27209LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27210
27211# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027212LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000027213
27214# Prevent multiple expansion
27215
27216
27217
John Criswell47fdd832003-07-14 16:52:07 +000027218
27219
27220
27221
27222
27223
27224
27225
27226
27227
27228
27229
27230
27231
27232
27233
27234
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027235
Reid Spencer582a23c2004-12-29 07:07:57 +000027236if test "$lt_cv_dlopen_self" = "yes" ; then
27237
27238cat >>confdefs.h <<\_ACEOF
27239#define CAN_DLOPEN_SELF 1
27240_ACEOF
27241
27242fi
27243
Douglas Gregor01746742009-05-11 18:05:52 +000027244
Reid Spencer7931a782004-12-27 06:15:02 +000027245if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000027246 LLVMGCC="llvm-gcc${EXEEXT}"
27247 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027248 LLVMGCCCOMMAND="$LLVMGCC"
27249 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027250 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27251
27252 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27253
Reid Spencerc84492c2005-06-02 22:34:49 +000027254 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27255set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027256{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027258if test "${ac_cv_path_LLVMGCC+set}" = set; then
27259 echo $ECHO_N "(cached) $ECHO_C" >&6
27260else
27261 case $LLVMGCC in
27262 [\\/]* | ?:[\\/]*)
27263 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27264 ;;
27265 *)
27266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27267for as_dir in $PATH
27268do
27269 IFS=$as_save_IFS
27270 test -z "$as_dir" && as_dir=.
27271 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000027272 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 +000027273 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27275 break 2
27276 fi
27277done
27278done
Reid Spencera773bd52006-08-04 18:18:08 +000027279IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027280
Reid Spencer59473af2004-12-25 07:31:29 +000027281 ;;
27282esac
27283fi
27284LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000027285if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027286 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27287echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027288else
Reid Spencera773bd52006-08-04 18:18:08 +000027289 { echo "$as_me:$LINENO: result: no" >&5
27290echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027291fi
27292
Reid Spencera773bd52006-08-04 18:18:08 +000027293
Reid Spencerc84492c2005-06-02 22:34:49 +000027294 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27295set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027296{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027298if test "${ac_cv_path_LLVMGXX+set}" = set; then
27299 echo $ECHO_N "(cached) $ECHO_C" >&6
27300else
27301 case $LLVMGXX in
27302 [\\/]* | ?:[\\/]*)
27303 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27304 ;;
27305 *)
27306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27307for as_dir in $PATH
27308do
27309 IFS=$as_save_IFS
27310 test -z "$as_dir" && as_dir=.
27311 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000027312 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 +000027313 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27315 break 2
27316 fi
27317done
27318done
Reid Spencera773bd52006-08-04 18:18:08 +000027319IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027320
Reid Spencer59473af2004-12-25 07:31:29 +000027321 ;;
27322esac
27323fi
27324LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000027325if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027326 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27327echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027328else
Reid Spencera773bd52006-08-04 18:18:08 +000027329 { echo "$as_me:$LINENO: result: no" >&5
27330echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027331fi
27332
Reid Spencera773bd52006-08-04 18:18:08 +000027333
Reid Spencer59473af2004-12-25 07:31:29 +000027334else
Devang Patel5d28b882007-12-04 22:54:47 +000027335 if test -z "$LLVMGCC"; then
27336 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027337 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000027338 fi
27339 if test -z "$LLVMGXX"; then
27340 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027341 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000027342 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027343
Reid Spencer59473af2004-12-25 07:31:29 +000027344 LLVMGCC=$LLVMGCC
27345
27346 LLVMGXX=$LLVMGXX
27347
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027348 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27349
27350 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27351
Reid Spencer59473af2004-12-25 07:31:29 +000027352fi
27353
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027354
Reid Spencera773bd52006-08-04 18:18:08 +000027355{ echo "$as_me:$LINENO: checking tool compatibility" >&5
27356echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027357
Reid Spencer86901802004-12-08 23:07:27 +000027358ICC=no
27359IXX=no
27360case $CC in
27361 icc*|icpc*)
27362 ICC=yes
27363 IXX=yes
27364 ;;
27365 *)
27366 ;;
27367esac
27368
Duraid Madina937c60a2006-02-15 07:57:42 +000027369if test "$GCC" != "yes" && test "$ICC" != "yes"
27370then
27371 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27372echo "$as_me: error: gcc|icc required but not found" >&2;}
27373 { (exit 1); exit 1; }; }
27374fi
27375
27376if test "$GXX" != "yes" && test "$IXX" != "yes"
27377then
27378 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27379echo "$as_me: error: g++|icc required but not found" >&2;}
27380 { (exit 1); exit 1; }; }
27381fi
27382
Reid Spencer86901802004-12-08 23:07:27 +000027383if test "$GCC" = "yes"
27384then
Chris Lattner399c7c72008-02-05 19:43:53 +000027385 cat >conftest.$ac_ext <<_ACEOF
27386#if !defined(__GNUC__) || __GNUC__ < 3
27387#error Unsupported GCC version
27388#endif
27389
27390_ACEOF
27391rm -f conftest.$ac_objext
27392if { (ac_try="$ac_compile"
27393case "(($ac_try" in
27394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27395 *) ac_try_echo=$ac_try;;
27396esac
27397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27398 (eval "$ac_compile") 2>conftest.er1
27399 ac_status=$?
27400 grep -v '^ *+' conftest.er1 >conftest.err
27401 rm -f conftest.er1
27402 cat conftest.err >&5
27403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027404 (exit $ac_status); } &&
27405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27406 { (case "(($ac_try" in
27407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27408 *) ac_try_echo=$ac_try;;
27409esac
27410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27411 (eval "$ac_try") 2>&5
27412 ac_status=$?
27413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414 (exit $ac_status); }; } &&
27415 { ac_try='test -s conftest.$ac_objext'
27416 { (case "(($ac_try" in
27417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27418 *) ac_try_echo=$ac_try;;
27419esac
27420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27421 (eval "$ac_try") 2>&5
27422 ac_status=$?
27423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27424 (exit $ac_status); }; }; then
Chris Lattner399c7c72008-02-05 19:43:53 +000027425 :
27426else
27427 echo "$as_me: failed program was:" >&5
27428sed 's/^/| /' conftest.$ac_ext >&5
27429
27430 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027431echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27432 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027433fi
27434
27435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027436fi
27437
27438if test -z "$llvm_cv_gnu_make_command"
27439then
27440 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27441echo "$as_me: error: GNU Make required but not found" >&2;}
27442 { (exit 1); exit 1; }; }
27443fi
27444
Reid Spencera773bd52006-08-04 18:18:08 +000027445{ echo "$as_me:$LINENO: result: ok" >&5
27446echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027447
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000027448
27449
Reid Spencera773bd52006-08-04 18:18:08 +000027450{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27451echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027452if test "${ac_cv_lib_m_sin+set}" = set; then
27453 echo $ECHO_N "(cached) $ECHO_C" >&6
27454else
27455 ac_check_lib_save_LIBS=$LIBS
27456LIBS="-lm $LIBS"
27457cat >conftest.$ac_ext <<_ACEOF
27458/* confdefs.h. */
27459_ACEOF
27460cat confdefs.h >>conftest.$ac_ext
27461cat >>conftest.$ac_ext <<_ACEOF
27462/* end confdefs.h. */
27463
Reid Spencera773bd52006-08-04 18:18:08 +000027464/* Override any GCC internal prototype to avoid an error.
27465 Use char because int might match the return type of a GCC
27466 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027467#ifdef __cplusplus
27468extern "C"
27469#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027470char sin ();
27471int
27472main ()
27473{
Reid Spencera773bd52006-08-04 18:18:08 +000027474return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027475 ;
27476 return 0;
27477}
27478_ACEOF
27479rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027480if { (ac_try="$ac_link"
27481case "(($ac_try" in
27482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27483 *) ac_try_echo=$ac_try;;
27484esac
27485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27486 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027487 ac_status=$?
27488 grep -v '^ *+' conftest.er1 >conftest.err
27489 rm -f conftest.er1
27490 cat conftest.err >&5
27491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027492 (exit $ac_status); } &&
27493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27494 { (case "(($ac_try" in
27495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27496 *) ac_try_echo=$ac_try;;
27497esac
27498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27499 (eval "$ac_try") 2>&5
27500 ac_status=$?
27501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27502 (exit $ac_status); }; } &&
27503 { ac_try='test -s conftest$ac_exeext'
27504 { (case "(($ac_try" in
27505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27506 *) ac_try_echo=$ac_try;;
27507esac
27508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27509 (eval "$ac_try") 2>&5
27510 ac_status=$?
27511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027513 ac_cv_lib_m_sin=yes
27514else
27515 echo "$as_me: failed program was:" >&5
27516sed 's/^/| /' conftest.$ac_ext >&5
27517
Reid Spencera773bd52006-08-04 18:18:08 +000027518 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027519fi
Reid Spencera773bd52006-08-04 18:18:08 +000027520
Bill Wendlingebcceee2009-04-18 11:20:33 +000027521rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027522 conftest$ac_exeext conftest.$ac_ext
27523LIBS=$ac_check_lib_save_LIBS
27524fi
Reid Spencera773bd52006-08-04 18:18:08 +000027525{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27526echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027527if test $ac_cv_lib_m_sin = yes; then
27528 cat >>confdefs.h <<_ACEOF
27529#define HAVE_LIBM 1
27530_ACEOF
27531
27532 LIBS="-lm $LIBS"
27533
27534fi
27535
Jeff Cohen28783c32007-01-12 18:22:38 +000027536if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027537
Reid Spencera773bd52006-08-04 18:18:08 +000027538{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27539echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027540if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027541 echo $ECHO_N "(cached) $ECHO_C" >&6
27542else
27543 ac_check_lib_save_LIBS=$LIBS
27544LIBS="-limagehlp $LIBS"
27545cat >conftest.$ac_ext <<_ACEOF
27546/* confdefs.h. */
27547_ACEOF
27548cat confdefs.h >>conftest.$ac_ext
27549cat >>conftest.$ac_ext <<_ACEOF
27550/* end confdefs.h. */
27551
Reid Spencer48fdf912006-06-01 19:03:21 +000027552
Reid Spencer484fc8e2006-06-01 16:55:59 +000027553int
27554main ()
27555{
Reid Spencera773bd52006-08-04 18:18:08 +000027556return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027557 ;
27558 return 0;
27559}
27560_ACEOF
27561rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027562if { (ac_try="$ac_link"
27563case "(($ac_try" in
27564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27565 *) ac_try_echo=$ac_try;;
27566esac
27567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27568 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027569 ac_status=$?
27570 grep -v '^ *+' conftest.er1 >conftest.err
27571 rm -f conftest.er1
27572 cat conftest.err >&5
27573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027574 (exit $ac_status); } &&
27575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27576 { (case "(($ac_try" in
27577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27578 *) ac_try_echo=$ac_try;;
27579esac
27580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27581 (eval "$ac_try") 2>&5
27582 ac_status=$?
27583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27584 (exit $ac_status); }; } &&
27585 { ac_try='test -s conftest$ac_exeext'
27586 { (case "(($ac_try" in
27587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27588 *) ac_try_echo=$ac_try;;
27589esac
27590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27591 (eval "$ac_try") 2>&5
27592 ac_status=$?
27593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27594 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027595 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027596else
27597 echo "$as_me: failed program was:" >&5
27598sed 's/^/| /' conftest.$ac_ext >&5
27599
Reid Spencera773bd52006-08-04 18:18:08 +000027600 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027601fi
Reid Spencera773bd52006-08-04 18:18:08 +000027602
Bill Wendlingebcceee2009-04-18 11:20:33 +000027603rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027604 conftest$ac_exeext conftest.$ac_ext
27605LIBS=$ac_check_lib_save_LIBS
27606fi
Reid Spencera773bd52006-08-04 18:18:08 +000027607{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27608echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027609if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027610 cat >>confdefs.h <<_ACEOF
27611#define HAVE_LIBIMAGEHLP 1
27612_ACEOF
27613
27614 LIBS="-limagehlp $LIBS"
27615
27616fi
27617
27618
Reid Spencera773bd52006-08-04 18:18:08 +000027619{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27620echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027621if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027622 echo $ECHO_N "(cached) $ECHO_C" >&6
27623else
27624 ac_check_lib_save_LIBS=$LIBS
27625LIBS="-lpsapi $LIBS"
27626cat >conftest.$ac_ext <<_ACEOF
27627/* confdefs.h. */
27628_ACEOF
27629cat confdefs.h >>conftest.$ac_ext
27630cat >>conftest.$ac_ext <<_ACEOF
27631/* end confdefs.h. */
27632
Reid Spencer48fdf912006-06-01 19:03:21 +000027633
Reid Spencer484fc8e2006-06-01 16:55:59 +000027634int
27635main ()
27636{
Reid Spencera773bd52006-08-04 18:18:08 +000027637return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027638 ;
27639 return 0;
27640}
27641_ACEOF
27642rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027643if { (ac_try="$ac_link"
27644case "(($ac_try" in
27645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27646 *) ac_try_echo=$ac_try;;
27647esac
27648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27649 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027650 ac_status=$?
27651 grep -v '^ *+' conftest.er1 >conftest.err
27652 rm -f conftest.er1
27653 cat conftest.err >&5
27654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027655 (exit $ac_status); } &&
27656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27657 { (case "(($ac_try" in
27658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27659 *) ac_try_echo=$ac_try;;
27660esac
27661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27662 (eval "$ac_try") 2>&5
27663 ac_status=$?
27664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665 (exit $ac_status); }; } &&
27666 { ac_try='test -s conftest$ac_exeext'
27667 { (case "(($ac_try" in
27668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27669 *) ac_try_echo=$ac_try;;
27670esac
27671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27672 (eval "$ac_try") 2>&5
27673 ac_status=$?
27674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27675 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027676 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027677else
27678 echo "$as_me: failed program was:" >&5
27679sed 's/^/| /' conftest.$ac_ext >&5
27680
Reid Spencera773bd52006-08-04 18:18:08 +000027681 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027682fi
Reid Spencera773bd52006-08-04 18:18:08 +000027683
Bill Wendlingebcceee2009-04-18 11:20:33 +000027684rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027685 conftest$ac_exeext conftest.$ac_ext
27686LIBS=$ac_check_lib_save_LIBS
27687fi
Reid Spencera773bd52006-08-04 18:18:08 +000027688{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27689echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027690if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027691 cat >>confdefs.h <<_ACEOF
27692#define HAVE_LIBPSAPI 1
27693_ACEOF
27694
27695 LIBS="-lpsapi $LIBS"
27696
27697fi
27698
27699fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027700
Reid Spencera773bd52006-08-04 18:18:08 +000027701{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27702echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027703if test "${ac_cv_search_dlopen+set}" = set; then
27704 echo $ECHO_N "(cached) $ECHO_C" >&6
27705else
27706 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027707cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027708/* confdefs.h. */
27709_ACEOF
27710cat confdefs.h >>conftest.$ac_ext
27711cat >>conftest.$ac_ext <<_ACEOF
27712/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027713
Reid Spencera773bd52006-08-04 18:18:08 +000027714/* Override any GCC internal prototype to avoid an error.
27715 Use char because int might match the return type of a GCC
27716 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027717#ifdef __cplusplus
27718extern "C"
27719#endif
John Criswell7a73b802003-06-30 21:59:07 +000027720char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027721int
27722main ()
27723{
Reid Spencera773bd52006-08-04 18:18:08 +000027724return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027725 ;
27726 return 0;
27727}
27728_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027729for ac_lib in '' dl; do
27730 if test -z "$ac_lib"; then
27731 ac_res="none required"
27732 else
27733 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027734 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027735 fi
27736 rm -f conftest.$ac_objext conftest$ac_exeext
27737if { (ac_try="$ac_link"
27738case "(($ac_try" in
27739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27740 *) ac_try_echo=$ac_try;;
27741esac
27742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27743 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027744 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027745 grep -v '^ *+' conftest.er1 >conftest.err
27746 rm -f conftest.er1
27747 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027749 (exit $ac_status); } &&
27750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27751 { (case "(($ac_try" in
27752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27753 *) ac_try_echo=$ac_try;;
27754esac
27755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27756 (eval "$ac_try") 2>&5
27757 ac_status=$?
27758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27759 (exit $ac_status); }; } &&
27760 { ac_try='test -s conftest$ac_exeext'
27761 { (case "(($ac_try" in
27762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27763 *) ac_try_echo=$ac_try;;
27764esac
27765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27766 (eval "$ac_try") 2>&5
27767 ac_status=$?
27768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027770 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027771else
27772 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027773sed 's/^/| /' conftest.$ac_ext >&5
27774
Reid Spencera773bd52006-08-04 18:18:08 +000027775
John Criswell7a73b802003-06-30 21:59:07 +000027776fi
Reid Spencera773bd52006-08-04 18:18:08 +000027777
Bill Wendlingebcceee2009-04-18 11:20:33 +000027778rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027779 conftest$ac_exeext
27780 if test "${ac_cv_search_dlopen+set}" = set; then
27781 break
John Criswell7a73b802003-06-30 21:59:07 +000027782fi
Reid Spencera773bd52006-08-04 18:18:08 +000027783done
27784if test "${ac_cv_search_dlopen+set}" = set; then
27785 :
27786else
27787 ac_cv_search_dlopen=no
27788fi
27789rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027790LIBS=$ac_func_search_save_LIBS
27791fi
Reid Spencera773bd52006-08-04 18:18:08 +000027792{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27793echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27794ac_res=$ac_cv_search_dlopen
27795if test "$ac_res" != no; then
27796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027797
27798cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027799#define HAVE_DLOPEN 1
27800_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027801
27802else
Brian Gaekec45be042003-10-07 06:01:34 +000027803 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27804echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027805fi
27806
27807
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027808if test "$llvm_cv_enable_libffi" = "yes" ; then
27809 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
Nick Lewycky267fddb2009-04-13 04:26:27 +000027810echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27811if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027812 echo $ECHO_N "(cached) $ECHO_C" >&6
27813else
Nick Lewycky267fddb2009-04-13 04:26:27 +000027814 ac_func_search_save_LIBS=$LIBS
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027815cat >conftest.$ac_ext <<_ACEOF
27816/* confdefs.h. */
27817_ACEOF
27818cat confdefs.h >>conftest.$ac_ext
27819cat >>conftest.$ac_ext <<_ACEOF
27820/* end confdefs.h. */
27821
27822/* Override any GCC internal prototype to avoid an error.
27823 Use char because int might match the return type of a GCC
27824 builtin and then its argument prototype would still apply. */
27825#ifdef __cplusplus
27826extern "C"
27827#endif
27828char ffi_call ();
27829int
27830main ()
27831{
27832return ffi_call ();
27833 ;
27834 return 0;
27835}
27836_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000027837for ac_lib in '' ffi; do
27838 if test -z "$ac_lib"; then
27839 ac_res="none required"
27840 else
27841 ac_res=-l$ac_lib
27842 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27843 fi
27844 rm -f conftest.$ac_objext conftest$ac_exeext
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027845if { (ac_try="$ac_link"
27846case "(($ac_try" in
27847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27848 *) ac_try_echo=$ac_try;;
27849esac
27850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27851 (eval "$ac_link") 2>conftest.er1
27852 ac_status=$?
27853 grep -v '^ *+' conftest.er1 >conftest.err
27854 rm -f conftest.er1
27855 cat conftest.err >&5
27856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027857 (exit $ac_status); } &&
27858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27859 { (case "(($ac_try" in
27860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27861 *) ac_try_echo=$ac_try;;
27862esac
27863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27864 (eval "$ac_try") 2>&5
27865 ac_status=$?
27866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27867 (exit $ac_status); }; } &&
27868 { ac_try='test -s conftest$ac_exeext'
27869 { (case "(($ac_try" in
27870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27871 *) ac_try_echo=$ac_try;;
27872esac
27873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27874 (eval "$ac_try") 2>&5
27875 ac_status=$?
27876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27877 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000027878 ac_cv_search_ffi_call=$ac_res
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027879else
27880 echo "$as_me: failed program was:" >&5
27881sed 's/^/| /' conftest.$ac_ext >&5
27882
Nick Lewycky267fddb2009-04-13 04:26:27 +000027883
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027884fi
27885
Bill Wendlingebcceee2009-04-18 11:20:33 +000027886rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky267fddb2009-04-13 04:26:27 +000027887 conftest$ac_exeext
27888 if test "${ac_cv_search_ffi_call+set}" = set; then
27889 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027890fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000027891done
27892if test "${ac_cv_search_ffi_call+set}" = set; then
27893 :
27894else
27895 ac_cv_search_ffi_call=no
27896fi
27897rm conftest.$ac_ext
27898LIBS=$ac_func_search_save_LIBS
27899fi
27900{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27901echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27902ac_res=$ac_cv_search_ffi_call
27903if test "$ac_res" != no; then
27904 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27905
27906cat >>confdefs.h <<\_ACEOF
27907#define HAVE_FFI_CALL 1
27908_ACEOF
27909
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027910else
27911 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27912echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27913fi
27914
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027915fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027916
Reid Spencera773bd52006-08-04 18:18:08 +000027917{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27918echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027919if test "${ac_cv_search_mallinfo+set}" = set; then
27920 echo $ECHO_N "(cached) $ECHO_C" >&6
27921else
27922 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027923cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027924/* confdefs.h. */
27925_ACEOF
27926cat confdefs.h >>conftest.$ac_ext
27927cat >>conftest.$ac_ext <<_ACEOF
27928/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027929
Reid Spencera773bd52006-08-04 18:18:08 +000027930/* Override any GCC internal prototype to avoid an error.
27931 Use char because int might match the return type of a GCC
27932 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027933#ifdef __cplusplus
27934extern "C"
27935#endif
John Criswell7a73b802003-06-30 21:59:07 +000027936char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027937int
27938main ()
27939{
Reid Spencera773bd52006-08-04 18:18:08 +000027940return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027941 ;
27942 return 0;
27943}
27944_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027945for ac_lib in '' malloc; do
27946 if test -z "$ac_lib"; then
27947 ac_res="none required"
27948 else
27949 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027950 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027951 fi
27952 rm -f conftest.$ac_objext conftest$ac_exeext
27953if { (ac_try="$ac_link"
27954case "(($ac_try" in
27955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27956 *) ac_try_echo=$ac_try;;
27957esac
27958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27959 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027960 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027961 grep -v '^ *+' conftest.er1 >conftest.err
27962 rm -f conftest.er1
27963 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027965 (exit $ac_status); } &&
27966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27967 { (case "(($ac_try" in
27968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27969 *) ac_try_echo=$ac_try;;
27970esac
27971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27972 (eval "$ac_try") 2>&5
27973 ac_status=$?
27974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27975 (exit $ac_status); }; } &&
27976 { ac_try='test -s conftest$ac_exeext'
27977 { (case "(($ac_try" in
27978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27979 *) ac_try_echo=$ac_try;;
27980esac
27981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27982 (eval "$ac_try") 2>&5
27983 ac_status=$?
27984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27985 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027986 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027987else
27988 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027989sed 's/^/| /' conftest.$ac_ext >&5
27990
Reid Spencera773bd52006-08-04 18:18:08 +000027991
John Criswell7a73b802003-06-30 21:59:07 +000027992fi
Reid Spencera773bd52006-08-04 18:18:08 +000027993
Bill Wendlingebcceee2009-04-18 11:20:33 +000027994rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027995 conftest$ac_exeext
27996 if test "${ac_cv_search_mallinfo+set}" = set; then
27997 break
John Criswell7a73b802003-06-30 21:59:07 +000027998fi
Reid Spencera773bd52006-08-04 18:18:08 +000027999done
28000if test "${ac_cv_search_mallinfo+set}" = set; then
28001 :
28002else
28003 ac_cv_search_mallinfo=no
28004fi
28005rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028006LIBS=$ac_func_search_save_LIBS
28007fi
Reid Spencera773bd52006-08-04 18:18:08 +000028008{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
28009echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
28010ac_res=$ac_cv_search_mallinfo
28011if test "$ac_res" != no; then
28012 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000028013
28014cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000028015#define HAVE_MALLINFO 1
28016_ACEOF
28017
28018fi
28019
28020
Reid Spencer0a262ba2005-08-24 10:07:20 +000028021if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000028022
Reid Spencera773bd52006-08-04 18:18:08 +000028023{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28024echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000028025if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
28026 echo $ECHO_N "(cached) $ECHO_C" >&6
28027else
28028 ac_check_lib_save_LIBS=$LIBS
28029LIBS="-lpthread $LIBS"
28030cat >conftest.$ac_ext <<_ACEOF
28031/* confdefs.h. */
28032_ACEOF
28033cat confdefs.h >>conftest.$ac_ext
28034cat >>conftest.$ac_ext <<_ACEOF
28035/* end confdefs.h. */
28036
Reid Spencera773bd52006-08-04 18:18:08 +000028037/* Override any GCC internal prototype to avoid an error.
28038 Use char because int might match the return type of a GCC
28039 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000028040#ifdef __cplusplus
28041extern "C"
28042#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000028043char pthread_mutex_init ();
28044int
28045main ()
28046{
Reid Spencera773bd52006-08-04 18:18:08 +000028047return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000028048 ;
28049 return 0;
28050}
28051_ACEOF
28052rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028053if { (ac_try="$ac_link"
28054case "(($ac_try" in
28055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28056 *) ac_try_echo=$ac_try;;
28057esac
28058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28059 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000028060 ac_status=$?
28061 grep -v '^ *+' conftest.er1 >conftest.err
28062 rm -f conftest.er1
28063 cat conftest.err >&5
28064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028065 (exit $ac_status); } &&
28066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28067 { (case "(($ac_try" in
28068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28069 *) ac_try_echo=$ac_try;;
28070esac
28071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28072 (eval "$ac_try") 2>&5
28073 ac_status=$?
28074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075 (exit $ac_status); }; } &&
28076 { ac_try='test -s conftest$ac_exeext'
28077 { (case "(($ac_try" in
28078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28079 *) ac_try_echo=$ac_try;;
28080esac
28081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28082 (eval "$ac_try") 2>&5
28083 ac_status=$?
28084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085 (exit $ac_status); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000028086 ac_cv_lib_pthread_pthread_mutex_init=yes
28087else
28088 echo "$as_me: failed program was:" >&5
28089sed 's/^/| /' conftest.$ac_ext >&5
28090
Reid Spencera773bd52006-08-04 18:18:08 +000028091 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000028092fi
Reid Spencera773bd52006-08-04 18:18:08 +000028093
Bill Wendlingebcceee2009-04-18 11:20:33 +000028094rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000028095 conftest$ac_exeext conftest.$ac_ext
28096LIBS=$ac_check_lib_save_LIBS
28097fi
Reid Spencera773bd52006-08-04 18:18:08 +000028098{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28099echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000028100if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28101 cat >>confdefs.h <<_ACEOF
28102#define HAVE_LIBPTHREAD 1
28103_ACEOF
28104
28105 LIBS="-lpthread $LIBS"
28106
28107fi
28108
Reid Spencera773bd52006-08-04 18:18:08 +000028109 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28110echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000028111if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28112 echo $ECHO_N "(cached) $ECHO_C" >&6
28113else
28114 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000028115cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000028116/* confdefs.h. */
28117_ACEOF
28118cat confdefs.h >>conftest.$ac_ext
28119cat >>conftest.$ac_ext <<_ACEOF
28120/* end confdefs.h. */
28121
Reid Spencera773bd52006-08-04 18:18:08 +000028122/* Override any GCC internal prototype to avoid an error.
28123 Use char because int might match the return type of a GCC
28124 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000028125#ifdef __cplusplus
28126extern "C"
28127#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000028128char pthread_mutex_lock ();
28129int
28130main ()
28131{
Reid Spencera773bd52006-08-04 18:18:08 +000028132return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000028133 ;
28134 return 0;
28135}
28136_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028137for ac_lib in '' pthread; do
28138 if test -z "$ac_lib"; then
28139 ac_res="none required"
28140 else
28141 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000028142 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028143 fi
28144 rm -f conftest.$ac_objext conftest$ac_exeext
28145if { (ac_try="$ac_link"
28146case "(($ac_try" in
28147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28148 *) ac_try_echo=$ac_try;;
28149esac
28150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28151 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000028152 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028153 grep -v '^ *+' conftest.er1 >conftest.err
28154 rm -f conftest.er1
28155 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000028156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028157 (exit $ac_status); } &&
28158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28159 { (case "(($ac_try" in
28160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28161 *) ac_try_echo=$ac_try;;
28162esac
28163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28164 (eval "$ac_try") 2>&5
28165 ac_status=$?
28166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28167 (exit $ac_status); }; } &&
28168 { ac_try='test -s conftest$ac_exeext'
28169 { (case "(($ac_try" in
28170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28171 *) ac_try_echo=$ac_try;;
28172esac
28173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28174 (eval "$ac_try") 2>&5
28175 ac_status=$?
28176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28177 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028178 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000028179else
28180 echo "$as_me: failed program was:" >&5
28181sed 's/^/| /' conftest.$ac_ext >&5
28182
Reid Spencera773bd52006-08-04 18:18:08 +000028183
Brian Gaeke5f268f72003-12-05 19:29:01 +000028184fi
Reid Spencera773bd52006-08-04 18:18:08 +000028185
Bill Wendlingebcceee2009-04-18 11:20:33 +000028186rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028187 conftest$ac_exeext
28188 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28189 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000028190fi
Reid Spencera773bd52006-08-04 18:18:08 +000028191done
28192if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28193 :
28194else
28195 ac_cv_search_pthread_mutex_lock=no
28196fi
28197rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000028198LIBS=$ac_func_search_save_LIBS
28199fi
Reid Spencera773bd52006-08-04 18:18:08 +000028200{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28201echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28202ac_res=$ac_cv_search_pthread_mutex_lock
28203if test "$ac_res" != no; then
28204 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000028205
John Criswell40468462004-09-24 21:19:06 +000028206cat >>confdefs.h <<\_ACEOF
28207#define HAVE_PTHREAD_MUTEX_LOCK 1
28208_ACEOF
28209
28210fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000028211
Owen Andersonde8aed22009-06-16 18:20:20 +000028212 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28213echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28214if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28215 echo $ECHO_N "(cached) $ECHO_C" >&6
28216else
28217 ac_func_search_save_LIBS=$LIBS
28218cat >conftest.$ac_ext <<_ACEOF
28219/* confdefs.h. */
28220_ACEOF
28221cat confdefs.h >>conftest.$ac_ext
28222cat >>conftest.$ac_ext <<_ACEOF
28223/* end confdefs.h. */
28224
28225/* Override any GCC internal prototype to avoid an error.
28226 Use char because int might match the return type of a GCC
28227 builtin and then its argument prototype would still apply. */
28228#ifdef __cplusplus
28229extern "C"
28230#endif
28231char pthread_rwlock_init ();
28232int
28233main ()
28234{
28235return pthread_rwlock_init ();
28236 ;
28237 return 0;
28238}
28239_ACEOF
28240for ac_lib in '' pthread; do
28241 if test -z "$ac_lib"; then
28242 ac_res="none required"
28243 else
28244 ac_res=-l$ac_lib
28245 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28246 fi
28247 rm -f conftest.$ac_objext conftest$ac_exeext
28248if { (ac_try="$ac_link"
28249case "(($ac_try" in
28250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28251 *) ac_try_echo=$ac_try;;
28252esac
28253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28254 (eval "$ac_link") 2>conftest.er1
28255 ac_status=$?
28256 grep -v '^ *+' conftest.er1 >conftest.err
28257 rm -f conftest.er1
28258 cat conftest.err >&5
28259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28260 (exit $ac_status); } &&
28261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28262 { (case "(($ac_try" in
28263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28264 *) ac_try_echo=$ac_try;;
28265esac
28266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28267 (eval "$ac_try") 2>&5
28268 ac_status=$?
28269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270 (exit $ac_status); }; } &&
28271 { ac_try='test -s conftest$ac_exeext'
28272 { (case "(($ac_try" in
28273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28274 *) ac_try_echo=$ac_try;;
28275esac
28276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28277 (eval "$ac_try") 2>&5
28278 ac_status=$?
28279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28280 (exit $ac_status); }; }; then
28281 ac_cv_search_pthread_rwlock_init=$ac_res
28282else
28283 echo "$as_me: failed program was:" >&5
28284sed 's/^/| /' conftest.$ac_ext >&5
28285
28286
28287fi
28288
28289rm -f core conftest.err conftest.$ac_objext \
28290 conftest$ac_exeext
28291 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28292 break
28293fi
28294done
28295if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28296 :
28297else
28298 ac_cv_search_pthread_rwlock_init=no
28299fi
28300rm conftest.$ac_ext
28301LIBS=$ac_func_search_save_LIBS
28302fi
28303{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28304echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28305ac_res=$ac_cv_search_pthread_rwlock_init
28306if test "$ac_res" != no; then
28307 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28308
28309cat >>confdefs.h <<\_ACEOF
28310#define HAVE_PTHREAD_RWLOCK_INIT 1
28311_ACEOF
28312
28313fi
28314
Owen Anderson27fcfe12009-06-25 23:10:26 +000028315 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28316echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28317if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28318 echo $ECHO_N "(cached) $ECHO_C" >&6
28319else
28320 ac_func_search_save_LIBS=$LIBS
28321cat >conftest.$ac_ext <<_ACEOF
28322/* confdefs.h. */
28323_ACEOF
28324cat confdefs.h >>conftest.$ac_ext
28325cat >>conftest.$ac_ext <<_ACEOF
28326/* end confdefs.h. */
28327
28328/* Override any GCC internal prototype to avoid an error.
28329 Use char because int might match the return type of a GCC
28330 builtin and then its argument prototype would still apply. */
28331#ifdef __cplusplus
28332extern "C"
28333#endif
28334char pthread_getspecific ();
28335int
28336main ()
28337{
28338return pthread_getspecific ();
28339 ;
28340 return 0;
28341}
28342_ACEOF
28343for ac_lib in '' pthread; do
28344 if test -z "$ac_lib"; then
28345 ac_res="none required"
28346 else
28347 ac_res=-l$ac_lib
28348 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28349 fi
28350 rm -f conftest.$ac_objext conftest$ac_exeext
28351if { (ac_try="$ac_link"
28352case "(($ac_try" in
28353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28354 *) ac_try_echo=$ac_try;;
28355esac
28356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28357 (eval "$ac_link") 2>conftest.er1
28358 ac_status=$?
28359 grep -v '^ *+' conftest.er1 >conftest.err
28360 rm -f conftest.er1
28361 cat conftest.err >&5
28362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28363 (exit $ac_status); } &&
28364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28365 { (case "(($ac_try" in
28366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28367 *) ac_try_echo=$ac_try;;
28368esac
28369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28370 (eval "$ac_try") 2>&5
28371 ac_status=$?
28372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28373 (exit $ac_status); }; } &&
28374 { ac_try='test -s conftest$ac_exeext'
28375 { (case "(($ac_try" in
28376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28377 *) ac_try_echo=$ac_try;;
28378esac
28379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28380 (eval "$ac_try") 2>&5
28381 ac_status=$?
28382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28383 (exit $ac_status); }; }; then
28384 ac_cv_search_pthread_getspecific=$ac_res
28385else
28386 echo "$as_me: failed program was:" >&5
28387sed 's/^/| /' conftest.$ac_ext >&5
28388
28389
28390fi
28391
28392rm -f core conftest.err conftest.$ac_objext \
28393 conftest$ac_exeext
28394 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28395 break
28396fi
28397done
28398if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28399 :
28400else
28401 ac_cv_search_pthread_getspecific=no
28402fi
28403rm conftest.$ac_ext
28404LIBS=$ac_func_search_save_LIBS
28405fi
28406{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28407echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28408ac_res=$ac_cv_search_pthread_getspecific
28409if test "$ac_res" != no; then
28410 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28411
28412cat >>confdefs.h <<\_ACEOF
28413#define HAVE_PTHREAD_GETSPECIFIC 1
28414_ACEOF
28415
28416fi
28417
Reid Spencer0a262ba2005-08-24 10:07:20 +000028418fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000028419
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028420
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028421# Check whether --with-udis86 was given.
28422if test "${with_udis86+set}" = set; then
28423 withval=$with_udis86;
28424 USE_UDIS86=1
28425
28426 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000028427 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028428 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28429 esac
28430
28431{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28432echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28433if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28434 echo $ECHO_N "(cached) $ECHO_C" >&6
28435else
28436 ac_check_lib_save_LIBS=$LIBS
28437LIBS="-ludis86 $LIBS"
28438cat >conftest.$ac_ext <<_ACEOF
28439/* confdefs.h. */
28440_ACEOF
28441cat confdefs.h >>conftest.$ac_ext
28442cat >>conftest.$ac_ext <<_ACEOF
28443/* end confdefs.h. */
28444
28445/* Override any GCC internal prototype to avoid an error.
28446 Use char because int might match the return type of a GCC
28447 builtin and then its argument prototype would still apply. */
28448#ifdef __cplusplus
28449extern "C"
28450#endif
28451char ud_init ();
28452int
28453main ()
28454{
28455return ud_init ();
28456 ;
28457 return 0;
28458}
28459_ACEOF
28460rm -f conftest.$ac_objext conftest$ac_exeext
28461if { (ac_try="$ac_link"
28462case "(($ac_try" in
28463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28464 *) ac_try_echo=$ac_try;;
28465esac
28466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28467 (eval "$ac_link") 2>conftest.er1
28468 ac_status=$?
28469 grep -v '^ *+' conftest.er1 >conftest.err
28470 rm -f conftest.er1
28471 cat conftest.err >&5
28472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028473 (exit $ac_status); } &&
28474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28475 { (case "(($ac_try" in
28476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28477 *) ac_try_echo=$ac_try;;
28478esac
28479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28480 (eval "$ac_try") 2>&5
28481 ac_status=$?
28482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28483 (exit $ac_status); }; } &&
28484 { ac_try='test -s conftest$ac_exeext'
28485 { (case "(($ac_try" in
28486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28487 *) ac_try_echo=$ac_try;;
28488esac
28489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28490 (eval "$ac_try") 2>&5
28491 ac_status=$?
28492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28493 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028494 ac_cv_lib_udis86_ud_init=yes
28495else
28496 echo "$as_me: failed program was:" >&5
28497sed 's/^/| /' conftest.$ac_ext >&5
28498
28499 ac_cv_lib_udis86_ud_init=no
28500fi
28501
Bill Wendlingebcceee2009-04-18 11:20:33 +000028502rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028503 conftest$ac_exeext conftest.$ac_ext
28504LIBS=$ac_check_lib_save_LIBS
28505fi
28506{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28507echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28508if test $ac_cv_lib_udis86_ud_init = yes; then
28509 cat >>confdefs.h <<_ACEOF
28510#define HAVE_LIBUDIS86 1
28511_ACEOF
28512
28513 LIBS="-ludis86 $LIBS"
28514
28515else
28516
28517 echo "Error! You need to have libudis86 around."
28518 exit -1
28519
28520fi
28521
28522
28523else
28524 USE_UDIS86=0
28525
28526fi
28527
28528
28529cat >>confdefs.h <<_ACEOF
28530#define USE_UDIS86 $USE_UDIS86
28531_ACEOF
28532
28533
28534
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028535# Check whether --with-oprofile was given.
28536if test "${with_oprofile+set}" = set; then
28537 withval=$with_oprofile;
28538 USE_OPROFILE=1
28539
28540 case "$withval" in
28541 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28542 *) llvm_cv_oppath="${withval}/lib/oprofile"
28543 CPPFLAGS="-I${withval}/include";;
28544 esac
28545 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28546 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28547echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28548if test "${ac_cv_search_op_open_agent+set}" = set; then
28549 echo $ECHO_N "(cached) $ECHO_C" >&6
28550else
28551 ac_func_search_save_LIBS=$LIBS
28552cat >conftest.$ac_ext <<_ACEOF
28553/* confdefs.h. */
28554_ACEOF
28555cat confdefs.h >>conftest.$ac_ext
28556cat >>conftest.$ac_ext <<_ACEOF
28557/* end confdefs.h. */
28558
28559/* Override any GCC internal prototype to avoid an error.
28560 Use char because int might match the return type of a GCC
28561 builtin and then its argument prototype would still apply. */
28562#ifdef __cplusplus
28563extern "C"
28564#endif
28565char op_open_agent ();
28566int
28567main ()
28568{
28569return op_open_agent ();
28570 ;
28571 return 0;
28572}
28573_ACEOF
28574for ac_lib in '' opagent; do
28575 if test -z "$ac_lib"; then
28576 ac_res="none required"
28577 else
28578 ac_res=-l$ac_lib
28579 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28580 fi
28581 rm -f conftest.$ac_objext conftest$ac_exeext
28582if { (ac_try="$ac_link"
28583case "(($ac_try" in
28584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28585 *) ac_try_echo=$ac_try;;
28586esac
28587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28588 (eval "$ac_link") 2>conftest.er1
28589 ac_status=$?
28590 grep -v '^ *+' conftest.er1 >conftest.err
28591 rm -f conftest.er1
28592 cat conftest.err >&5
28593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28594 (exit $ac_status); } &&
28595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28596 { (case "(($ac_try" in
28597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28598 *) ac_try_echo=$ac_try;;
28599esac
28600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28601 (eval "$ac_try") 2>&5
28602 ac_status=$?
28603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28604 (exit $ac_status); }; } &&
28605 { ac_try='test -s conftest$ac_exeext'
28606 { (case "(($ac_try" in
28607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28608 *) ac_try_echo=$ac_try;;
28609esac
28610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28611 (eval "$ac_try") 2>&5
28612 ac_status=$?
28613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614 (exit $ac_status); }; }; then
28615 ac_cv_search_op_open_agent=$ac_res
28616else
28617 echo "$as_me: failed program was:" >&5
28618sed 's/^/| /' conftest.$ac_ext >&5
28619
28620
28621fi
28622
28623rm -f core conftest.err conftest.$ac_objext \
28624 conftest$ac_exeext
28625 if test "${ac_cv_search_op_open_agent+set}" = set; then
28626 break
28627fi
28628done
28629if test "${ac_cv_search_op_open_agent+set}" = set; then
28630 :
28631else
28632 ac_cv_search_op_open_agent=no
28633fi
28634rm conftest.$ac_ext
28635LIBS=$ac_func_search_save_LIBS
28636fi
28637{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28638echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28639ac_res=$ac_cv_search_op_open_agent
28640if test "$ac_res" != no; then
28641 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28642
28643else
28644
28645 echo "Error! You need to have libopagent around."
28646 exit -1
28647
28648fi
28649
28650 if test "${ac_cv_header_opagent_h+set}" = set; then
28651 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28652echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28653if test "${ac_cv_header_opagent_h+set}" = set; then
28654 echo $ECHO_N "(cached) $ECHO_C" >&6
28655fi
28656{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28657echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28658else
28659 # Is the header compilable?
28660{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
28661echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28662cat >conftest.$ac_ext <<_ACEOF
28663/* confdefs.h. */
28664_ACEOF
28665cat confdefs.h >>conftest.$ac_ext
28666cat >>conftest.$ac_ext <<_ACEOF
28667/* end confdefs.h. */
28668$ac_includes_default
28669#include <opagent.h>
28670_ACEOF
28671rm -f conftest.$ac_objext
28672if { (ac_try="$ac_compile"
28673case "(($ac_try" in
28674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28675 *) ac_try_echo=$ac_try;;
28676esac
28677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28678 (eval "$ac_compile") 2>conftest.er1
28679 ac_status=$?
28680 grep -v '^ *+' conftest.er1 >conftest.err
28681 rm -f conftest.er1
28682 cat conftest.err >&5
28683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684 (exit $ac_status); } &&
28685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28686 { (case "(($ac_try" in
28687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28688 *) ac_try_echo=$ac_try;;
28689esac
28690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28691 (eval "$ac_try") 2>&5
28692 ac_status=$?
28693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28694 (exit $ac_status); }; } &&
28695 { ac_try='test -s conftest.$ac_objext'
28696 { (case "(($ac_try" in
28697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28698 *) ac_try_echo=$ac_try;;
28699esac
28700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28701 (eval "$ac_try") 2>&5
28702 ac_status=$?
28703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28704 (exit $ac_status); }; }; then
28705 ac_header_compiler=yes
28706else
28707 echo "$as_me: failed program was:" >&5
28708sed 's/^/| /' conftest.$ac_ext >&5
28709
28710 ac_header_compiler=no
28711fi
28712
28713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28714{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28715echo "${ECHO_T}$ac_header_compiler" >&6; }
28716
28717# Is the header present?
28718{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
28719echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28720cat >conftest.$ac_ext <<_ACEOF
28721/* confdefs.h. */
28722_ACEOF
28723cat confdefs.h >>conftest.$ac_ext
28724cat >>conftest.$ac_ext <<_ACEOF
28725/* end confdefs.h. */
28726#include <opagent.h>
28727_ACEOF
28728if { (ac_try="$ac_cpp conftest.$ac_ext"
28729case "(($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_cpp conftest.$ac_ext") 2>conftest.er1
28735 ac_status=$?
28736 grep -v '^ *+' conftest.er1 >conftest.err
28737 rm -f conftest.er1
28738 cat conftest.err >&5
28739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740 (exit $ac_status); } >/dev/null; then
28741 if test -s conftest.err; then
28742 ac_cpp_err=$ac_c_preproc_warn_flag
28743 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28744 else
28745 ac_cpp_err=
28746 fi
28747else
28748 ac_cpp_err=yes
28749fi
28750if test -z "$ac_cpp_err"; then
28751 ac_header_preproc=yes
28752else
28753 echo "$as_me: failed program was:" >&5
28754sed 's/^/| /' conftest.$ac_ext >&5
28755
28756 ac_header_preproc=no
28757fi
28758
28759rm -f conftest.err conftest.$ac_ext
28760{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28761echo "${ECHO_T}$ac_header_preproc" >&6; }
28762
28763# So? What about this header?
28764case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28765 yes:no: )
28766 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28767echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28768 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28769echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28770 ac_header_preproc=yes
28771 ;;
28772 no:yes:* )
28773 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28774echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28775 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28776echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28777 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28778echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28779 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28780echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28781 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28782echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28783 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28784echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28785 ( cat <<\_ASBOX
28786## ----------------------------------- ##
28787## Report this to llvmbugs@cs.uiuc.edu ##
28788## ----------------------------------- ##
28789_ASBOX
28790 ) | sed "s/^/$as_me: WARNING: /" >&2
28791 ;;
28792esac
28793{ echo "$as_me:$LINENO: checking for opagent.h" >&5
28794echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28795if test "${ac_cv_header_opagent_h+set}" = set; then
28796 echo $ECHO_N "(cached) $ECHO_C" >&6
28797else
28798 ac_cv_header_opagent_h=$ac_header_preproc
28799fi
28800{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28801echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28802
28803fi
28804if test $ac_cv_header_opagent_h = yes; then
28805 :
28806else
28807
28808 echo "Error! You need to have opagent.h around."
28809 exit -1
28810
28811fi
28812
28813
28814
28815else
28816
28817 llvm_cv_old_LIBS="$LIBS"
28818 LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile"
28819 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28820echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28821if test "${ac_cv_search_op_open_agent+set}" = set; then
28822 echo $ECHO_N "(cached) $ECHO_C" >&6
28823else
28824 ac_func_search_save_LIBS=$LIBS
28825cat >conftest.$ac_ext <<_ACEOF
28826/* confdefs.h. */
28827_ACEOF
28828cat confdefs.h >>conftest.$ac_ext
28829cat >>conftest.$ac_ext <<_ACEOF
28830/* end confdefs.h. */
28831
28832/* Override any GCC internal prototype to avoid an error.
28833 Use char because int might match the return type of a GCC
28834 builtin and then its argument prototype would still apply. */
28835#ifdef __cplusplus
28836extern "C"
28837#endif
28838char op_open_agent ();
28839int
28840main ()
28841{
28842return op_open_agent ();
28843 ;
28844 return 0;
28845}
28846_ACEOF
28847for ac_lib in '' opagent; do
28848 if test -z "$ac_lib"; then
28849 ac_res="none required"
28850 else
28851 ac_res=-l$ac_lib
28852 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28853 fi
28854 rm -f conftest.$ac_objext conftest$ac_exeext
28855if { (ac_try="$ac_link"
28856case "(($ac_try" in
28857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28858 *) ac_try_echo=$ac_try;;
28859esac
28860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28861 (eval "$ac_link") 2>conftest.er1
28862 ac_status=$?
28863 grep -v '^ *+' conftest.er1 >conftest.err
28864 rm -f conftest.er1
28865 cat conftest.err >&5
28866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28867 (exit $ac_status); } &&
28868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28869 { (case "(($ac_try" in
28870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28871 *) ac_try_echo=$ac_try;;
28872esac
28873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28874 (eval "$ac_try") 2>&5
28875 ac_status=$?
28876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28877 (exit $ac_status); }; } &&
28878 { ac_try='test -s conftest$ac_exeext'
28879 { (case "(($ac_try" in
28880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28881 *) ac_try_echo=$ac_try;;
28882esac
28883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28884 (eval "$ac_try") 2>&5
28885 ac_status=$?
28886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28887 (exit $ac_status); }; }; then
28888 ac_cv_search_op_open_agent=$ac_res
28889else
28890 echo "$as_me: failed program was:" >&5
28891sed 's/^/| /' conftest.$ac_ext >&5
28892
28893
28894fi
28895
28896rm -f core conftest.err conftest.$ac_objext \
28897 conftest$ac_exeext
28898 if test "${ac_cv_search_op_open_agent+set}" = set; then
28899 break
28900fi
28901done
28902if test "${ac_cv_search_op_open_agent+set}" = set; then
28903 :
28904else
28905 ac_cv_search_op_open_agent=no
28906fi
28907rm conftest.$ac_ext
28908LIBS=$ac_func_search_save_LIBS
28909fi
28910{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28911echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28912ac_res=$ac_cv_search_op_open_agent
28913if test "$ac_res" != no; then
28914 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28915 USE_OPROFILE=1
28916
28917else
28918 LIBS="$llvm_cv_old_LIBS"
28919 USE_OPROFILE=0
28920
28921fi
28922
28923 if test "${ac_cv_header_opagent_h+set}" = set; then
28924 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28925echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28926if test "${ac_cv_header_opagent_h+set}" = set; then
28927 echo $ECHO_N "(cached) $ECHO_C" >&6
28928fi
28929{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28930echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28931else
28932 # Is the header compilable?
28933{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
28934echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28935cat >conftest.$ac_ext <<_ACEOF
28936/* confdefs.h. */
28937_ACEOF
28938cat confdefs.h >>conftest.$ac_ext
28939cat >>conftest.$ac_ext <<_ACEOF
28940/* end confdefs.h. */
28941$ac_includes_default
28942#include <opagent.h>
28943_ACEOF
28944rm -f conftest.$ac_objext
28945if { (ac_try="$ac_compile"
28946case "(($ac_try" in
28947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28948 *) ac_try_echo=$ac_try;;
28949esac
28950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28951 (eval "$ac_compile") 2>conftest.er1
28952 ac_status=$?
28953 grep -v '^ *+' conftest.er1 >conftest.err
28954 rm -f conftest.er1
28955 cat conftest.err >&5
28956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28957 (exit $ac_status); } &&
28958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28959 { (case "(($ac_try" in
28960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28961 *) ac_try_echo=$ac_try;;
28962esac
28963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28964 (eval "$ac_try") 2>&5
28965 ac_status=$?
28966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28967 (exit $ac_status); }; } &&
28968 { ac_try='test -s conftest.$ac_objext'
28969 { (case "(($ac_try" in
28970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28971 *) ac_try_echo=$ac_try;;
28972esac
28973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28974 (eval "$ac_try") 2>&5
28975 ac_status=$?
28976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28977 (exit $ac_status); }; }; then
28978 ac_header_compiler=yes
28979else
28980 echo "$as_me: failed program was:" >&5
28981sed 's/^/| /' conftest.$ac_ext >&5
28982
28983 ac_header_compiler=no
28984fi
28985
28986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28987{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28988echo "${ECHO_T}$ac_header_compiler" >&6; }
28989
28990# Is the header present?
28991{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
28992echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28993cat >conftest.$ac_ext <<_ACEOF
28994/* confdefs.h. */
28995_ACEOF
28996cat confdefs.h >>conftest.$ac_ext
28997cat >>conftest.$ac_ext <<_ACEOF
28998/* end confdefs.h. */
28999#include <opagent.h>
29000_ACEOF
29001if { (ac_try="$ac_cpp conftest.$ac_ext"
29002case "(($ac_try" in
29003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29004 *) ac_try_echo=$ac_try;;
29005esac
29006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29008 ac_status=$?
29009 grep -v '^ *+' conftest.er1 >conftest.err
29010 rm -f conftest.er1
29011 cat conftest.err >&5
29012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29013 (exit $ac_status); } >/dev/null; then
29014 if test -s conftest.err; then
29015 ac_cpp_err=$ac_c_preproc_warn_flag
29016 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29017 else
29018 ac_cpp_err=
29019 fi
29020else
29021 ac_cpp_err=yes
29022fi
29023if test -z "$ac_cpp_err"; then
29024 ac_header_preproc=yes
29025else
29026 echo "$as_me: failed program was:" >&5
29027sed 's/^/| /' conftest.$ac_ext >&5
29028
29029 ac_header_preproc=no
29030fi
29031
29032rm -f conftest.err conftest.$ac_ext
29033{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29034echo "${ECHO_T}$ac_header_preproc" >&6; }
29035
29036# So? What about this header?
29037case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29038 yes:no: )
29039 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
29040echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29041 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
29042echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
29043 ac_header_preproc=yes
29044 ;;
29045 no:yes:* )
29046 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
29047echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
29048 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
29049echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
29050 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
29051echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
29052 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
29053echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
29054 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
29055echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
29056 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
29057echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
29058 ( cat <<\_ASBOX
29059## ----------------------------------- ##
29060## Report this to llvmbugs@cs.uiuc.edu ##
29061## ----------------------------------- ##
29062_ASBOX
29063 ) | sed "s/^/$as_me: WARNING: /" >&2
29064 ;;
29065esac
29066{ echo "$as_me:$LINENO: checking for opagent.h" >&5
29067echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
29068if test "${ac_cv_header_opagent_h+set}" = set; then
29069 echo $ECHO_N "(cached) $ECHO_C" >&6
29070else
29071 ac_cv_header_opagent_h=$ac_header_preproc
29072fi
29073{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
29074echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
29075
29076fi
29077if test $ac_cv_header_opagent_h = yes; then
29078 :
29079else
29080
29081 LIBS="$llvm_cv_old_LIBS"
29082 USE_OPROFILE=0
29083
29084
29085fi
29086
29087
29088
29089fi
29090
29091
29092cat >>confdefs.h <<_ACEOF
29093#define USE_OPROFILE $USE_OPROFILE
29094_ACEOF
29095
29096
29097
Reid Spencer59473af2004-12-25 07:31:29 +000029098
29099
29100
29101
29102
29103ac_header_dirent=no
29104for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29105 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029106{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29107echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29108if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029109 echo $ECHO_N "(cached) $ECHO_C" >&6
29110else
29111 cat >conftest.$ac_ext <<_ACEOF
29112/* confdefs.h. */
29113_ACEOF
29114cat confdefs.h >>conftest.$ac_ext
29115cat >>conftest.$ac_ext <<_ACEOF
29116/* end confdefs.h. */
29117#include <sys/types.h>
29118#include <$ac_hdr>
29119
29120int
29121main ()
29122{
29123if ((DIR *) 0)
29124return 0;
29125 ;
29126 return 0;
29127}
29128_ACEOF
29129rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029130if { (ac_try="$ac_compile"
29131case "(($ac_try" in
29132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29133 *) ac_try_echo=$ac_try;;
29134esac
29135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29136 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029137 ac_status=$?
29138 grep -v '^ *+' conftest.er1 >conftest.err
29139 rm -f conftest.er1
29140 cat conftest.err >&5
29141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029142 (exit $ac_status); } &&
29143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29144 { (case "(($ac_try" in
29145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29146 *) ac_try_echo=$ac_try;;
29147esac
29148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29149 (eval "$ac_try") 2>&5
29150 ac_status=$?
29151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29152 (exit $ac_status); }; } &&
29153 { ac_try='test -s conftest.$ac_objext'
29154 { (case "(($ac_try" in
29155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29156 *) ac_try_echo=$ac_try;;
29157esac
29158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29159 (eval "$ac_try") 2>&5
29160 ac_status=$?
29161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29162 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029163 eval "$as_ac_Header=yes"
29164else
29165 echo "$as_me: failed program was:" >&5
29166sed 's/^/| /' conftest.$ac_ext >&5
29167
Reid Spencera773bd52006-08-04 18:18:08 +000029168 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000029169fi
Reid Spencera773bd52006-08-04 18:18:08 +000029170
29171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029172fi
Reid Spencera773bd52006-08-04 18:18:08 +000029173ac_res=`eval echo '${'$as_ac_Header'}'`
29174 { echo "$as_me:$LINENO: result: $ac_res" >&5
29175echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029176if test `eval echo '${'$as_ac_Header'}'` = yes; then
29177 cat >>confdefs.h <<_ACEOF
29178#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29179_ACEOF
29180
29181ac_header_dirent=$ac_hdr; break
29182fi
29183
29184done
29185# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29186if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000029187 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29188echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029189if test "${ac_cv_search_opendir+set}" = set; then
29190 echo $ECHO_N "(cached) $ECHO_C" >&6
29191else
29192 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000029193cat >conftest.$ac_ext <<_ACEOF
29194/* confdefs.h. */
29195_ACEOF
29196cat confdefs.h >>conftest.$ac_ext
29197cat >>conftest.$ac_ext <<_ACEOF
29198/* end confdefs.h. */
29199
Reid Spencera773bd52006-08-04 18:18:08 +000029200/* Override any GCC internal prototype to avoid an error.
29201 Use char because int might match the return type of a GCC
29202 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000029203#ifdef __cplusplus
29204extern "C"
29205#endif
Reid Spencer59473af2004-12-25 07:31:29 +000029206char opendir ();
29207int
29208main ()
29209{
Reid Spencera773bd52006-08-04 18:18:08 +000029210return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000029211 ;
29212 return 0;
29213}
29214_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029215for ac_lib in '' dir; do
29216 if test -z "$ac_lib"; then
29217 ac_res="none required"
29218 else
29219 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000029220 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000029221 fi
29222 rm -f conftest.$ac_objext conftest$ac_exeext
29223if { (ac_try="$ac_link"
29224case "(($ac_try" in
29225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29226 *) ac_try_echo=$ac_try;;
29227esac
29228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29229 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029230 ac_status=$?
29231 grep -v '^ *+' conftest.er1 >conftest.err
29232 rm -f conftest.er1
29233 cat conftest.err >&5
29234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029235 (exit $ac_status); } &&
29236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29237 { (case "(($ac_try" in
29238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29239 *) ac_try_echo=$ac_try;;
29240esac
29241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29242 (eval "$ac_try") 2>&5
29243 ac_status=$?
29244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29245 (exit $ac_status); }; } &&
29246 { ac_try='test -s conftest$ac_exeext'
29247 { (case "(($ac_try" in
29248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29249 *) ac_try_echo=$ac_try;;
29250esac
29251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29252 (eval "$ac_try") 2>&5
29253 ac_status=$?
29254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029256 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000029257else
29258 echo "$as_me: failed program was:" >&5
29259sed 's/^/| /' conftest.$ac_ext >&5
29260
Reid Spencera773bd52006-08-04 18:18:08 +000029261
Reid Spencer59473af2004-12-25 07:31:29 +000029262fi
Reid Spencera773bd52006-08-04 18:18:08 +000029263
Bill Wendlingebcceee2009-04-18 11:20:33 +000029264rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000029265 conftest$ac_exeext
29266 if test "${ac_cv_search_opendir+set}" = set; then
29267 break
Reid Spencer59473af2004-12-25 07:31:29 +000029268fi
Reid Spencera773bd52006-08-04 18:18:08 +000029269done
29270if test "${ac_cv_search_opendir+set}" = set; then
29271 :
29272else
29273 ac_cv_search_opendir=no
29274fi
29275rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029276LIBS=$ac_func_search_save_LIBS
29277fi
Reid Spencera773bd52006-08-04 18:18:08 +000029278{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29279echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29280ac_res=$ac_cv_search_opendir
29281if test "$ac_res" != no; then
29282 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000029283
29284fi
29285
29286else
Reid Spencera773bd52006-08-04 18:18:08 +000029287 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29288echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029289if test "${ac_cv_search_opendir+set}" = set; then
29290 echo $ECHO_N "(cached) $ECHO_C" >&6
29291else
29292 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000029293cat >conftest.$ac_ext <<_ACEOF
29294/* confdefs.h. */
29295_ACEOF
29296cat confdefs.h >>conftest.$ac_ext
29297cat >>conftest.$ac_ext <<_ACEOF
29298/* end confdefs.h. */
29299
Reid Spencera773bd52006-08-04 18:18:08 +000029300/* Override any GCC internal prototype to avoid an error.
29301 Use char because int might match the return type of a GCC
29302 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000029303#ifdef __cplusplus
29304extern "C"
29305#endif
Reid Spencer59473af2004-12-25 07:31:29 +000029306char opendir ();
29307int
29308main ()
29309{
Reid Spencera773bd52006-08-04 18:18:08 +000029310return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000029311 ;
29312 return 0;
29313}
29314_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029315for ac_lib in '' x; do
29316 if test -z "$ac_lib"; then
29317 ac_res="none required"
29318 else
29319 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000029320 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000029321 fi
29322 rm -f conftest.$ac_objext conftest$ac_exeext
29323if { (ac_try="$ac_link"
29324case "(($ac_try" in
29325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29326 *) ac_try_echo=$ac_try;;
29327esac
29328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29329 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029330 ac_status=$?
29331 grep -v '^ *+' conftest.er1 >conftest.err
29332 rm -f conftest.er1
29333 cat conftest.err >&5
29334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029335 (exit $ac_status); } &&
29336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29337 { (case "(($ac_try" in
29338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29339 *) ac_try_echo=$ac_try;;
29340esac
29341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29342 (eval "$ac_try") 2>&5
29343 ac_status=$?
29344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29345 (exit $ac_status); }; } &&
29346 { ac_try='test -s conftest$ac_exeext'
29347 { (case "(($ac_try" in
29348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29349 *) ac_try_echo=$ac_try;;
29350esac
29351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29352 (eval "$ac_try") 2>&5
29353 ac_status=$?
29354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29355 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029356 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000029357else
29358 echo "$as_me: failed program was:" >&5
29359sed 's/^/| /' conftest.$ac_ext >&5
29360
Reid Spencera773bd52006-08-04 18:18:08 +000029361
Reid Spencer59473af2004-12-25 07:31:29 +000029362fi
Reid Spencera773bd52006-08-04 18:18:08 +000029363
Bill Wendlingebcceee2009-04-18 11:20:33 +000029364rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000029365 conftest$ac_exeext
29366 if test "${ac_cv_search_opendir+set}" = set; then
29367 break
Reid Spencer59473af2004-12-25 07:31:29 +000029368fi
Reid Spencera773bd52006-08-04 18:18:08 +000029369done
29370if test "${ac_cv_search_opendir+set}" = set; then
29371 :
29372else
29373 ac_cv_search_opendir=no
29374fi
29375rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029376LIBS=$ac_func_search_save_LIBS
29377fi
Reid Spencera773bd52006-08-04 18:18:08 +000029378{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29379echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29380ac_res=$ac_cv_search_opendir
29381if test "$ac_res" != no; then
29382 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000029383
29384fi
29385
29386fi
29387
Reid Spencera773bd52006-08-04 18:18:08 +000029388{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29389echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029390if test "${ac_cv_header_mmap_anon+set}" = set; then
29391 echo $ECHO_N "(cached) $ECHO_C" >&6
29392else
29393 ac_ext=c
29394ac_cpp='$CPP $CPPFLAGS'
29395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29397ac_compiler_gnu=$ac_cv_c_compiler_gnu
29398
29399 cat >conftest.$ac_ext <<_ACEOF
29400/* confdefs.h. */
29401_ACEOF
29402cat confdefs.h >>conftest.$ac_ext
29403cat >>conftest.$ac_ext <<_ACEOF
29404/* end confdefs.h. */
29405#include <sys/mman.h>
29406#include <unistd.h>
29407#include <fcntl.h>
29408int
29409main ()
29410{
29411mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29412 ;
29413 return 0;
29414}
29415_ACEOF
29416rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029417if { (ac_try="$ac_compile"
29418case "(($ac_try" in
29419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29420 *) ac_try_echo=$ac_try;;
29421esac
29422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29423 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029424 ac_status=$?
29425 grep -v '^ *+' conftest.er1 >conftest.err
29426 rm -f conftest.er1
29427 cat conftest.err >&5
29428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029429 (exit $ac_status); } &&
29430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29431 { (case "(($ac_try" in
29432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29433 *) ac_try_echo=$ac_try;;
29434esac
29435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29436 (eval "$ac_try") 2>&5
29437 ac_status=$?
29438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29439 (exit $ac_status); }; } &&
29440 { ac_try='test -s conftest.$ac_objext'
29441 { (case "(($ac_try" in
29442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29443 *) ac_try_echo=$ac_try;;
29444esac
29445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29446 (eval "$ac_try") 2>&5
29447 ac_status=$?
29448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29449 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029450 ac_cv_header_mmap_anon=yes
29451else
29452 echo "$as_me: failed program was:" >&5
29453sed 's/^/| /' conftest.$ac_ext >&5
29454
Reid Spencera773bd52006-08-04 18:18:08 +000029455 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000029456fi
Reid Spencera773bd52006-08-04 18:18:08 +000029457
29458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029459 ac_ext=c
29460ac_cpp='$CPP $CPPFLAGS'
29461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29463ac_compiler_gnu=$ac_cv_c_compiler_gnu
29464
29465
29466fi
Reid Spencera773bd52006-08-04 18:18:08 +000029467{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29468echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029469if test "$ac_cv_header_mmap_anon" = yes; then
29470
29471cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000029472#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000029473_ACEOF
29474
29475fi
29476
Reid Spencera773bd52006-08-04 18:18:08 +000029477{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29478echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029479if test "${ac_cv_header_stat_broken+set}" = set; then
29480 echo $ECHO_N "(cached) $ECHO_C" >&6
29481else
29482 cat >conftest.$ac_ext <<_ACEOF
29483/* confdefs.h. */
29484_ACEOF
29485cat confdefs.h >>conftest.$ac_ext
29486cat >>conftest.$ac_ext <<_ACEOF
29487/* end confdefs.h. */
29488#include <sys/types.h>
29489#include <sys/stat.h>
29490
Reid Spencera773bd52006-08-04 18:18:08 +000029491#if defined S_ISBLK && defined S_IFDIR
Bill Wendlingebcceee2009-04-18 11:20:33 +000029492# if S_ISBLK (S_IFDIR)
29493You lose.
29494# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029495#endif
29496
Reid Spencera773bd52006-08-04 18:18:08 +000029497#if defined S_ISBLK && defined S_IFCHR
Bill Wendlingebcceee2009-04-18 11:20:33 +000029498# if S_ISBLK (S_IFCHR)
29499You lose.
29500# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029501#endif
29502
Reid Spencera773bd52006-08-04 18:18:08 +000029503#if defined S_ISLNK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000029504# if S_ISLNK (S_IFREG)
29505You lose.
29506# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029507#endif
29508
Reid Spencera773bd52006-08-04 18:18:08 +000029509#if defined S_ISSOCK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000029510# if S_ISSOCK (S_IFREG)
29511You lose.
29512# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029513#endif
29514
29515_ACEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +000029516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29517 $EGREP "You lose" >/dev/null 2>&1; then
29518 ac_cv_header_stat_broken=yes
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029519else
Bill Wendlingebcceee2009-04-18 11:20:33 +000029520 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029521fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000029522rm -f conftest*
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029523
Reid Spencer59473af2004-12-25 07:31:29 +000029524fi
Reid Spencera773bd52006-08-04 18:18:08 +000029525{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29526echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029527if test $ac_cv_header_stat_broken = yes; then
29528
29529cat >>confdefs.h <<\_ACEOF
29530#define STAT_MACROS_BROKEN 1
29531_ACEOF
29532
29533fi
29534
Reid Spencera773bd52006-08-04 18:18:08 +000029535{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29536echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029537if test "${ac_cv_header_stdc+set}" = set; then
29538 echo $ECHO_N "(cached) $ECHO_C" >&6
29539else
29540 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029541/* confdefs.h. */
29542_ACEOF
29543cat confdefs.h >>conftest.$ac_ext
29544cat >>conftest.$ac_ext <<_ACEOF
29545/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029546#include <stdlib.h>
29547#include <stdarg.h>
29548#include <string.h>
29549#include <float.h>
29550
John Criswell0c38eaf2003-09-10 15:17:25 +000029551int
29552main ()
29553{
29554
29555 ;
29556 return 0;
29557}
John Criswell7a73b802003-06-30 21:59:07 +000029558_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029559rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029560if { (ac_try="$ac_compile"
29561case "(($ac_try" in
29562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29563 *) ac_try_echo=$ac_try;;
29564esac
29565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29566 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029567 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029568 grep -v '^ *+' conftest.er1 >conftest.err
29569 rm -f conftest.er1
29570 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029572 (exit $ac_status); } &&
29573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29574 { (case "(($ac_try" in
29575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29576 *) ac_try_echo=$ac_try;;
29577esac
29578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29579 (eval "$ac_try") 2>&5
29580 ac_status=$?
29581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29582 (exit $ac_status); }; } &&
29583 { ac_try='test -s conftest.$ac_objext'
29584 { (case "(($ac_try" in
29585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29586 *) ac_try_echo=$ac_try;;
29587esac
29588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29589 (eval "$ac_try") 2>&5
29590 ac_status=$?
29591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29592 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029593 ac_cv_header_stdc=yes
29594else
29595 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029596sed 's/^/| /' conftest.$ac_ext >&5
29597
Reid Spencera773bd52006-08-04 18:18:08 +000029598 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000029599fi
Reid Spencera773bd52006-08-04 18:18:08 +000029600
29601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029602
29603if test $ac_cv_header_stdc = yes; then
29604 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29605 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029606/* confdefs.h. */
29607_ACEOF
29608cat confdefs.h >>conftest.$ac_ext
29609cat >>conftest.$ac_ext <<_ACEOF
29610/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029611#include <string.h>
29612
29613_ACEOF
29614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000029615 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029616 :
29617else
29618 ac_cv_header_stdc=no
29619fi
29620rm -f conftest*
29621
29622fi
29623
29624if test $ac_cv_header_stdc = yes; then
29625 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29626 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029627/* confdefs.h. */
29628_ACEOF
29629cat confdefs.h >>conftest.$ac_ext
29630cat >>conftest.$ac_ext <<_ACEOF
29631/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029632#include <stdlib.h>
29633
29634_ACEOF
29635if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000029636 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029637 :
29638else
29639 ac_cv_header_stdc=no
29640fi
29641rm -f conftest*
29642
29643fi
29644
29645if test $ac_cv_header_stdc = yes; then
29646 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29647 if test "$cross_compiling" = yes; then
29648 :
29649else
29650 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029651/* confdefs.h. */
29652_ACEOF
29653cat confdefs.h >>conftest.$ac_ext
29654cat >>conftest.$ac_ext <<_ACEOF
29655/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029656#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000029657#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000029658#if ((' ' & 0x0FF) == 0x020)
29659# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29660# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29661#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029662# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000029663 (('a' <= (c) && (c) <= 'i') \
29664 || ('j' <= (c) && (c) <= 'r') \
29665 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000029666# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29667#endif
29668
29669#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29670int
29671main ()
29672{
29673 int i;
29674 for (i = 0; i < 256; i++)
29675 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000029676 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000029677 return 2;
29678 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029679}
29680_ACEOF
29681rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029682if { (ac_try="$ac_link"
29683case "(($ac_try" in
29684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29685 *) ac_try_echo=$ac_try;;
29686esac
29687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29688 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029689 ac_status=$?
29690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029692 { (case "(($ac_try" in
29693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29694 *) ac_try_echo=$ac_try;;
29695esac
29696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29697 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029698 ac_status=$?
29699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29700 (exit $ac_status); }; }; then
29701 :
29702else
29703 echo "$as_me: program exited with status $ac_status" >&5
29704echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029705sed 's/^/| /' conftest.$ac_ext >&5
29706
John Criswell7a73b802003-06-30 21:59:07 +000029707( exit $ac_status )
29708ac_cv_header_stdc=no
29709fi
Reid Spencera773bd52006-08-04 18:18:08 +000029710rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29711fi
29712
29713
John Criswell7a73b802003-06-30 21:59:07 +000029714fi
29715fi
Reid Spencera773bd52006-08-04 18:18:08 +000029716{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29717echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029718if test $ac_cv_header_stdc = yes; then
29719
29720cat >>confdefs.h <<\_ACEOF
29721#define STDC_HEADERS 1
29722_ACEOF
29723
29724fi
29725
Reid Spencera773bd52006-08-04 18:18:08 +000029726{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29727echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029728if test "${ac_cv_header_sys_wait_h+set}" = set; then
29729 echo $ECHO_N "(cached) $ECHO_C" >&6
29730else
29731 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029732/* confdefs.h. */
29733_ACEOF
29734cat confdefs.h >>conftest.$ac_ext
29735cat >>conftest.$ac_ext <<_ACEOF
29736/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029737#include <sys/types.h>
29738#include <sys/wait.h>
29739#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000029740# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000029741#endif
29742#ifndef WIFEXITED
29743# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29744#endif
29745
John Criswell7a73b802003-06-30 21:59:07 +000029746int
29747main ()
29748{
29749 int s;
29750 wait (&s);
29751 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29752 ;
29753 return 0;
29754}
29755_ACEOF
29756rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029757if { (ac_try="$ac_compile"
29758case "(($ac_try" in
29759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29760 *) ac_try_echo=$ac_try;;
29761esac
29762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29763 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029764 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029765 grep -v '^ *+' conftest.er1 >conftest.err
29766 rm -f conftest.er1
29767 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029769 (exit $ac_status); } &&
29770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29771 { (case "(($ac_try" in
29772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29773 *) ac_try_echo=$ac_try;;
29774esac
29775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29776 (eval "$ac_try") 2>&5
29777 ac_status=$?
29778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29779 (exit $ac_status); }; } &&
29780 { ac_try='test -s conftest.$ac_objext'
29781 { (case "(($ac_try" in
29782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29783 *) ac_try_echo=$ac_try;;
29784esac
29785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29786 (eval "$ac_try") 2>&5
29787 ac_status=$?
29788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029790 ac_cv_header_sys_wait_h=yes
29791else
29792 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029793sed 's/^/| /' conftest.$ac_ext >&5
29794
Reid Spencera773bd52006-08-04 18:18:08 +000029795 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000029796fi
Reid Spencera773bd52006-08-04 18:18:08 +000029797
29798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029799fi
Reid Spencera773bd52006-08-04 18:18:08 +000029800{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29801echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029802if test $ac_cv_header_sys_wait_h = yes; then
29803
29804cat >>confdefs.h <<\_ACEOF
29805#define HAVE_SYS_WAIT_H 1
29806_ACEOF
29807
29808fi
29809
Reid Spencera773bd52006-08-04 18:18:08 +000029810{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29811echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029812if test "${ac_cv_header_time+set}" = set; then
29813 echo $ECHO_N "(cached) $ECHO_C" >&6
29814else
29815 cat >conftest.$ac_ext <<_ACEOF
29816/* confdefs.h. */
29817_ACEOF
29818cat confdefs.h >>conftest.$ac_ext
29819cat >>conftest.$ac_ext <<_ACEOF
29820/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029821#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029822#include <sys/time.h>
29823#include <time.h>
29824
29825int
29826main ()
29827{
29828if ((struct tm *) 0)
29829return 0;
29830 ;
29831 return 0;
29832}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029833_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029834rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029835if { (ac_try="$ac_compile"
29836case "(($ac_try" in
29837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29838 *) ac_try_echo=$ac_try;;
29839esac
29840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29841 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029842 ac_status=$?
29843 grep -v '^ *+' conftest.er1 >conftest.err
29844 rm -f conftest.er1
29845 cat conftest.err >&5
29846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029847 (exit $ac_status); } &&
29848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29849 { (case "(($ac_try" in
29850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29851 *) ac_try_echo=$ac_try;;
29852esac
29853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29854 (eval "$ac_try") 2>&5
29855 ac_status=$?
29856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29857 (exit $ac_status); }; } &&
29858 { ac_try='test -s conftest.$ac_objext'
29859 { (case "(($ac_try" in
29860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29861 *) ac_try_echo=$ac_try;;
29862esac
29863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29864 (eval "$ac_try") 2>&5
29865 ac_status=$?
29866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29867 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029868 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029869else
29870 echo "$as_me: failed program was:" >&5
29871sed 's/^/| /' conftest.$ac_ext >&5
29872
Reid Spencera773bd52006-08-04 18:18:08 +000029873 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029874fi
Reid Spencera773bd52006-08-04 18:18:08 +000029875
29876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029877fi
Reid Spencera773bd52006-08-04 18:18:08 +000029878{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29879echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029880if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029881
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029882cat >>confdefs.h <<\_ACEOF
29883#define TIME_WITH_SYS_TIME 1
29884_ACEOF
29885
29886fi
29887
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029888
Reid Spencer59473af2004-12-25 07:31:29 +000029889
29890
29891
29892
29893
29894
29895for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29896do
29897as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029898if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29899 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29900echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29901if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029902 echo $ECHO_N "(cached) $ECHO_C" >&6
29903fi
Reid Spencera773bd52006-08-04 18:18:08 +000029904ac_res=`eval echo '${'$as_ac_Header'}'`
29905 { echo "$as_me:$LINENO: result: $ac_res" >&5
29906echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029907else
29908 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029909{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29910echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029911cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029912/* confdefs.h. */
29913_ACEOF
29914cat confdefs.h >>conftest.$ac_ext
29915cat >>conftest.$ac_ext <<_ACEOF
29916/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000029917$ac_includes_default
29918#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029919_ACEOF
29920rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029921if { (ac_try="$ac_compile"
29922case "(($ac_try" in
29923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29924 *) ac_try_echo=$ac_try;;
29925esac
29926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29927 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029928 ac_status=$?
29929 grep -v '^ *+' conftest.er1 >conftest.err
29930 rm -f conftest.er1
29931 cat conftest.err >&5
29932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029933 (exit $ac_status); } &&
29934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29935 { (case "(($ac_try" in
29936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29937 *) ac_try_echo=$ac_try;;
29938esac
29939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29940 (eval "$ac_try") 2>&5
29941 ac_status=$?
29942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943 (exit $ac_status); }; } &&
29944 { ac_try='test -s conftest.$ac_objext'
29945 { (case "(($ac_try" in
29946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29947 *) ac_try_echo=$ac_try;;
29948esac
29949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29950 (eval "$ac_try") 2>&5
29951 ac_status=$?
29952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29953 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029954 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029955else
29956 echo "$as_me: failed program was:" >&5
29957sed 's/^/| /' conftest.$ac_ext >&5
29958
Reid Spencera773bd52006-08-04 18:18:08 +000029959 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029960fi
Reid Spencera773bd52006-08-04 18:18:08 +000029961
29962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29963{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29964echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029965
Reid Spencer59473af2004-12-25 07:31:29 +000029966# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029967{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29968echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029969cat >conftest.$ac_ext <<_ACEOF
29970/* confdefs.h. */
29971_ACEOF
29972cat confdefs.h >>conftest.$ac_ext
29973cat >>conftest.$ac_ext <<_ACEOF
29974/* end confdefs.h. */
29975#include <$ac_header>
29976_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029977if { (ac_try="$ac_cpp conftest.$ac_ext"
29978case "(($ac_try" in
29979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29980 *) ac_try_echo=$ac_try;;
29981esac
29982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029984 ac_status=$?
29985 grep -v '^ *+' conftest.er1 >conftest.err
29986 rm -f conftest.er1
29987 cat conftest.err >&5
29988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029989 (exit $ac_status); } >/dev/null; then
29990 if test -s conftest.err; then
29991 ac_cpp_err=$ac_c_preproc_warn_flag
29992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29993 else
29994 ac_cpp_err=
29995 fi
29996else
29997 ac_cpp_err=yes
29998fi
29999if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000030000 ac_header_preproc=yes
30001else
30002 echo "$as_me: failed program was:" >&5
30003sed 's/^/| /' conftest.$ac_ext >&5
30004
30005 ac_header_preproc=no
30006fi
Reid Spencera773bd52006-08-04 18:18:08 +000030007
Reid Spencer59473af2004-12-25 07:31:29 +000030008rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030009{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30010echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030011
30012# So? What about this header?
30013case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30014 yes:no: )
30015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30016echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30018echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30019 ac_header_preproc=yes
30020 ;;
30021 no:yes:* )
30022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30023echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30025echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30026 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30027echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30028 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30029echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30031echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30033echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030034 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000030035## ----------------------------------- ##
30036## Report this to llvmbugs@cs.uiuc.edu ##
30037## ----------------------------------- ##
30038_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030039 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000030040 ;;
30041esac
Reid Spencera773bd52006-08-04 18:18:08 +000030042{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30043echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30044if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030045 echo $ECHO_N "(cached) $ECHO_C" >&6
30046else
30047 eval "$as_ac_Header=\$ac_header_preproc"
30048fi
Reid Spencera773bd52006-08-04 18:18:08 +000030049ac_res=`eval echo '${'$as_ac_Header'}'`
30050 { echo "$as_me:$LINENO: result: $ac_res" >&5
30051echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030052
30053fi
Reid Spencer59473af2004-12-25 07:31:29 +000030054if test `eval echo '${'$as_ac_Header'}'` = yes; then
30055 cat >>confdefs.h <<_ACEOF
30056#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030057_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030058
30059fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030060
Reid Spencer59473af2004-12-25 07:31:29 +000030061done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030062
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030063
30064
Reid Spencer59473af2004-12-25 07:31:29 +000030065
30066
30067
30068
Douglas Gregor071d73d2009-05-18 17:21:34 +000030069for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Reid Spencer59473af2004-12-25 07:31:29 +000030070do
30071as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030072if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30073 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30074echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30075if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030076 echo $ECHO_N "(cached) $ECHO_C" >&6
30077fi
Reid Spencera773bd52006-08-04 18:18:08 +000030078ac_res=`eval echo '${'$as_ac_Header'}'`
30079 { echo "$as_me:$LINENO: result: $ac_res" >&5
30080echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030081else
30082 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030083{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30084echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030085cat >conftest.$ac_ext <<_ACEOF
30086/* confdefs.h. */
30087_ACEOF
30088cat confdefs.h >>conftest.$ac_ext
30089cat >>conftest.$ac_ext <<_ACEOF
30090/* end confdefs.h. */
30091$ac_includes_default
30092#include <$ac_header>
30093_ACEOF
30094rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030095if { (ac_try="$ac_compile"
30096case "(($ac_try" in
30097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30098 *) ac_try_echo=$ac_try;;
30099esac
30100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30101 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000030102 ac_status=$?
30103 grep -v '^ *+' conftest.er1 >conftest.err
30104 rm -f conftest.er1
30105 cat conftest.err >&5
30106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030107 (exit $ac_status); } &&
30108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30109 { (case "(($ac_try" in
30110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30111 *) ac_try_echo=$ac_try;;
30112esac
30113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30114 (eval "$ac_try") 2>&5
30115 ac_status=$?
30116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30117 (exit $ac_status); }; } &&
30118 { ac_try='test -s conftest.$ac_objext'
30119 { (case "(($ac_try" in
30120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30121 *) ac_try_echo=$ac_try;;
30122esac
30123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30124 (eval "$ac_try") 2>&5
30125 ac_status=$?
30126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30127 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030128 ac_header_compiler=yes
30129else
30130 echo "$as_me: failed program was:" >&5
30131sed 's/^/| /' conftest.$ac_ext >&5
30132
Reid Spencera773bd52006-08-04 18:18:08 +000030133 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000030134fi
Reid Spencera773bd52006-08-04 18:18:08 +000030135
30136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30137{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30138echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030139
30140# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030141{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30142echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030143cat >conftest.$ac_ext <<_ACEOF
30144/* confdefs.h. */
30145_ACEOF
30146cat confdefs.h >>conftest.$ac_ext
30147cat >>conftest.$ac_ext <<_ACEOF
30148/* end confdefs.h. */
30149#include <$ac_header>
30150_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030151if { (ac_try="$ac_cpp conftest.$ac_ext"
30152case "(($ac_try" in
30153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30154 *) ac_try_echo=$ac_try;;
30155esac
30156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000030158 ac_status=$?
30159 grep -v '^ *+' conftest.er1 >conftest.err
30160 rm -f conftest.er1
30161 cat conftest.err >&5
30162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030163 (exit $ac_status); } >/dev/null; then
30164 if test -s conftest.err; then
30165 ac_cpp_err=$ac_c_preproc_warn_flag
30166 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30167 else
30168 ac_cpp_err=
30169 fi
30170else
30171 ac_cpp_err=yes
30172fi
30173if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000030174 ac_header_preproc=yes
30175else
30176 echo "$as_me: failed program was:" >&5
30177sed 's/^/| /' conftest.$ac_ext >&5
30178
30179 ac_header_preproc=no
30180fi
Reid Spencera773bd52006-08-04 18:18:08 +000030181
Reid Spencer59473af2004-12-25 07:31:29 +000030182rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030183{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30184echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030185
30186# So? What about this header?
30187case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30188 yes:no: )
30189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30190echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30192echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30193 ac_header_preproc=yes
30194 ;;
30195 no:yes:* )
30196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30197echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30199echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30201echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30202 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30203echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30205echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30206 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30207echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030208 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000030209## ----------------------------------- ##
30210## Report this to llvmbugs@cs.uiuc.edu ##
30211## ----------------------------------- ##
30212_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030213 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000030214 ;;
30215esac
Reid Spencera773bd52006-08-04 18:18:08 +000030216{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30217echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30218if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030219 echo $ECHO_N "(cached) $ECHO_C" >&6
30220else
30221 eval "$as_ac_Header=\$ac_header_preproc"
30222fi
Reid Spencera773bd52006-08-04 18:18:08 +000030223ac_res=`eval echo '${'$as_ac_Header'}'`
30224 { echo "$as_me:$LINENO: result: $ac_res" >&5
30225echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030226
30227fi
30228if test `eval echo '${'$as_ac_Header'}'` = yes; then
30229 cat >>confdefs.h <<_ACEOF
30230#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30231_ACEOF
30232
30233fi
30234
30235done
30236
30237
Douglas Gregor071d73d2009-05-18 17:21:34 +000030238
30239for ac_header in utime.h windows.h
Reid Spencerbe3e4192007-08-17 05:45:26 +000030240do
30241as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30242if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30244echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30245if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30246 echo $ECHO_N "(cached) $ECHO_C" >&6
30247fi
30248ac_res=`eval echo '${'$as_ac_Header'}'`
30249 { echo "$as_me:$LINENO: result: $ac_res" >&5
30250echo "${ECHO_T}$ac_res" >&6; }
30251else
30252 # Is the header compilable?
30253{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30254echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30255cat >conftest.$ac_ext <<_ACEOF
30256/* confdefs.h. */
30257_ACEOF
30258cat confdefs.h >>conftest.$ac_ext
30259cat >>conftest.$ac_ext <<_ACEOF
30260/* end confdefs.h. */
30261$ac_includes_default
30262#include <$ac_header>
30263_ACEOF
30264rm -f conftest.$ac_objext
30265if { (ac_try="$ac_compile"
30266case "(($ac_try" in
30267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30268 *) ac_try_echo=$ac_try;;
30269esac
30270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30271 (eval "$ac_compile") 2>conftest.er1
30272 ac_status=$?
30273 grep -v '^ *+' conftest.er1 >conftest.err
30274 rm -f conftest.er1
30275 cat conftest.err >&5
30276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030277 (exit $ac_status); } &&
30278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30279 { (case "(($ac_try" in
30280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30281 *) ac_try_echo=$ac_try;;
30282esac
30283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30284 (eval "$ac_try") 2>&5
30285 ac_status=$?
30286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30287 (exit $ac_status); }; } &&
30288 { ac_try='test -s conftest.$ac_objext'
30289 { (case "(($ac_try" in
30290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30291 *) ac_try_echo=$ac_try;;
30292esac
30293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30294 (eval "$ac_try") 2>&5
30295 ac_status=$?
30296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30297 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030298 ac_header_compiler=yes
30299else
30300 echo "$as_me: failed program was:" >&5
30301sed 's/^/| /' conftest.$ac_ext >&5
30302
30303 ac_header_compiler=no
30304fi
30305
30306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30307{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30308echo "${ECHO_T}$ac_header_compiler" >&6; }
30309
30310# Is the header present?
30311{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30312echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30313cat >conftest.$ac_ext <<_ACEOF
30314/* confdefs.h. */
30315_ACEOF
30316cat confdefs.h >>conftest.$ac_ext
30317cat >>conftest.$ac_ext <<_ACEOF
30318/* end confdefs.h. */
30319#include <$ac_header>
30320_ACEOF
30321if { (ac_try="$ac_cpp conftest.$ac_ext"
30322case "(($ac_try" in
30323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30324 *) ac_try_echo=$ac_try;;
30325esac
30326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30328 ac_status=$?
30329 grep -v '^ *+' conftest.er1 >conftest.err
30330 rm -f conftest.er1
30331 cat conftest.err >&5
30332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030333 (exit $ac_status); } >/dev/null; then
30334 if test -s conftest.err; then
30335 ac_cpp_err=$ac_c_preproc_warn_flag
30336 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30337 else
30338 ac_cpp_err=
30339 fi
30340else
30341 ac_cpp_err=yes
30342fi
30343if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030344 ac_header_preproc=yes
30345else
30346 echo "$as_me: failed program was:" >&5
30347sed 's/^/| /' conftest.$ac_ext >&5
30348
30349 ac_header_preproc=no
30350fi
30351
30352rm -f conftest.err conftest.$ac_ext
30353{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30354echo "${ECHO_T}$ac_header_preproc" >&6; }
30355
30356# So? What about this header?
30357case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30358 yes:no: )
30359 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30360echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30362echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30363 ac_header_preproc=yes
30364 ;;
30365 no:yes:* )
30366 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30367echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30368 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30369echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30370 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30371echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30372 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30373echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30375echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30376 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30377echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30378 ( cat <<\_ASBOX
30379## ----------------------------------- ##
30380## Report this to llvmbugs@cs.uiuc.edu ##
30381## ----------------------------------- ##
30382_ASBOX
30383 ) | sed "s/^/$as_me: WARNING: /" >&2
30384 ;;
30385esac
30386{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30387echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30388if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30389 echo $ECHO_N "(cached) $ECHO_C" >&6
30390else
30391 eval "$as_ac_Header=\$ac_header_preproc"
30392fi
30393ac_res=`eval echo '${'$as_ac_Header'}'`
30394 { echo "$as_me:$LINENO: result: $ac_res" >&5
30395echo "${ECHO_T}$ac_res" >&6; }
30396
30397fi
30398if test `eval echo '${'$as_ac_Header'}'` = yes; then
30399 cat >>confdefs.h <<_ACEOF
30400#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30401_ACEOF
30402
30403fi
30404
30405done
Reid Spencer59473af2004-12-25 07:31:29 +000030406
30407
30408
30409
Reid Spencerbe3e4192007-08-17 05:45:26 +000030410
30411for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030412do
30413as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030414if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30415 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30416echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30417if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030418 echo $ECHO_N "(cached) $ECHO_C" >&6
30419fi
Reid Spencera773bd52006-08-04 18:18:08 +000030420ac_res=`eval echo '${'$as_ac_Header'}'`
30421 { echo "$as_me:$LINENO: result: $ac_res" >&5
30422echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030423else
30424 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030425{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30426echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030427cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030428/* confdefs.h. */
30429_ACEOF
30430cat confdefs.h >>conftest.$ac_ext
30431cat >>conftest.$ac_ext <<_ACEOF
30432/* end confdefs.h. */
30433$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030434#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030435_ACEOF
30436rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030437if { (ac_try="$ac_compile"
30438case "(($ac_try" in
30439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30440 *) ac_try_echo=$ac_try;;
30441esac
30442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30443 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030444 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030445 grep -v '^ *+' conftest.er1 >conftest.err
30446 rm -f conftest.er1
30447 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030449 (exit $ac_status); } &&
30450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30451 { (case "(($ac_try" in
30452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30453 *) ac_try_echo=$ac_try;;
30454esac
30455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30456 (eval "$ac_try") 2>&5
30457 ac_status=$?
30458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30459 (exit $ac_status); }; } &&
30460 { ac_try='test -s conftest.$ac_objext'
30461 { (case "(($ac_try" in
30462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30463 *) ac_try_echo=$ac_try;;
30464esac
30465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30466 (eval "$ac_try") 2>&5
30467 ac_status=$?
30468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30469 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030470 ac_header_compiler=yes
30471else
30472 echo "$as_me: failed program was:" >&5
30473sed 's/^/| /' conftest.$ac_ext >&5
30474
Reid Spencera773bd52006-08-04 18:18:08 +000030475 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030476fi
Reid Spencera773bd52006-08-04 18:18:08 +000030477
30478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30479{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30480echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030481
30482# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030483{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30484echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030485cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030486/* confdefs.h. */
30487_ACEOF
30488cat confdefs.h >>conftest.$ac_ext
30489cat >>conftest.$ac_ext <<_ACEOF
30490/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030491#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030492_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030493if { (ac_try="$ac_cpp conftest.$ac_ext"
30494case "(($ac_try" in
30495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30496 *) ac_try_echo=$ac_try;;
30497esac
30498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030500 ac_status=$?
30501 grep -v '^ *+' conftest.er1 >conftest.err
30502 rm -f conftest.er1
30503 cat conftest.err >&5
30504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030505 (exit $ac_status); } >/dev/null; then
30506 if test -s conftest.err; then
30507 ac_cpp_err=$ac_c_preproc_warn_flag
30508 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30509 else
30510 ac_cpp_err=
30511 fi
30512else
30513 ac_cpp_err=yes
30514fi
30515if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030516 ac_header_preproc=yes
30517else
30518 echo "$as_me: failed program was:" >&5
30519sed 's/^/| /' conftest.$ac_ext >&5
30520
30521 ac_header_preproc=no
30522fi
Reid Spencera773bd52006-08-04 18:18:08 +000030523
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030524rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030525{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30526echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030527
30528# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030529case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30530 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030531 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30532echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30534echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030535 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000030536 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030537 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030538 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30539echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30540 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30541echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30542 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30543echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30544 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30545echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30547echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30548 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30549echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030550 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000030551## ----------------------------------- ##
30552## Report this to llvmbugs@cs.uiuc.edu ##
30553## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030554_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030555 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030556 ;;
30557esac
Reid Spencera773bd52006-08-04 18:18:08 +000030558{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30559echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30560if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030561 echo $ECHO_N "(cached) $ECHO_C" >&6
30562else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030563 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030564fi
Reid Spencera773bd52006-08-04 18:18:08 +000030565ac_res=`eval echo '${'$as_ac_Header'}'`
30566 { echo "$as_me:$LINENO: result: $ac_res" >&5
30567echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030568
30569fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030570if test `eval echo '${'$as_ac_Header'}'` = yes; then
30571 cat >>confdefs.h <<_ACEOF
30572#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000030573_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000030574
30575fi
John Criswell7ed43ad2004-07-19 16:12:29 +000030576
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030577done
30578
John Criswell7ed43ad2004-07-19 16:12:29 +000030579
Reid Spencercdb08a32006-06-05 16:11:07 +000030580
Reid Spencera6d990a2006-09-14 06:17:21 +000030581
Douglas Gregor01746742009-05-11 18:05:52 +000030582
30583for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000030584do
30585as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030586if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30587 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30588echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30589if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030590 echo $ECHO_N "(cached) $ECHO_C" >&6
30591fi
Reid Spencera773bd52006-08-04 18:18:08 +000030592ac_res=`eval echo '${'$as_ac_Header'}'`
30593 { echo "$as_me:$LINENO: result: $ac_res" >&5
30594echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030595else
30596 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030597{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30598echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030599cat >conftest.$ac_ext <<_ACEOF
30600/* confdefs.h. */
30601_ACEOF
30602cat confdefs.h >>conftest.$ac_ext
30603cat >>conftest.$ac_ext <<_ACEOF
30604/* end confdefs.h. */
30605$ac_includes_default
30606#include <$ac_header>
30607_ACEOF
30608rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030609if { (ac_try="$ac_compile"
30610case "(($ac_try" in
30611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30612 *) ac_try_echo=$ac_try;;
30613esac
30614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30615 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000030616 ac_status=$?
30617 grep -v '^ *+' conftest.er1 >conftest.err
30618 rm -f conftest.er1
30619 cat conftest.err >&5
30620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030621 (exit $ac_status); } &&
30622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30623 { (case "(($ac_try" in
30624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30625 *) ac_try_echo=$ac_try;;
30626esac
30627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30628 (eval "$ac_try") 2>&5
30629 ac_status=$?
30630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30631 (exit $ac_status); }; } &&
30632 { ac_try='test -s conftest.$ac_objext'
30633 { (case "(($ac_try" in
30634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30635 *) ac_try_echo=$ac_try;;
30636esac
30637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30638 (eval "$ac_try") 2>&5
30639 ac_status=$?
30640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30641 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030642 ac_header_compiler=yes
30643else
30644 echo "$as_me: failed program was:" >&5
30645sed 's/^/| /' conftest.$ac_ext >&5
30646
Reid Spencera773bd52006-08-04 18:18:08 +000030647 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000030648fi
Reid Spencera773bd52006-08-04 18:18:08 +000030649
30650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30651{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30652echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030653
30654# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030655{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30656echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030657cat >conftest.$ac_ext <<_ACEOF
30658/* confdefs.h. */
30659_ACEOF
30660cat confdefs.h >>conftest.$ac_ext
30661cat >>conftest.$ac_ext <<_ACEOF
30662/* end confdefs.h. */
30663#include <$ac_header>
30664_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030665if { (ac_try="$ac_cpp conftest.$ac_ext"
30666case "(($ac_try" in
30667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30668 *) ac_try_echo=$ac_try;;
30669esac
30670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000030672 ac_status=$?
30673 grep -v '^ *+' conftest.er1 >conftest.err
30674 rm -f conftest.er1
30675 cat conftest.err >&5
30676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030677 (exit $ac_status); } >/dev/null; then
30678 if test -s conftest.err; then
30679 ac_cpp_err=$ac_c_preproc_warn_flag
30680 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30681 else
30682 ac_cpp_err=
30683 fi
30684else
30685 ac_cpp_err=yes
30686fi
30687if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000030688 ac_header_preproc=yes
30689else
30690 echo "$as_me: failed program was:" >&5
30691sed 's/^/| /' conftest.$ac_ext >&5
30692
30693 ac_header_preproc=no
30694fi
Reid Spencera773bd52006-08-04 18:18:08 +000030695
Chris Lattner0b142592005-11-14 06:57:34 +000030696rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030697{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30698echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030699
30700# So? What about this header?
30701case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30702 yes:no: )
30703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30704echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30706echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30707 ac_header_preproc=yes
30708 ;;
30709 no:yes:* )
30710 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30711echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30712 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30713echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30714 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30715echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30716 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30717echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30719echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30720 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30721echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030722 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000030723## ----------------------------------- ##
30724## Report this to llvmbugs@cs.uiuc.edu ##
30725## ----------------------------------- ##
30726_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030727 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000030728 ;;
30729esac
Reid Spencera773bd52006-08-04 18:18:08 +000030730{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30732if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030733 echo $ECHO_N "(cached) $ECHO_C" >&6
30734else
30735 eval "$as_ac_Header=\$ac_header_preproc"
30736fi
Reid Spencera773bd52006-08-04 18:18:08 +000030737ac_res=`eval echo '${'$as_ac_Header'}'`
30738 { echo "$as_me:$LINENO: result: $ac_res" >&5
30739echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030740
30741fi
30742if test `eval echo '${'$as_ac_Header'}'` = yes; then
30743 cat >>confdefs.h <<_ACEOF
30744#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30745_ACEOF
30746
30747fi
30748
30749done
30750
Reid Spencer0a262ba2005-08-24 10:07:20 +000030751if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030752
30753for ac_header in pthread.h
30754do
30755as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30756if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30758echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30759if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030760 echo $ECHO_N "(cached) $ECHO_C" >&6
30761fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030762ac_res=`eval echo '${'$as_ac_Header'}'`
30763 { echo "$as_me:$LINENO: result: $ac_res" >&5
30764echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030765else
30766 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000030767{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30768echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030769cat >conftest.$ac_ext <<_ACEOF
30770/* confdefs.h. */
30771_ACEOF
30772cat confdefs.h >>conftest.$ac_ext
30773cat >>conftest.$ac_ext <<_ACEOF
30774/* end confdefs.h. */
30775$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000030776#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000030777_ACEOF
30778rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030779if { (ac_try="$ac_compile"
30780case "(($ac_try" in
30781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30782 *) ac_try_echo=$ac_try;;
30783esac
30784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30785 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030786 ac_status=$?
30787 grep -v '^ *+' conftest.er1 >conftest.err
30788 rm -f conftest.er1
30789 cat conftest.err >&5
30790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030791 (exit $ac_status); } &&
30792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30793 { (case "(($ac_try" in
30794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30795 *) ac_try_echo=$ac_try;;
30796esac
30797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30798 (eval "$ac_try") 2>&5
30799 ac_status=$?
30800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30801 (exit $ac_status); }; } &&
30802 { ac_try='test -s conftest.$ac_objext'
30803 { (case "(($ac_try" in
30804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30805 *) ac_try_echo=$ac_try;;
30806esac
30807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30808 (eval "$ac_try") 2>&5
30809 ac_status=$?
30810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30811 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030812 ac_header_compiler=yes
30813else
30814 echo "$as_me: failed program was:" >&5
30815sed 's/^/| /' conftest.$ac_ext >&5
30816
Reid Spencera773bd52006-08-04 18:18:08 +000030817 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000030818fi
Reid Spencera773bd52006-08-04 18:18:08 +000030819
30820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30821{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30822echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030823
30824# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000030825{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30826echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030827cat >conftest.$ac_ext <<_ACEOF
30828/* confdefs.h. */
30829_ACEOF
30830cat confdefs.h >>conftest.$ac_ext
30831cat >>conftest.$ac_ext <<_ACEOF
30832/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000030833#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000030834_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030835if { (ac_try="$ac_cpp conftest.$ac_ext"
30836case "(($ac_try" in
30837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30838 *) ac_try_echo=$ac_try;;
30839esac
30840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030842 ac_status=$?
30843 grep -v '^ *+' conftest.er1 >conftest.err
30844 rm -f conftest.er1
30845 cat conftest.err >&5
30846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030847 (exit $ac_status); } >/dev/null; then
30848 if test -s conftest.err; then
30849 ac_cpp_err=$ac_c_preproc_warn_flag
30850 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30851 else
30852 ac_cpp_err=
30853 fi
30854else
30855 ac_cpp_err=yes
30856fi
30857if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030858 ac_header_preproc=yes
30859else
30860 echo "$as_me: failed program was:" >&5
30861sed 's/^/| /' conftest.$ac_ext >&5
30862
30863 ac_header_preproc=no
30864fi
Reid Spencera773bd52006-08-04 18:18:08 +000030865
Reid Spencer0a262ba2005-08-24 10:07:20 +000030866rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030867{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30868echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030869
30870# So? What about this header?
30871case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30872 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30874echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30876echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000030877 ac_header_preproc=yes
30878 ;;
30879 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30881echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30883echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30885echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30887echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30889echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30891echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030892 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000030893## ----------------------------------- ##
30894## Report this to llvmbugs@cs.uiuc.edu ##
30895## ----------------------------------- ##
30896_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030897 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000030898 ;;
30899esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000030900{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30902if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030903 echo $ECHO_N "(cached) $ECHO_C" >&6
30904else
Reid Spencerbe3e4192007-08-17 05:45:26 +000030905 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000030906fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030907ac_res=`eval echo '${'$as_ac_Header'}'`
30908 { echo "$as_me:$LINENO: result: $ac_res" >&5
30909echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030910
30911fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030912if test `eval echo '${'$as_ac_Header'}'` = yes; then
30913 cat >>confdefs.h <<_ACEOF
30914#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30915_ACEOF
30916 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000030917
30918else
30919 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030920
30921fi
30922
Reid Spencerbe3e4192007-08-17 05:45:26 +000030923done
Reid Spencer1000b732006-12-01 00:37:14 +000030924
30925else
30926 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030927
30928fi
Reid Spencer8085cff2005-01-16 02:58:39 +000030929
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000030930if test "$llvm_cv_enable_libffi" = "yes" ; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030931
30932
30933for ac_header in ffi.h ffi/ffi.h
30934do
30935as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30936if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30939if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30940 echo $ECHO_N "(cached) $ECHO_C" >&6
30941fi
30942ac_res=`eval echo '${'$as_ac_Header'}'`
30943 { echo "$as_me:$LINENO: result: $ac_res" >&5
30944echo "${ECHO_T}$ac_res" >&6; }
30945else
30946 # Is the header compilable?
30947{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30948echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30949cat >conftest.$ac_ext <<_ACEOF
30950/* confdefs.h. */
30951_ACEOF
30952cat confdefs.h >>conftest.$ac_ext
30953cat >>conftest.$ac_ext <<_ACEOF
30954/* end confdefs.h. */
30955$ac_includes_default
30956#include <$ac_header>
30957_ACEOF
30958rm -f conftest.$ac_objext
30959if { (ac_try="$ac_compile"
30960case "(($ac_try" in
30961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30962 *) ac_try_echo=$ac_try;;
30963esac
30964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30965 (eval "$ac_compile") 2>conftest.er1
30966 ac_status=$?
30967 grep -v '^ *+' conftest.er1 >conftest.err
30968 rm -f conftest.er1
30969 cat conftest.err >&5
30970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030971 (exit $ac_status); } &&
30972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30973 { (case "(($ac_try" in
30974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30975 *) ac_try_echo=$ac_try;;
30976esac
30977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30978 (eval "$ac_try") 2>&5
30979 ac_status=$?
30980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30981 (exit $ac_status); }; } &&
30982 { ac_try='test -s conftest.$ac_objext'
30983 { (case "(($ac_try" in
30984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30985 *) ac_try_echo=$ac_try;;
30986esac
30987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30988 (eval "$ac_try") 2>&5
30989 ac_status=$?
30990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30991 (exit $ac_status); }; }; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030992 ac_header_compiler=yes
30993else
30994 echo "$as_me: failed program was:" >&5
30995sed 's/^/| /' conftest.$ac_ext >&5
30996
30997 ac_header_compiler=no
30998fi
30999
31000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31001{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31002echo "${ECHO_T}$ac_header_compiler" >&6; }
31003
31004# Is the header present?
31005{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
31006echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31007cat >conftest.$ac_ext <<_ACEOF
31008/* confdefs.h. */
31009_ACEOF
31010cat confdefs.h >>conftest.$ac_ext
31011cat >>conftest.$ac_ext <<_ACEOF
31012/* end confdefs.h. */
31013#include <$ac_header>
31014_ACEOF
31015if { (ac_try="$ac_cpp conftest.$ac_ext"
31016case "(($ac_try" in
31017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31018 *) ac_try_echo=$ac_try;;
31019esac
31020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31022 ac_status=$?
31023 grep -v '^ *+' conftest.er1 >conftest.err
31024 rm -f conftest.er1
31025 cat conftest.err >&5
31026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031027 (exit $ac_status); } >/dev/null; then
31028 if test -s conftest.err; then
31029 ac_cpp_err=$ac_c_preproc_warn_flag
31030 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31031 else
31032 ac_cpp_err=
31033 fi
31034else
31035 ac_cpp_err=yes
31036fi
31037if test -z "$ac_cpp_err"; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000031038 ac_header_preproc=yes
31039else
31040 echo "$as_me: failed program was:" >&5
31041sed 's/^/| /' conftest.$ac_ext >&5
31042
31043 ac_header_preproc=no
31044fi
31045
31046rm -f conftest.err conftest.$ac_ext
31047{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31048echo "${ECHO_T}$ac_header_preproc" >&6; }
31049
31050# So? What about this header?
31051case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31052 yes:no: )
31053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31054echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31056echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31057 ac_header_preproc=yes
31058 ;;
31059 no:yes:* )
31060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31061echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31063echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31064 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31065echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31066 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31067echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31069echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31070 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31071echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31072 ( cat <<\_ASBOX
31073## ----------------------------------- ##
31074## Report this to llvmbugs@cs.uiuc.edu ##
31075## ----------------------------------- ##
31076_ASBOX
31077 ) | sed "s/^/$as_me: WARNING: /" >&2
31078 ;;
31079esac
31080{ echo "$as_me:$LINENO: checking for $ac_header" >&5
31081echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31082if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31083 echo $ECHO_N "(cached) $ECHO_C" >&6
31084else
31085 eval "$as_ac_Header=\$ac_header_preproc"
31086fi
31087ac_res=`eval echo '${'$as_ac_Header'}'`
31088 { echo "$as_me:$LINENO: result: $ac_res" >&5
31089echo "${ECHO_T}$ac_res" >&6; }
31090
31091fi
31092if test `eval echo '${'$as_ac_Header'}'` = yes; then
31093 cat >>confdefs.h <<_ACEOF
31094#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31095_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000031096
31097fi
31098
31099done
31100
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000031101fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000031102
Nick Lewycky2ab1d862009-01-20 00:52:24 +000031103
Reid Spencer8085cff2005-01-16 02:58:39 +000031104
Reid Spencerb2ed05262006-11-03 18:04:08 +000031105 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31106echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31107if test "${ac_cv_huge_val_sanity+set}" = set; then
31108 echo $ECHO_N "(cached) $ECHO_C" >&6
31109else
31110
Reid Spencer6a7c0b72006-11-03 19:49:16 +000031111 ac_ext=cpp
31112ac_cpp='$CXXCPP $CPPFLAGS'
31113ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31114ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31115ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000031116
Reid Spencer6a7c0b72006-11-03 19:49:16 +000031117 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000031118 if test "$cross_compiling" = yes; then
31119 ac_cv_huge_val_sanity=yes
31120else
31121 cat >conftest.$ac_ext <<_ACEOF
31122/* confdefs.h. */
31123_ACEOF
31124cat confdefs.h >>conftest.$ac_ext
31125cat >>conftest.$ac_ext <<_ACEOF
31126/* end confdefs.h. */
31127#include <math.h>
31128int
31129main ()
31130{
31131double x = HUGE_VAL; return x != x;
31132 ;
31133 return 0;
31134}
31135_ACEOF
31136rm -f conftest$ac_exeext
31137if { (ac_try="$ac_link"
31138case "(($ac_try" in
31139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31140 *) ac_try_echo=$ac_try;;
31141esac
31142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31143 (eval "$ac_link") 2>&5
31144 ac_status=$?
31145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31147 { (case "(($ac_try" in
31148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31149 *) ac_try_echo=$ac_try;;
31150esac
31151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31152 (eval "$ac_try") 2>&5
31153 ac_status=$?
31154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31155 (exit $ac_status); }; }; then
31156 ac_cv_huge_val_sanity=yes
31157else
31158 echo "$as_me: program exited with status $ac_status" >&5
31159echo "$as_me: failed program was:" >&5
31160sed 's/^/| /' conftest.$ac_ext >&5
31161
31162( exit $ac_status )
31163ac_cv_huge_val_sanity=no
31164fi
31165rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31166fi
31167
31168
31169 ac_ext=c
31170ac_cpp='$CPP $CPPFLAGS'
31171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31173ac_compiler_gnu=$ac_cv_c_compiler_gnu
31174
31175
31176fi
31177{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31178echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31179 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31180
31181
Reid Spencera773bd52006-08-04 18:18:08 +000031182{ echo "$as_me:$LINENO: checking for pid_t" >&5
31183echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031184if test "${ac_cv_type_pid_t+set}" = set; then
31185 echo $ECHO_N "(cached) $ECHO_C" >&6
31186else
31187 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031188/* confdefs.h. */
31189_ACEOF
31190cat confdefs.h >>conftest.$ac_ext
31191cat >>conftest.$ac_ext <<_ACEOF
31192/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031193$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031194typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031195int
31196main ()
31197{
Reid Spencera773bd52006-08-04 18:18:08 +000031198if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031199 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031200if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031201 return 0;
31202 ;
31203 return 0;
31204}
31205_ACEOF
31206rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031207if { (ac_try="$ac_compile"
31208case "(($ac_try" in
31209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31210 *) ac_try_echo=$ac_try;;
31211esac
31212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31213 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031214 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031215 grep -v '^ *+' conftest.er1 >conftest.err
31216 rm -f conftest.er1
31217 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031219 (exit $ac_status); } &&
31220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31221 { (case "(($ac_try" in
31222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31223 *) ac_try_echo=$ac_try;;
31224esac
31225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31226 (eval "$ac_try") 2>&5
31227 ac_status=$?
31228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31229 (exit $ac_status); }; } &&
31230 { ac_try='test -s conftest.$ac_objext'
31231 { (case "(($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_try") 2>&5
31237 ac_status=$?
31238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31239 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031240 ac_cv_type_pid_t=yes
31241else
31242 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031243sed 's/^/| /' conftest.$ac_ext >&5
31244
Reid Spencera773bd52006-08-04 18:18:08 +000031245 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031246fi
Reid Spencera773bd52006-08-04 18:18:08 +000031247
31248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031249fi
Reid Spencera773bd52006-08-04 18:18:08 +000031250{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31251echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031252if test $ac_cv_type_pid_t = yes; then
31253 :
31254else
31255
31256cat >>confdefs.h <<_ACEOF
31257#define pid_t int
31258_ACEOF
31259
31260fi
31261
Reid Spencera773bd52006-08-04 18:18:08 +000031262{ echo "$as_me:$LINENO: checking for size_t" >&5
31263echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031264if test "${ac_cv_type_size_t+set}" = set; then
31265 echo $ECHO_N "(cached) $ECHO_C" >&6
31266else
31267 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031268/* confdefs.h. */
31269_ACEOF
31270cat confdefs.h >>conftest.$ac_ext
31271cat >>conftest.$ac_ext <<_ACEOF
31272/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031273$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031274typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031275int
31276main ()
31277{
Reid Spencera773bd52006-08-04 18:18:08 +000031278if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031279 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031280if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031281 return 0;
31282 ;
31283 return 0;
31284}
31285_ACEOF
31286rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031287if { (ac_try="$ac_compile"
31288case "(($ac_try" in
31289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31290 *) ac_try_echo=$ac_try;;
31291esac
31292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31293 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031294 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031295 grep -v '^ *+' conftest.er1 >conftest.err
31296 rm -f conftest.er1
31297 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031299 (exit $ac_status); } &&
31300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31301 { (case "(($ac_try" in
31302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31303 *) ac_try_echo=$ac_try;;
31304esac
31305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31306 (eval "$ac_try") 2>&5
31307 ac_status=$?
31308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31309 (exit $ac_status); }; } &&
31310 { ac_try='test -s conftest.$ac_objext'
31311 { (case "(($ac_try" in
31312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31313 *) ac_try_echo=$ac_try;;
31314esac
31315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31316 (eval "$ac_try") 2>&5
31317 ac_status=$?
31318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31319 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031320 ac_cv_type_size_t=yes
31321else
31322 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031323sed 's/^/| /' conftest.$ac_ext >&5
31324
Reid Spencera773bd52006-08-04 18:18:08 +000031325 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031326fi
Reid Spencera773bd52006-08-04 18:18:08 +000031327
31328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031329fi
Reid Spencera773bd52006-08-04 18:18:08 +000031330{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31331echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031332if test $ac_cv_type_size_t = yes; then
31333 :
31334else
31335
31336cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000031337#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000031338_ACEOF
31339
31340fi
31341
Reid Spencera773bd52006-08-04 18:18:08 +000031342{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31343echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031344if test "${ac_cv_type_signal+set}" = set; then
31345 echo $ECHO_N "(cached) $ECHO_C" >&6
31346else
31347 cat >conftest.$ac_ext <<_ACEOF
31348/* confdefs.h. */
31349_ACEOF
31350cat confdefs.h >>conftest.$ac_ext
31351cat >>conftest.$ac_ext <<_ACEOF
31352/* end confdefs.h. */
31353#include <sys/types.h>
31354#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031355
31356int
31357main ()
31358{
Reid Spencera773bd52006-08-04 18:18:08 +000031359return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031360 ;
31361 return 0;
31362}
31363_ACEOF
31364rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031365if { (ac_try="$ac_compile"
31366case "(($ac_try" in
31367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31368 *) ac_try_echo=$ac_try;;
31369esac
31370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31371 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031372 ac_status=$?
31373 grep -v '^ *+' conftest.er1 >conftest.err
31374 rm -f conftest.er1
31375 cat conftest.err >&5
31376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031377 (exit $ac_status); } &&
31378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31379 { (case "(($ac_try" in
31380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31381 *) ac_try_echo=$ac_try;;
31382esac
31383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31384 (eval "$ac_try") 2>&5
31385 ac_status=$?
31386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31387 (exit $ac_status); }; } &&
31388 { ac_try='test -s conftest.$ac_objext'
31389 { (case "(($ac_try" in
31390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31391 *) ac_try_echo=$ac_try;;
31392esac
31393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31394 (eval "$ac_try") 2>&5
31395 ac_status=$?
31396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31397 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000031398 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031399else
31400 echo "$as_me: failed program was:" >&5
31401sed 's/^/| /' conftest.$ac_ext >&5
31402
Reid Spencera773bd52006-08-04 18:18:08 +000031403 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031404fi
Reid Spencera773bd52006-08-04 18:18:08 +000031405
31406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031407fi
Reid Spencera773bd52006-08-04 18:18:08 +000031408{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31409echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031410
31411cat >>confdefs.h <<_ACEOF
31412#define RETSIGTYPE $ac_cv_type_signal
31413_ACEOF
31414
31415
Reid Spencera773bd52006-08-04 18:18:08 +000031416{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31417echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031418if test "${ac_cv_struct_tm+set}" = set; then
31419 echo $ECHO_N "(cached) $ECHO_C" >&6
31420else
31421 cat >conftest.$ac_ext <<_ACEOF
31422/* confdefs.h. */
31423_ACEOF
31424cat confdefs.h >>conftest.$ac_ext
31425cat >>conftest.$ac_ext <<_ACEOF
31426/* end confdefs.h. */
31427#include <sys/types.h>
31428#include <time.h>
31429
31430int
31431main ()
31432{
Bill Wendlingebcceee2009-04-18 11:20:33 +000031433struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031434 ;
31435 return 0;
31436}
31437_ACEOF
31438rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031439if { (ac_try="$ac_compile"
31440case "(($ac_try" in
31441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31442 *) ac_try_echo=$ac_try;;
31443esac
31444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31445 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031446 ac_status=$?
31447 grep -v '^ *+' conftest.er1 >conftest.err
31448 rm -f conftest.er1
31449 cat conftest.err >&5
31450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031451 (exit $ac_status); } &&
31452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31453 { (case "(($ac_try" in
31454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31455 *) ac_try_echo=$ac_try;;
31456esac
31457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31458 (eval "$ac_try") 2>&5
31459 ac_status=$?
31460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31461 (exit $ac_status); }; } &&
31462 { ac_try='test -s conftest.$ac_objext'
31463 { (case "(($ac_try" in
31464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31465 *) ac_try_echo=$ac_try;;
31466esac
31467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31468 (eval "$ac_try") 2>&5
31469 ac_status=$?
31470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31471 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031472 ac_cv_struct_tm=time.h
31473else
31474 echo "$as_me: failed program was:" >&5
31475sed 's/^/| /' conftest.$ac_ext >&5
31476
Reid Spencera773bd52006-08-04 18:18:08 +000031477 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031478fi
Reid Spencera773bd52006-08-04 18:18:08 +000031479
31480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031481fi
Reid Spencera773bd52006-08-04 18:18:08 +000031482{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31483echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031484if test $ac_cv_struct_tm = sys/time.h; then
31485
31486cat >>confdefs.h <<\_ACEOF
31487#define TM_IN_SYS_TIME 1
31488_ACEOF
31489
31490fi
31491
Reid Spencera773bd52006-08-04 18:18:08 +000031492{ echo "$as_me:$LINENO: checking for int64_t" >&5
31493echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031494if test "${ac_cv_type_int64_t+set}" = set; then
31495 echo $ECHO_N "(cached) $ECHO_C" >&6
31496else
31497 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031498/* confdefs.h. */
31499_ACEOF
31500cat confdefs.h >>conftest.$ac_ext
31501cat >>conftest.$ac_ext <<_ACEOF
31502/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031503$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031504typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031505int
31506main ()
31507{
Reid Spencera773bd52006-08-04 18:18:08 +000031508if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031509 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031510if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031511 return 0;
31512 ;
31513 return 0;
31514}
31515_ACEOF
31516rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031517if { (ac_try="$ac_compile"
31518case "(($ac_try" in
31519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31520 *) ac_try_echo=$ac_try;;
31521esac
31522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31523 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031524 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031525 grep -v '^ *+' conftest.er1 >conftest.err
31526 rm -f conftest.er1
31527 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031529 (exit $ac_status); } &&
31530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31531 { (case "(($ac_try" in
31532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31533 *) ac_try_echo=$ac_try;;
31534esac
31535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31536 (eval "$ac_try") 2>&5
31537 ac_status=$?
31538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31539 (exit $ac_status); }; } &&
31540 { ac_try='test -s conftest.$ac_objext'
31541 { (case "(($ac_try" in
31542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31543 *) ac_try_echo=$ac_try;;
31544esac
31545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31546 (eval "$ac_try") 2>&5
31547 ac_status=$?
31548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31549 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031550 ac_cv_type_int64_t=yes
31551else
31552 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031553sed 's/^/| /' conftest.$ac_ext >&5
31554
Reid Spencera773bd52006-08-04 18:18:08 +000031555 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031556fi
Reid Spencera773bd52006-08-04 18:18:08 +000031557
31558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031559fi
Reid Spencera773bd52006-08-04 18:18:08 +000031560{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31561echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031562if test $ac_cv_type_int64_t = yes; then
31563
31564cat >>confdefs.h <<_ACEOF
31565#define HAVE_INT64_T 1
31566_ACEOF
31567
31568
31569else
31570 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31571echo "$as_me: error: Type int64_t required but not found" >&2;}
31572 { (exit 1); exit 1; }; }
31573fi
31574
Reid Spencera773bd52006-08-04 18:18:08 +000031575{ echo "$as_me:$LINENO: checking for uint64_t" >&5
31576echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031577if test "${ac_cv_type_uint64_t+set}" = set; then
31578 echo $ECHO_N "(cached) $ECHO_C" >&6
31579else
31580 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031581/* confdefs.h. */
31582_ACEOF
31583cat confdefs.h >>conftest.$ac_ext
31584cat >>conftest.$ac_ext <<_ACEOF
31585/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031586$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031587typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031588int
31589main ()
31590{
Reid Spencera773bd52006-08-04 18:18:08 +000031591if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031592 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031593if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031594 return 0;
31595 ;
31596 return 0;
31597}
31598_ACEOF
31599rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031600if { (ac_try="$ac_compile"
31601case "(($ac_try" in
31602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31603 *) ac_try_echo=$ac_try;;
31604esac
31605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31606 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031607 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031608 grep -v '^ *+' conftest.er1 >conftest.err
31609 rm -f conftest.er1
31610 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031612 (exit $ac_status); } &&
31613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31614 { (case "(($ac_try" in
31615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31616 *) ac_try_echo=$ac_try;;
31617esac
31618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31619 (eval "$ac_try") 2>&5
31620 ac_status=$?
31621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31622 (exit $ac_status); }; } &&
31623 { ac_try='test -s conftest.$ac_objext'
31624 { (case "(($ac_try" in
31625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31626 *) ac_try_echo=$ac_try;;
31627esac
31628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31629 (eval "$ac_try") 2>&5
31630 ac_status=$?
31631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31632 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031633 ac_cv_type_uint64_t=yes
31634else
31635 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031636sed 's/^/| /' conftest.$ac_ext >&5
31637
Reid Spencera773bd52006-08-04 18:18:08 +000031638 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031639fi
Reid Spencera773bd52006-08-04 18:18:08 +000031640
31641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031642fi
Reid Spencera773bd52006-08-04 18:18:08 +000031643{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31644echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031645if test $ac_cv_type_uint64_t = yes; then
31646
31647cat >>confdefs.h <<_ACEOF
31648#define HAVE_UINT64_T 1
31649_ACEOF
31650
31651
31652else
Reid Spencera773bd52006-08-04 18:18:08 +000031653 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31654echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000031655if test "${ac_cv_type_u_int64_t+set}" = set; then
31656 echo $ECHO_N "(cached) $ECHO_C" >&6
31657else
31658 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000031659/* confdefs.h. */
31660_ACEOF
31661cat confdefs.h >>conftest.$ac_ext
31662cat >>conftest.$ac_ext <<_ACEOF
31663/* end confdefs.h. */
31664$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031665typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000031666int
31667main ()
31668{
Reid Spencera773bd52006-08-04 18:18:08 +000031669if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000031670 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031671if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000031672 return 0;
31673 ;
31674 return 0;
31675}
31676_ACEOF
31677rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031678if { (ac_try="$ac_compile"
31679case "(($ac_try" in
31680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31681 *) ac_try_echo=$ac_try;;
31682esac
31683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31684 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000031685 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031686 grep -v '^ *+' conftest.er1 >conftest.err
31687 rm -f conftest.er1
31688 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000031689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031690 (exit $ac_status); } &&
31691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31692 { (case "(($ac_try" in
31693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31694 *) ac_try_echo=$ac_try;;
31695esac
31696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31697 (eval "$ac_try") 2>&5
31698 ac_status=$?
31699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31700 (exit $ac_status); }; } &&
31701 { ac_try='test -s conftest.$ac_objext'
31702 { (case "(($ac_try" in
31703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31704 *) ac_try_echo=$ac_try;;
31705esac
31706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31707 (eval "$ac_try") 2>&5
31708 ac_status=$?
31709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31710 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000031711 ac_cv_type_u_int64_t=yes
31712else
31713 echo "$as_me: failed program was:" >&5
31714sed 's/^/| /' conftest.$ac_ext >&5
31715
Reid Spencera773bd52006-08-04 18:18:08 +000031716 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000031717fi
Reid Spencera773bd52006-08-04 18:18:08 +000031718
31719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000031720fi
Reid Spencera773bd52006-08-04 18:18:08 +000031721{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31722echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000031723if test $ac_cv_type_u_int64_t = yes; then
31724
31725cat >>confdefs.h <<_ACEOF
31726#define HAVE_U_INT64_T 1
31727_ACEOF
31728
31729
Misha Brukmanceca9042004-09-02 23:02:30 +000031730else
31731 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31732echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31733 { (exit 1); exit 1; }; }
31734fi
31735
John Criswell679ff312004-09-02 18:44:44 +000031736fi
31737
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031738
31739
31740
31741
31742
31743
31744
Reid Spencerf4bb9b12006-01-19 08:22:40 +000031745
31746
Reid Spencerdf3be822006-01-23 08:15:53 +000031747for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031748do
31749as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031750{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31751echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31752if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031753 echo $ECHO_N "(cached) $ECHO_C" >&6
31754else
31755 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031756/* confdefs.h. */
31757_ACEOF
31758cat confdefs.h >>conftest.$ac_ext
31759cat >>conftest.$ac_ext <<_ACEOF
31760/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031761/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31763#define $ac_func innocuous_$ac_func
31764
31765/* System header to define __stub macros and hopefully few prototypes,
31766 which can conflict with char $ac_func (); below.
31767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31768 <limits.h> exists even on freestanding compilers. */
31769
31770#ifdef __STDC__
31771# include <limits.h>
31772#else
31773# include <assert.h>
31774#endif
31775
31776#undef $ac_func
31777
Reid Spencera773bd52006-08-04 18:18:08 +000031778/* Override any GCC internal prototype to avoid an error.
31779 Use char because int might match the return type of a GCC
31780 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031781#ifdef __cplusplus
31782extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031783#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031784char $ac_func ();
31785/* The GNU C library defines this for functions which it implements
31786 to always fail with ENOSYS. Some functions are actually named
31787 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031788#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031789choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031790#endif
John Criswell7a73b802003-06-30 21:59:07 +000031791
John Criswell7a73b802003-06-30 21:59:07 +000031792int
31793main ()
31794{
Reid Spencera773bd52006-08-04 18:18:08 +000031795return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031796 ;
31797 return 0;
31798}
31799_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031800rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031801if { (ac_try="$ac_link"
31802case "(($ac_try" in
31803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31804 *) ac_try_echo=$ac_try;;
31805esac
31806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31807 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031808 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031809 grep -v '^ *+' conftest.er1 >conftest.err
31810 rm -f conftest.er1
31811 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031813 (exit $ac_status); } &&
31814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31815 { (case "(($ac_try" in
31816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31817 *) ac_try_echo=$ac_try;;
31818esac
31819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31820 (eval "$ac_try") 2>&5
31821 ac_status=$?
31822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31823 (exit $ac_status); }; } &&
31824 { ac_try='test -s conftest$ac_exeext'
31825 { (case "(($ac_try" in
31826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31827 *) ac_try_echo=$ac_try;;
31828esac
31829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31830 (eval "$ac_try") 2>&5
31831 ac_status=$?
31832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31833 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031834 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031835else
31836 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031837sed 's/^/| /' conftest.$ac_ext >&5
31838
Reid Spencera773bd52006-08-04 18:18:08 +000031839 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031840fi
Reid Spencera773bd52006-08-04 18:18:08 +000031841
Bill Wendlingebcceee2009-04-18 11:20:33 +000031842rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031843 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031844fi
Reid Spencera773bd52006-08-04 18:18:08 +000031845ac_res=`eval echo '${'$as_ac_var'}'`
31846 { echo "$as_me:$LINENO: result: $ac_res" >&5
31847echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031848if test `eval echo '${'$as_ac_var'}'` = yes; then
31849 cat >>confdefs.h <<_ACEOF
31850#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031851_ACEOF
31852
31853fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031854done
John Criswell7a73b802003-06-30 21:59:07 +000031855
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031856
31857
31858
Reid Spencer6af3d262004-12-15 04:01:48 +000031859
Reid Spencer96cf5872007-07-13 10:05:30 +000031860for ac_func in powf fmodf strtof round
31861do
31862as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31863{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31864echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31865if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31866 echo $ECHO_N "(cached) $ECHO_C" >&6
31867else
31868 cat >conftest.$ac_ext <<_ACEOF
31869/* confdefs.h. */
31870_ACEOF
31871cat confdefs.h >>conftest.$ac_ext
31872cat >>conftest.$ac_ext <<_ACEOF
31873/* end confdefs.h. */
31874/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31876#define $ac_func innocuous_$ac_func
31877
31878/* System header to define __stub macros and hopefully few prototypes,
31879 which can conflict with char $ac_func (); below.
31880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31881 <limits.h> exists even on freestanding compilers. */
31882
31883#ifdef __STDC__
31884# include <limits.h>
31885#else
31886# include <assert.h>
31887#endif
31888
31889#undef $ac_func
31890
31891/* Override any GCC internal prototype to avoid an error.
31892 Use char because int might match the return type of a GCC
31893 builtin and then its argument prototype would still apply. */
31894#ifdef __cplusplus
31895extern "C"
31896#endif
31897char $ac_func ();
31898/* The GNU C library defines this for functions which it implements
31899 to always fail with ENOSYS. Some functions are actually named
31900 something starting with __ and the normal name is an alias. */
31901#if defined __stub_$ac_func || defined __stub___$ac_func
31902choke me
31903#endif
31904
31905int
31906main ()
31907{
31908return $ac_func ();
31909 ;
31910 return 0;
31911}
31912_ACEOF
31913rm -f conftest.$ac_objext conftest$ac_exeext
31914if { (ac_try="$ac_link"
31915case "(($ac_try" in
31916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31917 *) ac_try_echo=$ac_try;;
31918esac
31919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31920 (eval "$ac_link") 2>conftest.er1
31921 ac_status=$?
31922 grep -v '^ *+' conftest.er1 >conftest.err
31923 rm -f conftest.er1
31924 cat conftest.err >&5
31925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031926 (exit $ac_status); } &&
31927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31928 { (case "(($ac_try" in
31929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31930 *) ac_try_echo=$ac_try;;
31931esac
31932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31933 (eval "$ac_try") 2>&5
31934 ac_status=$?
31935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31936 (exit $ac_status); }; } &&
31937 { ac_try='test -s conftest$ac_exeext'
31938 { (case "(($ac_try" in
31939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31940 *) ac_try_echo=$ac_try;;
31941esac
31942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31943 (eval "$ac_try") 2>&5
31944 ac_status=$?
31945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31946 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000031947 eval "$as_ac_var=yes"
31948else
31949 echo "$as_me: failed program was:" >&5
31950sed 's/^/| /' conftest.$ac_ext >&5
31951
31952 eval "$as_ac_var=no"
31953fi
31954
Bill Wendlingebcceee2009-04-18 11:20:33 +000031955rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000031956 conftest$ac_exeext conftest.$ac_ext
31957fi
31958ac_res=`eval echo '${'$as_ac_var'}'`
31959 { echo "$as_me:$LINENO: result: $ac_res" >&5
31960echo "${ECHO_T}$ac_res" >&6; }
31961if test `eval echo '${'$as_ac_var'}'` = yes; then
31962 cat >>confdefs.h <<_ACEOF
31963#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31964_ACEOF
31965
31966fi
31967done
31968
31969
31970
31971
31972
Reid Spencer6af3d262004-12-15 04:01:48 +000031973
Reid Spencerb90645c2007-02-16 19:17:20 +000031974for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31975do
31976as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31977{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31978echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31979if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31980 echo $ECHO_N "(cached) $ECHO_C" >&6
31981else
31982 cat >conftest.$ac_ext <<_ACEOF
31983/* confdefs.h. */
31984_ACEOF
31985cat confdefs.h >>conftest.$ac_ext
31986cat >>conftest.$ac_ext <<_ACEOF
31987/* end confdefs.h. */
31988/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31990#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000031991
Reid Spencerb90645c2007-02-16 19:17:20 +000031992/* System header to define __stub macros and hopefully few prototypes,
31993 which can conflict with char $ac_func (); below.
31994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31995 <limits.h> exists even on freestanding compilers. */
31996
31997#ifdef __STDC__
31998# include <limits.h>
31999#else
32000# include <assert.h>
32001#endif
32002
32003#undef $ac_func
32004
32005/* Override any GCC internal prototype to avoid an error.
32006 Use char because int might match the return type of a GCC
32007 builtin and then its argument prototype would still apply. */
32008#ifdef __cplusplus
32009extern "C"
32010#endif
32011char $ac_func ();
32012/* The GNU C library defines this for functions which it implements
32013 to always fail with ENOSYS. Some functions are actually named
32014 something starting with __ and the normal name is an alias. */
32015#if defined __stub_$ac_func || defined __stub___$ac_func
32016choke me
32017#endif
32018
32019int
32020main ()
32021{
32022return $ac_func ();
32023 ;
32024 return 0;
32025}
32026_ACEOF
32027rm -f conftest.$ac_objext conftest$ac_exeext
32028if { (ac_try="$ac_link"
32029case "(($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_link") 2>conftest.er1
32035 ac_status=$?
32036 grep -v '^ *+' conftest.er1 >conftest.err
32037 rm -f conftest.er1
32038 cat conftest.err >&5
32039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032040 (exit $ac_status); } &&
32041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32042 { (case "(($ac_try" in
32043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32044 *) ac_try_echo=$ac_try;;
32045esac
32046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32047 (eval "$ac_try") 2>&5
32048 ac_status=$?
32049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32050 (exit $ac_status); }; } &&
32051 { ac_try='test -s conftest$ac_exeext'
32052 { (case "(($ac_try" in
32053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32054 *) ac_try_echo=$ac_try;;
32055esac
32056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32057 (eval "$ac_try") 2>&5
32058 ac_status=$?
32059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32060 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000032061 eval "$as_ac_var=yes"
32062else
32063 echo "$as_me: failed program was:" >&5
32064sed 's/^/| /' conftest.$ac_ext >&5
32065
32066 eval "$as_ac_var=no"
32067fi
32068
Bill Wendlingebcceee2009-04-18 11:20:33 +000032069rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000032070 conftest$ac_exeext conftest.$ac_ext
32071fi
32072ac_res=`eval echo '${'$as_ac_var'}'`
32073 { echo "$as_me:$LINENO: result: $ac_res" >&5
32074echo "${ECHO_T}$ac_res" >&6; }
32075if test `eval echo '${'$as_ac_var'}'` = yes; then
32076 cat >>confdefs.h <<_ACEOF
32077#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32078_ACEOF
32079
32080fi
32081done
32082
32083
32084
32085
32086for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000032087do
32088as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032089{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32090echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32091if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000032092 echo $ECHO_N "(cached) $ECHO_C" >&6
32093else
32094 cat >conftest.$ac_ext <<_ACEOF
32095/* confdefs.h. */
32096_ACEOF
32097cat confdefs.h >>conftest.$ac_ext
32098cat >>conftest.$ac_ext <<_ACEOF
32099/* end confdefs.h. */
32100/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32102#define $ac_func innocuous_$ac_func
32103
32104/* System header to define __stub macros and hopefully few prototypes,
32105 which can conflict with char $ac_func (); below.
32106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32107 <limits.h> exists even on freestanding compilers. */
32108
32109#ifdef __STDC__
32110# include <limits.h>
32111#else
32112# include <assert.h>
32113#endif
32114
32115#undef $ac_func
32116
Reid Spencera773bd52006-08-04 18:18:08 +000032117/* Override any GCC internal prototype to avoid an error.
32118 Use char because int might match the return type of a GCC
32119 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000032120#ifdef __cplusplus
32121extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000032122#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000032123char $ac_func ();
32124/* The GNU C library defines this for functions which it implements
32125 to always fail with ENOSYS. Some functions are actually named
32126 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032127#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000032128choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000032129#endif
32130
32131int
32132main ()
32133{
Reid Spencera773bd52006-08-04 18:18:08 +000032134return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000032135 ;
32136 return 0;
32137}
32138_ACEOF
32139rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032140if { (ac_try="$ac_link"
32141case "(($ac_try" in
32142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32143 *) ac_try_echo=$ac_try;;
32144esac
32145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32146 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000032147 ac_status=$?
32148 grep -v '^ *+' conftest.er1 >conftest.err
32149 rm -f conftest.er1
32150 cat conftest.err >&5
32151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032152 (exit $ac_status); } &&
32153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32154 { (case "(($ac_try" in
32155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32156 *) ac_try_echo=$ac_try;;
32157esac
32158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32159 (eval "$ac_try") 2>&5
32160 ac_status=$?
32161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32162 (exit $ac_status); }; } &&
32163 { ac_try='test -s conftest$ac_exeext'
32164 { (case "(($ac_try" in
32165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32166 *) ac_try_echo=$ac_try;;
32167esac
32168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32169 (eval "$ac_try") 2>&5
32170 ac_status=$?
32171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32172 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000032173 eval "$as_ac_var=yes"
32174else
32175 echo "$as_me: failed program was:" >&5
32176sed 's/^/| /' conftest.$ac_ext >&5
32177
Reid Spencera773bd52006-08-04 18:18:08 +000032178 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000032179fi
Reid Spencera773bd52006-08-04 18:18:08 +000032180
Bill Wendlingebcceee2009-04-18 11:20:33 +000032181rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000032182 conftest$ac_exeext conftest.$ac_ext
32183fi
Reid Spencera773bd52006-08-04 18:18:08 +000032184ac_res=`eval echo '${'$as_ac_var'}'`
32185 { echo "$as_me:$LINENO: result: $ac_res" >&5
32186echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000032187if test `eval echo '${'$as_ac_var'}'` = yes; then
32188 cat >>confdefs.h <<_ACEOF
32189#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32190_ACEOF
32191
32192fi
32193done
32194
32195
32196
32197
32198
32199
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000032200for ac_func in mktemp realpath sbrk setrlimit strdup
32201do
32202as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32203{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32204echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32205if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32206 echo $ECHO_N "(cached) $ECHO_C" >&6
32207else
32208 cat >conftest.$ac_ext <<_ACEOF
32209/* confdefs.h. */
32210_ACEOF
32211cat confdefs.h >>conftest.$ac_ext
32212cat >>conftest.$ac_ext <<_ACEOF
32213/* end confdefs.h. */
32214/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32216#define $ac_func innocuous_$ac_func
32217
32218/* System header to define __stub macros and hopefully few prototypes,
32219 which can conflict with char $ac_func (); below.
32220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32221 <limits.h> exists even on freestanding compilers. */
32222
32223#ifdef __STDC__
32224# include <limits.h>
32225#else
32226# include <assert.h>
32227#endif
32228
32229#undef $ac_func
32230
32231/* Override any GCC internal prototype to avoid an error.
32232 Use char because int might match the return type of a GCC
32233 builtin and then its argument prototype would still apply. */
32234#ifdef __cplusplus
32235extern "C"
32236#endif
32237char $ac_func ();
32238/* The GNU C library defines this for functions which it implements
32239 to always fail with ENOSYS. Some functions are actually named
32240 something starting with __ and the normal name is an alias. */
32241#if defined __stub_$ac_func || defined __stub___$ac_func
32242choke me
32243#endif
32244
32245int
32246main ()
32247{
32248return $ac_func ();
32249 ;
32250 return 0;
32251}
32252_ACEOF
32253rm -f conftest.$ac_objext conftest$ac_exeext
32254if { (ac_try="$ac_link"
32255case "(($ac_try" in
32256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32257 *) ac_try_echo=$ac_try;;
32258esac
32259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32260 (eval "$ac_link") 2>conftest.er1
32261 ac_status=$?
32262 grep -v '^ *+' conftest.er1 >conftest.err
32263 rm -f conftest.er1
32264 cat conftest.err >&5
32265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32266 (exit $ac_status); } &&
32267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32268 { (case "(($ac_try" in
32269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32270 *) ac_try_echo=$ac_try;;
32271esac
32272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32273 (eval "$ac_try") 2>&5
32274 ac_status=$?
32275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32276 (exit $ac_status); }; } &&
32277 { ac_try='test -s conftest$ac_exeext'
32278 { (case "(($ac_try" in
32279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32280 *) ac_try_echo=$ac_try;;
32281esac
32282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32283 (eval "$ac_try") 2>&5
32284 ac_status=$?
32285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32286 (exit $ac_status); }; }; then
32287 eval "$as_ac_var=yes"
32288else
32289 echo "$as_me: failed program was:" >&5
32290sed 's/^/| /' conftest.$ac_ext >&5
32291
32292 eval "$as_ac_var=no"
32293fi
32294
32295rm -f core conftest.err conftest.$ac_objext \
32296 conftest$ac_exeext conftest.$ac_ext
32297fi
32298ac_res=`eval echo '${'$as_ac_var'}'`
32299 { echo "$as_me:$LINENO: result: $ac_res" >&5
32300echo "${ECHO_T}$ac_res" >&6; }
32301if test `eval echo '${'$as_ac_var'}'` = yes; then
32302 cat >>confdefs.h <<_ACEOF
32303#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32304_ACEOF
32305
32306fi
32307done
Reid Spencerdf3be822006-01-23 08:15:53 +000032308
32309
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000032310
32311
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000032312
32313for ac_func in strerror strerror_r strerror_s setenv
Reid Spencer7931a782004-12-27 06:15:02 +000032314do
32315as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032316{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32317echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32318if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000032319 echo $ECHO_N "(cached) $ECHO_C" >&6
32320else
32321 cat >conftest.$ac_ext <<_ACEOF
32322/* confdefs.h. */
32323_ACEOF
32324cat confdefs.h >>conftest.$ac_ext
32325cat >>conftest.$ac_ext <<_ACEOF
32326/* end confdefs.h. */
32327/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32329#define $ac_func innocuous_$ac_func
32330
32331/* System header to define __stub macros and hopefully few prototypes,
32332 which can conflict with char $ac_func (); below.
32333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32334 <limits.h> exists even on freestanding compilers. */
32335
32336#ifdef __STDC__
32337# include <limits.h>
32338#else
32339# include <assert.h>
32340#endif
32341
32342#undef $ac_func
32343
Reid Spencera773bd52006-08-04 18:18:08 +000032344/* Override any GCC internal prototype to avoid an error.
32345 Use char because int might match the return type of a GCC
32346 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000032347#ifdef __cplusplus
32348extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000032349#endif
Reid Spencer7931a782004-12-27 06:15:02 +000032350char $ac_func ();
32351/* The GNU C library defines this for functions which it implements
32352 to always fail with ENOSYS. Some functions are actually named
32353 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032354#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000032355choke me
Reid Spencer7931a782004-12-27 06:15:02 +000032356#endif
32357
32358int
32359main ()
32360{
Reid Spencera773bd52006-08-04 18:18:08 +000032361return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000032362 ;
32363 return 0;
32364}
32365_ACEOF
32366rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032367if { (ac_try="$ac_link"
32368case "(($ac_try" in
32369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32370 *) ac_try_echo=$ac_try;;
32371esac
32372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32373 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000032374 ac_status=$?
32375 grep -v '^ *+' conftest.er1 >conftest.err
32376 rm -f conftest.er1
32377 cat conftest.err >&5
32378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032379 (exit $ac_status); } &&
32380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32381 { (case "(($ac_try" in
32382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32383 *) ac_try_echo=$ac_try;;
32384esac
32385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32386 (eval "$ac_try") 2>&5
32387 ac_status=$?
32388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32389 (exit $ac_status); }; } &&
32390 { ac_try='test -s conftest$ac_exeext'
32391 { (case "(($ac_try" in
32392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32393 *) ac_try_echo=$ac_try;;
32394esac
32395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32396 (eval "$ac_try") 2>&5
32397 ac_status=$?
32398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32399 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000032400 eval "$as_ac_var=yes"
32401else
32402 echo "$as_me: failed program was:" >&5
32403sed 's/^/| /' conftest.$ac_ext >&5
32404
Reid Spencera773bd52006-08-04 18:18:08 +000032405 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000032406fi
Reid Spencera773bd52006-08-04 18:18:08 +000032407
Bill Wendlingebcceee2009-04-18 11:20:33 +000032408rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000032409 conftest$ac_exeext conftest.$ac_ext
32410fi
Reid Spencera773bd52006-08-04 18:18:08 +000032411ac_res=`eval echo '${'$as_ac_var'}'`
32412 { echo "$as_me:$LINENO: result: $ac_res" >&5
32413echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000032414if test `eval echo '${'$as_ac_var'}'` = yes; then
32415 cat >>confdefs.h <<_ACEOF
32416#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32417_ACEOF
32418
32419fi
32420done
32421
32422
Reid Spencerba46ca32004-12-31 05:49:15 +000032423
32424
Chris Lattner0b142592005-11-14 06:57:34 +000032425
Chris Lattner511f11d2005-11-14 07:25:50 +000032426for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032427do
32428as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032429{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32430echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32431if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032432 echo $ECHO_N "(cached) $ECHO_C" >&6
32433else
32434 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032435/* confdefs.h. */
32436_ACEOF
32437cat confdefs.h >>conftest.$ac_ext
32438cat >>conftest.$ac_ext <<_ACEOF
32439/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032440/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32442#define $ac_func innocuous_$ac_func
32443
32444/* System header to define __stub macros and hopefully few prototypes,
32445 which can conflict with char $ac_func (); below.
32446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32447 <limits.h> exists even on freestanding compilers. */
32448
32449#ifdef __STDC__
32450# include <limits.h>
32451#else
32452# include <assert.h>
32453#endif
32454
32455#undef $ac_func
32456
Reid Spencera773bd52006-08-04 18:18:08 +000032457/* Override any GCC internal prototype to avoid an error.
32458 Use char because int might match the return type of a GCC
32459 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032460#ifdef __cplusplus
32461extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032462#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032463char $ac_func ();
32464/* The GNU C library defines this for functions which it implements
32465 to always fail with ENOSYS. Some functions are actually named
32466 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032467#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032468choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032469#endif
John Criswell7a73b802003-06-30 21:59:07 +000032470
John Criswell7a73b802003-06-30 21:59:07 +000032471int
32472main ()
32473{
Reid Spencera773bd52006-08-04 18:18:08 +000032474return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032475 ;
32476 return 0;
32477}
32478_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032479rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032480if { (ac_try="$ac_link"
32481case "(($ac_try" in
32482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32483 *) ac_try_echo=$ac_try;;
32484esac
32485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32486 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032487 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032488 grep -v '^ *+' conftest.er1 >conftest.err
32489 rm -f conftest.er1
32490 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032492 (exit $ac_status); } &&
32493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32494 { (case "(($ac_try" in
32495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32496 *) ac_try_echo=$ac_try;;
32497esac
32498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32499 (eval "$ac_try") 2>&5
32500 ac_status=$?
32501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32502 (exit $ac_status); }; } &&
32503 { ac_try='test -s conftest$ac_exeext'
32504 { (case "(($ac_try" in
32505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32506 *) ac_try_echo=$ac_try;;
32507esac
32508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32509 (eval "$ac_try") 2>&5
32510 ac_status=$?
32511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32512 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032513 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000032514else
32515 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032516sed 's/^/| /' conftest.$ac_ext >&5
32517
Reid Spencera773bd52006-08-04 18:18:08 +000032518 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000032519fi
Reid Spencera773bd52006-08-04 18:18:08 +000032520
Bill Wendlingebcceee2009-04-18 11:20:33 +000032521rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032522 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032523fi
Reid Spencera773bd52006-08-04 18:18:08 +000032524ac_res=`eval echo '${'$as_ac_var'}'`
32525 { echo "$as_me:$LINENO: result: $ac_res" >&5
32526echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032527if test `eval echo '${'$as_ac_var'}'` = yes; then
32528 cat >>confdefs.h <<_ACEOF
32529#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000032530_ACEOF
32531
32532fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032533done
John Criswell7a73b802003-06-30 21:59:07 +000032534
Reid Spencercdb08a32006-06-05 16:11:07 +000032535
32536
32537
32538
Reid Spencerafa22e22006-12-10 23:29:19 +000032539for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000032540do
32541as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032542{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32543echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32544if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000032545 echo $ECHO_N "(cached) $ECHO_C" >&6
32546else
32547 cat >conftest.$ac_ext <<_ACEOF
32548/* confdefs.h. */
32549_ACEOF
32550cat confdefs.h >>conftest.$ac_ext
32551cat >>conftest.$ac_ext <<_ACEOF
32552/* end confdefs.h. */
32553/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32555#define $ac_func innocuous_$ac_func
32556
32557/* System header to define __stub macros and hopefully few prototypes,
32558 which can conflict with char $ac_func (); below.
32559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32560 <limits.h> exists even on freestanding compilers. */
32561
32562#ifdef __STDC__
32563# include <limits.h>
32564#else
32565# include <assert.h>
32566#endif
32567
32568#undef $ac_func
32569
Reid Spencera773bd52006-08-04 18:18:08 +000032570/* Override any GCC internal prototype to avoid an error.
32571 Use char because int might match the return type of a GCC
32572 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000032573#ifdef __cplusplus
32574extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000032575#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000032576char $ac_func ();
32577/* The GNU C library defines this for functions which it implements
32578 to always fail with ENOSYS. Some functions are actually named
32579 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032580#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000032581choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000032582#endif
32583
32584int
32585main ()
32586{
Reid Spencera773bd52006-08-04 18:18:08 +000032587return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000032588 ;
32589 return 0;
32590}
32591_ACEOF
32592rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032593if { (ac_try="$ac_link"
32594case "(($ac_try" in
32595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32596 *) ac_try_echo=$ac_try;;
32597esac
32598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32599 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000032600 ac_status=$?
32601 grep -v '^ *+' conftest.er1 >conftest.err
32602 rm -f conftest.er1
32603 cat conftest.err >&5
32604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032605 (exit $ac_status); } &&
32606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32607 { (case "(($ac_try" in
32608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32609 *) ac_try_echo=$ac_try;;
32610esac
32611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32612 (eval "$ac_try") 2>&5
32613 ac_status=$?
32614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32615 (exit $ac_status); }; } &&
32616 { ac_try='test -s conftest$ac_exeext'
32617 { (case "(($ac_try" in
32618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32619 *) ac_try_echo=$ac_try;;
32620esac
32621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32622 (eval "$ac_try") 2>&5
32623 ac_status=$?
32624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32625 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000032626 eval "$as_ac_var=yes"
32627else
32628 echo "$as_me: failed program was:" >&5
32629sed 's/^/| /' conftest.$ac_ext >&5
32630
Reid Spencera773bd52006-08-04 18:18:08 +000032631 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000032632fi
Reid Spencera773bd52006-08-04 18:18:08 +000032633
Bill Wendlingebcceee2009-04-18 11:20:33 +000032634rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000032635 conftest$ac_exeext conftest.$ac_ext
32636fi
Reid Spencera773bd52006-08-04 18:18:08 +000032637ac_res=`eval echo '${'$as_ac_var'}'`
32638 { echo "$as_me:$LINENO: result: $ac_res" >&5
32639echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000032640if test `eval echo '${'$as_ac_var'}'` = yes; then
32641 cat >>confdefs.h <<_ACEOF
32642#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32643_ACEOF
32644
32645fi
32646done
32647
Reid Spencera773bd52006-08-04 18:18:08 +000032648{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32649echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000032650if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032651 echo $ECHO_N "(cached) $ECHO_C" >&6
32652else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032653 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000032654ac_cpp='$CPP $CPPFLAGS'
32655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32657ac_compiler_gnu=$ac_cv_c_compiler_gnu
32658
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032659 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000032660 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000032661else
32662 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000032663
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032664 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000032665_ACEOF
32666cat confdefs.h >>conftest.$ac_ext
32667cat >>conftest.$ac_ext <<_ACEOF
32668/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032669
John Criswella0137d32003-10-13 16:22:01 +000032670#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000032671#include <stdlib.h>
32672
John Criswella0137d32003-10-13 16:22:01 +000032673int
32674main ()
32675{
32676
Reid Spencer2706f8c2004-09-19 23:53:36 +000032677volatile double A, B;
32678char Buffer[100];
32679A = 1;
32680A /= 10.0;
32681sprintf(Buffer, "%a", A);
32682B = atof(Buffer);
32683if (A != B)
32684 return (1);
32685if (A != 0x1.999999999999ap-4)
32686 return (1);
32687return (0);
John Criswella0137d32003-10-13 16:22:01 +000032688 ;
32689 return 0;
32690}
32691_ACEOF
32692rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032693if { (ac_try="$ac_link"
32694case "(($ac_try" in
32695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32696 *) ac_try_echo=$ac_try;;
32697esac
32698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32699 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000032700 ac_status=$?
32701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32702 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032703 { (case "(($ac_try" in
32704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32705 *) ac_try_echo=$ac_try;;
32706esac
32707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32708 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000032709 ac_status=$?
32710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32711 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000032712 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000032713else
32714 echo "$as_me: program exited with status $ac_status" >&5
32715echo "$as_me: failed program was:" >&5
32716sed 's/^/| /' conftest.$ac_ext >&5
32717
32718( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000032719llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000032720fi
Reid Spencera773bd52006-08-04 18:18:08 +000032721rm -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 +000032722fi
Reid Spencera773bd52006-08-04 18:18:08 +000032723
32724
Reid Spencer2706f8c2004-09-19 23:53:36 +000032725 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000032726ac_cpp='$CPP $CPPFLAGS'
32727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32729ac_compiler_gnu=$ac_cv_c_compiler_gnu
32730
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032731fi
Reid Spencera773bd52006-08-04 18:18:08 +000032732{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32733echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000032734 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000032735
32736cat >>confdefs.h <<\_ACEOF
32737#define HAVE_PRINTF_A 1
32738_ACEOF
32739
Reid Spencer2706f8c2004-09-19 23:53:36 +000032740 fi
John Criswella0137d32003-10-13 16:22:01 +000032741
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032742# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32743# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000032744{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
32745echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032746if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000032747 echo $ECHO_N "(cached) $ECHO_C" >&6
32748else
John Criswell0021c312004-02-13 21:57:29 +000032749 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000032750/* confdefs.h. */
32751_ACEOF
32752cat confdefs.h >>conftest.$ac_ext
32753cat >>conftest.$ac_ext <<_ACEOF
32754/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032755#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000032756int
32757main ()
32758{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032759char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000032760 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000032761 ;
32762 return 0;
32763}
32764_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032765rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032766if { (ac_try="$ac_link"
32767case "(($ac_try" in
32768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32769 *) ac_try_echo=$ac_try;;
32770esac
32771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32772 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000032773 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032774 grep -v '^ *+' conftest.er1 >conftest.err
32775 rm -f conftest.er1
32776 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000032777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032778 (exit $ac_status); } &&
32779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32780 { (case "(($ac_try" in
32781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32782 *) ac_try_echo=$ac_try;;
32783esac
32784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32785 (eval "$ac_try") 2>&5
32786 ac_status=$?
32787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32788 (exit $ac_status); }; } &&
32789 { ac_try='test -s conftest$ac_exeext'
32790 { (case "(($ac_try" in
32791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32792 *) ac_try_echo=$ac_try;;
32793esac
32794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32795 (eval "$ac_try") 2>&5
32796 ac_status=$?
32797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32798 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032799 ac_cv_working_alloca_h=yes
32800else
32801 echo "$as_me: failed program was:" >&5
32802sed 's/^/| /' conftest.$ac_ext >&5
32803
Reid Spencera773bd52006-08-04 18:18:08 +000032804 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000032805fi
Reid Spencera773bd52006-08-04 18:18:08 +000032806
Bill Wendlingebcceee2009-04-18 11:20:33 +000032807rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032808 conftest$ac_exeext conftest.$ac_ext
32809fi
Reid Spencera773bd52006-08-04 18:18:08 +000032810{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32811echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032812if test $ac_cv_working_alloca_h = yes; then
32813
32814cat >>confdefs.h <<\_ACEOF
32815#define HAVE_ALLOCA_H 1
32816_ACEOF
32817
32818fi
32819
Reid Spencera773bd52006-08-04 18:18:08 +000032820{ echo "$as_me:$LINENO: checking for alloca" >&5
32821echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032822if test "${ac_cv_func_alloca_works+set}" = set; then
32823 echo $ECHO_N "(cached) $ECHO_C" >&6
32824else
32825 cat >conftest.$ac_ext <<_ACEOF
32826/* confdefs.h. */
32827_ACEOF
32828cat confdefs.h >>conftest.$ac_ext
32829cat >>conftest.$ac_ext <<_ACEOF
32830/* end confdefs.h. */
32831#ifdef __GNUC__
32832# define alloca __builtin_alloca
32833#else
32834# ifdef _MSC_VER
32835# include <malloc.h>
32836# define alloca _alloca
32837# else
Bill Wendlingebcceee2009-04-18 11:20:33 +000032838# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032839# include <alloca.h>
32840# else
32841# ifdef _AIX
32842 #pragma alloca
32843# else
32844# ifndef alloca /* predefined by HP cc +Olibcalls */
32845char *alloca ();
32846# endif
32847# endif
32848# endif
32849# endif
32850#endif
32851
32852int
32853main ()
32854{
32855char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000032856 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032857 ;
32858 return 0;
32859}
32860_ACEOF
32861rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032862if { (ac_try="$ac_link"
32863case "(($ac_try" in
32864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32865 *) ac_try_echo=$ac_try;;
32866esac
32867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32868 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032869 ac_status=$?
32870 grep -v '^ *+' conftest.er1 >conftest.err
32871 rm -f conftest.er1
32872 cat conftest.err >&5
32873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032874 (exit $ac_status); } &&
32875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32876 { (case "(($ac_try" in
32877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32878 *) ac_try_echo=$ac_try;;
32879esac
32880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32881 (eval "$ac_try") 2>&5
32882 ac_status=$?
32883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32884 (exit $ac_status); }; } &&
32885 { ac_try='test -s conftest$ac_exeext'
32886 { (case "(($ac_try" in
32887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32888 *) ac_try_echo=$ac_try;;
32889esac
32890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32891 (eval "$ac_try") 2>&5
32892 ac_status=$?
32893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32894 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032895 ac_cv_func_alloca_works=yes
32896else
32897 echo "$as_me: failed program was:" >&5
32898sed 's/^/| /' conftest.$ac_ext >&5
32899
Reid Spencera773bd52006-08-04 18:18:08 +000032900 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032901fi
Reid Spencera773bd52006-08-04 18:18:08 +000032902
Bill Wendlingebcceee2009-04-18 11:20:33 +000032903rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032904 conftest$ac_exeext conftest.$ac_ext
32905fi
Reid Spencera773bd52006-08-04 18:18:08 +000032906{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32907echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032908
32909if test $ac_cv_func_alloca_works = yes; then
32910
32911cat >>confdefs.h <<\_ACEOF
32912#define HAVE_ALLOCA 1
32913_ACEOF
32914
32915else
32916 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32917# that cause trouble. Some versions do not even contain alloca or
32918# contain a buggy version. If you still want to use their alloca,
32919# use ar to extract alloca.o from them instead of compiling alloca.c.
32920
Reid Spencera773bd52006-08-04 18:18:08 +000032921ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032922
32923cat >>confdefs.h <<\_ACEOF
32924#define C_ALLOCA 1
32925_ACEOF
32926
32927
Reid Spencera773bd52006-08-04 18:18:08 +000032928{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32929echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032930if test "${ac_cv_os_cray+set}" = set; then
32931 echo $ECHO_N "(cached) $ECHO_C" >&6
32932else
32933 cat >conftest.$ac_ext <<_ACEOF
32934/* confdefs.h. */
32935_ACEOF
32936cat confdefs.h >>conftest.$ac_ext
32937cat >>conftest.$ac_ext <<_ACEOF
32938/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000032939#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032940webecray
32941#else
32942wenotbecray
32943#endif
32944
32945_ACEOF
32946if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32947 $EGREP "webecray" >/dev/null 2>&1; then
32948 ac_cv_os_cray=yes
32949else
32950 ac_cv_os_cray=no
32951fi
32952rm -f conftest*
32953
32954fi
Reid Spencera773bd52006-08-04 18:18:08 +000032955{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32956echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032957if test $ac_cv_os_cray = yes; then
32958 for ac_func in _getb67 GETB67 getb67; do
32959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032960{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32961echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32962if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032963 echo $ECHO_N "(cached) $ECHO_C" >&6
32964else
32965 cat >conftest.$ac_ext <<_ACEOF
32966/* confdefs.h. */
32967_ACEOF
32968cat confdefs.h >>conftest.$ac_ext
32969cat >>conftest.$ac_ext <<_ACEOF
32970/* end confdefs.h. */
32971/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32973#define $ac_func innocuous_$ac_func
32974
32975/* System header to define __stub macros and hopefully few prototypes,
32976 which can conflict with char $ac_func (); below.
32977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32978 <limits.h> exists even on freestanding compilers. */
32979
32980#ifdef __STDC__
32981# include <limits.h>
32982#else
32983# include <assert.h>
32984#endif
32985
32986#undef $ac_func
32987
Reid Spencera773bd52006-08-04 18:18:08 +000032988/* Override any GCC internal prototype to avoid an error.
32989 Use char because int might match the return type of a GCC
32990 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032991#ifdef __cplusplus
32992extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032993#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032994char $ac_func ();
32995/* The GNU C library defines this for functions which it implements
32996 to always fail with ENOSYS. Some functions are actually named
32997 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032998#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032999choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033000#endif
33001
33002int
33003main ()
33004{
Reid Spencera773bd52006-08-04 18:18:08 +000033005return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033006 ;
33007 return 0;
33008}
33009_ACEOF
33010rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033011if { (ac_try="$ac_link"
33012case "(($ac_try" in
33013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33014 *) ac_try_echo=$ac_try;;
33015esac
33016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33017 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033018 ac_status=$?
33019 grep -v '^ *+' conftest.er1 >conftest.err
33020 rm -f conftest.er1
33021 cat conftest.err >&5
33022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033023 (exit $ac_status); } &&
33024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33025 { (case "(($ac_try" in
33026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33027 *) ac_try_echo=$ac_try;;
33028esac
33029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33030 (eval "$ac_try") 2>&5
33031 ac_status=$?
33032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33033 (exit $ac_status); }; } &&
33034 { ac_try='test -s conftest$ac_exeext'
33035 { (case "(($ac_try" in
33036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33037 *) ac_try_echo=$ac_try;;
33038esac
33039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33040 (eval "$ac_try") 2>&5
33041 ac_status=$?
33042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33043 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033044 eval "$as_ac_var=yes"
33045else
33046 echo "$as_me: failed program was:" >&5
33047sed 's/^/| /' conftest.$ac_ext >&5
33048
Reid Spencera773bd52006-08-04 18:18:08 +000033049 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033050fi
Reid Spencera773bd52006-08-04 18:18:08 +000033051
Bill Wendlingebcceee2009-04-18 11:20:33 +000033052rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033053 conftest$ac_exeext conftest.$ac_ext
33054fi
Reid Spencera773bd52006-08-04 18:18:08 +000033055ac_res=`eval echo '${'$as_ac_var'}'`
33056 { echo "$as_me:$LINENO: result: $ac_res" >&5
33057echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033058if test `eval echo '${'$as_ac_var'}'` = yes; then
33059
33060cat >>confdefs.h <<_ACEOF
33061#define CRAY_STACKSEG_END $ac_func
33062_ACEOF
33063
33064 break
33065fi
33066
33067 done
33068fi
33069
Reid Spencera773bd52006-08-04 18:18:08 +000033070{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
33071echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033072if test "${ac_cv_c_stack_direction+set}" = set; then
33073 echo $ECHO_N "(cached) $ECHO_C" >&6
33074else
33075 if test "$cross_compiling" = yes; then
33076 ac_cv_c_stack_direction=0
33077else
33078 cat >conftest.$ac_ext <<_ACEOF
33079/* confdefs.h. */
33080_ACEOF
33081cat confdefs.h >>conftest.$ac_ext
33082cat >>conftest.$ac_ext <<_ACEOF
33083/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000033084$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033085int
33086find_stack_direction ()
33087{
33088 static char *addr = 0;
33089 auto char dummy;
33090 if (addr == 0)
33091 {
33092 addr = &dummy;
33093 return find_stack_direction ();
33094 }
John Criswell0021c312004-02-13 21:57:29 +000033095 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033096 return (&dummy > addr) ? 1 : -1;
33097}
John Criswell0021c312004-02-13 21:57:29 +000033098
John Criswell0021c312004-02-13 21:57:29 +000033099int
33100main ()
33101{
Reid Spencera773bd52006-08-04 18:18:08 +000033102 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000033103}
33104_ACEOF
33105rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033106if { (ac_try="$ac_link"
33107case "(($ac_try" in
33108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33109 *) ac_try_echo=$ac_try;;
33110esac
33111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33112 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000033113 ac_status=$?
33114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033116 { (case "(($ac_try" in
33117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33118 *) ac_try_echo=$ac_try;;
33119esac
33120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33121 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000033122 ac_status=$?
33123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33124 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033125 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000033126else
33127 echo "$as_me: program exited with status $ac_status" >&5
33128echo "$as_me: failed program was:" >&5
33129sed 's/^/| /' conftest.$ac_ext >&5
33130
33131( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033132ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000033133fi
Reid Spencera773bd52006-08-04 18:18:08 +000033134rm -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 +000033135fi
Reid Spencera773bd52006-08-04 18:18:08 +000033136
33137
John Criswell0021c312004-02-13 21:57:29 +000033138fi
Reid Spencera773bd52006-08-04 18:18:08 +000033139{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33140echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033141
33142cat >>confdefs.h <<_ACEOF
33143#define STACK_DIRECTION $ac_cv_c_stack_direction
33144_ACEOF
33145
33146
John Criswell0021c312004-02-13 21:57:29 +000033147fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033148
33149
Reid Spencera773bd52006-08-04 18:18:08 +000033150{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33151echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033152if test "${ac_cv_func_rand48+set}" = set; then
33153 echo $ECHO_N "(cached) $ECHO_C" >&6
33154else
Reid Spencera773bd52006-08-04 18:18:08 +000033155 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033156ac_cpp='$CXXCPP $CPPFLAGS'
33157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33160
33161 cat >conftest.$ac_ext <<_ACEOF
33162/* confdefs.h. */
33163_ACEOF
33164cat confdefs.h >>conftest.$ac_ext
33165cat >>conftest.$ac_ext <<_ACEOF
33166/* end confdefs.h. */
33167#include <stdlib.h>
33168int
33169main ()
33170{
33171srand48(0);lrand48();drand48();
33172 ;
33173 return 0;
33174}
33175_ACEOF
33176rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033177if { (ac_try="$ac_compile"
33178case "(($ac_try" in
33179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33180 *) ac_try_echo=$ac_try;;
33181esac
33182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33183 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033184 ac_status=$?
33185 grep -v '^ *+' conftest.er1 >conftest.err
33186 rm -f conftest.er1
33187 cat conftest.err >&5
33188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033189 (exit $ac_status); } &&
33190 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33191 { (case "(($ac_try" in
33192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33193 *) ac_try_echo=$ac_try;;
33194esac
33195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33196 (eval "$ac_try") 2>&5
33197 ac_status=$?
33198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33199 (exit $ac_status); }; } &&
33200 { ac_try='test -s conftest.$ac_objext'
33201 { (case "(($ac_try" in
33202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33203 *) ac_try_echo=$ac_try;;
33204esac
33205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33206 (eval "$ac_try") 2>&5
33207 ac_status=$?
33208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33209 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033210 ac_cv_func_rand48=yes
33211else
33212 echo "$as_me: failed program was:" >&5
33213sed 's/^/| /' conftest.$ac_ext >&5
33214
Reid Spencera773bd52006-08-04 18:18:08 +000033215 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033216fi
Reid Spencera773bd52006-08-04 18:18:08 +000033217
33218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033219 ac_ext=c
33220ac_cpp='$CPP $CPPFLAGS'
33221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33223ac_compiler_gnu=$ac_cv_c_compiler_gnu
33224
33225fi
Reid Spencera773bd52006-08-04 18:18:08 +000033226{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33227echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033228
33229if test "$ac_cv_func_rand48" = "yes" ; then
33230
33231cat >>confdefs.h <<\_ACEOF
33232#define HAVE_RAND48 1
33233_ACEOF
33234
33235fi
John Criswell0021c312004-02-13 21:57:29 +000033236
33237
Reid Spencera773bd52006-08-04 18:18:08 +000033238{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33239echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033240if test "${ac_cv_cxx_namespaces+set}" = set; then
33241 echo $ECHO_N "(cached) $ECHO_C" >&6
33242else
Reid Spencera773bd52006-08-04 18:18:08 +000033243 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033244ac_cpp='$CXXCPP $CPPFLAGS'
33245ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33246ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33247ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33248
33249 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033250/* confdefs.h. */
33251_ACEOF
33252cat confdefs.h >>conftest.$ac_ext
33253cat >>conftest.$ac_ext <<_ACEOF
33254/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033255namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000033256int
33257main ()
33258{
33259using namespace Outer::Inner; return i;
33260 ;
33261 return 0;
33262}
33263_ACEOF
33264rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033265if { (ac_try="$ac_compile"
33266case "(($ac_try" in
33267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33268 *) ac_try_echo=$ac_try;;
33269esac
33270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33271 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033272 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033273 grep -v '^ *+' conftest.er1 >conftest.err
33274 rm -f conftest.er1
33275 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033277 (exit $ac_status); } &&
33278 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33279 { (case "(($ac_try" in
33280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33281 *) ac_try_echo=$ac_try;;
33282esac
33283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33284 (eval "$ac_try") 2>&5
33285 ac_status=$?
33286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33287 (exit $ac_status); }; } &&
33288 { ac_try='test -s conftest.$ac_objext'
33289 { (case "(($ac_try" in
33290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33291 *) ac_try_echo=$ac_try;;
33292esac
33293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33294 (eval "$ac_try") 2>&5
33295 ac_status=$?
33296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33297 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033298 ac_cv_cxx_namespaces=yes
33299else
33300 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033301sed 's/^/| /' conftest.$ac_ext >&5
33302
Reid Spencera773bd52006-08-04 18:18:08 +000033303 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000033304fi
Reid Spencera773bd52006-08-04 18:18:08 +000033305
33306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033307 ac_ext=c
33308ac_cpp='$CPP $CPPFLAGS'
33309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33311ac_compiler_gnu=$ac_cv_c_compiler_gnu
33312
33313
33314fi
Reid Spencera773bd52006-08-04 18:18:08 +000033315{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33316echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033317if test "$ac_cv_cxx_namespaces" = yes; then
33318
33319cat >>confdefs.h <<\_ACEOF
33320#define HAVE_NAMESPACES
33321_ACEOF
33322
33323fi
33324
Reid Spencera773bd52006-08-04 18:18:08 +000033325{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33326echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033327if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33328 echo $ECHO_N "(cached) $ECHO_C" >&6
33329else
33330
Reid Spencera773bd52006-08-04 18:18:08 +000033331 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033332ac_cpp='$CXXCPP $CPPFLAGS'
33333ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33334ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33335ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33336
33337 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033338/* confdefs.h. */
33339_ACEOF
33340cat confdefs.h >>conftest.$ac_ext
33341cat >>conftest.$ac_ext <<_ACEOF
33342/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033343#include <iterator>
33344#ifdef HAVE_NAMESPACES
33345using namespace std;
33346#endif
John Criswell7a73b802003-06-30 21:59:07 +000033347int
33348main ()
33349{
33350iterator<int,int,int> t; return 0;
33351 ;
33352 return 0;
33353}
33354_ACEOF
33355rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033356if { (ac_try="$ac_compile"
33357case "(($ac_try" in
33358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33359 *) ac_try_echo=$ac_try;;
33360esac
33361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33362 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033363 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033364 grep -v '^ *+' conftest.er1 >conftest.err
33365 rm -f conftest.er1
33366 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033368 (exit $ac_status); } &&
33369 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33370 { (case "(($ac_try" in
33371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33372 *) ac_try_echo=$ac_try;;
33373esac
33374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33375 (eval "$ac_try") 2>&5
33376 ac_status=$?
33377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33378 (exit $ac_status); }; } &&
33379 { ac_try='test -s conftest.$ac_objext'
33380 { (case "(($ac_try" in
33381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33382 *) ac_try_echo=$ac_try;;
33383esac
33384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33385 (eval "$ac_try") 2>&5
33386 ac_status=$?
33387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33388 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033389 ac_cv_cxx_have_std_iterator=yes
33390else
33391 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033392sed 's/^/| /' conftest.$ac_ext >&5
33393
Reid Spencera773bd52006-08-04 18:18:08 +000033394 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033395fi
Reid Spencera773bd52006-08-04 18:18:08 +000033396
33397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033398 ac_ext=c
33399ac_cpp='$CPP $CPPFLAGS'
33400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33402ac_compiler_gnu=$ac_cv_c_compiler_gnu
33403
33404
33405fi
Reid Spencera773bd52006-08-04 18:18:08 +000033406{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33407echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033408if test "$ac_cv_cxx_have_std_iterator" = yes
33409then
John Criswell40468462004-09-24 21:19:06 +000033410
33411cat >>confdefs.h <<\_ACEOF
33412#define HAVE_STD_ITERATOR 1
33413_ACEOF
33414
33415else
33416
33417cat >>confdefs.h <<\_ACEOF
33418#define HAVE_STD_ITERATOR 0
33419_ACEOF
33420
John Criswell7a73b802003-06-30 21:59:07 +000033421fi
33422
Reid Spencera773bd52006-08-04 18:18:08 +000033423{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33424echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033425if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33426 echo $ECHO_N "(cached) $ECHO_C" >&6
33427else
33428
Reid Spencera773bd52006-08-04 18:18:08 +000033429 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033430ac_cpp='$CXXCPP $CPPFLAGS'
33431ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33432ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33433ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33434
33435 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033436/* confdefs.h. */
33437_ACEOF
33438cat confdefs.h >>conftest.$ac_ext
33439cat >>conftest.$ac_ext <<_ACEOF
33440/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033441#include <iterator>
33442#ifdef HAVE_NAMESPACES
33443using namespace std;
33444#endif
John Criswell7a73b802003-06-30 21:59:07 +000033445int
33446main ()
33447{
John Criswellc78022e2003-07-29 19:11:58 +000033448bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033449 ;
33450 return 0;
33451}
33452_ACEOF
33453rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033454if { (ac_try="$ac_compile"
33455case "(($ac_try" in
33456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33457 *) ac_try_echo=$ac_try;;
33458esac
33459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33460 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033461 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033462 grep -v '^ *+' conftest.er1 >conftest.err
33463 rm -f conftest.er1
33464 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033466 (exit $ac_status); } &&
33467 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33468 { (case "(($ac_try" in
33469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33470 *) ac_try_echo=$ac_try;;
33471esac
33472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33473 (eval "$ac_try") 2>&5
33474 ac_status=$?
33475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33476 (exit $ac_status); }; } &&
33477 { ac_try='test -s conftest.$ac_objext'
33478 { (case "(($ac_try" in
33479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33480 *) ac_try_echo=$ac_try;;
33481esac
33482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33483 (eval "$ac_try") 2>&5
33484 ac_status=$?
33485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33486 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033487 ac_cv_cxx_have_bi_iterator=yes
33488else
33489 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033490sed 's/^/| /' conftest.$ac_ext >&5
33491
Reid Spencera773bd52006-08-04 18:18:08 +000033492 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033493fi
Reid Spencera773bd52006-08-04 18:18:08 +000033494
33495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033496 ac_ext=c
33497ac_cpp='$CPP $CPPFLAGS'
33498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33500ac_compiler_gnu=$ac_cv_c_compiler_gnu
33501
33502
33503fi
Reid Spencera773bd52006-08-04 18:18:08 +000033504{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33505echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033506if test "$ac_cv_cxx_have_bi_iterator" = yes
33507then
John Criswell40468462004-09-24 21:19:06 +000033508
33509cat >>confdefs.h <<\_ACEOF
33510#define HAVE_BI_ITERATOR 1
33511_ACEOF
33512
33513else
33514
33515cat >>confdefs.h <<\_ACEOF
33516#define HAVE_BI_ITERATOR 0
33517_ACEOF
33518
John Criswell7a73b802003-06-30 21:59:07 +000033519fi
33520
Reid Spencera773bd52006-08-04 18:18:08 +000033521{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33522echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033523if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33524 echo $ECHO_N "(cached) $ECHO_C" >&6
33525else
33526
Reid Spencera773bd52006-08-04 18:18:08 +000033527 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033528ac_cpp='$CXXCPP $CPPFLAGS'
33529ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33530ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33531ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33532
33533 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033534/* confdefs.h. */
33535_ACEOF
33536cat confdefs.h >>conftest.$ac_ext
33537cat >>conftest.$ac_ext <<_ACEOF
33538/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033539#include <iterator>
33540#ifdef HAVE_NAMESPACES
33541using namespace std;
33542#endif
John Criswell7a73b802003-06-30 21:59:07 +000033543int
33544main ()
33545{
John Criswellc78022e2003-07-29 19:11:58 +000033546forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033547 ;
33548 return 0;
33549}
33550_ACEOF
33551rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033552if { (ac_try="$ac_compile"
33553case "(($ac_try" in
33554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33555 *) ac_try_echo=$ac_try;;
33556esac
33557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33558 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033559 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033560 grep -v '^ *+' conftest.er1 >conftest.err
33561 rm -f conftest.er1
33562 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033564 (exit $ac_status); } &&
33565 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33566 { (case "(($ac_try" in
33567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33568 *) ac_try_echo=$ac_try;;
33569esac
33570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33571 (eval "$ac_try") 2>&5
33572 ac_status=$?
33573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33574 (exit $ac_status); }; } &&
33575 { ac_try='test -s conftest.$ac_objext'
33576 { (case "(($ac_try" in
33577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33578 *) ac_try_echo=$ac_try;;
33579esac
33580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33581 (eval "$ac_try") 2>&5
33582 ac_status=$?
33583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33584 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033585 ac_cv_cxx_have_fwd_iterator=yes
33586else
33587 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033588sed 's/^/| /' conftest.$ac_ext >&5
33589
Reid Spencera773bd52006-08-04 18:18:08 +000033590 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033591fi
Reid Spencera773bd52006-08-04 18:18:08 +000033592
33593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033594 ac_ext=c
33595ac_cpp='$CPP $CPPFLAGS'
33596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33598ac_compiler_gnu=$ac_cv_c_compiler_gnu
33599
33600
33601fi
Reid Spencera773bd52006-08-04 18:18:08 +000033602{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33603echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033604if test "$ac_cv_cxx_have_fwd_iterator" = yes
33605then
John Criswell40468462004-09-24 21:19:06 +000033606
33607cat >>confdefs.h <<\_ACEOF
33608#define HAVE_FWD_ITERATOR 1
33609_ACEOF
33610
33611else
33612
33613cat >>confdefs.h <<\_ACEOF
33614#define HAVE_FWD_ITERATOR 0
33615_ACEOF
33616
John Criswell7a73b802003-06-30 21:59:07 +000033617fi
33618
33619
Reid Spencera773bd52006-08-04 18:18:08 +000033620{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33621echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033622if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33623 echo $ECHO_N "(cached) $ECHO_C" >&6
33624else
Reid Spencera773bd52006-08-04 18:18:08 +000033625 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033626ac_cpp='$CXXCPP $CPPFLAGS'
33627ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33628ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33629ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33630
Reid Spencerabec8f92004-10-27 23:03:44 +000033631 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033632/* confdefs.h. */
33633_ACEOF
33634cat confdefs.h >>conftest.$ac_ext
33635cat >>conftest.$ac_ext <<_ACEOF
33636/* end confdefs.h. */
33637#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033638int
33639main ()
33640{
33641float f; isnan(f);
33642 ;
33643 return 0;
33644}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033645_ACEOF
33646rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033647if { (ac_try="$ac_compile"
33648case "(($ac_try" in
33649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33650 *) ac_try_echo=$ac_try;;
33651esac
33652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33653 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033654 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033655 grep -v '^ *+' conftest.er1 >conftest.err
33656 rm -f conftest.er1
33657 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033659 (exit $ac_status); } &&
33660 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33661 { (case "(($ac_try" in
33662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33663 *) ac_try_echo=$ac_try;;
33664esac
33665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33666 (eval "$ac_try") 2>&5
33667 ac_status=$?
33668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33669 (exit $ac_status); }; } &&
33670 { ac_try='test -s conftest.$ac_objext'
33671 { (case "(($ac_try" in
33672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33673 *) ac_try_echo=$ac_try;;
33674esac
33675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33676 (eval "$ac_try") 2>&5
33677 ac_status=$?
33678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33679 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033680 ac_cv_func_isnan_in_math_h=yes
33681else
33682 echo "$as_me: failed program was:" >&5
33683sed 's/^/| /' conftest.$ac_ext >&5
33684
Reid Spencera773bd52006-08-04 18:18:08 +000033685 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033686fi
Reid Spencera773bd52006-08-04 18:18:08 +000033687
33688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033689 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033690ac_cpp='$CPP $CPPFLAGS'
33691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33693ac_compiler_gnu=$ac_cv_c_compiler_gnu
33694
33695fi
Reid Spencera773bd52006-08-04 18:18:08 +000033696{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33697echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033698
33699
33700if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033701
33702cat >>confdefs.h <<\_ACEOF
33703#define HAVE_ISNAN_IN_MATH_H 1
33704_ACEOF
33705
Reid Spencerabec8f92004-10-27 23:03:44 +000033706fi
33707
Reid Spencera773bd52006-08-04 18:18:08 +000033708{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33709echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033710if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33711 echo $ECHO_N "(cached) $ECHO_C" >&6
33712else
Reid Spencera773bd52006-08-04 18:18:08 +000033713 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033714ac_cpp='$CXXCPP $CPPFLAGS'
33715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33718
Reid Spencerabec8f92004-10-27 23:03:44 +000033719 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033720/* confdefs.h. */
33721_ACEOF
33722cat confdefs.h >>conftest.$ac_ext
33723cat >>conftest.$ac_ext <<_ACEOF
33724/* end confdefs.h. */
33725#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033726int
33727main ()
33728{
33729float f; isnan(f);
33730 ;
33731 return 0;
33732}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033733_ACEOF
33734rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033735if { (ac_try="$ac_compile"
33736case "(($ac_try" in
33737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33738 *) ac_try_echo=$ac_try;;
33739esac
33740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33741 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033742 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033743 grep -v '^ *+' conftest.er1 >conftest.err
33744 rm -f conftest.er1
33745 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033747 (exit $ac_status); } &&
33748 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33749 { (case "(($ac_try" in
33750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33751 *) ac_try_echo=$ac_try;;
33752esac
33753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33754 (eval "$ac_try") 2>&5
33755 ac_status=$?
33756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33757 (exit $ac_status); }; } &&
33758 { ac_try='test -s conftest.$ac_objext'
33759 { (case "(($ac_try" in
33760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33761 *) ac_try_echo=$ac_try;;
33762esac
33763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33764 (eval "$ac_try") 2>&5
33765 ac_status=$?
33766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33767 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033768 ac_cv_func_isnan_in_cmath=yes
33769else
33770 echo "$as_me: failed program was:" >&5
33771sed 's/^/| /' conftest.$ac_ext >&5
33772
Reid Spencera773bd52006-08-04 18:18:08 +000033773 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033774fi
Reid Spencera773bd52006-08-04 18:18:08 +000033775
33776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033777 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033778ac_cpp='$CPP $CPPFLAGS'
33779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33781ac_compiler_gnu=$ac_cv_c_compiler_gnu
33782
33783fi
Reid Spencera773bd52006-08-04 18:18:08 +000033784{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33785echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033786
33787if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033788
33789cat >>confdefs.h <<\_ACEOF
33790#define HAVE_ISNAN_IN_CMATH 1
33791_ACEOF
33792
Reid Spencerabec8f92004-10-27 23:03:44 +000033793fi
33794
Reid Spencera773bd52006-08-04 18:18:08 +000033795{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33796echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033797if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33798 echo $ECHO_N "(cached) $ECHO_C" >&6
33799else
Reid Spencera773bd52006-08-04 18:18:08 +000033800 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033801ac_cpp='$CXXCPP $CPPFLAGS'
33802ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33803ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33804ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33805
Reid Spencerabec8f92004-10-27 23:03:44 +000033806 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033807/* confdefs.h. */
33808_ACEOF
33809cat confdefs.h >>conftest.$ac_ext
33810cat >>conftest.$ac_ext <<_ACEOF
33811/* end confdefs.h. */
33812#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033813int
33814main ()
33815{
33816float f; std::isnan(f);
33817 ;
33818 return 0;
33819}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033820_ACEOF
33821rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033822if { (ac_try="$ac_compile"
33823case "(($ac_try" in
33824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33825 *) ac_try_echo=$ac_try;;
33826esac
33827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33828 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033829 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033830 grep -v '^ *+' conftest.er1 >conftest.err
33831 rm -f conftest.er1
33832 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033834 (exit $ac_status); } &&
33835 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33836 { (case "(($ac_try" in
33837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33838 *) ac_try_echo=$ac_try;;
33839esac
33840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33841 (eval "$ac_try") 2>&5
33842 ac_status=$?
33843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33844 (exit $ac_status); }; } &&
33845 { ac_try='test -s conftest.$ac_objext'
33846 { (case "(($ac_try" in
33847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33848 *) ac_try_echo=$ac_try;;
33849esac
33850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33851 (eval "$ac_try") 2>&5
33852 ac_status=$?
33853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33854 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033855 ac_cv_func_std_isnan_in_cmath=yes
33856else
33857 echo "$as_me: failed program was:" >&5
33858sed 's/^/| /' conftest.$ac_ext >&5
33859
Reid Spencera773bd52006-08-04 18:18:08 +000033860 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033861fi
Reid Spencera773bd52006-08-04 18:18:08 +000033862
33863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033864 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033865ac_cpp='$CPP $CPPFLAGS'
33866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33868ac_compiler_gnu=$ac_cv_c_compiler_gnu
33869
33870fi
Reid Spencera773bd52006-08-04 18:18:08 +000033871{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33872echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033873
33874if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033875
33876cat >>confdefs.h <<\_ACEOF
33877#define HAVE_STD_ISNAN_IN_CMATH 1
33878_ACEOF
33879
Reid Spencerabec8f92004-10-27 23:03:44 +000033880fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033881
33882
Reid Spencera773bd52006-08-04 18:18:08 +000033883{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33884echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033885if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33886 echo $ECHO_N "(cached) $ECHO_C" >&6
33887else
Reid Spencera773bd52006-08-04 18:18:08 +000033888 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033889ac_cpp='$CXXCPP $CPPFLAGS'
33890ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33891ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33892ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33893
Reid Spencerabec8f92004-10-27 23:03:44 +000033894 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033895/* confdefs.h. */
33896_ACEOF
33897cat confdefs.h >>conftest.$ac_ext
33898cat >>conftest.$ac_ext <<_ACEOF
33899/* end confdefs.h. */
33900#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033901int
33902main ()
33903{
33904float f; isinf(f);
33905 ;
33906 return 0;
33907}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033908_ACEOF
33909rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033910if { (ac_try="$ac_compile"
33911case "(($ac_try" in
33912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33913 *) ac_try_echo=$ac_try;;
33914esac
33915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33916 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033917 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033918 grep -v '^ *+' conftest.er1 >conftest.err
33919 rm -f conftest.er1
33920 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033922 (exit $ac_status); } &&
33923 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33924 { (case "(($ac_try" in
33925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33926 *) ac_try_echo=$ac_try;;
33927esac
33928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33929 (eval "$ac_try") 2>&5
33930 ac_status=$?
33931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33932 (exit $ac_status); }; } &&
33933 { ac_try='test -s conftest.$ac_objext'
33934 { (case "(($ac_try" in
33935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33936 *) ac_try_echo=$ac_try;;
33937esac
33938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33939 (eval "$ac_try") 2>&5
33940 ac_status=$?
33941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33942 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033943 ac_cv_func_isinf_in_math_h=yes
33944else
33945 echo "$as_me: failed program was:" >&5
33946sed 's/^/| /' conftest.$ac_ext >&5
33947
Reid Spencera773bd52006-08-04 18:18:08 +000033948 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033949fi
Reid Spencera773bd52006-08-04 18:18:08 +000033950
33951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033952 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033953ac_cpp='$CPP $CPPFLAGS'
33954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33956ac_compiler_gnu=$ac_cv_c_compiler_gnu
33957
33958fi
Reid Spencera773bd52006-08-04 18:18:08 +000033959{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33960echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033961
33962if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033963
33964cat >>confdefs.h <<\_ACEOF
33965#define HAVE_ISINF_IN_MATH_H 1
33966_ACEOF
33967
Reid Spencerabec8f92004-10-27 23:03:44 +000033968fi
33969
Reid Spencera773bd52006-08-04 18:18:08 +000033970{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33971echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033972if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33973 echo $ECHO_N "(cached) $ECHO_C" >&6
33974else
Reid Spencera773bd52006-08-04 18:18:08 +000033975 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033976ac_cpp='$CXXCPP $CPPFLAGS'
33977ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33978ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33979ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33980
Reid Spencerabec8f92004-10-27 23:03:44 +000033981 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033982/* confdefs.h. */
33983_ACEOF
33984cat confdefs.h >>conftest.$ac_ext
33985cat >>conftest.$ac_ext <<_ACEOF
33986/* end confdefs.h. */
33987#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033988int
33989main ()
33990{
33991float f; isinf(f);
33992 ;
33993 return 0;
33994}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033995_ACEOF
33996rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033997if { (ac_try="$ac_compile"
33998case "(($ac_try" in
33999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34000 *) ac_try_echo=$ac_try;;
34001esac
34002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34003 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000034004 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034005 grep -v '^ *+' conftest.er1 >conftest.err
34006 rm -f conftest.er1
34007 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000034008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034009 (exit $ac_status); } &&
34010 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34011 { (case "(($ac_try" in
34012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34013 *) ac_try_echo=$ac_try;;
34014esac
34015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34016 (eval "$ac_try") 2>&5
34017 ac_status=$?
34018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34019 (exit $ac_status); }; } &&
34020 { ac_try='test -s conftest.$ac_objext'
34021 { (case "(($ac_try" in
34022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34023 *) ac_try_echo=$ac_try;;
34024esac
34025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34026 (eval "$ac_try") 2>&5
34027 ac_status=$?
34028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34029 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034030 ac_cv_func_isinf_in_cmath=yes
34031else
34032 echo "$as_me: failed program was:" >&5
34033sed 's/^/| /' conftest.$ac_ext >&5
34034
Reid Spencera773bd52006-08-04 18:18:08 +000034035 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000034036fi
Reid Spencera773bd52006-08-04 18:18:08 +000034037
34038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000034039 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000034040ac_cpp='$CPP $CPPFLAGS'
34041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34043ac_compiler_gnu=$ac_cv_c_compiler_gnu
34044
34045fi
Reid Spencera773bd52006-08-04 18:18:08 +000034046{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
34047echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000034048
34049if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034050
34051cat >>confdefs.h <<\_ACEOF
34052#define HAVE_ISINF_IN_CMATH 1
34053_ACEOF
34054
Reid Spencerabec8f92004-10-27 23:03:44 +000034055fi
34056
Reid Spencera773bd52006-08-04 18:18:08 +000034057{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
34058echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000034059if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
34060 echo $ECHO_N "(cached) $ECHO_C" >&6
34061else
Reid Spencera773bd52006-08-04 18:18:08 +000034062 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000034063ac_cpp='$CXXCPP $CPPFLAGS'
34064ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34065ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34066ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34067
Reid Spencerabec8f92004-10-27 23:03:44 +000034068 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000034069/* confdefs.h. */
34070_ACEOF
34071cat confdefs.h >>conftest.$ac_ext
34072cat >>conftest.$ac_ext <<_ACEOF
34073/* end confdefs.h. */
34074#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000034075int
34076main ()
34077{
34078float f; std::isinf(f)}
34079 ;
34080 return 0;
34081}
Brian Gaeke52a551d2004-07-21 03:14:12 +000034082_ACEOF
34083rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034084if { (ac_try="$ac_compile"
34085case "(($ac_try" in
34086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34087 *) ac_try_echo=$ac_try;;
34088esac
34089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34090 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000034091 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034092 grep -v '^ *+' conftest.er1 >conftest.err
34093 rm -f conftest.er1
34094 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000034095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034096 (exit $ac_status); } &&
34097 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34098 { (case "(($ac_try" in
34099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34100 *) ac_try_echo=$ac_try;;
34101esac
34102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34103 (eval "$ac_try") 2>&5
34104 ac_status=$?
34105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34106 (exit $ac_status); }; } &&
34107 { ac_try='test -s conftest.$ac_objext'
34108 { (case "(($ac_try" in
34109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34110 *) ac_try_echo=$ac_try;;
34111esac
34112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34113 (eval "$ac_try") 2>&5
34114 ac_status=$?
34115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34116 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034117 ac_cv_func_std_isinf_in_cmath=yes
34118else
34119 echo "$as_me: failed program was:" >&5
34120sed 's/^/| /' conftest.$ac_ext >&5
34121
Reid Spencera773bd52006-08-04 18:18:08 +000034122 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000034123fi
Reid Spencera773bd52006-08-04 18:18:08 +000034124
34125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000034126 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000034127ac_cpp='$CPP $CPPFLAGS'
34128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34130ac_compiler_gnu=$ac_cv_c_compiler_gnu
34131
34132fi
Reid Spencera773bd52006-08-04 18:18:08 +000034133{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34134echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000034135
34136if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034137
34138cat >>confdefs.h <<\_ACEOF
34139#define HAVE_STD_ISINF_IN_CMATH 1
34140_ACEOF
34141
Reid Spencerabec8f92004-10-27 23:03:44 +000034142fi
34143
Reid Spencera773bd52006-08-04 18:18:08 +000034144{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34145echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000034146if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34147 echo $ECHO_N "(cached) $ECHO_C" >&6
34148else
Reid Spencera773bd52006-08-04 18:18:08 +000034149 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000034150ac_cpp='$CXXCPP $CPPFLAGS'
34151ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34152ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34153ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34154
Reid Spencerabec8f92004-10-27 23:03:44 +000034155 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000034156/* confdefs.h. */
34157_ACEOF
34158cat confdefs.h >>conftest.$ac_ext
34159cat >>conftest.$ac_ext <<_ACEOF
34160/* end confdefs.h. */
34161#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000034162int
34163main ()
34164{
34165float f; finite(f);
34166 ;
34167 return 0;
34168}
Brian Gaeked59a6472004-07-21 03:33:58 +000034169_ACEOF
34170rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034171if { (ac_try="$ac_compile"
34172case "(($ac_try" in
34173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34174 *) ac_try_echo=$ac_try;;
34175esac
34176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34177 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000034178 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034179 grep -v '^ *+' conftest.er1 >conftest.err
34180 rm -f conftest.er1
34181 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000034182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034183 (exit $ac_status); } &&
34184 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34185 { (case "(($ac_try" in
34186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34187 *) ac_try_echo=$ac_try;;
34188esac
34189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34190 (eval "$ac_try") 2>&5
34191 ac_status=$?
34192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34193 (exit $ac_status); }; } &&
34194 { ac_try='test -s conftest.$ac_objext'
34195 { (case "(($ac_try" in
34196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34197 *) ac_try_echo=$ac_try;;
34198esac
34199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34200 (eval "$ac_try") 2>&5
34201 ac_status=$?
34202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34203 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000034204 ac_cv_func_finite_in_ieeefp_h=yes
34205else
34206 echo "$as_me: failed program was:" >&5
34207sed 's/^/| /' conftest.$ac_ext >&5
34208
Reid Spencera773bd52006-08-04 18:18:08 +000034209 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000034210fi
Reid Spencera773bd52006-08-04 18:18:08 +000034211
34212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000034213 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000034214ac_cpp='$CPP $CPPFLAGS'
34215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34217ac_compiler_gnu=$ac_cv_c_compiler_gnu
34218
34219fi
Reid Spencera773bd52006-08-04 18:18:08 +000034220{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34221echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000034222
Brian Gaeke6802b552004-10-28 05:06:45 +000034223if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000034224
34225cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000034226#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000034227_ACEOF
34228
Reid Spencerabec8f92004-10-27 23:03:44 +000034229fi
34230
34231
34232
Reid Spencer30fe5262007-01-20 07:48:49 +000034233if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000034234
34235
34236for ac_header in stdlib.h unistd.h
34237do
34238as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000034239if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34241echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34242if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034243 echo $ECHO_N "(cached) $ECHO_C" >&6
34244fi
Reid Spencera773bd52006-08-04 18:18:08 +000034245ac_res=`eval echo '${'$as_ac_Header'}'`
34246 { echo "$as_me:$LINENO: result: $ac_res" >&5
34247echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034248else
34249 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000034250{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
34251echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034252cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034253/* confdefs.h. */
34254_ACEOF
34255cat confdefs.h >>conftest.$ac_ext
34256cat >>conftest.$ac_ext <<_ACEOF
34257/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034258$ac_includes_default
34259#include <$ac_header>
34260_ACEOF
34261rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034262if { (ac_try="$ac_compile"
34263case "(($ac_try" in
34264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34265 *) ac_try_echo=$ac_try;;
34266esac
34267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34268 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034269 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034270 grep -v '^ *+' conftest.er1 >conftest.err
34271 rm -f conftest.er1
34272 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000034273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034274 (exit $ac_status); } &&
34275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34276 { (case "(($ac_try" in
34277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34278 *) ac_try_echo=$ac_try;;
34279esac
34280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34281 (eval "$ac_try") 2>&5
34282 ac_status=$?
34283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34284 (exit $ac_status); }; } &&
34285 { ac_try='test -s conftest.$ac_objext'
34286 { (case "(($ac_try" in
34287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34288 *) ac_try_echo=$ac_try;;
34289esac
34290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34291 (eval "$ac_try") 2>&5
34292 ac_status=$?
34293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34294 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034295 ac_header_compiler=yes
34296else
34297 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034298sed 's/^/| /' conftest.$ac_ext >&5
34299
Reid Spencera773bd52006-08-04 18:18:08 +000034300 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000034301fi
Reid Spencera773bd52006-08-04 18:18:08 +000034302
34303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34304{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34305echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034306
34307# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000034308{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
34309echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034310cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034311/* confdefs.h. */
34312_ACEOF
34313cat confdefs.h >>conftest.$ac_ext
34314cat >>conftest.$ac_ext <<_ACEOF
34315/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034316#include <$ac_header>
34317_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034318if { (ac_try="$ac_cpp conftest.$ac_ext"
34319case "(($ac_try" in
34320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34321 *) ac_try_echo=$ac_try;;
34322esac
34323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034325 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000034326 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000034327 rm -f conftest.er1
34328 cat conftest.err >&5
34329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034330 (exit $ac_status); } >/dev/null; then
34331 if test -s conftest.err; then
34332 ac_cpp_err=$ac_c_preproc_warn_flag
34333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34334 else
34335 ac_cpp_err=
34336 fi
34337else
34338 ac_cpp_err=yes
34339fi
34340if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000034341 ac_header_preproc=yes
34342else
34343 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034344sed 's/^/| /' conftest.$ac_ext >&5
34345
John Criswell7a73b802003-06-30 21:59:07 +000034346 ac_header_preproc=no
34347fi
Reid Spencera773bd52006-08-04 18:18:08 +000034348
John Criswell7a73b802003-06-30 21:59:07 +000034349rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000034350{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34351echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034352
34353# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034354case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34355 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000034356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34357echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34359echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34360 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000034361 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000034362 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000034363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34364echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34366echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34368echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34370echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000034371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34372echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34374echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000034375 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000034376## ----------------------------------- ##
34377## Report this to llvmbugs@cs.uiuc.edu ##
34378## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000034379_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000034380 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000034381 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034382esac
Reid Spencera773bd52006-08-04 18:18:08 +000034383{ echo "$as_me:$LINENO: checking for $ac_header" >&5
34384echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34385if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034386 echo $ECHO_N "(cached) $ECHO_C" >&6
34387else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034388 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000034389fi
Reid Spencera773bd52006-08-04 18:18:08 +000034390ac_res=`eval echo '${'$as_ac_Header'}'`
34391 { echo "$as_me:$LINENO: result: $ac_res" >&5
34392echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034393
34394fi
34395if test `eval echo '${'$as_ac_Header'}'` = yes; then
34396 cat >>confdefs.h <<_ACEOF
34397#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34398_ACEOF
34399
34400fi
34401
34402done
34403
34404
34405for ac_func in getpagesize
34406do
34407as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000034408{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34409echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34410if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034411 echo $ECHO_N "(cached) $ECHO_C" >&6
34412else
34413 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034414/* confdefs.h. */
34415_ACEOF
34416cat confdefs.h >>conftest.$ac_ext
34417cat >>conftest.$ac_ext <<_ACEOF
34418/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000034419/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34421#define $ac_func innocuous_$ac_func
34422
John Criswell7a73b802003-06-30 21:59:07 +000034423/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000034424 which can conflict with char $ac_func (); below.
34425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34426 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000034427
John Criswell0c38eaf2003-09-10 15:17:25 +000034428#ifdef __STDC__
34429# include <limits.h>
34430#else
34431# include <assert.h>
34432#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000034433
34434#undef $ac_func
34435
Reid Spencera773bd52006-08-04 18:18:08 +000034436/* Override any GCC internal prototype to avoid an error.
34437 Use char because int might match the return type of a GCC
34438 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000034439#ifdef __cplusplus
34440extern "C"
34441#endif
John Criswell7a73b802003-06-30 21:59:07 +000034442char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000034443/* The GNU C library defines this for functions which it implements
34444 to always fail with ENOSYS. Some functions are actually named
34445 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000034446#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000034447choke me
John Criswell7a73b802003-06-30 21:59:07 +000034448#endif
34449
John Criswell0c38eaf2003-09-10 15:17:25 +000034450int
34451main ()
34452{
Reid Spencera773bd52006-08-04 18:18:08 +000034453return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000034454 ;
34455 return 0;
34456}
34457_ACEOF
34458rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034459if { (ac_try="$ac_link"
34460case "(($ac_try" in
34461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34462 *) ac_try_echo=$ac_try;;
34463esac
34464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34465 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034466 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034467 grep -v '^ *+' conftest.er1 >conftest.err
34468 rm -f conftest.er1
34469 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000034470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034471 (exit $ac_status); } &&
34472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34473 { (case "(($ac_try" in
34474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34475 *) ac_try_echo=$ac_try;;
34476esac
34477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34478 (eval "$ac_try") 2>&5
34479 ac_status=$?
34480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34481 (exit $ac_status); }; } &&
34482 { ac_try='test -s conftest$ac_exeext'
34483 { (case "(($ac_try" in
34484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34485 *) ac_try_echo=$ac_try;;
34486esac
34487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34488 (eval "$ac_try") 2>&5
34489 ac_status=$?
34490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34491 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034492 eval "$as_ac_var=yes"
34493else
34494 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034495sed 's/^/| /' conftest.$ac_ext >&5
34496
Reid Spencera773bd52006-08-04 18:18:08 +000034497 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000034498fi
Reid Spencera773bd52006-08-04 18:18:08 +000034499
Bill Wendlingebcceee2009-04-18 11:20:33 +000034500rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034501 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000034502fi
Reid Spencera773bd52006-08-04 18:18:08 +000034503ac_res=`eval echo '${'$as_ac_var'}'`
34504 { echo "$as_me:$LINENO: result: $ac_res" >&5
34505echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034506if test `eval echo '${'$as_ac_var'}'` = yes; then
34507 cat >>confdefs.h <<_ACEOF
34508#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34509_ACEOF
34510
34511fi
34512done
34513
Reid Spencera773bd52006-08-04 18:18:08 +000034514{ echo "$as_me:$LINENO: checking for working mmap" >&5
34515echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034516if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34517 echo $ECHO_N "(cached) $ECHO_C" >&6
34518else
34519 if test "$cross_compiling" = yes; then
34520 ac_cv_func_mmap_fixed_mapped=no
34521else
34522 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034523/* confdefs.h. */
34524_ACEOF
34525cat confdefs.h >>conftest.$ac_ext
34526cat >>conftest.$ac_ext <<_ACEOF
34527/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034528$ac_includes_default
34529/* malloc might have been renamed as rpl_malloc. */
34530#undef malloc
34531
34532/* Thanks to Mike Haertel and Jim Avera for this test.
34533 Here is a matrix of mmap possibilities:
34534 mmap private not fixed
34535 mmap private fixed at somewhere currently unmapped
34536 mmap private fixed at somewhere already mapped
34537 mmap shared not fixed
34538 mmap shared fixed at somewhere currently unmapped
34539 mmap shared fixed at somewhere already mapped
34540 For private mappings, we should verify that changes cannot be read()
34541 back from the file, nor mmap's back from the file at a different
34542 address. (There have been systems where private was not correctly
34543 implemented like the infamous i386 svr4.0, and systems where the
34544 VM page cache was not coherent with the file system buffer cache
34545 like early versions of FreeBSD and possibly contemporary NetBSD.)
34546 For shared mappings, we should conversely verify that changes get
34547 propagated back to all the places they're supposed to be.
34548
34549 Grep wants private fixed already mapped.
34550 The main things grep needs to know about mmap are:
34551 * does it exist and is it safe to write into the mmap'd area
34552 * how to use it (BSD variants) */
34553
34554#include <fcntl.h>
34555#include <sys/mman.h>
34556
Bill Wendlingebcceee2009-04-18 11:20:33 +000034557#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000034558char *malloc ();
34559#endif
34560
34561/* This mess was copied from the GNU getpagesize.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034562#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000034563/* Assume that all systems that can run configure have sys/param.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034564# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000034565# define HAVE_SYS_PARAM_H 1
34566# endif
34567
34568# ifdef _SC_PAGESIZE
34569# define getpagesize() sysconf(_SC_PAGESIZE)
34570# else /* no _SC_PAGESIZE */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034571# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000034572# include <sys/param.h>
34573# ifdef EXEC_PAGESIZE
34574# define getpagesize() EXEC_PAGESIZE
34575# else /* no EXEC_PAGESIZE */
34576# ifdef NBPG
34577# define getpagesize() NBPG * CLSIZE
34578# ifndef CLSIZE
34579# define CLSIZE 1
34580# endif /* no CLSIZE */
34581# else /* no NBPG */
34582# ifdef NBPC
34583# define getpagesize() NBPC
34584# else /* no NBPC */
34585# ifdef PAGESIZE
34586# define getpagesize() PAGESIZE
34587# endif /* PAGESIZE */
34588# endif /* no NBPC */
34589# endif /* no NBPG */
34590# endif /* no EXEC_PAGESIZE */
34591# else /* no HAVE_SYS_PARAM_H */
34592# define getpagesize() 8192 /* punt totally */
34593# endif /* no HAVE_SYS_PARAM_H */
34594# endif /* no _SC_PAGESIZE */
34595
34596#endif /* no HAVE_GETPAGESIZE */
34597
34598int
34599main ()
34600{
34601 char *data, *data2, *data3;
34602 int i, pagesize;
34603 int fd;
34604
34605 pagesize = getpagesize ();
34606
34607 /* First, make a file with some known garbage in it. */
34608 data = (char *) malloc (pagesize);
34609 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000034610 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034611 for (i = 0; i < pagesize; ++i)
34612 *(data + i) = rand ();
34613 umask (0);
34614 fd = creat ("conftest.mmap", 0600);
34615 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034616 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034617 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034618 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034619 close (fd);
34620
34621 /* Next, try to mmap the file at a fixed address which already has
34622 something else allocated at it. If we can, also make sure that
34623 we see the same garbage. */
34624 fd = open ("conftest.mmap", O_RDWR);
34625 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034626 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034627 data2 = (char *) malloc (2 * pagesize);
34628 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000034629 return 1;
34630 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000034631 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000034632 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000034633 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034634 for (i = 0; i < pagesize; ++i)
34635 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034636 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034637
34638 /* Finally, make sure that changes to the mapped area do not
34639 percolate back to the file as seen by read(). (This is a bug on
34640 some variants of i386 svr4.0.) */
34641 for (i = 0; i < pagesize; ++i)
34642 *(data2 + i) = *(data2 + i) + 1;
34643 data3 = (char *) malloc (pagesize);
34644 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000034645 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034646 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034647 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034648 for (i = 0; i < pagesize; ++i)
34649 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034650 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034651 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000034652 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000034653}
34654_ACEOF
34655rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034656if { (ac_try="$ac_link"
34657case "(($ac_try" in
34658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34659 *) ac_try_echo=$ac_try;;
34660esac
34661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34662 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034663 ac_status=$?
34664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034666 { (case "(($ac_try" in
34667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34668 *) ac_try_echo=$ac_try;;
34669esac
34670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34671 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034672 ac_status=$?
34673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34674 (exit $ac_status); }; }; then
34675 ac_cv_func_mmap_fixed_mapped=yes
34676else
34677 echo "$as_me: program exited with status $ac_status" >&5
34678echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034679sed 's/^/| /' conftest.$ac_ext >&5
34680
John Criswell7a73b802003-06-30 21:59:07 +000034681( exit $ac_status )
34682ac_cv_func_mmap_fixed_mapped=no
34683fi
Reid Spencera773bd52006-08-04 18:18:08 +000034684rm -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 +000034685fi
Reid Spencera773bd52006-08-04 18:18:08 +000034686
34687
John Criswell7a73b802003-06-30 21:59:07 +000034688fi
Reid Spencera773bd52006-08-04 18:18:08 +000034689{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34690echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034691if test $ac_cv_func_mmap_fixed_mapped = yes; then
34692
34693cat >>confdefs.h <<\_ACEOF
34694#define HAVE_MMAP 1
34695_ACEOF
34696
34697fi
34698rm -f conftest.mmap
34699
Reid Spencer30fe5262007-01-20 07:48:49 +000034700 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034701echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034702if test "${ac_cv_func_mmap_file+set}" = set; then
34703 echo $ECHO_N "(cached) $ECHO_C" >&6
34704else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034705 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000034706ac_cpp='$CPP $CPPFLAGS'
34707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34709ac_compiler_gnu=$ac_cv_c_compiler_gnu
34710
34711 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034712 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000034713else
34714 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034715
Reid Spencer777ce172004-09-20 04:09:56 +000034716 /* confdefs.h. */
34717_ACEOF
34718cat confdefs.h >>conftest.$ac_ext
34719cat >>conftest.$ac_ext <<_ACEOF
34720/* end confdefs.h. */
34721
John Criswell7a73b802003-06-30 21:59:07 +000034722#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000034723#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000034724#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000034725
34726int
34727main ()
34728{
John Criswell7a73b802003-06-30 21:59:07 +000034729
34730 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000034731 fd = creat ("foo",0777);
34732 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34733 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034734 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000034735 ;
34736 return 0;
34737}
John Criswell7a73b802003-06-30 21:59:07 +000034738_ACEOF
34739rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034740if { (ac_try="$ac_link"
34741case "(($ac_try" in
34742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34743 *) ac_try_echo=$ac_try;;
34744esac
34745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34746 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034747 ac_status=$?
34748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034750 { (case "(($ac_try" in
34751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34752 *) ac_try_echo=$ac_try;;
34753esac
34754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34755 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034756 ac_status=$?
34757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34758 (exit $ac_status); }; }; then
34759 ac_cv_func_mmap_file=yes
34760else
34761 echo "$as_me: program exited with status $ac_status" >&5
34762echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034763sed 's/^/| /' conftest.$ac_ext >&5
34764
John Criswell7a73b802003-06-30 21:59:07 +000034765( exit $ac_status )
34766ac_cv_func_mmap_file=no
34767fi
Reid Spencera773bd52006-08-04 18:18:08 +000034768rm -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 +000034769fi
Reid Spencera773bd52006-08-04 18:18:08 +000034770
34771
John Criswell7a73b802003-06-30 21:59:07 +000034772 ac_ext=c
34773ac_cpp='$CPP $CPPFLAGS'
34774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34776ac_compiler_gnu=$ac_cv_c_compiler_gnu
34777
34778
34779fi
Reid Spencera773bd52006-08-04 18:18:08 +000034780{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34781echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034782if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000034783
34784cat >>confdefs.h <<\_ACEOF
34785#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000034786_ACEOF
34787
34788 MMAP_FILE=yes
34789
34790fi
34791
Reid Spencer30fe5262007-01-20 07:48:49 +000034792 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034793echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034794if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34795 echo $ECHO_N "(cached) $ECHO_C" >&6
34796else
Reid Spencer582a23c2004-12-29 07:07:57 +000034797 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000034798 ac_cv_need_dev_zero_for_mmap=yes
34799 else
34800 ac_cv_need_dev_zero_for_mmap=no
34801 fi
34802
34803fi
Reid Spencera773bd52006-08-04 18:18:08 +000034804{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34805echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034806if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34807
34808cat >>confdefs.h <<\_ACEOF
34809#define NEED_DEV_ZERO_FOR_MMAP 1
34810_ACEOF
34811
34812fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000034813
Reid Spencer30fe5262007-01-20 07:48:49 +000034814 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34815 then
34816 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000034817echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034818 fi
34819 if test "$ac_cv_func_mmap_file" = "no"
34820 then
34821 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034822echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034823 fi
John Criswellb13092b2003-07-22 21:00:24 +000034824fi
John Criswell7a73b802003-06-30 21:59:07 +000034825
Owen Andersona8603702009-05-19 22:18:56 +000034826{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000034827echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034828cat >conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000034829/* confdefs.h. */
34830_ACEOF
34831cat confdefs.h >>conftest.$ac_ext
34832cat >>conftest.$ac_ext <<_ACEOF
34833/* end confdefs.h. */
34834int main() {
Owen Andersona8603702009-05-19 22:18:56 +000034835 volatile unsigned long val = 1;
34836 __sync_synchronize();
34837 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000034838 __sync_add_and_fetch(&val, 1);
34839 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000034840 return 0;
34841 }
Owen Andersond4b272b2009-05-18 23:58:51 +000034842
34843_ACEOF
34844rm -f conftest.$ac_objext conftest$ac_exeext
34845if { (ac_try="$ac_link"
34846case "(($ac_try" in
34847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34848 *) ac_try_echo=$ac_try;;
34849esac
34850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34851 (eval "$ac_link") 2>conftest.er1
34852 ac_status=$?
34853 grep -v '^ *+' conftest.er1 >conftest.err
34854 rm -f conftest.er1
34855 cat conftest.err >&5
34856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34857 (exit $ac_status); } &&
34858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34859 { (case "(($ac_try" in
34860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34861 *) ac_try_echo=$ac_try;;
34862esac
34863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34864 (eval "$ac_try") 2>&5
34865 ac_status=$?
34866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34867 (exit $ac_status); }; } &&
34868 { ac_try='test -s conftest$ac_exeext'
34869 { (case "(($ac_try" in
34870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34871 *) ac_try_echo=$ac_try;;
34872esac
34873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34874 (eval "$ac_try") 2>&5
34875 ac_status=$?
34876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34877 (exit $ac_status); }; }; then
34878 { echo "$as_me:$LINENO: result: yes" >&5
34879echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034880
34881cat >>confdefs.h <<\_ACEOF
34882#define LLVM_MULTITHREADED 1
34883_ACEOF
34884
Owen Andersond4b272b2009-05-18 23:58:51 +000034885else
34886 echo "$as_me: failed program was:" >&5
34887sed 's/^/| /' conftest.$ac_ext >&5
34888
34889 { echo "$as_me:$LINENO: result: no" >&5
34890echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000034891
Owen Andersona8603702009-05-19 22:18:56 +000034892cat >>confdefs.h <<\_ACEOF
34893#define LLVM_MULTITHREADED 0
34894_ACEOF
34895
34896 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34897echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000034898fi
34899
34900rm -f core conftest.err conftest.$ac_objext \
34901 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000034902
34903
John Criswell7a73b802003-06-30 21:59:07 +000034904
Reid Spencer9372f152007-07-30 20:13:24 +000034905
34906for ac_func in __dso_handle
34907do
34908as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34909{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34910echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34911if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34912 echo $ECHO_N "(cached) $ECHO_C" >&6
34913else
34914 cat >conftest.$ac_ext <<_ACEOF
34915/* confdefs.h. */
34916_ACEOF
34917cat confdefs.h >>conftest.$ac_ext
34918cat >>conftest.$ac_ext <<_ACEOF
34919/* end confdefs.h. */
34920/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34922#define $ac_func innocuous_$ac_func
34923
34924/* System header to define __stub macros and hopefully few prototypes,
34925 which can conflict with char $ac_func (); below.
34926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34927 <limits.h> exists even on freestanding compilers. */
34928
34929#ifdef __STDC__
34930# include <limits.h>
34931#else
34932# include <assert.h>
34933#endif
34934
34935#undef $ac_func
34936
34937/* Override any GCC internal prototype to avoid an error.
34938 Use char because int might match the return type of a GCC
34939 builtin and then its argument prototype would still apply. */
34940#ifdef __cplusplus
34941extern "C"
34942#endif
34943char $ac_func ();
34944/* The GNU C library defines this for functions which it implements
34945 to always fail with ENOSYS. Some functions are actually named
34946 something starting with __ and the normal name is an alias. */
34947#if defined __stub_$ac_func || defined __stub___$ac_func
34948choke me
34949#endif
34950
34951int
34952main ()
34953{
34954return $ac_func ();
34955 ;
34956 return 0;
34957}
34958_ACEOF
34959rm -f conftest.$ac_objext conftest$ac_exeext
34960if { (ac_try="$ac_link"
34961case "(($ac_try" in
34962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34963 *) ac_try_echo=$ac_try;;
34964esac
34965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34966 (eval "$ac_link") 2>conftest.er1
34967 ac_status=$?
34968 grep -v '^ *+' conftest.er1 >conftest.err
34969 rm -f conftest.er1
34970 cat conftest.err >&5
34971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034972 (exit $ac_status); } &&
34973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34974 { (case "(($ac_try" in
34975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34976 *) ac_try_echo=$ac_try;;
34977esac
34978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34979 (eval "$ac_try") 2>&5
34980 ac_status=$?
34981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34982 (exit $ac_status); }; } &&
34983 { ac_try='test -s conftest$ac_exeext'
34984 { (case "(($ac_try" in
34985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34986 *) ac_try_echo=$ac_try;;
34987esac
34988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34989 (eval "$ac_try") 2>&5
34990 ac_status=$?
34991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34992 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000034993 eval "$as_ac_var=yes"
34994else
34995 echo "$as_me: failed program was:" >&5
34996sed 's/^/| /' conftest.$ac_ext >&5
34997
34998 eval "$as_ac_var=no"
34999fi
35000
Bill Wendlingebcceee2009-04-18 11:20:33 +000035001rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000035002 conftest$ac_exeext conftest.$ac_ext
35003fi
35004ac_res=`eval echo '${'$as_ac_var'}'`
35005 { echo "$as_me:$LINENO: result: $ac_res" >&5
35006echo "${ECHO_T}$ac_res" >&6; }
35007if test `eval echo '${'$as_ac_var'}'` = yes; then
35008 cat >>confdefs.h <<_ACEOF
35009#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35010_ACEOF
35011
35012fi
35013done
35014
35015
Reid Spencera773bd52006-08-04 18:18:08 +000035016{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
35017echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035018if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
35019 echo $ECHO_N "(cached) $ECHO_C" >&6
35020else
35021 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000035022if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035023 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000035024 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
35025 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035026 if test $? -eq 0 ; then
35027 llvm_cv_llvmgcc_sanity="yes"
35028 fi
35029 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000035030fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035031fi
Reid Spencera773bd52006-08-04 18:18:08 +000035032{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
35033echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035034
35035if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000035036 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
35037echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000035038 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035039 LLVMCC1=$llvmcc1path
35040
Reid Spencer502935f2004-12-22 05:56:56 +000035041 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035042 LLVMCC1PLUS=$llvmcc1pluspath
35043
Reid Spencer502935f2004-12-22 05:56:56 +000035044 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
35045 LLVMGCCDIR=$llvmgccdir
35046
Reid Spencer282d8c12006-12-21 22:55:41 +000035047 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
35048 LLVMGCCLIBEXEC=$llvmgcclibexec
35049
Reid Spencerb5d75b82006-05-09 00:31:01 +000035050 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000035051 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35052 LLVMGCC_VERSION=$llvmgccversion
35053
35054 LLVMGCC_MAJVERS=$llvmgccmajvers
35055
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000035056 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000035057 LLVMGCC_LANGS=$llvmgcclangs
35058
35059 { echo "$as_me:$LINENO: result: ok" >&5
35060echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000035061fi
35062
Reid Spencer2bc7bd52004-11-29 12:29:58 +000035063SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000035064
35065
Reid Spencere9de0912004-08-20 09:03:57 +000035066# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035067# information into substitutions that will end up in Makefile.config.in
35068# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000035069if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000035070 prefix="/usr/local"
35071fi
Reid Spencere9de0912004-08-20 09:03:57 +000035072eval LLVM_PREFIX="${prefix}";
35073eval LLVM_BINDIR="${prefix}/bin";
35074eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000035075eval LLVM_DATADIR="${prefix}/share/llvm";
35076eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35077eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000035078eval LLVM_INCLUDEDIR="${prefix}/include";
35079eval LLVM_INFODIR="${prefix}/info";
35080eval LLVM_MANDIR="${prefix}/man";
35081LLVM_CONFIGTIME=`date`
35082
35083
35084
35085
35086
35087
35088
35089
35090
35091
35092
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035093# Place the various directores into the config.h file as #defines so that we
35094# can know about the installation paths within LLVM.
35095
Reid Spencere9de0912004-08-20 09:03:57 +000035096cat >>confdefs.h <<_ACEOF
35097#define LLVM_PREFIX "$LLVM_PREFIX"
35098_ACEOF
35099
35100
35101cat >>confdefs.h <<_ACEOF
35102#define LLVM_BINDIR "$LLVM_BINDIR"
35103_ACEOF
35104
35105
35106cat >>confdefs.h <<_ACEOF
35107#define LLVM_LIBDIR "$LLVM_LIBDIR"
35108_ACEOF
35109
35110
35111cat >>confdefs.h <<_ACEOF
35112#define LLVM_DATADIR "$LLVM_DATADIR"
35113_ACEOF
35114
35115
35116cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000035117#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000035118_ACEOF
35119
35120
35121cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000035122#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000035123_ACEOF
35124
35125
35126cat >>confdefs.h <<_ACEOF
35127#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35128_ACEOF
35129
35130
35131cat >>confdefs.h <<_ACEOF
35132#define LLVM_INFODIR "$LLVM_INFODIR"
35133_ACEOF
35134
35135
35136cat >>confdefs.h <<_ACEOF
35137#define LLVM_MANDIR "$LLVM_MANDIR"
35138_ACEOF
35139
35140
35141cat >>confdefs.h <<_ACEOF
35142#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35143_ACEOF
35144
35145
Eric Christopher790e11c2007-12-01 00:34:39 +000035146cat >>confdefs.h <<_ACEOF
35147#define LLVM_HOSTTRIPLE "$host"
35148_ACEOF
35149
35150
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035151# Determine which bindings to build.
35152if test "$BINDINGS_TO_BUILD" = auto ; then
35153 BINDINGS_TO_BUILD=""
35154 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35155 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35156 fi
35157fi
35158BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35159
35160
35161# This isn't really configurey, but it avoids having to repeat the list in
35162# other files.
35163ALL_BINDINGS=ocaml
35164
35165
Gordon Henriksenf0915682007-10-02 16:42:22 +000035166# Do any work necessary to ensure that bindings have what they need.
35167binding_prereqs_failed=0
35168for a_binding in $BINDINGS_TO_BUILD ; do
35169 case "$a_binding" in
35170 ocaml)
35171 if test "x$OCAMLC" = x ; then
35172 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35173echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35174 binding_prereqs_failed=1
35175 fi
35176 if test "x$OCAMLDEP" = x ; then
35177 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35178echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35179 binding_prereqs_failed=1
35180 fi
35181 if test "x$OCAMLOPT" = x ; then
35182 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35183echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35184 fi
35185 if test "x$with_ocaml_libdir" != xauto ; then
35186 OCAML_LIBDIR=$with_ocaml_libdir
35187
35188 else
35189 ocaml_stdlib="`"$OCAMLC" -where`"
35190 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35191 then
35192 # ocaml stdlib is beneath our prefix; use stdlib
35193 OCAML_LIBDIR=$ocaml_stdlib
35194
35195 else
35196 # ocaml stdlib is outside our prefix; use libdir/ocaml
35197 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35198
35199 fi
35200 fi
35201 ;;
35202 esac
35203done
35204if test "$binding_prereqs_failed" = 1 ; then
35205 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35206echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35207 { (exit 1); exit 1; }; }
35208fi
35209
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035210{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35211echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35212if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35213 echo $ECHO_N "(cached) $ECHO_C" >&6
35214else
35215 ac_ext=cpp
35216ac_cpp='$CXXCPP $CPPFLAGS'
35217ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35218ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35219ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35220
35221 oldcxxflags="$CXXFLAGS"
35222 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35223 cat >conftest.$ac_ext <<_ACEOF
35224/* confdefs.h. */
35225_ACEOF
35226cat confdefs.h >>conftest.$ac_ext
35227cat >>conftest.$ac_ext <<_ACEOF
35228/* end confdefs.h. */
35229
35230int
35231main ()
35232{
35233
35234 ;
35235 return 0;
35236}
35237_ACEOF
35238rm -f conftest.$ac_objext
35239if { (ac_try="$ac_compile"
35240case "(($ac_try" in
35241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35242 *) ac_try_echo=$ac_try;;
35243esac
35244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35245 (eval "$ac_compile") 2>conftest.er1
35246 ac_status=$?
35247 grep -v '^ *+' conftest.er1 >conftest.err
35248 rm -f conftest.er1
35249 cat conftest.err >&5
35250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000035251 (exit $ac_status); } &&
35252 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35253 { (case "(($ac_try" in
35254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35255 *) ac_try_echo=$ac_try;;
35256esac
35257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35258 (eval "$ac_try") 2>&5
35259 ac_status=$?
35260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35261 (exit $ac_status); }; } &&
35262 { ac_try='test -s conftest.$ac_objext'
35263 { (case "(($ac_try" in
35264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35265 *) ac_try_echo=$ac_try;;
35266esac
35267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35268 (eval "$ac_try") 2>&5
35269 ac_status=$?
35270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35271 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035272 llvm_cv_cxx_visibility_inlines_hidden=yes
35273else
35274 echo "$as_me: failed program was:" >&5
35275sed 's/^/| /' conftest.$ac_ext >&5
35276
35277 llvm_cv_cxx_visibility_inlines_hidden=no
35278fi
35279
35280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35281 CXXFLAGS="$oldcxxflags"
35282 ac_ext=c
35283ac_cpp='$CPP $CPPFLAGS'
35284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35286ac_compiler_gnu=$ac_cv_c_compiler_gnu
35287
35288
35289fi
35290{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35291echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35292if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35293 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35294
35295else
35296 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35297
35298fi
35299
Gordon Henriksenf0915682007-10-02 16:42:22 +000035300
Nick Lewycky731c6ab2009-03-05 08:20:44 +000035301if test "$llvm_cv_link_use_r" = "yes" ; then
35302 RPATH="-Wl,-R"
35303else
35304 RPATH="-Wl,-rpath"
35305fi
35306
35307
35308if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35309 RDYNAMIC="-Wl,-export-dynamic"
35310else
35311 RDYNAMIC=""
35312fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000035313
35314
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035315
Reid Spencera773bd52006-08-04 18:18:08 +000035316ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035317
Douglas Gregor1555a232009-06-16 20:12:29 +000035318ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35319
35320ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35321
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000035322ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35323
Reid Spencera773bd52006-08-04 18:18:08 +000035324ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035325
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035326
Reid Spencera773bd52006-08-04 18:18:08 +000035327ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035328
35329
Reid Spencerea949cf2006-08-16 00:45:38 +000035330ac_config_files="$ac_config_files llvm.spec"
35331
35332
Reid Spencera773bd52006-08-04 18:18:08 +000035333ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000035334
35335
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035336ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35337
35338
Reid Spencera773bd52006-08-04 18:18:08 +000035339ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000035340
35341
Reid Spencera773bd52006-08-04 18:18:08 +000035342ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000035343
Reid Spencera773bd52006-08-04 18:18:08 +000035344ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035345
35346
Reid Spencera773bd52006-08-04 18:18:08 +000035347ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035348
35349
Reid Spencera773bd52006-08-04 18:18:08 +000035350ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035351
35352
Reid Spencera773bd52006-08-04 18:18:08 +000035353ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035354
35355
Reid Spencer8b2e1412006-11-17 03:32:33 +000035356ac_config_commands="$ac_config_commands runtime/Makefile"
35357
35358
Reid Spencera773bd52006-08-04 18:18:08 +000035359ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035360
35361
Reid Spencera773bd52006-08-04 18:18:08 +000035362ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035363
35364
Bill Wendlingf24eb392009-01-04 23:12:30 +000035365ac_config_commands="$ac_config_commands unittests/Makefile"
35366
35367
Reid Spencera773bd52006-08-04 18:18:08 +000035368ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035369
35370
Reid Spencera773bd52006-08-04 18:18:08 +000035371ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035372
35373
Reid Spencera773bd52006-08-04 18:18:08 +000035374ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035375
35376
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035377ac_config_commands="$ac_config_commands bindings/Makefile"
35378
35379
35380ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35381
35382
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035383
John Criswell7a73b802003-06-30 21:59:07 +000035384cat >confcache <<\_ACEOF
35385# This file is a shell script that caches the results of configure
35386# tests run on this system so they can be shared between configure
35387# scripts and configure runs, see configure's option --config-cache.
35388# It is not useful on other systems. If it contains results you don't
35389# want to keep, you may remove or edit it.
35390#
35391# config.status only pays attention to the cache file if you give it
35392# the --recheck option to rerun configure.
35393#
John Criswell0c38eaf2003-09-10 15:17:25 +000035394# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000035395# loading this file, other *unset* `ac_cv_foo' will be assigned the
35396# following values.
35397
35398_ACEOF
35399
35400# The following way of writing the cache mishandles newlines in values,
35401# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000035402# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000035403# Ultrix sh set writes to stderr and can't be redirected directly,
35404# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000035405(
35406 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35407 eval ac_val=\$$ac_var
35408 case $ac_val in #(
35409 *${as_nl}*)
35410 case $ac_var in #(
35411 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35412echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35413 esac
35414 case $ac_var in #(
35415 _ | IFS | as_nl) ;; #(
35416 *) $as_unset $ac_var ;;
35417 esac ;;
35418 esac
35419 done
35420
John Criswell7a73b802003-06-30 21:59:07 +000035421 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000035422 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35423 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000035424 # `set' does not quote correctly, so add quotes (double-quote
35425 # substitution turns \\\\ into \\, and sed turns \\ into \).
35426 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035427 "s/'/'\\\\''/g;
35428 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000035429 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000035430 *)
35431 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000035432 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000035433 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035434 esac |
35435 sort
35436) |
John Criswell7a73b802003-06-30 21:59:07 +000035437 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000035438 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000035439 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000035440 :clear
John Criswell7a73b802003-06-30 21:59:07 +000035441 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35442 t end
Reid Spencera773bd52006-08-04 18:18:08 +000035443 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35444 :end' >>confcache
35445if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35446 if test -w "$cache_file"; then
35447 test "x$cache_file" != "x/dev/null" &&
35448 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35449echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000035450 cat confcache >$cache_file
35451 else
Reid Spencera773bd52006-08-04 18:18:08 +000035452 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35453echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000035454 fi
35455fi
35456rm -f confcache
35457
35458test "x$prefix" = xNONE && prefix=$ac_default_prefix
35459# Let make expand exec_prefix.
35460test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35461
John Criswell7a73b802003-06-30 21:59:07 +000035462DEFS=-DHAVE_CONFIG_H
35463
John Criswell0c38eaf2003-09-10 15:17:25 +000035464ac_libobjs=
35465ac_ltlibobjs=
35466for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35467 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000035468 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35469 ac_i=`echo "$ac_i" | sed "$ac_script"`
35470 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35471 # will be set to the directory where LIBOBJS objects are built.
35472 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35473 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000035474done
35475LIBOBJS=$ac_libobjs
35476
35477LTLIBOBJS=$ac_ltlibobjs
35478
35479
Reid Spencer2bc7bd52004-11-29 12:29:58 +000035480if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35481 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35482Usually this means the macro was only invoked conditionally." >&5
35483echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35484Usually this means the macro was only invoked conditionally." >&2;}
35485 { (exit 1); exit 1; }; }
35486fi
35487if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35488 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35489Usually this means the macro was only invoked conditionally." >&5
35490echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35491Usually this means the macro was only invoked conditionally." >&2;}
35492 { (exit 1); exit 1; }; }
35493fi
John Criswell7a73b802003-06-30 21:59:07 +000035494
35495: ${CONFIG_STATUS=./config.status}
35496ac_clean_files_save=$ac_clean_files
35497ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35498{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35499echo "$as_me: creating $CONFIG_STATUS" >&6;}
35500cat >$CONFIG_STATUS <<_ACEOF
35501#! $SHELL
35502# Generated by $as_me.
35503# Run this file to recreate the current configuration.
35504# Compiler output produced by configure, useful for debugging
35505# configure, is in config.log if it exists.
35506
35507debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000035508ac_cs_recheck=false
35509ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000035510SHELL=\${CONFIG_SHELL-$SHELL}
35511_ACEOF
35512
35513cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035514## --------------------- ##
35515## M4sh Initialization. ##
35516## --------------------- ##
35517
Bill Wendlingebcceee2009-04-18 11:20:33 +000035518# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000035519if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35520 emulate sh
35521 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035522 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35523 # is contrary to our usage. Disable this feature.
35524 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000035525 setopt NO_GLOB_SUBST
35526else
Bill Wendlingebcceee2009-04-18 11:20:33 +000035527 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000035528fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000035529BIN_SH=xpg4; export BIN_SH # for Tru64
35530DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000035531
John Criswell7a73b802003-06-30 21:59:07 +000035532
Reid Spencera773bd52006-08-04 18:18:08 +000035533# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000035534# Avoid depending upon Character Ranges.
35535as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35536as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35537as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35538as_cr_digits='0123456789'
35539as_cr_alnum=$as_cr_Letters$as_cr_digits
35540
35541# The user is always right.
35542if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000035543 echo "#! /bin/sh" >conf$$.sh
35544 echo "exit 0" >>conf$$.sh
35545 chmod +x conf$$.sh
35546 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035547 PATH_SEPARATOR=';'
35548 else
35549 PATH_SEPARATOR=:
35550 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000035551 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000035552fi
35553
Reid Spencera773bd52006-08-04 18:18:08 +000035554# Support unset when possible.
35555if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35556 as_unset=unset
35557else
35558 as_unset=false
35559fi
John Criswell7a73b802003-06-30 21:59:07 +000035560
Reid Spencera773bd52006-08-04 18:18:08 +000035561
35562# IFS
35563# We need space, tab and new line, in precisely that order. Quoting is
35564# there to prevent editors from complaining about space-tab.
35565# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35566# splitting by setting IFS to empty value.)
35567as_nl='
35568'
35569IFS=" "" $as_nl"
35570
35571# Find who we are. Look in the path if we contain no directory separator.
35572case $0 in
35573 *[\\/]* ) as_myself=$0 ;;
35574 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000035575for as_dir in $PATH
35576do
35577 IFS=$as_save_IFS
35578 test -z "$as_dir" && as_dir=.
35579 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35580done
Reid Spencera773bd52006-08-04 18:18:08 +000035581IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000035582
Reid Spencera773bd52006-08-04 18:18:08 +000035583 ;;
35584esac
35585# We did not find ourselves, most probably we were run as `sh COMMAND'
35586# in which case we are not to be found in the path.
35587if test "x$as_myself" = x; then
35588 as_myself=$0
35589fi
35590if test ! -f "$as_myself"; then
35591 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35592 { (exit 1); exit 1; }
35593fi
35594
35595# Work around bugs in pre-3.0 UWIN ksh.
35596for as_var in ENV MAIL MAILPATH
35597do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35598done
35599PS1='$ '
35600PS2='> '
35601PS4='+ '
35602
35603# NLS nuisances.
35604for as_var in \
35605 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35606 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35607 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000035608do
Reid Spencera773bd52006-08-04 18:18:08 +000035609 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35610 eval $as_var=C; export $as_var
35611 else
35612 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35613 fi
35614done
35615
35616# Required to use basename.
35617if expr a : '\(a\)' >/dev/null 2>&1 &&
35618 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35619 as_expr=expr
35620else
35621 as_expr=false
35622fi
35623
35624if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35625 as_basename=basename
35626else
35627 as_basename=false
35628fi
35629
35630
35631# Name of the executable.
35632as_me=`$as_basename -- "$0" ||
35633$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35634 X"$0" : 'X\(//\)$' \| \
35635 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35636echo X/"$0" |
35637 sed '/^.*\/\([^/][^/]*\)\/*$/{
35638 s//\1/
35639 q
35640 }
35641 /^X\/\(\/\/\)$/{
35642 s//\1/
35643 q
35644 }
35645 /^X\/\(\/\).*/{
35646 s//\1/
35647 q
35648 }
35649 s/.*/./; q'`
35650
35651# CDPATH.
35652$as_unset CDPATH
35653
35654
35655
John Criswell7a73b802003-06-30 21:59:07 +000035656 as_lineno_1=$LINENO
35657 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000035658 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000035659 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000035660
35661 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35662 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000035663 # line-number line after each line using $LINENO; the second 'sed'
35664 # does the real work. The second script uses 'N' to pair each
35665 # line-number line with the line containing $LINENO, and appends
35666 # trailing '-' during substitution so that $LINENO is not a special
35667 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000035668 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000035669 # scripts with optimization help from Paolo Bonzini. Blame Lee
35670 # E. McMahon (1931-1989) for sed's syntax. :-)
35671 sed -n '
35672 p
35673 /[$]LINENO/=
35674 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000035675 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000035676 s/[$]LINENO.*/&-/
35677 t lineno
35678 b
35679 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000035680 N
Reid Spencera773bd52006-08-04 18:18:08 +000035681 :loop
35682 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000035683 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000035684 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000035685 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000035686 chmod +x "$as_me.lineno" ||
35687 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000035688 { (exit 1); exit 1; }; }
35689
35690 # Don't try to exec as it changes $[0], causing all sort of problems
35691 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000035692 # original and so on. Autoconf is especially sensitive to this).
35693 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000035694 # Exit status is that of the last command.
35695 exit
35696}
35697
35698
Reid Spencera773bd52006-08-04 18:18:08 +000035699if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35700 as_dirname=dirname
35701else
35702 as_dirname=false
35703fi
35704
35705ECHO_C= ECHO_N= ECHO_T=
35706case `echo -n x` in
35707-n*)
35708 case `echo 'x\c'` in
35709 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35710 *) ECHO_C='\c';;
35711 esac;;
35712*)
35713 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000035714esac
35715
Reid Spencera773bd52006-08-04 18:18:08 +000035716if expr a : '\(a\)' >/dev/null 2>&1 &&
35717 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000035718 as_expr=expr
35719else
35720 as_expr=false
35721fi
35722
35723rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000035724if test -d conf$$.dir; then
35725 rm -f conf$$.dir/conf$$.file
35726else
35727 rm -f conf$$.dir
35728 mkdir conf$$.dir
35729fi
John Criswell7a73b802003-06-30 21:59:07 +000035730echo >conf$$.file
35731if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000035732 as_ln_s='ln -s'
35733 # ... but there are two gotchas:
35734 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35735 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35736 # In both cases, we have to default to `cp -p'.
35737 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000035738 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000035739elif ln conf$$.file conf$$ 2>/dev/null; then
35740 as_ln_s=ln
35741else
35742 as_ln_s='cp -p'
35743fi
Reid Spencera773bd52006-08-04 18:18:08 +000035744rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35745rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000035746
John Criswell0c38eaf2003-09-10 15:17:25 +000035747if mkdir -p . 2>/dev/null; then
35748 as_mkdir_p=:
35749else
Reid Spencer2706f8c2004-09-19 23:53:36 +000035750 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000035751 as_mkdir_p=false
35752fi
35753
Bill Wendlingebcceee2009-04-18 11:20:33 +000035754# Find out whether ``test -x'' works. Don't use a zero-byte file, as
35755# systems may use methods other than mode bits to determine executability.
35756cat >conf$$.file <<_ASEOF
35757#! /bin/sh
35758exit 0
35759_ASEOF
35760chmod +x conf$$.file
35761if test -x conf$$.file >/dev/null 2>&1; then
35762 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000035763else
Bill Wendlingebcceee2009-04-18 11:20:33 +000035764 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000035765fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000035766rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000035767
35768# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035769as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035770
35771# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035772as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035773
35774
John Criswell7a73b802003-06-30 21:59:07 +000035775exec 6>&1
35776
Reid Spencera773bd52006-08-04 18:18:08 +000035777# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000035778# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000035779# values after options handling.
35780ac_log="
Tanya Lattner953042b2009-08-22 04:37:30 +000035781This file was extended by llvm $as_me 2.7svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +000035782generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000035783
35784 CONFIG_FILES = $CONFIG_FILES
35785 CONFIG_HEADERS = $CONFIG_HEADERS
35786 CONFIG_LINKS = $CONFIG_LINKS
35787 CONFIG_COMMANDS = $CONFIG_COMMANDS
35788 $ $0 $@
35789
Reid Spencera773bd52006-08-04 18:18:08 +000035790on `(hostname || uname -n) 2>/dev/null | sed 1q`
35791"
35792
John Criswell7a73b802003-06-30 21:59:07 +000035793_ACEOF
35794
Reid Spencera773bd52006-08-04 18:18:08 +000035795cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035796# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000035797config_files="$ac_config_files"
35798config_headers="$ac_config_headers"
35799config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000035800
Reid Spencera773bd52006-08-04 18:18:08 +000035801_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035802
35803cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035804ac_cs_usage="\
35805\`$as_me' instantiates files from templates according to the
35806current configuration.
35807
35808Usage: $0 [OPTIONS] [FILE]...
35809
35810 -h, --help print this help, then exit
Bill Wendlingebcceee2009-04-18 11:20:33 +000035811 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000035812 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000035813 -d, --debug don't remove temporary files
35814 --recheck update $as_me by reconfiguring in the same conditions
35815 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035816 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000035817 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035818 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000035819
35820Configuration files:
35821$config_files
35822
35823Configuration headers:
35824$config_headers
35825
John Criswellc764fbc2003-09-06 15:17:13 +000035826Configuration commands:
35827$config_commands
35828
John Criswell7a73b802003-06-30 21:59:07 +000035829Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000035830
Reid Spencera773bd52006-08-04 18:18:08 +000035831_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035832cat >>$CONFIG_STATUS <<_ACEOF
35833ac_cs_version="\\
Tanya Lattner953042b2009-08-22 04:37:30 +000035834llvm config.status 2.7svn
Bill Wendlingebcceee2009-04-18 11:20:33 +000035835configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000035836 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000035837
Reid Spencera773bd52006-08-04 18:18:08 +000035838Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000035839This config.status script is free software; the Free Software Foundation
35840gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000035841
35842ac_pwd='$ac_pwd'
35843srcdir='$srcdir'
35844INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000035845_ACEOF
35846
35847cat >>$CONFIG_STATUS <<\_ACEOF
35848# If no file are specified by the user, then we need to provide default
35849# value. By we need to know if files were specified by the user.
35850ac_need_defaults=:
35851while test $# != 0
35852do
35853 case $1 in
35854 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000035855 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35856 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000035857 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000035858 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035859 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000035860 ac_option=$1
35861 ac_optarg=$2
35862 ac_shift=shift
35863 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035864 esac
35865
John Criswell0c38eaf2003-09-10 15:17:25 +000035866 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000035867 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000035868 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35869 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035870 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35871 echo "$ac_cs_version"; exit ;;
35872 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000035873 debug=: ;;
35874 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000035875 $ac_shift
35876 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035877 ac_need_defaults=false;;
35878 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000035879 $ac_shift
35880 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035881 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000035882 --he | --h)
35883 # Conflict between --help and --header
35884 { echo "$as_me: error: ambiguous option: $1
35885Try \`$0 --help' for more information." >&2
35886 { (exit 1); exit 1; }; };;
35887 --help | --hel | -h )
35888 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000035889 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35890 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35891 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000035892
35893 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000035894 -*) { echo "$as_me: error: unrecognized option: $1
35895Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035896 { (exit 1); exit 1; }; } ;;
35897
Reid Spencera773bd52006-08-04 18:18:08 +000035898 *) ac_config_targets="$ac_config_targets $1"
35899 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000035900
35901 esac
35902 shift
35903done
35904
John Criswell0c38eaf2003-09-10 15:17:25 +000035905ac_configure_extra_args=
35906
35907if $ac_cs_silent; then
35908 exec 6>/dev/null
35909 ac_configure_extra_args="$ac_configure_extra_args --silent"
35910fi
35911
35912_ACEOF
35913cat >>$CONFIG_STATUS <<_ACEOF
35914if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000035915 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35916 CONFIG_SHELL=$SHELL
35917 export CONFIG_SHELL
35918 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000035919fi
35920
John Criswell7a73b802003-06-30 21:59:07 +000035921_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035922cat >>$CONFIG_STATUS <<\_ACEOF
35923exec 5>>config.log
35924{
35925 echo
35926 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35927## Running $as_me. ##
35928_ASBOX
35929 echo "$ac_log"
35930} >&5
John Criswell7a73b802003-06-30 21:59:07 +000035931
Reid Spencera773bd52006-08-04 18:18:08 +000035932_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000035933cat >>$CONFIG_STATUS <<_ACEOF
35934#
Reid Spencera773bd52006-08-04 18:18:08 +000035935# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000035936#
Reid Spencerc0682832005-02-24 19:05:19 +000035937llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000035938
35939_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035940
John Criswell7a73b802003-06-30 21:59:07 +000035941cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035942
35943# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000035944for ac_config_target in $ac_config_targets
35945do
Reid Spencera773bd52006-08-04 18:18:08 +000035946 case $ac_config_target in
35947 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000035948 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35949 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000035950 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035951 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035952 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000035953 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035954 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035955 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035956 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35957 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35958 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35959 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35960 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35961 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035962 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035963 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35964 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000035965 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035966 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35967 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35968 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035969 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35970 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035971
John Criswell7a73b802003-06-30 21:59:07 +000035972 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35973echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35974 { (exit 1); exit 1; }; };;
35975 esac
35976done
35977
Reid Spencera773bd52006-08-04 18:18:08 +000035978
John Criswell7a73b802003-06-30 21:59:07 +000035979# If the user did not use the arguments to specify the items to instantiate,
35980# then the envvar interface is used. Set only those that are not.
35981# We use the long form for the default assignment because of an extremely
35982# bizarre bug on SunOS 4.1.3.
35983if $ac_need_defaults; then
35984 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35985 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000035986 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000035987fi
35988
John Criswell0c38eaf2003-09-10 15:17:25 +000035989# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000035990# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000035991# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000035992# Hook for its removal unless debugging.
35993# Note that there is a small window in which the directory will not be cleaned:
35994# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000035995$debug ||
35996{
Reid Spencera773bd52006-08-04 18:18:08 +000035997 tmp=
35998 trap 'exit_status=$?
35999 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
36000' 0
John Criswell7a73b802003-06-30 21:59:07 +000036001 trap '{ (exit 1); exit 1; }' 1 2 13 15
36002}
John Criswell7a73b802003-06-30 21:59:07 +000036003# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000036004
John Criswell7a73b802003-06-30 21:59:07 +000036005{
Reid Spencera773bd52006-08-04 18:18:08 +000036006 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000036007 test -n "$tmp" && test -d "$tmp"
36008} ||
36009{
Reid Spencera773bd52006-08-04 18:18:08 +000036010 tmp=./conf$$-$RANDOM
36011 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000036012} ||
36013{
John Criswell0c38eaf2003-09-10 15:17:25 +000036014 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000036015 { (exit 1); exit 1; }
36016}
36017
John Criswell7a73b802003-06-30 21:59:07 +000036018#
Reid Spencera773bd52006-08-04 18:18:08 +000036019# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000036020#
36021
36022# No need to generate the scripts if there are no CONFIG_FILES.
36023# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000036024if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000036025
36026_ACEOF
36027
Reid Spencera773bd52006-08-04 18:18:08 +000036028
36029
36030ac_delim='%!_!# '
36031for ac_last_try in false false false false false :; do
36032 cat >conf$$subs.sed <<_ACEOF
36033SHELL!$SHELL$ac_delim
36034PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36035PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36036PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36037PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36038PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36039PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36040exec_prefix!$exec_prefix$ac_delim
36041prefix!$prefix$ac_delim
36042program_transform_name!$program_transform_name$ac_delim
36043bindir!$bindir$ac_delim
36044sbindir!$sbindir$ac_delim
36045libexecdir!$libexecdir$ac_delim
36046datarootdir!$datarootdir$ac_delim
36047datadir!$datadir$ac_delim
36048sysconfdir!$sysconfdir$ac_delim
36049sharedstatedir!$sharedstatedir$ac_delim
36050localstatedir!$localstatedir$ac_delim
36051includedir!$includedir$ac_delim
36052oldincludedir!$oldincludedir$ac_delim
36053docdir!$docdir$ac_delim
36054infodir!$infodir$ac_delim
36055htmldir!$htmldir$ac_delim
36056dvidir!$dvidir$ac_delim
36057pdfdir!$pdfdir$ac_delim
36058psdir!$psdir$ac_delim
36059libdir!$libdir$ac_delim
36060localedir!$localedir$ac_delim
36061mandir!$mandir$ac_delim
36062DEFS!$DEFS$ac_delim
36063ECHO_C!$ECHO_C$ac_delim
36064ECHO_N!$ECHO_N$ac_delim
36065ECHO_T!$ECHO_T$ac_delim
36066LIBS!$LIBS$ac_delim
36067build_alias!$build_alias$ac_delim
36068host_alias!$host_alias$ac_delim
36069target_alias!$target_alias$ac_delim
36070LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36071subdirs!$subdirs$ac_delim
36072build!$build$ac_delim
36073build_cpu!$build_cpu$ac_delim
36074build_vendor!$build_vendor$ac_delim
36075build_os!$build_os$ac_delim
36076host!$host$ac_delim
36077host_cpu!$host_cpu$ac_delim
36078host_vendor!$host_vendor$ac_delim
36079host_os!$host_os$ac_delim
36080target!$target$ac_delim
36081target_cpu!$target_cpu$ac_delim
36082target_vendor!$target_vendor$ac_delim
36083target_os!$target_os$ac_delim
36084OS!$OS$ac_delim
Anton Korobeynikov0855f102009-08-18 00:40:51 +000036085HOST_OS!$HOST_OS$ac_delim
36086TARGET_OS!$TARGET_OS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036087LINKALL!$LINKALL$ac_delim
36088NOLINKALL!$NOLINKALL$ac_delim
36089LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36090LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Bill Wendlinga0833352009-03-12 04:10:09 +000036091ARCH!$ARCH$ac_delim
36092ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036093CC!$CC$ac_delim
36094CFLAGS!$CFLAGS$ac_delim
36095LDFLAGS!$LDFLAGS$ac_delim
36096CPPFLAGS!$CPPFLAGS$ac_delim
36097ac_ct_CC!$ac_ct_CC$ac_delim
36098EXEEXT!$EXEEXT$ac_delim
36099OBJEXT!$OBJEXT$ac_delim
36100CPP!$CPP$ac_delim
36101GREP!$GREP$ac_delim
36102EGREP!$EGREP$ac_delim
36103LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36104BUILD_CC!$BUILD_CC$ac_delim
36105BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000036106BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036107CVSBUILD!$CVSBUILD$ac_delim
36108ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000036109ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036110DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000036111ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36112EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000036113DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000036114DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036115JIT!$JIT$ac_delim
36116TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36117ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36118ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000036119ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036120TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000036121LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36122LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000036123LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000036124ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036125EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckye792b1d2009-02-03 07:10:30 +000036126BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000036127ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36128ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036129CXX!$CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036130_ACEOF
36131
36132 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36133 break
36134 elif $ac_last_try; then
36135 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36136echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36137 { (exit 1); exit 1; }; }
36138 else
36139 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000036140 fi
Reid Spencera773bd52006-08-04 18:18:08 +000036141done
36142
36143ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36144if test -n "$ac_eof"; then
36145 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36146 ac_eof=`expr $ac_eof + 1`
36147fi
36148
36149cat >>$CONFIG_STATUS <<_ACEOF
36150cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36151/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36152_ACEOF
36153sed '
36154s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36155s/^/s,@/; s/!/@,|#_!!_#|/
36156:n
36157t n
36158s/'"$ac_delim"'$/,g/; t
36159s/$/\\/; p
36160N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36161' >>$CONFIG_STATUS <conf$$subs.sed
36162rm -f conf$$subs.sed
36163cat >>$CONFIG_STATUS <<_ACEOF
36164CEOF$ac_eof
36165_ACEOF
36166
36167
36168ac_delim='%!_!# '
36169for ac_last_try in false false false false false :; do
36170 cat >conf$$subs.sed <<_ACEOF
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000036171CXXFLAGS!$CXXFLAGS$ac_delim
Anton Korobeynikov0855f102009-08-18 00:40:51 +000036172ac_ct_CXX!$ac_ct_CXX$ac_delim
Shantonu Sen7e836972009-08-11 13:39:52 +000036173NM!$NM$ac_delim
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000036174ifGNUmake!$ifGNUmake$ac_delim
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000036175LN_S!$LN_S$ac_delim
36176CMP!$CMP$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000036177CP!$CP$ac_delim
36178DATE!$DATE$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000036179FIND!$FIND$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036180MKDIR!$MKDIR$ac_delim
36181MV!$MV$ac_delim
36182RANLIB!$RANLIB$ac_delim
36183RM!$RM$ac_delim
36184SED!$SED$ac_delim
36185TAR!$TAR$ac_delim
36186BINPWD!$BINPWD$ac_delim
36187GRAPHVIZ!$GRAPHVIZ$ac_delim
36188DOT!$DOT$ac_delim
David Greenef0b9eff2009-07-09 17:16:26 +000036189FDP!$FDP$ac_delim
36190NEATO!$NEATO$ac_delim
36191TWOPI!$TWOPI$ac_delim
36192CIRCO!$CIRCO$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036193GV!$GV$ac_delim
36194DOTTY!$DOTTY$ac_delim
36195PERL!$PERL$ac_delim
36196HAVE_PERL!$HAVE_PERL$ac_delim
36197INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36198INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36199INSTALL_DATA!$INSTALL_DATA$ac_delim
36200BZIP2!$BZIP2$ac_delim
36201DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036202GROFF!$GROFF$ac_delim
36203GZIP!$GZIP$ac_delim
36204POD2HTML!$POD2HTML$ac_delim
36205POD2MAN!$POD2MAN$ac_delim
36206RUNTEST!$RUNTEST$ac_delim
36207TCLSH!$TCLSH$ac_delim
36208ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000036209OCAMLC!$OCAMLC$ac_delim
36210OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000036211OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000036212OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000036213GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036214INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36215INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36216CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36217CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36218LIBADD_DL!$LIBADD_DL$ac_delim
36219ECHO!$ECHO$ac_delim
36220AR!$AR$ac_delim
36221STRIP!$STRIP$ac_delim
36222CXXCPP!$CXXCPP$ac_delim
36223F77!$F77$ac_delim
36224FFLAGS!$FFLAGS$ac_delim
36225ac_ct_F77!$ac_ct_F77$ac_delim
36226LIBTOOL!$LIBTOOL$ac_delim
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000036227LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36228LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
Douglas Gregor01746742009-05-11 18:05:52 +000036229LLVMGCC!$LLVMGCC$ac_delim
36230LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000036231USE_UDIS86!$USE_UDIS86$ac_delim
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000036232USE_OPROFILE!$USE_OPROFILE$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000036233HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000036234HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036235ALLOCA!$ALLOCA$ac_delim
36236MMAP_FILE!$MMAP_FILE$ac_delim
36237LLVMCC1!$LLVMCC1$ac_delim
36238LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36239LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000036240LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036241LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36242LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000036243LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036244SHLIBEXT!$SHLIBEXT$ac_delim
36245LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36246LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36247LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36248LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36249LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36250LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36251LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36252LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36253LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36254LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000036255BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36256ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000036257OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000036258ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckye9821dc2009-03-03 04:55:29 +000036259RPATH!$RPATH$ac_delim
Nick Lewycky731c6ab2009-03-05 08:20:44 +000036260RDYNAMIC!$RDYNAMIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036261LIBOBJS!$LIBOBJS$ac_delim
36262LTLIBOBJS!$LTLIBOBJS$ac_delim
36263_ACEOF
36264
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000036265 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
Reid Spencera773bd52006-08-04 18:18:08 +000036266 break
36267 elif $ac_last_try; then
36268 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36269echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36270 { (exit 1); exit 1; }; }
36271 else
36272 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36273 fi
36274done
36275
36276ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36277if test -n "$ac_eof"; then
36278 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36279 ac_eof=`expr $ac_eof + 1`
36280fi
36281
36282cat >>$CONFIG_STATUS <<_ACEOF
36283cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36284/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36285_ACEOF
36286sed '
36287s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36288s/^/s,@/; s/!/@,|#_!!_#|/
36289:n
36290t n
36291s/'"$ac_delim"'$/,g/; t
36292s/$/\\/; p
36293N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36294' >>$CONFIG_STATUS <conf$$subs.sed
36295rm -f conf$$subs.sed
36296cat >>$CONFIG_STATUS <<_ACEOF
36297:end
36298s/|#_!!_#|//g
36299CEOF$ac_eof
36300_ACEOF
36301
36302
36303# VPATH may cause trouble with some makes, so we remove $(srcdir),
36304# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36305# trailing colons and then remove the whole line if VPATH becomes empty
36306# (actually we leave an empty line to preserve line numbers).
36307if test "x$srcdir" = x.; then
36308 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36309s/:*\$(srcdir):*/:/
36310s/:*\${srcdir}:*/:/
36311s/:*@srcdir@:*/:/
36312s/^\([^=]*=[ ]*\):*/\1/
36313s/:*$//
36314s/^[^=]*=[ ]*$//
36315}'
36316fi
36317
36318cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000036319fi # test -n "$CONFIG_FILES"
36320
Reid Spencera773bd52006-08-04 18:18:08 +000036321
36322for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36323do
36324 case $ac_tag in
36325 :[FHLC]) ac_mode=$ac_tag; continue;;
36326 esac
36327 case $ac_mode$ac_tag in
36328 :[FHL]*:*);;
36329 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36330echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36331 { (exit 1); exit 1; }; };;
36332 :[FH]-) ac_tag=-:-;;
36333 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36334 esac
36335 ac_save_IFS=$IFS
36336 IFS=:
36337 set x $ac_tag
36338 IFS=$ac_save_IFS
36339 shift
36340 ac_file=$1
36341 shift
36342
36343 case $ac_mode in
36344 :L) ac_source=$1;;
36345 :[FH])
36346 ac_file_inputs=
36347 for ac_f
36348 do
36349 case $ac_f in
36350 -) ac_f="$tmp/stdin";;
36351 *) # Look for the file first in the build tree, then in the source tree
36352 # (if the path is not absolute). The absolute path cannot be DOS-style,
36353 # because $ac_f cannot contain `:'.
36354 test -f "$ac_f" ||
36355 case $ac_f in
36356 [\\/$]*) false;;
36357 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36358 esac ||
36359 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36360echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36361 { (exit 1); exit 1; }; };;
36362 esac
36363 ac_file_inputs="$ac_file_inputs $ac_f"
36364 done
36365
36366 # Let's still pretend it is `configure' which instantiates (i.e., don't
36367 # use $as_me), people would be surprised to read:
36368 # /* config.h. Generated by config.status. */
36369 configure_input="Generated from "`IFS=:
36370 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36371 if test x"$ac_file" != x-; then
36372 configure_input="$ac_file. $configure_input"
36373 { echo "$as_me:$LINENO: creating $ac_file" >&5
36374echo "$as_me: creating $ac_file" >&6;}
36375 fi
36376
36377 case $ac_tag in
36378 *:-:* | *:-) cat >"$tmp/stdin";;
36379 esac
36380 ;;
John Criswell7a73b802003-06-30 21:59:07 +000036381 esac
36382
Reid Spencera773bd52006-08-04 18:18:08 +000036383 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000036384$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036385 X"$ac_file" : 'X\(//\)[^/]' \| \
36386 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036387 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000036388echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000036389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36390 s//\1/
36391 q
36392 }
36393 /^X\(\/\/\)[^/].*/{
36394 s//\1/
36395 q
36396 }
36397 /^X\(\/\/\)$/{
36398 s//\1/
36399 q
36400 }
36401 /^X\(\/\).*/{
36402 s//\1/
36403 q
36404 }
36405 s/.*/./; q'`
36406 { as_dir="$ac_dir"
36407 case $as_dir in #(
36408 -*) as_dir=./$as_dir;;
36409 esac
36410 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000036411 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036412 while :; do
36413 case $as_dir in #(
36414 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36415 *) as_qdir=$as_dir;;
36416 esac
36417 as_dirs="'$as_qdir' $as_dirs"
36418 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000036419$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036420 X"$as_dir" : 'X\(//\)[^/]' \| \
36421 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036422 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000036423echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36425 s//\1/
36426 q
36427 }
36428 /^X\(\/\/\)[^/].*/{
36429 s//\1/
36430 q
36431 }
36432 /^X\(\/\/\)$/{
36433 s//\1/
36434 q
36435 }
36436 /^X\(\/\).*/{
36437 s//\1/
36438 q
36439 }
36440 s/.*/./; q'`
36441 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000036442 done
Reid Spencera773bd52006-08-04 18:18:08 +000036443 test -z "$as_dirs" || eval "mkdir $as_dirs"
36444 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36445echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000036446 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000036447 ac_builddir=.
36448
Reid Spencera773bd52006-08-04 18:18:08 +000036449case "$ac_dir" in
36450.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36451*)
John Criswell7a73b802003-06-30 21:59:07 +000036452 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036453 # A ".." for each directory in $ac_dir_suffix.
36454 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36455 case $ac_top_builddir_sub in
36456 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36457 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36458 esac ;;
36459esac
36460ac_abs_top_builddir=$ac_pwd
36461ac_abs_builddir=$ac_pwd$ac_dir_suffix
36462# for backward compatibility:
36463ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000036464
36465case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036466 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000036467 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036468 ac_top_srcdir=$ac_top_builddir_sub
36469 ac_abs_top_srcdir=$ac_pwd ;;
36470 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000036471 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036472 ac_top_srcdir=$srcdir
36473 ac_abs_top_srcdir=$srcdir ;;
36474 *) # Relative name.
36475 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36476 ac_top_srcdir=$ac_top_build_prefix$srcdir
36477 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000036478esac
Reid Spencera773bd52006-08-04 18:18:08 +000036479ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000036480
John Criswell7a73b802003-06-30 21:59:07 +000036481
Reid Spencera773bd52006-08-04 18:18:08 +000036482 case $ac_mode in
36483 :F)
36484 #
36485 # CONFIG_FILE
36486 #
John Criswell7a73b802003-06-30 21:59:07 +000036487
36488 case $INSTALL in
36489 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036490 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000036491 esac
John Criswell7a73b802003-06-30 21:59:07 +000036492_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036493
36494cat >>$CONFIG_STATUS <<\_ACEOF
36495# If the template does not know about datarootdir, expand it.
36496# FIXME: This hack should be removed a few years after 2.60.
36497ac_datarootdir_hack=; ac_datarootdir_seen=
36498
36499case `sed -n '/datarootdir/ {
36500 p
36501 q
36502}
36503/@datadir@/p
36504/@docdir@/p
36505/@infodir@/p
36506/@localedir@/p
36507/@mandir@/p
36508' $ac_file_inputs` in
36509*datarootdir*) ac_datarootdir_seen=yes;;
36510*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36511 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36512echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36513_ACEOF
36514cat >>$CONFIG_STATUS <<_ACEOF
36515 ac_datarootdir_hack='
36516 s&@datadir@&$datadir&g
36517 s&@docdir@&$docdir&g
36518 s&@infodir@&$infodir&g
36519 s&@localedir@&$localedir&g
36520 s&@mandir@&$mandir&g
36521 s&\\\${datarootdir}&$datarootdir&g' ;;
36522esac
36523_ACEOF
36524
36525# Neutralize VPATH when `$srcdir' = `.'.
36526# Shell code in configure.ac might set extrasub.
36527# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000036528cat >>$CONFIG_STATUS <<_ACEOF
36529 sed "$ac_vpsub
36530$extrasub
36531_ACEOF
36532cat >>$CONFIG_STATUS <<\_ACEOF
36533:t
36534/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000036535s&@configure_input@&$configure_input&;t t
36536s&@top_builddir@&$ac_top_builddir_sub&;t t
36537s&@srcdir@&$ac_srcdir&;t t
36538s&@abs_srcdir@&$ac_abs_srcdir&;t t
36539s&@top_srcdir@&$ac_top_srcdir&;t t
36540s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36541s&@builddir@&$ac_builddir&;t t
36542s&@abs_builddir@&$ac_abs_builddir&;t t
36543s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36544s&@INSTALL@&$ac_INSTALL&;t t
36545$ac_datarootdir_hack
36546" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000036547
Reid Spencera773bd52006-08-04 18:18:08 +000036548test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36549 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36550 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36551 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36552which seems to be undefined. Please make sure it is defined." >&5
36553echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36554which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000036555
Reid Spencera773bd52006-08-04 18:18:08 +000036556 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000036557 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000036558 -) cat "$tmp/out"; rm -f "$tmp/out";;
36559 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000036560 esac
Reid Spencera773bd52006-08-04 18:18:08 +000036561 ;;
36562 :H)
36563 #
36564 # CONFIG_HEADER
36565 #
John Criswell7a73b802003-06-30 21:59:07 +000036566_ACEOF
36567
Reid Spencera773bd52006-08-04 18:18:08 +000036568# Transform confdefs.h into a sed script `conftest.defines', that
36569# substitutes the proper values into config.h.in to produce config.h.
36570rm -f conftest.defines conftest.tail
36571# First, append a space to every undef/define line, to ease matching.
36572echo 's/$/ /' >conftest.defines
36573# Then, protect against being on the right side of a sed subst, or in
36574# an unquoted here document, in config.status. If some macros were
36575# called several times there might be several #defines for the same
36576# symbol, which is useless. But do not sort them, since the last
36577# AC_DEFINE must be honored.
36578ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36579# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36580# NAME is the cpp macro being defined, VALUE is the value it is being given.
36581# PARAMS is the parameter list in the macro definition--in most cases, it's
36582# just an empty string.
36583ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36584ac_dB='\\)[ (].*,\\1define\\2'
36585ac_dC=' '
36586ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000036587
Reid Spencera773bd52006-08-04 18:18:08 +000036588uniq confdefs.h |
36589 sed -n '
36590 t rset
36591 :rset
36592 s/^[ ]*#[ ]*define[ ][ ]*//
36593 t ok
36594 d
36595 :ok
36596 s/[\\&,]/\\&/g
36597 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36598 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36599 ' >>conftest.defines
36600
36601# Remove the space that was appended to ease matching.
36602# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000036603# example, in the case of _POSIX_SOURCE, which is predefined and required
36604# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000036605# (The regexp can be short, since the line contains either #define or #undef.)
36606echo 's/ $//
36607s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000036608
Reid Spencera773bd52006-08-04 18:18:08 +000036609# Break up conftest.defines:
36610ac_max_sed_lines=50
36611
36612# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36613# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36614# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36615# et cetera.
36616ac_in='$ac_file_inputs'
36617ac_out='"$tmp/out1"'
36618ac_nxt='"$tmp/out2"'
36619
36620while :
John Criswell7a73b802003-06-30 21:59:07 +000036621do
Reid Spencera773bd52006-08-04 18:18:08 +000036622 # Write a here document:
36623 cat >>$CONFIG_STATUS <<_ACEOF
36624 # First, check the format of the line:
36625 cat >"\$tmp/defines.sed" <<\\CEOF
36626/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36627/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36628b
36629:def
36630_ACEOF
36631 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036632 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036633 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36634 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36635 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36636 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000036637 rm -f conftest.defines
36638 mv conftest.tail conftest.defines
36639done
Reid Spencera773bd52006-08-04 18:18:08 +000036640rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000036641
Reid Spencera773bd52006-08-04 18:18:08 +000036642echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036643cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000036644 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000036645 echo "/* $configure_input */" >"$tmp/config.h"
36646 cat "$ac_result" >>"$tmp/config.h"
36647 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000036648 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36649echo "$as_me: $ac_file is unchanged" >&6;}
36650 else
John Criswell7a73b802003-06-30 21:59:07 +000036651 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000036652 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000036653 fi
36654 else
Reid Spencera773bd52006-08-04 18:18:08 +000036655 echo "/* $configure_input */"
36656 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000036657 fi
Reid Spencera773bd52006-08-04 18:18:08 +000036658 rm -f "$tmp/out12"
36659 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036660
Reid Spencera773bd52006-08-04 18:18:08 +000036661 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36662echo "$as_me: executing $ac_file commands" >&6;}
36663 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036664 esac
John Criswell7a73b802003-06-30 21:59:07 +000036665
Reid Spencera773bd52006-08-04 18:18:08 +000036666
36667 case $ac_file$ac_mode in
36668 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036669 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036670 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000036671 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036672 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036673 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036674 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036675 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000036676 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036677 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036678 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036679 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036680 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000036681 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000036682 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036683 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036684 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036685 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036686 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036687 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036688 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036689 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000036690 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036691 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000036692 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000036693 ${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 +000036694
36695 esac
36696done # for ac_tag
36697
John Criswell7a73b802003-06-30 21:59:07 +000036698
36699{ (exit 0); exit 0; }
36700_ACEOF
36701chmod +x $CONFIG_STATUS
36702ac_clean_files=$ac_clean_files_save
36703
36704
36705# configure is writing to config.log, and then calls config.status.
36706# config.status does its own redirection, appending to config.log.
36707# Unfortunately, on DOS this fails, as config.log is still kept open
36708# by configure, so config.status won't be able to write to it; its
36709# output is simply discarded. So we exec the FD to /dev/null,
36710# effectively closing config.log, so it can be properly (re)opened and
36711# appended to by config.status. When coming back to configure, we
36712# need to make the FD available again.
36713if test "$no_create" != yes; then
36714 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000036715 ac_config_status_args=
36716 test "$silent" = yes &&
36717 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000036718 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000036719 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000036720 exec 5>>config.log
36721 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36722 # would make configure fail if this is the last instruction.
36723 $ac_cs_success || { (exit 1); exit 1; }
36724fi
36725
John Criswell12399a12003-09-30 15:55:44 +000036726#
36727# CONFIG_SUBDIRS section.
36728#
36729if test "$no_recursion" != yes; then
36730
36731 # Remove --cache-file and --srcdir arguments so they do not pile up.
36732 ac_sub_configure_args=
36733 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000036734 eval "set x $ac_configure_args"
36735 shift
36736 for ac_arg
36737 do
John Criswell12399a12003-09-30 15:55:44 +000036738 if test -n "$ac_prev"; then
36739 ac_prev=
36740 continue
36741 fi
36742 case $ac_arg in
36743 -cache-file | --cache-file | --cache-fil | --cache-fi \
36744 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36745 ac_prev=cache_file ;;
36746 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36747 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36748 | --c=*)
36749 ;;
36750 --config-cache | -C)
36751 ;;
36752 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36753 ac_prev=srcdir ;;
36754 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36755 ;;
36756 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36757 ac_prev=prefix ;;
36758 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36759 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036760 *)
36761 case $ac_arg in
36762 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36763 esac
36764 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000036765 esac
36766 done
36767
36768 # Always prepend --prefix to ensure using the same prefix
36769 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000036770 ac_arg="--prefix=$prefix"
36771 case $ac_arg in
36772 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36773 esac
Bill Wendlingebcceee2009-04-18 11:20:33 +000036774 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000036775
36776 ac_popdir=`pwd`
36777 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36778
36779 # Do not complain, so a configure script can configure whichever
36780 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000036781 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000036782
Reid Spencera773bd52006-08-04 18:18:08 +000036783 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36784 echo "$as_me:$LINENO: $ac_msg" >&5
36785 echo "$ac_msg" >&6
36786 { as_dir="$ac_dir"
36787 case $as_dir in #(
36788 -*) as_dir=./$as_dir;;
36789 esac
36790 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000036791 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036792 while :; do
36793 case $as_dir in #(
36794 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36795 *) as_qdir=$as_dir;;
36796 esac
36797 as_dirs="'$as_qdir' $as_dirs"
36798 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000036799$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036800 X"$as_dir" : 'X\(//\)[^/]' \| \
36801 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036802 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000036803echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36805 s//\1/
36806 q
36807 }
36808 /^X\(\/\/\)[^/].*/{
36809 s//\1/
36810 q
36811 }
36812 /^X\(\/\/\)$/{
36813 s//\1/
36814 q
36815 }
36816 /^X\(\/\).*/{
36817 s//\1/
36818 q
36819 }
36820 s/.*/./; q'`
36821 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000036822 done
Reid Spencera773bd52006-08-04 18:18:08 +000036823 test -z "$as_dirs" || eval "mkdir $as_dirs"
36824 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36825echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000036826 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000036827 ac_builddir=.
36828
Reid Spencera773bd52006-08-04 18:18:08 +000036829case "$ac_dir" in
36830.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36831*)
John Criswell12399a12003-09-30 15:55:44 +000036832 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036833 # A ".." for each directory in $ac_dir_suffix.
36834 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36835 case $ac_top_builddir_sub in
36836 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36837 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36838 esac ;;
36839esac
36840ac_abs_top_builddir=$ac_pwd
36841ac_abs_builddir=$ac_pwd$ac_dir_suffix
36842# for backward compatibility:
36843ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000036844
36845case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036846 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000036847 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036848 ac_top_srcdir=$ac_top_builddir_sub
36849 ac_abs_top_srcdir=$ac_pwd ;;
36850 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000036851 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036852 ac_top_srcdir=$srcdir
36853 ac_abs_top_srcdir=$srcdir ;;
36854 *) # Relative name.
36855 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36856 ac_top_srcdir=$ac_top_build_prefix$srcdir
36857 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000036858esac
Reid Spencera773bd52006-08-04 18:18:08 +000036859ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000036860
36861
Reid Spencera773bd52006-08-04 18:18:08 +000036862 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000036863
36864 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000036865 if test -f "$ac_srcdir/configure.gnu"; then
36866 ac_sub_configure=$ac_srcdir/configure.gnu
36867 elif test -f "$ac_srcdir/configure"; then
36868 ac_sub_configure=$ac_srcdir/configure
36869 elif test -f "$ac_srcdir/configure.in"; then
36870 # This should be Cygnus configure.
36871 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000036872 else
36873 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36874echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36875 ac_sub_configure=
36876 fi
36877
36878 # The recursion is here.
36879 if test -n "$ac_sub_configure"; then
36880 # Make the cache file name correct relative to the subdirectory.
36881 case $cache_file in
36882 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036883 *) # Relative name.
36884 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000036885 esac
36886
Reid Spencera773bd52006-08-04 18:18:08 +000036887 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36888echo "$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 +000036889 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000036890 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36891 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000036892 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000036893echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36894 { (exit 1); exit 1; }; }
36895 fi
36896
Reid Spencera773bd52006-08-04 18:18:08 +000036897 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000036898 done
36899fi
36900